/* ============================================================
   GUIDANKA — Feuille de style principale
   assets/css/app.css
   Mobile-first | Tailwind CDN play + Variables custom
   ============================================================ */

/* ── Variables de marque ───────────────────────────────────── */
:root {
  --gdk-primary:       #1e3a5f;   /* Bleu nuit Niger */
  --gdk-primary-light: #2d5a8e;
  --gdk-primary-dark:  #132640;
  --gdk-accent:        #f0b429;   /* Or sahara */
  --gdk-accent-light:  #fcd34d;
  --gdk-green:         #2d6a4f;   /* Vert nature */
  --gdk-green-light:   #40916c;
  --gdk-danger:        #dc2626;
  --gdk-warning:       #d97706;
  --gdk-success:       #16a34a;
  --gdk-gray-50:       #f9fafb;
  --gdk-gray-100:      #f3f4f6;
  --gdk-gray-200:      #e5e7eb;
  --gdk-gray-400:      #9ca3af;
  --gdk-gray-600:      #4b5563;
  --gdk-gray-800:      #1f2937;

  --gdk-radius:        12px;
  --gdk-radius-sm:     8px;
  --gdk-radius-lg:     20px;
  --gdk-shadow:        0 2px 12px rgba(30,58,95,.10);
  --gdk-shadow-md:     0 4px 24px rgba(30,58,95,.15);
  --gdk-shadow-lg:     0 8px 40px rgba(30,58,95,.20);
  --gdk-transition:    .2s cubic-bezier(.4,0,.2,1);

  /* Safe area pour PWA */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top:    env(safe-area-inset-top, 0px);
}

/* ── Reset de base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  background: var(--gdk-gray-50);
  color: var(--gdk-gray-800);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  /* Empêcher zoom sur input iOS */
  touch-action: manipulation;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gdk-primary);
}
h1 { font-size: clamp(1.5rem, 5vw, 2.25rem); }
h2 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
h3 { font-size: 1.125rem; }

a { color: var(--gdk-primary); text-decoration: none; }
a:hover { color: var(--gdk-accent); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 480px;       /* Mobile-first : max 480px centré */
  margin: 0 auto;
  padding: 0 16px;
}

.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Navbar principale ─────────────────────────────────────── */
.navbar {
  background: var(--gdk-primary);
  color: white;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--gdk-shadow-md);
}

.navbar-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: white;
  flex-shrink: 0;
}
.navbar-logo span { color: var(--gdk-accent); }

.navbar-back {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--gdk-transition);
  font-size: 1.1rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-back:hover { background: rgba(255,255,255,.25); color: white; }

.navbar-title {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-action {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Badge de notification */
.badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gdk-danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--gdk-primary);
}

/* ── Bottom Navigation (PWA style) ─────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: white;
  border-top: 1px solid var(--gdk-gray-200);
  display: flex;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -2px 16px rgba(0,0,0,.08);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  color: var(--gdk-gray-400);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--gdk-transition);
  border: none;
  background: none;
  position: relative;
  gap: 3px;
}

.bottom-nav-item .icon { font-size: 1.4rem; line-height: 1; }
.bottom-nav-item.active { color: var(--gdk-primary); }
.bottom-nav-item.active .icon { transform: scale(1.1); }
.bottom-nav-item:active { transform: scale(.92); }

/* ── Cartes ─────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--gdk-radius);
  box-shadow: var(--gdk-shadow);
  overflow: hidden;
}

.card-body { padding: 16px; }
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gdk-gray-100);
  font-weight: 700;
  color: var(--gdk-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gdk-gray-100);
  background: var(--gdk-gray-50);
}

/* ── Carte Bien Immobilier ──────────────────────────────────── */
.bien-card {
  border-radius: var(--gdk-radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--gdk-shadow);
  cursor: pointer;
  transition: var(--gdk-transition);
}
.bien-card:active { transform: scale(.98); box-shadow: var(--gdk-shadow-sm); }

.bien-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--gdk-gray-100);
}
.bien-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gdk-gray-100), var(--gdk-gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gdk-gray-400);
}

.bien-card-body { padding: 12px 14px 14px; }
.bien-card-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--gdk-green);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.bien-card-titre {
  font-size: 14px;
  font-weight: 700;
  color: var(--gdk-gray-800);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bien-card-lieu {
  font-size: 12px;
  color: var(--gdk-gray-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bien-card-prix {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gdk-primary);
}
.bien-card-prix small {
  font-size: 11px;
  font-weight: 500;
  color: var(--gdk-gray-400);
}

/* Badges statut */
.statut-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.statut-disponible  { background: #dcfce7; color: #166534; }
.statut-loue        { background: #fef3c7; color: #92400e; }
.statut-vendu       { background: #e5e7eb; color: #374151; }
.statut-suspendu    { background: #fee2e2; color: #991b1b; }
.statut-validation  { background: #ede9fe; color: #5b21b6; }
.statut-paye        { background: #dcfce7; color: #166534; }
.statut-en_attente  { background: #fef3c7; color: #92400e; }
.statut-echec       { background: #fee2e2; color: #991b1b; }
.statut-active      { background: #dcfce7; color: #166534; }
.statut-resiliee    { background: #fee2e2; color: #991b1b; }
.statut-suspendue   { background: #fef3c7; color: #92400e; }

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--gdk-radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--gdk-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary   { background: var(--gdk-primary); color: white; }
.btn-primary:hover { background: var(--gdk-primary-light); color: white; }

.btn-accent    { background: var(--gdk-accent); color: var(--gdk-primary); }
.btn-accent:hover { background: var(--gdk-accent-light); color: var(--gdk-primary); }

.btn-success   { background: var(--gdk-success); color: white; }
.btn-danger    { background: var(--gdk-danger); color: white; }
.btn-warning   { background: var(--gdk-warning); color: white; }

.btn-outline   { background: transparent; color: var(--gdk-primary); border: 2px solid var(--gdk-primary); }
.btn-outline:hover { background: var(--gdk-primary); color: white; }

.btn-ghost     { background: var(--gdk-gray-100); color: var(--gdk-gray-800); }
.btn-ghost:hover { background: var(--gdk-gray-200); }

.btn-block     { width: 100%; }
.btn-sm        { padding: 8px 14px; font-size: 12px; border-radius: 6px; }
.btn-lg        { padding: 16px 28px; font-size: 16px; border-radius: var(--gdk-radius); }
.btn-icon      { padding: 10px; border-radius: 50%; width: 40px; height: 40px; }

/* Bouton loading */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── Formulaires ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gdk-gray-600);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--gdk-gray-200);
  border-radius: var(--gdk-radius-sm);
  font-size: 15px;
  color: var(--gdk-gray-800);
  background: white;
  transition: var(--gdk-transition);
  outline: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gdk-primary);
  box-shadow: 0 0 0 3px rgba(30,58,95,.12);
}

.form-input.error  { border-color: var(--gdk-danger); }
.form-input.valid  { border-color: var(--gdk-success); }
.form-input::placeholder { color: var(--gdk-gray-400); }

/* Input avec icône */
.input-group { position: relative; }
.input-group .form-input { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--gdk-gray-400);
  pointer-events: none;
}
.input-group.suffix .form-input { padding-right: 44px; padding-left: 14px; }
.input-group .input-suffix {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gdk-gray-400);
  cursor: pointer;
}

.form-error  { font-size: 12px; color: var(--gdk-danger); margin-top: 4px; display: block; }
.form-hint   { font-size: 12px; color: var(--gdk-gray-400); margin-top: 4px; display: block; }

/* ── OTP Input (6 cases) ────────────────────────────────────── */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.otp-input {
  width: 46px; height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--gdk-gray-200);
  border-radius: var(--gdk-radius-sm);
  color: var(--gdk-primary);
  background: white;
  outline: none;
  transition: var(--gdk-transition);
  -webkit-appearance: none;
}
.otp-input:focus { border-color: var(--gdk-primary); box-shadow: 0 0 0 3px rgba(30,58,95,.12); }
.otp-input.filled { border-color: var(--gdk-success); background: #f0fdf4; }

/* ── Stat Cards (dashboards) ────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: var(--gdk-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--gdk-shadow);
}
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: #dbeafe; }
.stat-icon.green  { background: #dcfce7; }
.stat-icon.yellow { background: #fef9c3; }
.stat-icon.red    { background: #fee2e2; }
.stat-icon.purple { background: #ede9fe; }

.stat-label  { font-size: 12px; color: var(--gdk-gray-400); font-weight: 600; }
.stat-value  { font-size: 1.5rem; font-weight: 900; color: var(--gdk-gray-800); line-height: 1.1; }
.stat-sub    { font-size: 11px; color: var(--gdk-gray-400); margin-top: 2px; }

/* ── Toast / Alertes ────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 70px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 440px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--gdk-radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--gdk-shadow-md);
  pointer-events: auto;
  animation: slideDown .3s ease;
}
.toast-success { background: #16a34a; color: white; }
.toast-error   { background: var(--gdk-danger); color: white; }
.toast-warning { background: var(--gdk-warning); color: white; }
.toast-info    { background: var(--gdk-primary); color: white; }

/* ── Méthodes de paiement ───────────────────────────────────── */
.payment-method {
  border: 2px solid var(--gdk-gray-200);
  border-radius: var(--gdk-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--gdk-transition);
  background: white;
}
.payment-method:hover, .payment-method.selected {
  border-color: var(--gdk-primary);
  background: #f0f5ff;
}
.payment-method.selected { box-shadow: 0 0 0 3px rgba(30,58,95,.12); }
.payment-method-icon { font-size: 1.8rem; flex-shrink: 0; }
.payment-method-name { font-weight: 700; font-size: 14px; color: var(--gdk-gray-800); }
.payment-method-desc { font-size: 12px; color: var(--gdk-gray-400); }
.payment-method input[type="radio"] { display: none; }
.payment-method .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gdk-gray-300);
  margin-left: auto;
  flex-shrink: 0;
  transition: var(--gdk-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-method.selected .check {
  background: var(--gdk-primary);
  border-color: var(--gdk-primary);
}
.payment-method.selected .check::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700;
}

/* ── Listes items ───────────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gdk-gray-100);
  text-decoration: none;
  color: inherit;
  transition: var(--gdk-transition);
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--gdk-gray-50); }

.list-item-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gdk-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.list-item-avatar img { width: 100%; height: 100%; object-fit: cover; }

.list-item-content { flex: 1; min-width: 0; }
.list-item-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-item-sub {
  font-size: 12px;
  color: var(--gdk-gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.list-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

/* ── Section titre ──────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
}
.section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gdk-gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-link { font-size: 13px; color: var(--gdk-primary); font-weight: 600; }

/* ── Hero page d'accueil ────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--gdk-primary) 0%, var(--gdk-green) 100%);
  color: white;
  padding: 28px 20px 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(240,180,41,.12);
}
.hero-greeting { font-size: 13px; opacity: .8; margin-bottom: 4px; }
.hero-name { font-size: 1.4rem; font-weight: 900; margin-bottom: 16px; }
.hero-search {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-search input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--gdk-radius-sm);
  border: none;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,.18);
  color: white;
}
.hero-search input::placeholder { color: rgba(255,255,255,.65); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state-title { font-size: 1.1rem; font-weight: 700; color: var(--gdk-gray-600); margin-bottom: 8px; }
.empty-state-sub   { font-size: 13px; color: var(--gdk-gray-400); margin-bottom: 20px; }

/* ── Skeleton loader ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gdk-gray-100) 25%, var(--gdk-gray-200) 50%, var(--gdk-gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Modal bottom sheet ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  animation: fadeIn .2s ease;
}
.modal-sheet {
  background: white;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: var(--safe-bottom);
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}
.modal-handle {
  width: 40px; height: 4px;
  background: var(--gdk-gray-200);
  border-radius: 2px;
  margin: 12px auto 0;
}
.modal-header {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gdk-primary);
  border-bottom: 1px solid var(--gdk-gray-100);
}
.modal-body { padding: 16px 20px; }

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--gdk-gray-100);
  margin: 16px 0;
}
.divider-text {
  text-align: center;
  font-size: 12px;
  color: var(--gdk-gray-400);
  position: relative;
  margin: 20px 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--gdk-gray-200);
}
.divider-text::before { left: 0; }
.divider-text::after  { right: 0; }

/* ── Paiement montant card ──────────────────────────────────── */
.paiement-summary {
  background: linear-gradient(135deg, var(--gdk-primary), var(--gdk-green));
  color: white;
  border-radius: var(--gdk-radius);
  padding: 20px;
  margin-bottom: 16px;
}
.paiement-summary-label { font-size: 12px; opacity: .8; margin-bottom: 4px; }
.paiement-summary-montant { font-size: 2rem; font-weight: 900; }
.paiement-summary-bien { font-size: 13px; opacity: .85; margin-top: 8px; }
.paiement-summary-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); }
.paiement-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 2px 0;
}
.paiement-summary-row.penalite { color: #fca5a5; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp    { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown  { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

/* ── PWA Splash ─────────────────────────────────────────────── */
.pwa-splash {
  position: fixed;
  inset: 0;
  background: var(--gdk-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  transition: opacity .4s ease;
}
.pwa-splash.hidden { opacity: 0; pointer-events: none; }
.pwa-splash-logo { font-size: 3rem; font-weight: 900; letter-spacing: 4px; }
.pwa-splash-logo span { color: var(--gdk-accent); }
.pwa-splash-loader {
  width: 40px; height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  margin-top: 32px;
  overflow: hidden;
}
.pwa-splash-loader::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gdk-accent);
  border-radius: 2px;
  animation: loading 1s ease infinite;
}
@keyframes loading {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ── Utilitaires rapides ────────────────────────────────────── */
.text-primary  { color: var(--gdk-primary) !important; }
.text-accent   { color: var(--gdk-accent) !important; }
.text-success  { color: var(--gdk-success) !important; }
.text-danger   { color: var(--gdk-danger) !important; }
.text-muted    { color: var(--gdk-gray-400) !important; }
.text-center   { text-align: center; }
.fw-bold       { font-weight: 700; }
.fw-black      { font-weight: 900; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.p-2  { padding: 16px; } .p-3 { padding: 24px; }
.flex { display: flex; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.w-full { width: 100%; }
.rounded { border-radius: var(--gdk-radius-sm); }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: var(--gdk-shadow); }
.hidden { display: none !important; }

/* ── Responsive tablette/desktop ───────────────────────────── */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .bien-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .bien-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .container-wide { padding: 0 32px; }
}