/* ═══════════════════════════════════════════════════════════════ */
/* COJIPHARM - STYLES.CSS V5 FINAL - MOBILE PERFECT                */
/* Corrige : bannière, camion, boutons, stats, code blocks, bottom */
/* ═══════════════════════════════════════════════════════════════ */
:root {
  --primary: #0a1931;
  --primary-light: #122a52;
  --accent: #ffc107;
  --accent-hover: #ffb800;
  --text: #333;
  --text-muted: #6b7280;
  --bg: #f8f9fa;
  --bg-card: #fff;
  --border: #e5e7eb;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 80px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}
img, svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
input, textarea {
  font-family: inherit;
  font-size: inherit;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes vanFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes pulse {
  50% { opacity: 0.5; }
}
.pwa-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 61;
  background: var(--primary);
  color: white;
  padding: 10px 8px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  animation: slideDown 0.4s ease;
  height: 56px;
}
.pwa-banner.hidden { display: none !important; }
body.has-pwa-banner { padding-top: 136px; } /* 56 banner + 80 header */
body:not(.has-pwa-banner) { padding-top: 80px; }
@media (max-width: 767px) {
  body.has-pwa-banner { padding-top: 120px; } /* 56 + 64 */
  body:not(.has-pwa-banner) { padding-top: 64px; }
}
.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}
.pwa-banner-content > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.pwa-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.pwa-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pwa-subtitle {
  font-size: 10.5px;
  opacity: 0.65;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pwa-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: 4px;
}
.btn-install {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
  transition: background 0.2s;
}
.btn-install:hover { background: #f3f4f6; }
.btn-close-banner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .pwa-title { font-size: 12px; }
  .pwa-subtitle { display: none; }
  .btn-install { padding: 0 10px; font-size: 11px; min-width: 62px; height: 30px; }
}
.main-header {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #fcfcfd 100%);
  border-bottom: 1px solid #eef0f4;
  border-top: 3px solid var(--accent);
  box-shadow: 0 1px 0 rgba(10,25,49,0.04), 0 8px 24px rgba(10,25,49,0.04);
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1), background 0.3s, box-shadow 0.3s;
}
.main-header.pwa-hidden {
  top: 0;
}
.main-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 30%, transparent 70%, var(--accent) 100%);
  opacity: 0.15;
}
.main-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(10,25,49,0.06), 0 12px 32px rgba(10,25,49,0.10);
  border-bottom-color: #e5e7eb;
}
.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px 0 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: 64px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .header-container { padding: 0 20px 0 12px; height: 80px; gap: 24px; }
}
@media (min-width: 1280px) {
  .header-container { padding: 0 24px 0 8px; }
}
@media (max-width: 767px) {
  .header-container {
    grid-template-columns: 1fr auto;
    height: 60px;
    padding: 0 12px 0 8px;
    gap: 10px;
  }
  .status-mobile { display: none !important; }
}
@media (max-width: 380px) {
  .header-container { height: 56px; gap: 8px; padding: 0 10px 0 6px; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
  margin-left: 0;
}
@media (max-width: 380px) {
  .logo { gap: 7px; }
}
/* Ancien logo fictif C - gardé en fallback */
.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a365d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10,25,49,0.18), inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}
.logo-inner {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffd54f 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(255,193,7,0.35);
}
.logo-inner span {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
}
/* VRAI LOGO COJIPHARM - logo.png - version sans fond pour s'intégrer */
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(0 1px 3px rgba(10,25,49,0.15));
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
.logo:hover .logo-img {
  transform: scale(1.06) rotate(-3deg);
}
@media (min-width: 768px) {
  .logo-img { width: 48px; height: 48px; }
}
@media (max-width: 767px) {
  .logo-img { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  .logo-img { width: 34px; height: 34px; }
}
.logo-text { line-height: 1; min-width: 0; }
.logo-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}
@media (max-width: 767px) {
  .logo-name { font-size: 16px; }
}
@media (max-width: 380px) {
  .logo-name { font-size: 14px; }
}
.logo-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 1px;
  opacity: 0.85;
}
@media (max-width: 380px) {
  .logo-sub { font-size: 8px; }
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
  background: #f6f7f9;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #eef0f4;
  justify-self: center;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}
@media (min-width: 1024px) {
  .nav-desktop { 
    position: relative;
    left: 0;
    transform: none;
  }
}
.nav-link {
  padding: 0 18px;
  height: 34px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.nav-link:hover {
  background: white;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(10,25,49,0.08);
}
.nav-link.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(10,25,49,0.22);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
}
.btn-client {
  margin-left: 14px;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #ffc934 100%);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(255,193,7,0.32), 0 1px 0 rgba(255,255,255,0.6) inset;
  border: 1px solid rgba(255,193,7,0.4);
}
.btn-client:hover { 
  background: linear-gradient(135deg, #ffb800 0%, var(--accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,193,7,0.4);
}


/* ===== CLIENT DROPDOWN - Espace Client ===== */
.client-dropdown-wrapper {
  position: relative;
  margin-left: 12px;
}
.btn-client-dropdown {
  height: 36px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-client-dropdown:hover { background: var(--accent-hover); }
.btn-client-dropdown.logged {
  background: var(--primary);
  color: white;
}
.btn-client-dropdown.logged:hover { background: #122a52; }
.btn-client-dropdown .chevron {
  transition: transform .2s;
  opacity: .7;
}
.client-dropdown-wrapper.open .btn-client-dropdown .chevron {
  transform: rotate(180deg);
}
.client-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(10,25,49,0.12);
  padding: 6px;
  z-index: 100;
  display: none;
}
.client-dropdown-wrapper.open .client-dropdown-menu { display: block; }
.client-dropdown-header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 6px;
}
.client-dropdown-header .name {
  font-size: 13px;
  font-weight: 700;
  color: #0a1931;
  line-height: 1.2;
}
.client-dropdown-header .email {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}
.client-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all .15s;
}
.client-dropdown-item:hover {
  background: #f8f9fa;
  color: #0a1931;
}
.client-dropdown-item.danger {
  color: #dc2626;
}
.client-dropdown-item.danger:hover {
  background: #fef2f2;
}

.status-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.status-badge {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg);
  padding: 0 12px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .status-badge { display: flex; }
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  animation: pulse 2s infinite;
}
.hero {
  position: relative;
  overflow: hidden;
  background: white;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .hero {
    width: calc(100% - 24px);
    margin: 12px auto 0;
    border-radius: 20px;
  }
  .hero-illustration {
    border-radius: 20px 20px 0 0;
  }
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.hero-illustration {
  position: relative;
  height: 300px;
  background: linear-gradient(to bottom right, #0a1931, #132a52, #1c3a6d);
  overflow: hidden;
  width: 100%;
}
@media (min-width: 640px) { 
  .hero-illustration { height: 340px; } 
}
@media (min-width: 768px) { 
  .hero-illustration { height: 440px; } 
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: 
    linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(255,255,255,0.08), transparent);
}

/* ═══════════════════════════════════════════════════════════════ */
/* HERO VIDEO SLIDER - Remplace camion - Jijel Hub */
/* ═══════════════════════════════════════════════════════════════ */
.hero-illustration.hero-video-slider {
  background: #0a1931;
  padding: 0;
}

.hero-video-slider #videoCarousel,
.hero-video-slider .carousel-inner,
.hero-video-slider .carousel-item,
.hero-video-slider .video-slide {
  width: 100%;
  height: 100%;
}

.hero-video-slider #videoCarousel {
  height: 300px;
}
@media (min-width: 640px) {
  .hero-video-slider #videoCarousel { height: 340px; }
}
@media (min-width: 768px) {
  .hero-video-slider #videoCarousel { height: 440px; }
}

.hero-video-slider .video-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video-slider .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-slider .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,49,0.15) 0%, rgba(10,25,49,0.65) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 20px 48px;
  z-index: 2;
}

.hero-video-slider .video-content h2 {
  font-size: 18px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 6px;
  line-height: 1.2;
}

.hero-video-slider .video-content h6 {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  max-width: 320px;
  margin: 0 auto;
}

.hero-video-slider .carousel-indicators {
  bottom: 12px;
  z-index: 3;
  gap: 6px;
  margin-bottom: 0;
}

.hero-video-slider .carousel-indicators button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.35);
  opacity: 1;
  transition: all 0.3s;
}

.hero-video-slider .carousel-indicators button.active {
  background: var(--accent);
  width: 36px;
}

.hero-video-slider .carousel-control-prev,
.hero-video-slider .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .hero-video-slider:hover .carousel-control-prev,
  .hero-video-slider:hover .carousel-control-next {
    opacity: 1;
  }
}

.hero-video-slider .carousel-control-prev { left: 16px; }
.hero-video-slider .carousel-control-next { right: 16px; }

.hero-video-slider .carousel-control-prev-icon,
.hero-video-slider .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}


/* FIX CAROUSEL FADE pour video - Bootstrap */
.hero-video-slider .carousel-fade .carousel-item {
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
}
.hero-video-slider .carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 1;
}
.hero-video-slider .carousel-fade .carousel-item-next.carousel-item-start,
.hero-video-slider .carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}
.hero-video-slider .carousel-inner {
  background: #0a1931;
}

/* Cache l'ancien camion quand le nouveau slider est actif */
.hero-illustration.hero-video-slider .pharmacies-wrapper,
.hero-illustration.hero-video-slider .van-wrapper,
.hero-illustration.hero-video-slider .road,
.hero-illustration.hero-video-slider .hero-grid-bg,
.hero-illustration.hero-video-slider .hero-gradient-bottom,
.hero-illustration.hero-video-slider .live-badge {
  display: none !important;
}

.pharmacies-wrapper {
  position: absolute;
  bottom: 95px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.van-wrapper {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: calc(100% - 32px);
  max-width: 360px;
}
.pharmacies-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}
.delivery-van {
  width: 100%;
  position: relative;
  padding-bottom: 14px;
}
.animate-float-slow {
  animation: vanFloat 4.5s ease-in-out infinite;
}
.animate-float-fast {
  animation: vanFloat 3s ease-in-out infinite;
}
.pharmacy {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
}
.pharmacy-small {
  width: 72px;
  height: 90px;
  animation: vanFloat 4s ease-in-out infinite;
}
@media (min-width: 768px) { 
  .pharmacy-small { width: 100px; height: 140px; } 
}
.pharmacy-top-bar {
  height: 8px;
  width: 48px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}
.pharmacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
}
.pharmacy-grid > div {
  height: 32px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
}
.pharmacy-grid > div:nth-child(1),
.pharmacy-grid > div:nth-child(4) {
  background: rgba(255,193,7,0.2);
  border: 1px solid rgba(255,193,7,0.3);
}
.pharmacy-label {
  margin-top: auto;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
}
.pharmacy-large {
  width: 110px;
  height: 120px;
  background: white;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  padding: 0;
  border: none;
  animation: vanFloat 4.5s ease-in-out infinite 0.5s;
}
@media (min-width: 768px) { 
  .pharmacy-large { width: 140px; height: 180px; } 
}
.pharmacy-header {
  height: 38%;
  background: var(--primary);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pharmacy-dots {
  display: flex;
  gap: 4px;
}
.pharmacy-dots::before,
.pharmacy-dots::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.pharmacy-dots::after { background: rgba(255,255,255,0.4); }
.pharmacy-title-bar {
  height: 8px;
  width: 64px;
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
}
.pharmacy-products {
  flex: 1;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pharmacy-products::before {
  content: '';
  background: var(--bg);
  border-radius: 8px;
}
.pharmacy-products::after {
  content: '';
  background: rgba(255,193,7,0.2);
  border: 1px solid rgba(255,193,7,0.4);
  border-radius: 8px;
}
.van-body {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border: 2px solid var(--primary);
  overflow: hidden;
  display: flex;
  height: 82px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) { .van-body { height: 110px; } }
.van-front {
  width: 68%;
  background: white;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.van-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.van-logo > div {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.van-brand {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--primary);
  line-height: 1;
}
.van-sub {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.van-cabin {
  width: 32%;
  background: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.van-wheel {
  position: absolute;
  bottom: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.van-wheel-left { left: 16%; }
.van-wheel-right { right: 16%; }
.van-shadow {
  margin-top: 8px;
  height: 5px;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  background: rgba(0,0,0,0.25);
  filter: blur(4px);
  border-radius: 999px;
}
.road {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 22px;
  background: #08162e;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}
@media (min-width: 768px) {
  .road {
    border-radius: 0;
  }
}
.road-line {
  height: 2px;
  width: 36px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
}
.live-badge {
  position: absolute;
  top: 16px;
  left: 12px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 10px;
  font-weight: 600;
}
.hero-content {
  padding: 24px 16px;
  background: white;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .hero-content { padding: 48px 40px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff8e1;
  border: 1px solid rgba(255,193,7,0.3);
  color: #8a6d00;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--primary);
}
@media (min-width: 768px) {
  .hero-title { font-size: 44px; }
}
.hero-title-accent {
  display: block;
  color: var(--accent);
}
.hero-title-badge {
  display: inline-flex;
  margin-top: 8px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
}
.hero-description {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.hero-buttons {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.btn-primary, .btn-secondary {
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .btn-primary, .btn-secondary { width: auto; flex: 1; }
}
/* FIX: virer Suivre ma livraison du hero - on garde Devenir Client seul et plus fin */
.hero .btn-primary {
  display: none !important;
}
.hero .btn-secondary {
  width: fit-content;
  max-width: 260px;
  padding: 0 28px;
  height: 48px;
}
@media (min-width: 768px) {
  .hero .btn-secondary {
    width: auto;
    max-width: 260px;
    height: 56px;
    font-size: 15px;
    padding: 0 36px;
    box-shadow: 0 8px 20px rgba(255,193,7,0.35);
    transition: all 0.25s ease;
  }
  .hero .btn-secondary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255,193,7,0.45);
  }
  .hero .btn-secondary:active {
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .hero .btn-secondary {
    width: 100%;
    max-width: 100%;
  }
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-secondary {
  background: var(--accent);
  color: var(--primary);
}
.hero-trust {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.trust-avatars { display: flex; }
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 2px solid white;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  margin-left: -6px;
}
.avatar:first-child { margin-left: 0; }
.avatar-dark { background: var(--primary); color: white; }
.avatar-accent { background: var(--accent); color: var(--primary); }
.stats-section {
  background: var(--bg);
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 12px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) { .stats-container { padding: 16px 32px; } }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
@media (min-width: 768px) {
  .stat-card { padding: 16px 20px; }
}
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid;
  flex-shrink: 0;
}
.stat-icon-green { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.stat-icon-amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.stat-icon-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.stat-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}
.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.tracking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .tracking-section { padding: 56px 32px; }
}
.tracking-container { width: 100%; }
.tracking-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 10px 40px rgba(10,25,49,0.06);
  overflow: hidden;
  width: 100%;
}
.tracking-header {
  padding: 20px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .tracking-header { padding: 32px; } }
.tracking-title { font-size: 18px; font-weight: 700; color: var(--primary); }
@media (min-width: 768px) { .tracking-title { font-size: 24px; } }
.tracking-subtitle { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.tracking-icon-box {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  place-items: center;
  color: var(--primary);
}
@media (min-width: 768px) { .tracking-icon-box { display: grid; } }
.tracking-form {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .tracking-form { padding: 0 32px; flex-direction: row; }
}
.input-with-icon { position: relative; flex: 1; }
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.tracking-input, .form-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: var(--bg);
  padding: 0 16px 0 42px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}
.tracking-input:focus, .form-input:focus {
  border-color: var(--primary);
  background: white;
}
.btn-track {
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
@media (min-width: 768px) { .btn-track { width: auto; } }
.tracking-steps {
  margin-top: 24px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .tracking-steps { padding: 0 32px; grid-template-columns: repeat(4, 1fr); }
}
.step {
  border-radius: 14px;
  border: 1px solid #f3f4f6;
  background: var(--bg);
  padding: 14px;
  display: flex;
  gap: 12px;
}
.step-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  flex-shrink: 0;
}
.step-circle-done { background: var(--primary); color: white; border-color: var(--primary); }
.step-circle-active { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.step-title { font-size: 13px; font-weight: 600; color: var(--primary); }
.step-active .step-title { color: white; }
.step-time { font-size: 11px; color: var(--text-muted); }
.step-active .step-time { color: rgba(255,255,255,0.7); }
.tracking-footer {
  margin-top: 20px;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.tracking-eta { display: flex; align-items: center; gap: 8px; }
.tracking-eta svg { color: var(--accent); }
.tracking-wilaya { font-weight: 700; color: var(--accent); }
.about-section {
  background: white;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .about-container { padding: 80px 32px; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
}
.about-stats-card {
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid #f3f4f6;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) { .about-stats-card { padding: 32px; } }
.about-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-stat-box {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 14px;
}
.about-stat-number { font-size: 24px; font-weight: 900; color: var(--primary); line-height: 1; }
.about-stat-label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.about-stat-box-dark {
  grid-column: span 2;
  background: var(--primary);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}
.about-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.about-stat-dark-title { font-size: 12px; font-weight: 700; }
.about-stat-dark-sub { font-size: 11px; opacity: 0.7; }
.about-label { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.about-title { margin-top: 10px; font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--primary); }
@media (min-width: 768px) { .about-title { font-size: 32px; } }
.about-text { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.6; color: #4b5563; }
.about-highlight { display: flex; align-items: flex-start; gap: 10px; background: var(--bg); border: 1px solid #f3f4f6; border-radius: 12px; padding: 12px; font-size: 13px; }
.about-highlight-icon { width: 22px; height: 22px; border-radius: 999px; background: var(--primary); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.about-features { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .about-features { grid-template-columns: 1fr 1fr; } }
.about-feature { display: flex; gap: 10px; }
.about-feature-icon { width: 30px; height: 30px; border-radius: 999px; background: #fff8e1; border: 1px solid rgba(255,193,7,0.3); display: grid; place-items: center; color: #8a6d00; flex-shrink: 0; }
.about-feature-title { font-size: 12px; font-weight: 700; color: var(--primary); }
.about-feature-desc { font-size: 11px; color: var(--text-muted); }
.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) { .contact-section { padding: 64px 32px; } }
.contact-container { display: grid; gap: 20px; }
@media (min-width: 768px) { .contact-container { grid-template-columns: 0.9fr 1.1fr; gap: 32px; } }
.contact-info {
  background: var(--primary);
  border-radius: 20px;
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .contact-info { padding: 32px; } }
.contact-glow { position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: rgba(255,193,7,0.1); border-radius: 999px; filter: blur(40px); }
.contact-title { font-size: 20px; font-weight: 700; line-height: 1.25; position: relative; }
.contact-description { margin-top: 10px; font-size: 13px; line-height: 1.6; opacity: 0.7; position: relative; }
.contact-items { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.contact-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0 14px; height: 44px; }
.contact-item svg { color: var(--accent); flex-shrink: 0; }
.contact-item span { font-size: 13px; font-weight: 500; }
.contact-security { margin-top: 24px; display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: 0.6; position: relative; }
.contact-form-card { background: white; border-radius: 20px; border: 1px solid #f3f4f6; box-shadow: 0 10px 40px rgba(10,25,49,0.06); padding: 20px; width: 100%; box-sizing: border-box; }
@media (min-width: 768px) { .contact-form-card { padding: 32px; } }
.form-title { font-size: 17px; font-weight: 700; color: var(--primary); }
.contact-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; font-weight: 600; color: var(--primary); letter-spacing: 0.02em; text-transform: uppercase; }
.form-textarea { width: 100%; min-height: 110px; border-radius: 12px; border: 1px solid #e5e7eb; background: var(--bg); padding: 12px 14px; font-size: 15px; outline: none; resize: none; box-sizing: border-box; }
.form-textarea:focus { border-color: var(--primary); background: white; }
.btn-submit { width: 100%; height: 48px; border-radius: 12px; background: var(--accent); color: var(--primary); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 16px rgba(255,193,7,0.28); }
.form-note { font-size: 10px; text-align: center; color: var(--text-muted); }
.main-footer {
  background: var(--primary);
  color: white;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .main-footer {
    width: calc(100% - 24px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px 20px 0 0;
  }
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 28px 16px; width: 100%; box-sizing: border-box; }
@media (min-width: 768px) { .footer-container { padding: 56px 32px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-box { width: 40px; height: 40px; border-radius: 12px; background: white; display: flex; align-items: center; justify-content: center; }
.footer-logo-inner { width: 24px; height: 24px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.footer-logo-inner span { font-size: 11px; font-weight: 900; color: var(--primary); }
.footer-logo-name { font-size: 18px; font-weight: 800; }
.footer-description { margin-top: 14px; font-size: 13px; line-height: 1.6; opacity: 0.7; max-width: 32ch; }
.footer-badge { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); padding: 6px 12px; font-size: 11px; font-weight: 600; }
.footer-badge svg { color: var(--accent); }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.5; }
.footer-links { margin-top: 12px; display: grid; gap: 2px; }
.footer-links a { height: 40px; display: flex; align-items: center; font-size: 14px; opacity: 0.8; transition: all 0.2s; }
.footer-links a:hover { opacity: 1; transform: translateX(4px); }
.footer-newsletter-desc { margin-top: 14px; font-size: 13px; opacity: 0.6; }
.newsletter-form { margin-top: 10px; display: flex; gap: 8px; }
.newsletter-input { flex: 1; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); padding: 0 14px; color: white; font-size: 14px; outline: none; min-width: 0; }
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-btn { width: 42px; height: 42px; border-radius: 999px; background: var(--accent); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; opacity: 0.5; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-status { display: flex; align-items: center; gap: 8px; }
.mobile-client-bar {
  display: block;
  position: fixed;
  bottom: 62px;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  border: none;
  padding: 0 16px;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  pointer-events: none;
}
@media (min-width: 768px) {
  .mobile-client-bar { display: none !important; }
}
.mobile-client-btn {
  width: 100%;
  max-width: 100%;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(255,193,7,0.4);
  pointer-events: auto;
}
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid #e5e7eb;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  gap: 2px;
  box-shadow: 0 -12px 32px rgba(10,25,49,.08);
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .mobile-nav { display: none; }
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 52px;
  border-radius: 14px;
  color: #6b7280;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item:active{ transform: scale(.94); }
.mobile-nav-item:hover{ background: #f8f9fa; color: #0a1931; }

.mobile-nav-item span { font-size: 9px; font-weight: 600; line-height: 1; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: all 0.2s;
}
.mobile-nav-item.active .mobile-nav-icon {
  background: var(--primary);
  color: white;
}
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 150px;
  z-index: 80;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
@media (min-width: 768px) { .toast { bottom: 32px; } }
.toast.show { opacity: 1; animation: slideUp 0.3s ease; }
.toast::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.scroll-top-btn {
  position: fixed;
  z-index: 41;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(255,193,7,0.4);
  display: grid;
  place-items: center;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  pointer-events: none;
  bottom: 132px;
  right: 12px;
}
@media (min-width: 768px) {
  .scroll-top-btn { bottom: 32px; right: 32px; width: 48px; height: 48px; }
}
.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.api-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .api-section { padding: 64px 32px; }
}
.api-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.api-header { text-align: center; margin-bottom: 12px; }
.api-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.api-title { font-size: 24px; font-weight: 800; color: var(--primary); }
.api-subtitle { margin-top: 6px; font-size: 14px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.api-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 768px) { .api-card { padding: 32px; } }
.api-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}
.api-card-title::before { content: ""; width: 5px; height: 20px; background: var(--accent); border-radius: 3px; }
.api-text { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 14px; }
.info-box, .warning-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.5;
  max-width: 100%;
  box-sizing: border-box;
}
.info-box { background: #fff8e1; border-left: 4px solid var(--accent); color: #8a6d00; }
.warning-box { background: #fff7ed; border-left: 4px solid #f59e0b; color: #9a3412; }
.info-box svg, .warning-box svg { flex-shrink: 0; margin-top: 2px; }
/* CODE BLOCKS - FIX V7 : PLUS DE SCROLL HORIZONTAL - TOUT VISIBLE */
.code-block, .json-block {
  background: #0a1931;
  color: #e5e7eb;
  padding: 16px;
  border-radius: 12px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0;
  border: 1px solid #1f2937;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}
.code-block pre, .json-block pre {
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  width: 100%;
  min-width: 0;
}
.json-block pre { white-space: pre-wrap; word-break: break-word; }
.code-block::-webkit-scrollbar, .json-block::-webkit-scrollbar {
  height: 6px;
}
.code-block::-webkit-scrollbar-thumb, .json-block::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}
.endpoint-card {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0;
  max-width: 100%;
  box-sizing: border-box;
}
.endpoint-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.method-badge { padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 11px; }
.method-get { background: var(--primary); color: var(--accent); border: 1px solid var(--accent); }
.endpoint-path { font-family: monospace; font-weight: 700; color: var(--primary); font-size: 14px; word-break: break-all; }
.endpoint-desc { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.endpoint-param { font-size: 12px; color: var(--text-muted); }
.param-required { color: #b45309; font-weight: 700; }
.api-table-wrapper {
  overflow-x: hidden;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin: 14px 0;
  max-width: 100%;
}
.api-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 0; }
@media (max-width: 640px) { .api-table { font-size: 12px; } .api-table th, .api-table td { padding: 8px 8px; } }
.api-table th, .api-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f3f4f6; }
.api-table th { background: var(--primary); color: white; font-weight: 700; }
.api-table td code { background: #fff8e1; color: #92400e; padding: 2px 6px; border-radius: 5px; font-weight: 600; font-size: 12px; }
.api-sub-card-title { font-size: 15px; font-weight: 700; color: var(--primary); margin: 20px 0 6px; }
.faq-item { margin-bottom: 16px; }
.faq-question { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.faq-answer { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.support-box { margin-top: 24px; background: var(--primary); color: white; border-radius: 14px; padding: 20px; text-align: center; }
.support-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--accent); }
.support-contacts { display: flex; flex-direction: column; gap: 10px; align-items: center; }
@media (min-width: 640px) { .support-contacts { flex-direction: row; justify-content: center; gap: 20px; } }
.support-link { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-size: 13px; font-weight: 500; }
.support-link:hover { color: var(--accent); }
#apidocs .api-card:last-child {
  margin-bottom: 30px;
}


/* ═══════════════════════════════════════════════════════════════ */
/* HERO PHOTO SLIDER - tbl_slider - V7 */
/* ═══════════════════════════════════════════════════════════════ */
.hero-photo-slider {
  background: #0a1931;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(10,25,49,.12);
}
.hero-illustration.hero-photo-slider {
  background: #0a1931;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
}
.hero-photo-slider #photoCarousel,
.hero-photo-slider .carousel-inner,
.hero-photo-slider .carousel-item,
.hero-photo-slider .photo-slide {
  width: 100%;
  height: 100%;
}
.hero-photo-slider #photoCarousel {
  height: 300px;
}
@media (min-width: 640px) {
  .hero-photo-slider #photoCarousel { height: 340px; }
}
@media (min-width: 768px) {
  .hero-photo-slider #photoCarousel { height: 440px; }
}
@media (min-width: 1024px) {
  .hero-photo-slider #photoCarousel { height: 480px; }
}
.hero-photo-slider .photo-slide {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a1931;
}
.hero-photo-slider .bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}
.hero-photo-slider .carousel-item.active .bg-photo {
  transform: scale(1.05);
}
.hero-photo-slider .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,49,0.05) 0%, rgba(10,25,49,0.15) 40%, rgba(10,25,49,0.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 20px 48px;
  z-index: 2;
}
.hero-photo-slider .photo-content h2 {
  font-size: 18px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 6px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hero-photo-slider .photo-content h2 { font-size: 22px; }
}
.hero-photo-slider .photo-content h6 {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  max-width: 340px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero-photo-slider .photo-content h6 { font-size: 13.5px; max-width: 420px; }
}
.hero-photo-slider .carousel-indicators {
  bottom: 12px;
  z-index: 3;
  gap: 6px;
  margin-bottom: 0;
}
.hero-photo-slider .carousel-indicators button {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.35);
  opacity: 1;
  transition: all 0.3s;
}
.hero-photo-slider .carousel-indicators button.active {
  background: var(--accent);
  width: 36px;
}
.hero-photo-slider .carousel-control-prev,
.hero-photo-slider .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}
.hero-photo-slider:hover .carousel-control-prev,
.hero-photo-slider:hover .carousel-control-next {
  opacity: 1;
}
.hero-photo-slider .carousel-control-prev { left: 16px; }
.hero-photo-slider .carousel-control-next { right: 16px; }
.hero-photo-slider .carousel-control-prev-icon,
.hero-photo-slider .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}
.hero-photo-slider .carousel-fade .carousel-item {
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
}
.hero-photo-slider .carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 1;
}
.hero-photo-slider .carousel-fade .carousel-item-next.carousel-item-start,
.hero-photo-slider .carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}
.hero-photo-slider .carousel-inner {
  background: #0a1931;
}