/* 🎨 DOUANE BF ENCHÈRES - STYLES PRINCIPAUX */
/* 📱 Mobile-First Design System */

/* ===== VARIABLES CSS ===== */
:root {
  /* 🇧🇫 Couleurs officielles Burkina Faso */
  --primary-red: #CE1126;        /* Rouge drapeau BF */
  --primary-green: #009639;      /* Vert drapeau BF */
  --primary-yellow: #FCD116;     /* Jaune drapeau BF */
  
  /* 🎯 Couleurs fonctionnelles */
  --primary: #CE1126;            /* Rouge principal */
  --primary-light: #E85A6B;      /* Rouge clair */
  --primary-dark: #A00D1F;       /* Rouge foncé */
  
  --secondary: #009639;          /* Vert secondaire */
  --secondary-light: #40B565;    /* Vert clair */
  --secondary-dark: #007129;     /* Vert foncé */
  
  --accent: #FCD116;             /* Jaune accent */
  --accent-dark: #E6BC14;        /* Jaune foncé */
  
  /* 🔘 Couleurs neutres */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --black: #000000;
  
  /* 🚨 Couleurs d'état */
  --success: #10B981;
  --success-light: #6EE7B7;
  --warning: #F59E0B;
  --warning-light: #FCD34D;
  --error: #EF4444;
  --error-light: #FCA5A5;
  --info: #3B82F6;
  --info-light: #93C5FD;
  
  /* 📝 Typographie */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-heading: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* 📏 Tailles de texte mobiles (base) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  
  /* 📐 Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* 🔠 Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* 📏 Espacements */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  
  /* 📱 Breakpoints */
  --breakpoint-sm: 640px;   /* Mobile large */
  --breakpoint-md: 768px;   /* Tablet */
  --breakpoint-lg: 1024px;  /* Desktop */
  --breakpoint-xl: 1280px;  /* Large desktop */
}

/* 📱 Responsive typography */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.25rem;   /* 36px */
    --text-4xl: 3rem;      /* 48px */
  }
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-900);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== CONTENEURS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { 
    padding: 0 var(--space-6); 
  }
}

@media (min-width: 1024px) {
  .container { 
    padding: 0 var(--space-8); 
  }
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  
  /* 📱 Mobile touch target */
  min-height: 44px;
  min-width: 44px;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background-color: var(--gray-300);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

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

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

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  min-height: 56px;
}

/* ===== CARTES ===== */
.card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-article__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.card-article:hover .card-article__image img {
  transform: scale(1.05);
}

.card-article__content {
  padding: var(--space-4);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-article__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.card-article__description {
  color: var(--gray-600);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.card-article__footer {
  margin-top: auto;
}

.card-article__price {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

/* ===== FORMULAIRES ===== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-label.required::after {
  content: ' *';
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  
  background-color: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  
  /* 📱 Mobile optimization */
  min-height: 44px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 17, 38, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-error::before {
  content: '⚠️';
  font-size: var(--text-xs);
}

/* ===== NAVIGATION ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--primary);
  text-decoration: none;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__title {
  font-size: var(--text-sm);
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .header__title {
    font-size: var(--text-base);
  }
}

/* ===== BANDEAU ENCHÈRES ===== */
.banner-encheres {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-3) 0;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.banner-encheres:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.banner-encheres__text {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin: 0;
}

@media (min-width: 768px) {
  .banner-encheres__text {
    font-size: var(--text-lg);
  }
}

/* ===== ÉTATS DE CHARGEMENT ===== */
.loading {
  position: relative;
  color: transparent !important;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ===== BOUTON WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: white;
  fill: currentColor;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--gray-800);
  color: var(--gray-300);
  padding: var(--space-8) 0 var(--space-4);
  margin-top: var(--space-16);
}

.footer__content {
  text-align: center;
}

.footer__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer__text {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-700);
}

/* ===== CLASSES UTILITAIRES ===== */
/* Espacement */
.mt-auto { margin-top: auto; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-gray-600 { color: var(--gray-600); }
.font-bold { font-weight: var(--font-bold); }
.font-semibold { font-weight: var(--font-semibold); }

/* Tailles de texte */
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

/* Display */
.hidden { display: none; }
.block { display: block; }

/* Mobile specific */
@media (max-width: 767px) {
  .md-hidden { display: none; }
}

@media (min-width: 768px) {
  .mobile-only { display: none; }
}

/* ===== SECTIONS SPÉCIFIQUES ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-8) 0;
  text-align: center;
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  text-align: center;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-section {
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-2) 0;
  margin-bottom: var(--space-4);
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.breadcrumb-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  overflow-x: auto;
  padding: var(--space-1) 0;
}

.breadcrumb-step {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 32px;
}

.breadcrumb-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb-step.completed {
  background-color: var(--success);
  color: var(--white);
}

.breadcrumb-step.completed:hover {
  background-color: var(--success-light);
}

.breadcrumb-step.current {
  background-color: var(--primary);
  color: var(--white);
}

.breadcrumb-step.pending {
  background-color: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.breadcrumb-step.pending:hover {
  background-color: var(--gray-100);
}

.breadcrumb-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
  font-weight: var(--font-bold);
}

.breadcrumb-step.completed .breadcrumb-step-number {
  background-color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-step.pending .breadcrumb-step-number {
  background-color: var(--gray-200);
  color: var(--gray-600);
}

.breadcrumb-step-text {
  font-size: 11px;
}

.breadcrumb-separator {
  color: var(--gray-400);
  font-size: 10px;
  margin: 0 2px;
}

@media (max-width: 767px) {
  .breadcrumb-steps {
    justify-content: flex-start;
    padding-bottom: var(--space-1);
  }
  
  .breadcrumb-step {
    font-size: 10px;
    padding: 4px 6px;
  }
  
  .breadcrumb-step-number {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  
  .breadcrumb-step-text {
    font-size: 10px;
  }
}

/* ===== ID UPLOAD COMPONENT ===== */
.id-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.id-upload-area:hover {
  border-color: var(--primary);
  background-color: var(--gray-50);
}

.id-upload-area.dragover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  background-opacity: 0.1;
}

.id-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hidden {
  display: none !important;
}

/* ===== CONFIRMATION POPUP ===== */
.confirmation-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.confirmation-popup-content {
  background: var(--white);
  border-radius: 12px;
  padding: var(--space-6);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.confirmation-popup-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.confirmation-popup-header h3 {
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.confirmation-summary {
  background: var(--gray-50);
  border-radius: 8px;
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}

.confirmation-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-200);
}

.confirmation-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.confirmation-label {
  font-weight: var(--font-medium);
  color: var(--gray-700);
  min-width: 120px;
}

.confirmation-value {
  color: var(--gray-900);
  text-align: right;
  flex: 1;
  margin-left: var(--space-3);
}

.confirmation-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

@media (max-width: 767px) {
  .confirmation-actions {
    flex-direction: column;
  }
  
  .confirmation-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .confirmation-value {
    text-align: left;
    margin-left: 0;
    margin-top: var(--space-1);
  }
}

/* ===== RESPONSIVE HELPERS ===== */
@media (min-width: 640px) {
  .sm-text-lg { font-size: var(--text-lg); }
}

@media (min-width: 768px) {
  .md-text-xl { font-size: var(--text-xl); }
  .md-p-6 { padding: var(--space-6); }
}

@media (min-width: 1024px) {
  .lg-text-2xl { font-size: var(--text-2xl); }
} 