/* ========================================
   LOCALLYIA - Prototype Styles
   Mobile-first, Responsive
   ======================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2937;
  background: #f9fafb;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Landing Page */
.landing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 2rem 1rem;
}

.landing-logo {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.landing-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.landing-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 320px;
}

.landing-features {
  list-style: none;
  margin-bottom: 3rem;
  text-align: left;
}

.landing-features li {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.landing-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* City Selection */
.city-page {
  padding-top: 3rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

.city-selector {
  margin-bottom: 2rem;
}

.city-selector label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.city-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  color: #111827;
  transition: border-color 0.2s;
}

.city-input:focus {
  outline: none;
  border-color: #667eea;
}

.city-note {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* Dual Mode Page */
.dual-mode-page {
  padding-top: 2rem;
}

.mode-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mode-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mode-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.text-input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #111827;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}

.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e5e7eb;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.back-btn:hover {
  color: #764ba2;
}

/* Responsive */
@media (min-width: 768px) {
  .container {
    max-width: 640px;
    padding: 2rem;
  }

  .landing-title {
    font-size: 2.5rem;
  }

  .landing-subtitle {
    font-size: 1.25rem;
    max-width: 400px;
  }

  .page-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 768px;
  }
}

/* ========================================
   WIZARD DE CRÉATION D'ACTIVITÉ
   ======================================== */

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wizard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-bottom: 1px solid #e5e7eb;
}

.wizard-back-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.wizard-back-btn:hover {
  background: #f3f4f6;
  border-radius: 50%;
}

.wizard-header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.wizard-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  padding-top: 90px;
  flex: 1;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-step.active {
  display: block;
}

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

/* Barre de progression */
.wizard-progress {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4a6b6f, #5a7b7f);
  transition: width 0.3s ease;
}

/* Titres */
.wizard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.wizard-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Chips de catégories */
.wizard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.wizard-chip {
  flex: 0 1 calc(50% - 0.375rem);
  min-width: 140px;
  max-width: 100%;
  padding: 1rem 0.75rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.4;
}

.wizard-chip:hover {
  border-color: #4a6b6f;
  background: #f9fafb;
}

.wizard-chip.active {
  border-color: #4a6b6f;
  background: #4a6b6f;
  color: white;
}

.wizard-chip-small {
  flex: 0 1 auto;
  min-width: auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

/* Groupes d'input */
.wizard-input-group {
  margin-bottom: 2rem;
}

.wizard-input-group:last-child {
  margin-bottom: 1.5rem;
}

.wizard-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.wizard-input,
.wizard-textarea {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #1f2937;
  transition: border-color 0.2s;
}

.wizard-input:focus,
.wizard-textarea:focus {
  outline: none;
  border-color: #4a6b6f;
}

.wizard-textarea {
  resize: vertical;
  font-family: inherit;
}

.wizard-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Boutons */
.wizard-btn {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.wizard-btn-primary {
  background: #4a6b6f;
  color: white;
}

.wizard-btn-primary:hover:not(:disabled) {
  background: #3a5b5f;
  transform: translateY(-1px);
}

.wizard-btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.wizard-btn-secondary {
  background: white;
  color: #4a6b6f;
  border: 2px solid #e5e7eb;
}

.wizard-btn-secondary:hover {
  background: #f9fafb;
  border-color: #4a6b6f;
}

.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.wizard-actions .wizard-btn {
  flex: 1;
}

/* Récapitulatif */
.wizard-recap {
  margin-bottom: 2rem;
}

.recap-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.recap-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.recap-content {
  flex: 1;
}

.recap-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.recap-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.recap-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.recap-label {
  font-size: 1.1rem;
}

.recap-description {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.wizard-edit-btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  color: #4a6b6f;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-edit-btn:hover {
  background: #f9fafb;
  border-color: #4a6b6f;
}

/* Popup de succès */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.success-popup.visible {
  opacity: 1;
}

.success-popup-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease;
}

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

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.success-message {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Responsive Mobile */
@media (max-width: 480px) {
  .wizard-container {
    padding: 1rem 0.75rem;
    padding-top: 80px;
  }
  
  .wizard-chip {
    flex: 0 1 calc(50% - 0.375rem);
    min-width: calc(50% - 0.375rem);
    padding: 0.875rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .wizard-title {
    font-size: 1.25rem;
  }
  
  .wizard-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}

/* Responsive Desktop */
@media (min-width: 768px) {
  .wizard-chip {
    flex: 0 1 calc(33.333% - 0.5rem);
  }
  
  .recap-card {
    padding: 2rem;
  }
}
