/* SiteFacile — Design System v3 */
/* Palette : Porcelain #FDFFFC · Sunflower Gold #EDB431 · Jet Black #082120 · Pacific Cyan #2292A4 · Carrot Orange #EA9010 */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Fond uni — classes conservées pour éviter les erreurs HTML */
.grid-bg,
.grid-bg-dots,
.grid-bg-dark {}

/* Dot grid overlay (Fimo-style) */
.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Gradient subtil pour hero */
.hero-gradient {
  background: linear-gradient(135deg, #041110 0%, #082120 50%, #0e464e 100%);
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

/* ============================================ */
/* Animations                                   */
/* ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-slide-up { animation: slideUp 0.6s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Badge shimmer (Designjoy style) */
.badge-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ============================================ */
/* Step indicator (v2 — 4 steps)                */
/* ============================================ */
.step-dot { transition: all 0.3s ease; }
.step-dot.active { background-color: #2292A4; color: white; box-shadow: 0 0 0 4px rgba(34,146,164,0.25); }
.step-dot.completed { background-color: #EDB431; color: white; }
.step-line { transition: background-color 0.3s ease; }
.step-line.active { background-color: #2292A4; }
.step-line.completed { background-color: #EDB431; }

/* ============================================ */
/* Drag & drop zone                             */
/* ============================================ */
.drop-zone {
  border: 2px dashed #c0dfe4;
  transition: all 0.2s ease;
  background: rgba(253,255,252,0.5);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: #2292A4;
  background-color: #e6f4f6;
}

/* ============================================ */
/* Color palette swatch                         */
/* ============================================ */
.color-swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 3px solid transparent;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: #082120; box-shadow: 0 0 0 3px rgba(34,146,164,0.3); }

/* ============================================ */
/* Toggle switch                                */
/* ============================================ */
.toggle-switch {
  width: 48px; height: 26px;
  background-color: #d1d5db;
  border-radius: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}
.toggle-switch.active { background-color: #2292A4; }
.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch.active::after { transform: translateX(22px); }

/* ============================================ */
/* Preview frame                                */
/* ============================================ */
.preview-frame {
  transition: width 0.3s ease;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* ============================================ */
/* Mobile price bar                             */
/* ============================================ */
.price-bar-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

/* ============================================ */
/* Cards                                        */
/* ============================================ */
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -8px rgba(0,0,0,0.12); }

/* Glass card (dark sections) */
.glass-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================ */
/* Focus                                        */
/* ============================================ */
:focus-visible {
  outline: 2px solid #2292A4;
  outline-offset: 2px;
}

/* ============================================ */
/* Scrollbar                                    */
/* ============================================ */
.configurator-scroll::-webkit-scrollbar { width: 4px; }
.configurator-scroll::-webkit-scrollbar-track { background: transparent; }
.configurator-scroll::-webkit-scrollbar-thumb { background: #c0dfe4; border-radius: 2px; }

/* ============================================ */
/* Buttons                                      */
/* ============================================ */
.btn-primary {
  background: #EA9010;
  color: white;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #d07e0e;
  transform: translateY(-1px);
  box-shadow: none;
}
.btn-secondary {
  background: white;
  color: #2292A4;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  border: 2px solid #c0dfe4;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: #2292A4;
  background: #e6f4f6;
}
.btn-dark {
  background: white;
  color: #082120;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ============================================ */
/* Tag / pill (Designjoy style)                 */
/* ============================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================================ */
/* Gradient text                                */
/* ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #2292A4, #EDB431);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero accent text (Fimo-style colored keyword) */
.hero-accent-text {
  color: #EA9010;
  -webkit-text-fill-color: #EA9010;
}

/* ============================================ */
/* Section divider (wavy)                       */
/* ============================================ */
.section-dark { background-color: #082120; color: white; }
.section-darker { background-color: #041110; color: white; }
