/* ============================================================
   Locationd'Afric – Premium UI
   Mode sombre (défaut) + mode diurne doux
   ============================================================ */

/* --- Thème sombre (défaut) --- */
:root,
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-elevated: #111827;
  --bg-card: #151f32;
  --bg-card-hover: #1a2740;
  --border: rgba(148, 163, 184, 0.12);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #14b8a6;
  --primary-hover: #0d9488;
  --primary-glow: rgba(20, 184, 166, 0.35);
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.3);
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #3b82f6;
  --header-bg: rgba(11, 18, 32, 0.88);
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --hero-glow-1: rgba(20, 184, 166, 0.15);
  --hero-glow-2: rgba(245, 158, 11, 0.08);
  --table-hover: rgba(255, 255, 255, 0.02);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --header-h: 72px;
  --toast-bg: rgba(20, 30, 48, 0.92);
  --toast-border: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.55);
}

/* --- Mode diurne élégant (inspiré applique_diurne) + marque --- */
[data-theme="light"] {
  --toast-bg: rgba(255, 255, 255, 0.92);
  --toast-border: rgba(0, 0, 0, 0.08);
  /* Diurne doux, confiance & conversion — teinte marque */
  --bg: #f7f9fc;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-glow: rgba(15, 118, 110, 0.18);
  --accent: #b45309;
  --accent-glow: rgba(180, 83, 9, 0.22);
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --info: #2563eb;
  --header-bg: rgba(255, 255, 255, 0.94);
  --shadow: 0 4px 22px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.08);
  --hero-glow-1: rgba(15, 118, 110, 0.07);
  --hero-glow-2: rgba(180, 83, 9, 0.07);
  --table-hover: rgba(15, 118, 110, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(15, 23, 42, 0.06);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
}
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Main pousse le footer en bas — plus d’espace vide */
.main {
  flex: 1 0 auto;
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  flex-shrink: 0;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-icon {
  font-size: 1.5rem;
}
.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}
.logo-primary {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.logo-tagline::before {
  content: none;
}

.logo-text .accent {
  color: var(--primary);
}
.nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-link:hover {
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Bouton thème */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
  width: 20px;
  height: 20px;
}
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

.cart-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.cart-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: grid;
  place-items: center;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.25s;
}

/* ---------- Flash ---------- */
.flash-wrapper {
  position: fixed;
  top: calc(var(--header-h, 72px) + 12px);
  right: 16px;
  left: auto;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}
.flash-wrapper .flash { pointer-events: auto; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: slideIn 0.35s ease;
}
.flash-success {
  border-left: 4px solid var(--success);
}
.flash-error {
  border-left: 4px solid var(--danger);
}
.flash-warning {
  border-left: 4px solid var(--accent);
}
.flash-info {
  border-left: 4px solid var(--primary);
}
.flash-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(20, 184, 166, 0.25);
}
[data-theme="light"] .hero-badge {
  border-color: rgba(13, 148, 136, 0.2);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 span {
  color: var(--primary);
}
.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--bg-card);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
}
.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
[data-theme="light"] .btn-primary {
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #b45309);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
[data-theme="light"] .btn-ghost {
  background: rgba(28, 25, 23, 0.04);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.btn-block {
  width: 100%;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}
.section-header p {
  color: var(--text-muted);
}

/* ---------- Cards ---------- */
.grid-cars,
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.3);
}
[data-theme="light"] .card:hover {
  border-color: rgba(13, 148, 136, 0.25);
  box-shadow: 0 16px 40px -12px rgba(28, 25, 23, 0.15);
}
.card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-img img {
  transform: scale(1.06);
}
.card-body {
  padding: 18px 20px 22px;
}
.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20, 184, 166, 0.95);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.card-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.card-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}
.card-price small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- Detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}
.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}
.detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.feature-chip {
  background: var(--primary-glow);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .form-control {
  background: #faf8f5;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* ---------- Cart & Checkout ---------- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th,
.cart-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cart-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  box-shadow: var(--shadow);
}
.cart-summary .total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 20px;
}

/* ---------- Payment USSD ---------- */
.ussd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.ussd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ussd-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--op-color, var(--primary));
}
.ussd-card h3 {
  margin-bottom: 8px;
}
.ussd-steps {
  list-style: none;
  margin: 16px 0;
}
.ussd-steps li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.ussd-steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.ussd-code {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  text-align: center;
  margin: 12px 0;
  user-select: all;
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.stars {
  color: var(--accent);
  letter-spacing: 2px;
}
.review-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ---------- Admin ---------- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
.admin-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
}
.admin-sidebar .logo {
  margin-bottom: 32px;
  padding: 0 8px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: var(--primary-glow);
  color: var(--primary);
}
.admin-content {
  padding: 32px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-card .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
table.data {
  width: 100%;
  border-collapse: collapse;
}
table.data th,
table.data td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.data th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.data tr:hover td {
  background: var(--table-hover);
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}
.badge-paid,
.badge-confirmed,
.badge-completed {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}
@keyframes pulse-wa {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4),
      0 0 0 12px rgba(37, 211, 102, 0.15);
  }
}

/* ---------- Modal persistent ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.modal-overlay.open .modal {
  transform: none;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-body {
  padding: 24px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Footer (collé en bas via flex) ---------- */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: auto;
  flex-shrink: 0;
  transition: background-color 0.35s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: var(--text);
}
.footer a,
.footer p {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg {
  opacity: 0.4;
  margin-bottom: 16px;
}

/* Sections avec fond léger (index boutique) */
.section-soft {
  background: rgba(20, 184, 166, 0.03);
}
[data-theme="light"] .section-soft {
  background: rgba(13, 148, 136, 0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav.open {
    display: flex;
  }
  .nav-link {
    padding: 12px;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 600px) {
  .header-actions {
    gap: 8px;
  }
  .theme-toggle,
  .cart-btn {
    width: 40px;
    height: 40px;
  }
}


/* ---------- Logo image ---------- */
.logo-img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 8px;
}
.logo-img-sm { height: 40px; max-width: 100px; border-radius: 0 !important; }
.logo-img, .footer .logo-img, header .logo-img {
  border-radius: 0 !important;
}
.logo { gap: 12px; }
[data-theme="light"] .logo-img {
  /* logo fond noir : léger cadre en mode clair */
  box-shadow: 0 0 0 1px var(--border);
}

.logo-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #22c55e, #eab308 55%, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .logo-primary {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 40%, #ca8a04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.display-title {
  font-family: "Cormorant Garamond", var(--font-display), serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.35);
}
.service-icon { font-size: 1.8rem; margin-bottom: 12px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.service-card p { color: var(--text-muted); font-size: 0.92rem; }

.why-list {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.why-list li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.why-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--primary);
  font-weight: 700;
}

.notice-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 720px;
}
.notice-banner strong { color: var(--accent); display: block; margin-bottom: 6px; }
.notice-banner p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Social */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .2s, border-color .2s, box-shadow .2s, transform .15s;
  line-height: 0;
  padding: 0;
  margin: 0;
  text-decoration: none;
  vertical-align: middle;
}
.social-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  flex: 0 0 auto;
  pointer-events: none;
}
.social-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  transform: translateY(-1px);
}
.footer .social-btn {
  /* même centrage dans le footer */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .logo-stack { display: none; }
  .logo-img { height: 42px; }
}

.star-input {
  display: inline-flex;
  gap: 6px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--accent);
  user-select: none;
  line-height: 1;
}
.star-input span {
  opacity: 0.35;
  transition: opacity .15s, transform .15s;
  display: inline-block;
}
.star-input span.active { opacity: 1; }
.star-input span:hover { transform: scale(1.15); }

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
}

/* hero-bg deprecated — no gradient overlays */
.hero.hero-clean {
  background: var(--bg);
  padding: 72px 0 56px;
}
.hero.hero-clean h1 {
  max-width: 18ch;
}
.hero.hero-clean > .container > p {
  max-width: 540px;
}

.logo-car-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.service-icon-svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--primary);
}


/* Grille tarifaire / listes longues : scroll vertical */
.table-scroll-y {
  max-height: min(320px, 50vh);
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.table-scroll-y table.data {
  margin: 0;
}
.table-scroll-y table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-elevated);
  box-shadow: 0 1px 0 var(--border);
}
.table-scroll-y::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-scroll-y::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
  opacity: 0.7;
}

.service-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.service-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tableaux panier / checkout : scroll H + V */
.table-scroll-xy {
  max-width: 100%;
  max-height: min(360px, 55vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.table-scroll-xy table {
  min-width: 560px;
  margin: 0;
}
.table-scroll-xy table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-elevated);
  box-shadow: 0 1px 0 var(--border);
}
.checkout-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .checkout-dates {
    grid-template-columns: 1fr;
  }
}


/* ========== Hero photo (voiture, SANS gradient coloré) ========== */
.hero.hero-photo {
  position: relative;
  background-color: var(--bg);
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center;
  padding: 88px 0 64px;
}
.hero.hero-photo > .container {
  position: relative;
  z-index: 1;
  /* léger voile uniforme pour lisibilité — pas de gradient multi-couleurs */
  background: rgba(11, 18, 32, 0.55);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(2px);
}
[data-theme="light"] .hero.hero-photo > .container {
  background: rgba(255, 255, 255, 0.82);
}

/* ========== Paiement ========== */
.pay-page { max-width: 720px; }
.pay-header { margin-bottom: 28px; }
.pay-amount {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}
.pay-methods { display: grid; gap: 20px; }
.pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.pay-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.ussd-panel { margin-top: 16px; }
.ussd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .ussd-row { grid-template-columns: 1fr; }
}
.ussd-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ========== Admin responsive ========== */
.admin-body { min-height: 100vh; min-height: 100dvh; }
.admin-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 120;
  height: 56px;
  padding: 0 14px;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.admin-menu-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}
.admin-topbar-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.admin-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
}
.admin-content {
  padding: 24px 20px 48px;
  min-width: 0; /* critique anti-overflow */
  max-width: 100%;
  overflow-x: hidden;
}
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-page-head h1 { font-size: 1.35rem; }
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 90;
}
.admin-overlay.open { display: block; }

@media (max-width: 900px) {
  .admin-topbar { display: flex; }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: min(280px, 86vw);
    z-index: 100;
    transform: translateX(-105%);
    transition: transform .25s ease;
    height: 100%;
    box-shadow: var(--shadow);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-content {
    padding: 16px 12px 40px;
  }
}

/* Cart anti-overflow */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}
.cart-layout > * {
  min-width: 0;
}
.cart-summary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

/* Table scroll force */
.table-scroll-xy {
  max-width: 100%;
  width: 100%;
  max-height: min(380px, 60vh);
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.table-scroll-xy table.data {
  min-width: 640px;
  width: 100%;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
}

/* Badge payment statuses FR keys */
.badge-unpaid { background: rgba(148,163,184,.15); color: var(--text-muted); }
.badge-pending_verification { background: rgba(245,158,11,.15); color: var(--accent); }
.badge-paid { background: rgba(34,197,94,.15); color: var(--success); }
.badge-failed { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-refunded { background: rgba(148,163,184,.15); color: var(--text-muted); }

#toast-container {
  position: fixed;
  top: calc(var(--header-h, 72px) + 12px);
  right: 16px;
  z-index: 450;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}
#toast-container .flash {
  pointer-events: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.admin-body #toast-container,
.admin-body .flash-wrapper {
  top: 68px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}
.admin-form {
  scroll-margin-top: 80px;
}
#admin-action {
  scroll-margin-top: 80px;
}


/* ============================================================
   LIGHT ÉLÉGANT — fond soft, blanc, ombres douces (applique_diurne)
   Primaire vert marque + accent or discret
   ============================================================ */
[data-theme="light"] {
  --bg: #f4f7fc !important;
  --bg-elevated: #ffffff !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #f8fafc !important;
  --border: #e2e8f0 !important;
  --text: #1a2639 !important;
  --text-muted: #64748b !important;
  --primary: #15803d !important;
  --primary-hover: #166534 !important;
  --primary-glow: rgba(21, 128, 61, 0.2) !important;
  --accent: #ca8a04 !important;
  --accent-glow: rgba(202, 138, 4, 0.25) !important;
  --header-bg: rgba(255, 255, 255, 0.92) !important;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  color-scheme: light;
}

[data-theme="light"] body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid var(--border) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .header .nav-link {
  color: var(--text-muted) !important;
}
[data-theme="light"] .header .nav-link:hover,
[data-theme="light"] .header .nav-link.active {
  color: var(--primary) !important;
}
[data-theme="light"] .logo-primary {
  background: linear-gradient(135deg, #15803d, #16a34a 45%, #ca8a04) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
[data-theme="light"] .logo-tagline {
  color: var(--text-muted) !important;
}
[data-theme="light"] .theme-toggle,
[data-theme="light"] .cart-btn,
[data-theme="light"] .menu-toggle {
  color: var(--text) !important;
  border-color: var(--border) !important;
  background: var(--bg) !important;
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #15803d, #16a34a) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.28) !important;
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #166534, #15803d) !important;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35) !important;
}
[data-theme="light"] .btn-accent {
  background: linear-gradient(135deg, #ca8a04, #eab308) !important;
  color: #1a2639 !important;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.25) !important;
}
[data-theme="light"] .btn-outline {
  background: #fff !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text) !important;
}
[data-theme="light"] .btn-outline:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(21, 128, 61, 0.04) !important;
}

[data-theme="light"] .card,
[data-theme="light"] .pay-card,
[data-theme="light"] .service-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .admin-form,
[data-theme="light"] .cart-summary {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .card:hover,
[data-theme="light"] .service-card:hover {
  border-color: rgba(21, 128, 61, 0.25) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .card h1,
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card-title,
[data-theme="light"] .service-card h3,
[data-theme="light"] .pay-card h2 {
  color: var(--text) !important;
}
[data-theme="light"] .text-muted,
[data-theme="light"] .card-meta,
[data-theme="light"] .service-card p {
  color: var(--text-muted) !important;
}
[data-theme="light"] .card-price,
[data-theme="light"] .pay-amount {
  color: var(--primary) !important;
}

[data-theme="light"] .hero h1 {
  color: var(--text) !important;
}
[data-theme="light"] .hero h1 span {
  color: var(--primary) !important;
  background: none !important;
  -webkit-text-fill-color: var(--primary);
}
[data-theme="light"] .hero p {
  color: var(--text-muted) !important;
}
[data-theme="light"] .hero-badge {
  background: rgba(21, 128, 61, 0.08) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(21, 128, 61, 0.15) !important;
}
[data-theme="light"] .hero.hero-photo > .container {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid var(--border);
  color: var(--text) !important;
}
[data-theme="light"] .hero.hero-photo h1,
[data-theme="light"] .hero.hero-photo h1 span {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);
}
[data-theme="light"] .hero.hero-photo h1 span {
  color: var(--primary) !important;
  -webkit-text-fill-color: var(--primary);
}
[data-theme="light"] .hero.hero-photo p {
  color: var(--text-muted) !important;
}

[data-theme="light"] .footer {
  background: #ffffff !important;
  border-top: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
}
[data-theme="light"] .footer a {
  color: var(--primary) !important;
}
[data-theme="light"] .footer h4 {
  color: var(--text) !important;
}

[data-theme="light"] .form-control {
  background: var(--bg) !important;
  border: 2px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 14px;
}
[data-theme="light"] .form-control:focus {
  border-color: var(--primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
[data-theme="light"] label {
  color: var(--text) !important;
}

[data-theme="light"] .section-soft {
  background: rgba(21, 128, 61, 0.04) !important;
}

[data-theme="light"] .ussd-code {
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}
[data-theme="light"] .receiver-box {
  background: rgba(21, 128, 61, 0.06) !important;
  border: 1px solid rgba(21, 128, 61, 0.18) !important;
  color: var(--text) !important;
}
[data-theme="light"] .receiver-name {
  color: var(--primary) !important;
}

[data-theme="light"] .admin-sidebar,
[data-theme="light"] .admin-topbar {
  background: #ffffff !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
[data-theme="light"] .admin-nav a {
  color: var(--text-muted) !important;
}
[data-theme="light"] .admin-nav a.active,
[data-theme="light"] .admin-nav a:hover {
  background: rgba(21, 128, 61, 0.08) !important;
  color: var(--primary) !important;
}

[data-theme="light"] table.data thead th {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
[data-theme="light"] table.data td {
  color: var(--text) !important;
  background: #fff;
}

[data-theme="light"] .display-title,
[data-theme="light"] h1,
[data-theme="light"] h2 {
  color: var(--text) !important;
}

[data-theme="light"] .flash-success {
  background: #ecfdf5 !important;
  color: #166534 !important;
  border-left-color: #15803d !important;
}
[data-theme="light"] .flash-error {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

[data-theme="light"] .whatsapp-float {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .badge-paid,
[data-theme="light"] .badge-confirmed {
  background: rgba(21, 128, 61, 0.1);
  color: #166534;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 8px;
}
.pagination .page-info {
  font-size: .9rem;
  color: var(--text-muted);
}
.nav-link-admin {
  opacity: 0.75;
  font-size: 0.92em;
}


/* ========== FOOTER CENTER FIX ========== */
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  width: 100%;
  text-align: center;
}
.footer .logo-img {
  border-radius: 0 !important;
}

/* ========== TOASTS PRO — centrés ========== */
.flash-wrapper,
#toast-container {
  position: fixed !important;
  top: calc(var(--header-h, 72px) + 16px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 500 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  width: min(420px, calc(100vw - 24px)) !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
  pointer-events: none !important;
}
.flash-wrapper .flash,
#toast-container .flash {
  pointer-events: auto !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(10px);
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.admin-body .flash-wrapper,
.admin-body #toast-container {
  top: 72px !important;
}

/* ========== MEDIA FRAME — images véhicules cohérentes ========== */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elevated, #111);
  border: 1px solid var(--border);
}
.media-frame img,
.detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card-img,
.car-card .card-img,
.product-card .card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated, #111);
}
.card-img img,
.car-card img,
.product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ========== LOGO LIGHT BLEND — fond noir disparaît sur blanc, couleurs préservées ========== */
[data-theme="light"] .logo-img,
[data-theme="light"] .logo-img-sm,
[data-theme="light"] .footer .logo-img {
  border-radius: 0 !important;
  background: transparent !important;
  /* multiply : le noir du fond devient transparent sur fond clair, les couleurs du logo restent */
  mix-blend-mode: multiply;
  filter: none;
}
[data-theme="light"] .logo {
  background: transparent;
}
[data-theme="light"] header .logo,
[data-theme="light"] .footer-brand .logo {
  background: transparent !important;
}
/* Mode sombre : aucun blend (fond noir du logo OK) */
[data-theme="dark"] .logo-img,
:root:not([data-theme="light"]) .logo-img {
  mix-blend-mode: normal;
}


/* ========== FOOTER LOGO CENTRÉ (textes colonnes inchangés) ========== */
.footer-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 8px 0 20px;
  text-align: center;
}
.footer-logo-center .logo-img,
.logo-img-footer {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 0 !important;
  margin: 0 auto;
  display: block;
}
/* Ne pas forcer tout le footer en text-align center — colonnes naturelles */
.footer-grid {
  justify-items: stretch;
  text-align: left;
}
.footer-brand {
  align-items: flex-start;
  text-align: left;
}
.footer h4,
.footer a,
.footer p {
  text-align: left;
}
.footer-bottom {
  text-align: center;
}


/* ========== FOOTER CENTRÉ PRO (logo + textes + hr) ========== */
.footer {
  text-align: center;
  padding: 36px 16px 28px;
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 4px 0 8px;
}
.footer-logo-center .logo-img-footer {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0 !important;
  margin: 0 auto;
}
.footer-hr {
  width: min(280px, 70%);
  margin: 18px auto;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  height: 0;
}
.footer-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
}
.footer-section h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}
.footer-section a,
.footer-section p,
.footer-contact p {
  text-align: center;
  display: block;
  margin: 0;
  width: 100%;
}
.footer-meta {
  font-size: 0.8rem;
  opacity: 0.75;
}
.footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 4px;
  margin: 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
}

/* Mode diurne : footer sombre lisible */
[data-theme="light"] .footer {
  background: #0a0a0a !important;
  color: #e8e4d9 !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
}
[data-theme="light"] .footer h4 {
  color: #f5e6b8 !important;
}
[data-theme="light"] .footer a {
  color: #86efac !important;
}
[data-theme="light"] .footer a:hover {
  color: #bbf7d0 !important;
}
[data-theme="light"] .footer p,
[data-theme="light"] .footer-meta,
[data-theme="light"] .footer-bottom p {
  color: #c4b896 !important;
}
[data-theme="light"] .footer-hr {
  border-top-color: rgba(212, 175, 55, 0.28) !important;
}
[data-theme="light"] .footer .social-btn {
  border-color: rgba(212, 175, 55, 0.35) !important;
  color: #f5e6b8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="light"] .footer .logo-img-footer {
  mix-blend-mode: normal; /* logo déjà fond noir, OK sur footer noir */
}

/* Mode sombre : footer déjà sombre, fine harmonie */
[data-theme="dark"] .footer,
:root:not([data-theme="light"]) .footer {
  background: #070b14;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}


/* ========== FLEET HEADER PRO — centré, conversion ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.section-fleet {
  padding-top: 28px;
}
.fleet-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fleet-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}
.fleet-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.fleet-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 28em;
}
.fleet-search {
  width: 100%;
  max-width: 480px;
}
.fleet-search-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card, #fff);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fleet-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), 0 6px 20px rgba(0, 0, 0, 0.06);
}
.fleet-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.7;
}
.fleet-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 10px 12px !important;
  font-size: 0.95rem !important;
  color: var(--text);
  outline: none;
  border-radius: 0 !important;
}
.fleet-search-btn {
  flex-shrink: 0;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 600;
  white-space: nowrap;
}
.fleet-results-hint {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.fleet-results-hint a {
  color: var(--primary);
  font-weight: 600;
}

/* Cards images plus compactes & attractives */
.grid-cars .card-img,
.car-card .card-img {
  aspect-ratio: 16 / 9 !important;
  max-height: 220px;
}
@media (min-width: 640px) {
  .grid-cars .card-img,
  .car-card .card-img {
    max-height: 200px;
  }
}
.grid-cars .card-img img,
.car-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.car-card .card-body {
  padding: 14px 16px 16px;
}
.car-card .card-title {
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.car-card .card-meta {
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.car-card .card-price {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

[data-theme="light"] .fleet-search-box {
  background: #fff;
  border-color: #e2e8f0;
}


/* Barre de progression toast (discrète) */
.flash .toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--primary);
  opacity: 0.55;
  border-radius: 0 0 14px 14px;
  transform-origin: left center;
  animation: toastBar 4.6s linear forwards;
}
@keyframes toastBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.flash { position: relative; overflow: hidden; }


/* ============================================================
   OVERRIDE FINAL — footer + toasts (premium exact, rien d'autre)
   ============================================================ */

/* --- TOASTS --- */
.flash-wrapper,
#toast-container {
  position: fixed !important;
  top: calc(var(--header-h, 72px) + 20px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 500 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  width: min(420px, calc(100vw - 24px)) !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
  pointer-events: none !important;
}
.flash-wrapper .flash,
#toast-container .flash {
  pointer-events: auto !important;
  width: 100% !important;
  background: var(--toast-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--toast-border);
  border-radius: 20px !important;
  padding: 16px 20px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  animation: toastIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: opacity 0.3s, transform 0.3s;
  margin: 0 auto !important;
}
.flash::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: #fff;
  margin-top: 2px;
}
.flash-success::before {
  background: var(--success, #22c55e);
  content: '✓';
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}
.flash-error::before {
  background: var(--danger, #ef4444);
  content: '✕';
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25);
}
.flash-warning::before {
  background: var(--warning, #f59e0b);
  content: '⚠';
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}
.flash-info::before {
  background: var(--info, #3b82f6);
  content: 'ℹ';
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}
.flash span {
  flex: 1;
  line-height: 1.4;
}
.flash-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 0 2px;
}
.flash-close:hover {
  opacity: 1;
  color: var(--text);
}
.flash .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  width: 100%;
  transform-origin: left center;
  animation: toastProgress 4.8s linear forwards;
  border-radius: 0 0 20px 20px;
  opacity: 0.7;
}
@keyframes toastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.flash.toast-exit {
  animation: toastOut 0.32s ease-in forwards;
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.96); }
}
.admin-body .flash-wrapper,
.admin-body #toast-container {
  top: 72px !important;
}

/* --- FOOTER (premium layout) --- */
.footer {
  text-align: center;
  padding: 48px 20px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 8px 0 12px;
}
.footer-logo-center .logo-img-footer {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0 !important;
}
.footer-hr {
  width: 80px;
  height: 2px;
  background: var(--primary);
  border: none;
  margin: 24px auto;
  border-radius: 2px;
}
.footer-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.footer-section h4 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text);
  text-align: center;
  width: 100%;
}
.footer-section a,
.footer-section p,
.footer-contact p {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  text-align: center;
  display: block;
  margin: 0;
  width: 100%;
}
.footer-section a:hover {
  color: var(--primary);
}
.footer .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.footer .social-btn,
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  padding: 0 !important;
  line-height: 0 !important;
  text-decoration: none;
}
.footer .social-btn svg,
.social-btn svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 auto !important;
  flex: 0 0 auto;
}
.footer .social-btn:hover,
.social-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: scale(1.08);
}
.footer-bottom {
  width: 100%;
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin: 0;
}
.footer-bottom p {
  margin: 0;
  text-align: center;
}
.footer-meta {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Mode clair : footer sombre */
[data-theme="light"] .footer {
  background: #0a0f1a !important;
  color: #e2e8f0 !important;
  border-top: 1px solid rgba(16, 185, 129, 0.2) !important;
}
[data-theme="light"] .footer h4,
[data-theme="light"] .footer .footer-section h4 {
  color: #f1f5f9 !important;
}
[data-theme="light"] .footer a,
[data-theme="light"] .footer-section a {
  color: #10b981 !important;
}
[data-theme="light"] .footer a:hover {
  color: #34d399 !important;
}
[data-theme="light"] .footer p,
[data-theme="light"] .footer-meta,
[data-theme="light"] .footer-bottom p {
  color: #94a3b8 !important;
}
[data-theme="light"] .footer-hr {
  background: #10b981 !important;
}
[data-theme="light"] .footer .social-btn {
  border-color: rgba(255,255,255,0.15) !important;
  color: #e2e8f0 !important;
  background: rgba(255,255,255,0.05) !important;
}
[data-theme="light"] .footer .logo-img-footer {
  mix-blend-mode: normal;
}
[data-theme="dark"] .footer,
:root:not([data-theme="light"]) .footer {
  background: #070b14;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}


/* ===== Logos : voiture à gauche, texte à droite (header) ===== */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 0;
}
.logo-img-car {
  height: 48px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  border-radius: 0 !important;
}
.logo-img-text {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 0 !important;
}
@media (max-width: 480px) {
  .logo-img-car { height: 40px; max-width: 48px; }
  .logo-img-text { height: 32px; max-width: 120px; }
}
/* Footer : texte au-dessus, voiture en dessous */
.footer-logo-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px;
}
.logo-img-footer-text {
  height: 44px !important;
  max-width: 220px !important;
  width: auto !important;
}
.logo-img-footer-car {
  height: 64px !important;
  max-width: 120px !important;
  width: auto !important;
}
[data-theme="light"] .logo-img-car,
[data-theme="light"] .logo-img-text,
[data-theme="light"] .logo-img-footer {
  mix-blend-mode: multiply;
}
[data-theme="light"] .footer .logo-img-footer {
  mix-blend-mode: normal;
}

/* Vignettes véhicule (commandes, avis, admin) */
.thumb-car {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
  background: var(--bg-elevated, #111);
  flex-shrink: 0;
}
.thumb-car-lg {
  width: 64px;
  height: 48px;
}
.item-with-thumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.item-with-thumb:hover .item-thumb-name {
  color: var(--primary);
  text-decoration: underline;
}
.item-thumb-name {
  font-weight: 600;
  line-height: 1.25;
}
.review-target {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-target a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.review-target a:hover {
  color: var(--primary);
}


/* ===== Logos header / footer ===== */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 0;
  max-width: min(100%, 320px);
}
.logo-img-car {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50% !important;
  border: 2px solid #15803d;
  padding: 2px;
  background: transparent;
  box-sizing: border-box;
  flex-shrink: 0;
}
.logo-img-text {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0;
  box-shadow: none !important;
}
@media (min-width: 768px) {
  .logo-img-car { height: 52px; width: 52px; }
  .logo-img-text { height: 54px; max-width: 240px; }
}
@media (max-width: 480px) {
  .logo-mark { gap: 8px; max-width: 72vw; }
  .logo-img-car { height: 40px; width: 40px; }
  .logo-img-text { height: 38px; max-width: 140px; }
}
/* Footer : texte titre, voiture ronde en dessous */
.footer-logo-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px;
}
.logo-img-footer-text {
  height: clamp(48px, 8vw, 72px) !important;
  max-width: min(320px, 85vw) !important;
  width: auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain;
}
.logo-img-footer-car {
  height: 72px !important;
  width: 72px !important;
  max-width: 72px !important;
  object-fit: contain;
  border-radius: 50% !important;
  border: 2.5px solid #15803d !important;
  padding: 3px;
  background: transparent;
  box-sizing: border-box;
}
[data-theme="light"] .logo-img-car,
[data-theme="light"] .logo-img-text {
  mix-blend-mode: multiply;
}
[data-theme="light"] .footer .logo-img-footer-text,
[data-theme="light"] .footer .logo-img-footer-car {
  mix-blend-mode: normal;
}
[data-theme="light"] .footer .logo-img-footer-car {
  border-color: #22c55e !important;
}

/* Admin table thumbs */
.admin-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #0f172a;
  vertical-align: middle;
}
.admin-name-cell {
  min-width: 180px;
  max-width: 320px;
}
.admin-name-cell .item-with-thumb {
  gap: 12px;
}
.admin-car-hero {
  float: right;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 16px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
@media (max-width: 600px) {
  .admin-car-hero {
    float: none;
    display: block;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 200px;
    height: 140px;
  }
}
.col-voir { min-width: 88px; text-align: center; }


/* ===== Logos finaux : sans bordure, tailles demandées ===== */
.logo-img-car,
.logo-img-footer-car,
header .logo-img-car,
footer .logo-img-footer-car {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.logo-img-text,
.logo-img-footer-text,
header .logo-img-text,
footer .logo-img-footer-text {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* Header texte x2 (~54 → ~108) */
header .logo-img-text,
.logo-mark .logo-img-text {
  height: 96px !important;
  max-width: min(320px, 48vw) !important;
  width: auto !important;
  object-fit: contain !important;
}
header .logo-img-car,
.logo-mark .logo-img-car {
  height: 56px !important;
  width: auto !important;
  max-width: 64px !important;
  object-fit: contain !important;
}
@media (max-width: 640px) {
  header .logo-img-text,
  .logo-mark .logo-img-text {
    height: 64px !important;
    max-width: min(200px, 52vw) !important;
  }
  header .logo-img-car,
  .logo-mark .logo-img-car {
    height: 44px !important;
    max-width: 48px !important;
  }
}
/* Footer texte x4.5 (~72 → ~324, plafonné responsive) */
.logo-img-footer-text {
  height: clamp(140px, 28vw, 300px) !important;
  max-width: min(92vw, 520px) !important;
  width: auto !important;
  object-fit: contain !important;
}
.logo-img-footer-car {
  height: 72px !important;
  width: auto !important;
  max-width: 88px !important;
  object-fit: contain !important;
}

/* Recherche admin highlight */
mark.search-hl {
  background: rgba(245, 158, 11, 0.45);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.admin-toolbar .search-input {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
}


/* Mot de passe admin — toggle œil */
.password-field {
  position: relative;
  display: block;
}
.password-field .form-control {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover {
  color: var(--primary, #0f766e);
  background: rgba(15, 118, 110, 0.08);
}
.password-toggle svg {
  display: block;
}


/* Toggle œil — un seul SVG visible */
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.password-toggle .icon-eye,
.password-toggle .icon-eye-off {
  display: none !important;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
/* masqué (password) → œil ouvert */
.password-toggle[data-visible="0"] .icon-eye {
  display: block !important;
}
/* visible (text) → œil barré */
.password-toggle[data-visible="1"] .icon-eye-off {
  display: block !important;
}
.password-field {
  position: relative;
  display: block;
}
.password-field .form-control {
  padding-right: 48px;
}
.password-toggle:hover {
  color: var(--primary, #0f766e);
  background: rgba(15, 118, 110, 0.08);
}

/* Badges disponibilité */
.car-card, .card { position: relative; }
.avail-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.avail-badge.avail-available { background: rgba(16,185,129,.92); color: #fff; }
.avail-badge.avail-full { background: rgba(245,158,11,.94); color: #111; }
.avail-badge.avail-unavailable { background: rgba(239,68,68,.92); color: #fff; }
.avail-msg { font-size: .82rem; margin: 6px 0 4px; line-height: 1.35; }
.avail-msg.avail-available, .avail-msg.avail-ok { color: #059669; }
.avail-msg.avail-full, .avail-msg.avail-full { color: #d97706; }
.avail-msg.avail-unavailable, .avail-msg.avail-no { color: #dc2626; }
.avail-banner {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .95rem;
  line-height: 1.4;
}
.avail-banner.avail-available { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); color: #047857; }
.avail-banner.avail-full { background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); color: #92400e; }
.avail-banner.avail-unavailable { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #b91c1c; }
.avail-next { display: block; margin-top: 4px; font-size: .88rem; }

/* Liste stocks par zone — scroll si longue */
.stock-par-zone {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  font-size: .88rem;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 10px;
  padding: 8px 12px;
  -webkit-overflow-scrolling: touch;
}
.stock-par-zone li {
  margin: 6px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.stock-par-zone li:last-child {
  border-bottom: none;
}


/* FedaPay overlay: ne pas piéger les dialogues en position fixed */
html.fedapay-open,
body.fedapay-open {
  overflow: visible !important;
}


/* feda-stack-fix : backdrop-filter du header ne doit pas piéger les overlays paiement */
body:has(#fedapay-embed) .header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


.pay-card-feda, .pay-card.pay-card-feda {
  overflow: visible !important;
  max-height: none !important;
}
#fedapay-embed { max-height: none !important; }
