/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --primary:   #6366f1;
  --primary-d: #4f46e5;
  --accent:    #f59e0b;
  --dark:      #0f172a;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg-soft:   #f8fafc;
  --radius:    10px;
  --shadow:    0 4px 20px rgba(0,0,0,.08);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-ghost {
  background: transparent; color: var(--dark); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 32px; font-size: 17px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: baseline; gap: 3px; font-weight: 800; font-size: 20px; }
.logo-text { color: var(--primary); }
.logo-sub  { color: var(--muted); font-weight: 500; font-size: 14px; }
.main-nav { display: flex; gap: 24px; margin-right: auto; }
.main-nav a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .15s; }
.main-nav a:hover { color: var(--primary); }
.header-cta { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ── Main ─────────────────────────────────────────────────────────────────── */
.site-main { min-height: calc(100vh - 64px - 220px); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff; padding: 96px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,.25) 0%, transparent 70%);
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,.25); border: 1px solid rgba(99,102,241,.4);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: #a5b4fc; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-primary { background: var(--accent); border-color: var(--accent); color: #0f172a; }
.hero-cta .btn-primary:hover { background: #d97706; border-color: #d97706; }
.hero-cta .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.hero-cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-soft); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--primary); text-transform: uppercase; background: rgba(99,102,241,.08);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(24px, 3.5vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ── Service cards ────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; transition: all .2s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--primary); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(99,102,241,.1); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* ── Pricing tables ───────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.pricing-card {
  background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 32px;
}
.pricing-card.featured { border-color: var(--primary); position: relative; }
.pricing-card.featured::before {
  content: 'Populaire'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 14px; border-radius: 20px;
}
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.pricing-card .price { font-size: 36px; font-weight: 800; color: var(--primary); }
.pricing-card .price sup { font-size: 18px; vertical-align: super; }
.pricing-card .price-unit { font-size: 14px; color: var(--muted); }
.pricing-card .price-note { font-size: 13px; color: var(--muted); margin-top: 4px; margin-bottom: 20px; }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pricing-card ul li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pricing-card ul li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step-card { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800;
  margin: 0 auto 18px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14px; }

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--dark); color: #fff; padding: 48px 24px;
}
.trust-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  text-align: center;
}
.trust-item strong { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.trust-item span { font-size: 14px; color: rgba(255,255,255,.65); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 60px 24px 0; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px;
}
.footer-brand .logo-text { color: var(--primary); }
.footer-brand p { font-size: 14px; margin-top: 12px; color: rgba(255,255,255,.5); }
.footer-links h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 14px; padding: 4px 0; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.35);
  max-width: 1100px; margin: 0 auto;
}

/* ── Auth pages ───────────────────────────────────────────────────────────── */
.auth-page .site-main { background: var(--bg-soft); }
.auth-section {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center; padding: 40px 16px;
}
.auth-card {
  background: #fff; border-radius: 16px; padding: 40px 36px;
  width: 100%; max-width: 480px; box-shadow: var(--shadow);
}
.auth-back { font-size: 13px; color: var(--muted); display: inline-block; margin-bottom: 24px; }
.auth-back:hover { color: var(--primary); }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: 15px; color: var(--muted); margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; display: block; }
.auth-form input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; transition: border-color .15s;
}
.auth-form input:focus { outline: none; border-color: var(--primary); }
.forgot-link { font-size: 13px; color: var(--primary); align-self: flex-end; margin-top: -8px; }
.auth-switch { text-align: center; font-size: 14px; margin-top: 20px; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.optional { color: var(--muted); font-weight: 400; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Order tunnel ─────────────────────────────────────────────────────────── */
.order-page .site-main { background: var(--bg-soft); }
.order-container { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.order-header { margin-bottom: 32px; }
.order-header h1 { font-size: 28px; font-weight: 800; }
.order-header p { color: var(--muted); margin-top: 4px; }
.order-steps { display: flex; gap: 0; margin-bottom: 36px; }
.order-step {
  flex: 1; text-align: center; padding: 12px 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid var(--border);
}
.order-step.active { color: var(--primary); border-bottom-color: var(--primary); }
.order-step.done   { color: #16a34a; border-bottom-color: #16a34a; }

.order-card {
  background: #fff; border-radius: 14px; border: 1px solid var(--border);
  padding: 28px; margin-bottom: 20px;
}
.order-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }

/* Product picker */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.product-thumb {
  border: 2px solid var(--border); border-radius: 10px; padding: 12px 8px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.product-thumb:hover, .product-thumb.selected { border-color: var(--primary); background: rgba(99,102,241,.05); }
.product-thumb img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 6px; }
.product-thumb span { font-size: 12px; font-weight: 600; display: block; }

/* Size table */
.size-table { width: 100%; border-collapse: collapse; }
.size-table th, .size-table td { padding: 10px 12px; text-align: center; font-size: 14px; border: 1px solid var(--border); }
.size-table th { background: var(--bg-soft); font-weight: 700; }
.size-table input[type=number] { width: 64px; border: 1px solid var(--border); border-radius: 6px; padding: 6px; text-align: center; font-size: 14px; }

/* Upload zone */
.drop-zone {
  border: 2px dashed var(--border); border-radius: 12px; padding: 40px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--primary); background: rgba(99,102,241,.04); }
.drop-zone svg { color: var(--muted); margin-bottom: 12px; }
.drop-zone p { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.drop-zone span { font-size: 13px; color: var(--muted); }

/* Summary */
.order-summary-table { width: 100%; font-size: 14px; }
.order-summary-table tr td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.order-summary-table tr:last-child td { border-bottom: none; }
.order-summary-table .total td { font-weight: 800; font-size: 16px; padding-top: 14px; }

/* ── Account pages ────────────────────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.account-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; height: fit-content; }
.account-sidebar h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #374151; transition: all .15s; margin-bottom: 2px; }
.account-nav a:hover, .account-nav a.active { background: rgba(99,102,241,.08); color: var(--primary); }
.account-main {}
.account-main h1 { font-size: 24px; font-weight: 800; margin-bottom: 24px; }

/* Orders list */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--border); }
.orders-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.orders-table tr:hover td { background: var(--bg-soft); }

/* Status badges */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-status.pending   { background: #fef9c3; color: #713f12; }
.badge-status.paid      { background: #dcfce7; color: #14532d; }
.badge-status.project   { background: #dbeafe; color: #1e3a8a; }
.badge-status.bat       { background: #ede9fe; color: #4c1d95; }
.badge-status.shipped   { background: #d1fae5; color: #065f46; }
.badge-status.delivered { background: #f0fdf4; color: #166534; }
.badge-status.failed    { background: #fee2e2; color: #7f1d1d; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; }
  .burger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .auth-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 16px 48px; }
}
