/* === TOKELIO GLOBAL STYLES === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --accent: #ff3b5c;
  --accent2: #ff6b35;
  --gray: #1a1a1a;
  --gray2: #2a2a2a;
  --text-muted: #888;
  --radius: 16px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f1f1f;
  padding: 16px 20px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.03em;
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #aaa; text-decoration: none; font-size: 0.9rem; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.btn-nav {
  background: var(--accent); color: var(--white) !important;
  padding: 9px 18px; border-radius: 40px;
  font-weight: 600; font-size: 0.88rem;
  transition: background .2s, transform .15s;
}
.btn-nav:hover { background: #e02d4e; transform: scale(1.03); }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 20px 80px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,59,92,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }

.badge {
  display: inline-block;
  background: rgba(255,59,92,0.12);
  border: 1px solid rgba(255,59,92,0.3);
  color: var(--accent);
  padding: 6px 16px; border-radius: 40px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 28px; letter-spacing: 0.04em;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.accent { color: var(--accent); }

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #aaa; margin-bottom: 36px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700; font-size: 1rem;
  padding: 16px 32px; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(255,59,92,0.35);
}
.btn-primary:hover { background: #e02d4e; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,59,92,0.45); }
.btn-primary:active { transform: translateY(0); }

.urgence {
  margin-top: 16px; font-size: 0.82rem; color: #666;
}
.urgence a { color: #aaa; text-decoration: underline; }

/* FEATURES */
.features { padding: 80px 20px; }
.features h2, .steps h2, .cta-section h2 {
  font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 40px; text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.card {
  background: var(--gray);
  border: 1px solid #222;
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255,59,92,0.4); transform: translateY(-3px); }
.icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: #aaa; }

/* STEPS */
.steps { padding: 60px 20px; background: var(--gray); }
.steps-list { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto; }
.step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid #333;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: rgba(255,59,92,0.3); min-width: 52px;
}
.step h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 0.88rem; color: #aaa; }

/* CTA SECTION */
.cta-section { padding: 80px 20px; }
.cta-section p { color: #aaa; margin-bottom: 28px; }

/* FOOTER */
.footer { padding: 32px 20px; border-top: 1px solid #1a1a1a; }
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; color: #666; text-decoration: none; }
.footer-links a:hover { color: #aaa; }
.footer-note { font-size: 0.78rem; color: #444; }

/* ANIMATIONS */
.animate-in {
  opacity: 0; transform: translateY(24px);
  animation: fadeUp 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.28s; }
.delay-3 { animation-delay: 0.4s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade {
  opacity: 0; animation: fadeIn 0.5s ease forwards;
}
.animate-fade:nth-child(1) { animation-delay: 0.1s; }
.animate-fade:nth-child(2) { animation-delay: 0.2s; }
.animate-fade:nth-child(3) { animation-delay: 0.3s; }
.animate-fade:nth-child(4) { animation-delay: 0.4s; }
.animate-fade:nth-child(5) { animation-delay: 0.5s; }
@keyframes fadeIn { to { opacity: 1; } }

/* FORMS */
.form-section { padding: 60px 20px; }
.form-box {
  max-width: 580px; margin: 0 auto;
  background: var(--gray); border: 1px solid #222;
  border-radius: 20px; padding: 36px 28px;
}
.form-title {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 800;
  margin-bottom: 8px; letter-spacing: -0.03em;
}
.form-subtitle { font-size: 0.9rem; color: #aaa; margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: #ddd;
}
.field input, .field textarea, .field select {
  width: 100%; background: #111; border: 1px solid #2d2d2d;
  color: var(--white); border-radius: 10px;
  padding: 12px 14px; font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color .2s;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,59,92,0.12);
}
.field input.error { border-color: #ff3b5c; }
.field input.ok { border-color: #22c55e; }
.field-hint { font-size: 0.78rem; color: #666; margin-top: 5px; }
.field-error { font-size: 0.78rem; color: var(--accent); margin-top: 5px; display: none; }
.field-error.show { display: block; }
.field textarea { resize: vertical; min-height: 90px; }

.promo-row { display: flex; gap: 10px; }
.promo-row input { flex: 1; }
.btn-promo {
  background: #222; border: 1px solid #333;
  color: var(--white); border-radius: 10px;
  padding: 12px 16px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .2s;
}
.btn-promo:hover { background: #2d2d2d; }
.promo-status { font-size: 0.8rem; margin-top: 6px; }
.promo-status.ok { color: #22c55e; }
.promo-status.err { color: var(--accent); }

.price-box {
  background: #111; border: 1px solid #222;
  border-radius: 12px; padding: 16px;
  margin-bottom: 24px;
}
.price-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; }
.price-row.final { font-weight: 700; font-size: 1.05rem; color: var(--white); border-top: 1px solid #2a2a2a; padding-top: 10px; margin-top: 4px; }
.price-row .label { color: #888; }
.price-row .val { color: #fff; }
.price-row.final .val { color: var(--accent); }

.btn-pay {
  width: 100%; background: var(--accent);
  color: var(--white); border: none;
  border-radius: 12px; padding: 16px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
  box-shadow: 0 6px 24px rgba(255,59,92,0.3);
}
.btn-pay:hover { background: #e02d4e; transform: translateY(-1px); }
.btn-pay:disabled { background: #555; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-pay .loader {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: none;
}
.btn-pay.loading .loader { display: block; }
.btn-pay.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.secure-note {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 0.78rem; color: #555; margin-top: 12px;
}

/* ADMIN */
.admin-body { background: #0d0d0d; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #111; border-right: 1px solid #1f1f1f;
  padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
  position: fixed; height: 100vh; top: 0; left: 0;
}
.sidebar .logo { margin-bottom: 28px; display: block; }
.sidebar a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: #888; text-decoration: none; font-size: 0.9rem;
  transition: background .15s, color .15s;
}
.sidebar a:hover, .sidebar a.active { background: #1a1a1a; color: var(--white); }
.main-content { margin-left: 220px; padding: 32px; flex: 1; }
.admin-title {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800;
  margin-bottom: 28px; letter-spacing: -0.03em;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat-card {
  background: #111; border: 1px solid #1f1f1f;
  border-radius: 14px; padding: 20px;
}
.stat-label { font-size: 0.78rem; color: #555; margin-bottom: 6px; }
.stat-value { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; padding: 10px 14px; color: #555; font-weight: 600; border-bottom: 1px solid #1f1f1f; }
td { padding: 12px 14px; border-bottom: 1px solid #111; color: #ccc; }
tr:hover td { background: #111; }
.badge-status {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-status.pending { background: rgba(234,179,8,0.15); color: #eab308; }
.badge-status.paid { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-status.delivered { background: rgba(59,130,246,0.15); color: #3b82f6; }
.badge-status.cancelled { background: rgba(255,59,92,0.15); color: var(--accent); }

.search-bar {
  background: #111; border: 1px solid #222;
  color: var(--white); border-radius: 10px;
  padding: 10px 14px; font-size: 0.9rem; width: 260px;
  margin-bottom: 16px;
}
.search-bar:focus { outline: none; border-color: var(--accent); }
.btn-export {
  background: #1a1a1a; border: 1px solid #2a2a2a;
  color: #ccc; border-radius: 10px; padding: 9px 16px;
  font-size: 0.85rem; cursor: pointer; font-family: var(--font-body);
  transition: background .2s;
}
.btn-export:hover { background: #222; }
.status-select {
  background: #1a1a1a; border: 1px solid #2a2a2a;
  color: #ccc; border-radius: 8px; padding: 5px 10px;
  font-size: 0.82rem; cursor: pointer;
}

/* LOGIN */
.login-page {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: var(--black);
}
.login-box {
  width: 360px; background: #111; border: 1px solid #222;
  border-radius: 20px; padding: 36px 28px;
}
.login-box h1 { font-size: 1.6rem; margin-bottom: 6px; }
.login-box p { color: #666; font-size: 0.88rem; margin-bottom: 24px; }
.btn-login {
  width: 100%; background: var(--accent); color: var(--white);
  border: none; border-radius: 10px; padding: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background .2s;
}
.btn-login:hover { background: #e02d4e; }

/* CONTACT */
.page-header { padding: 60px 20px 0; text-align: center; }
.page-header h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; }
.page-header p { color: #888; margin-top: 10px; font-size: 0.95rem; }

/* ALERT */
.alert {
  padding: 14px 16px; border-radius: 10px; margin-bottom: 16px;
  font-size: 0.88rem; display: none;
}
.alert.show { display: block; }
.alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.alert.error { background: rgba(255,59,92,0.1); border: 1px solid rgba(255,59,92,0.3); color: var(--accent); }

/* CGV */
.legal-page { padding: 60px 20px; max-width: 760px; margin: 0 auto; }
.legal-page h1 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin-bottom: 32px; }
.legal-page h2 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.legal-page p { color: #aaa; font-size: 0.9rem; line-height: 1.8; margin-bottom: 12px; }

/* PROMO ADMIN */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.btn-add {
  background: var(--accent); color: var(--white); border: none;
  border-radius: 8px; padding: 8px 16px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: background .2s;
}
.btn-add:hover { background: #e02d4e; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; display: none;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #111; border: 1px solid #222;
  border-radius: 18px; padding: 28px; width: 420px; max-width: 90vw;
}
.modal-box h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.modal-btns { display: flex; gap: 10px; margin-top: 20px; }
.btn-cancel {
  flex: 1; background: #1a1a1a; border: 1px solid #2a2a2a;
  color: #ccc; border-radius: 10px; padding: 12px;
  cursor: pointer; font-family: var(--font-body);
}
.btn-submit { flex: 1; }

/* MOBILE */
@media(max-width: 640px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 16px; }
  .form-box { padding: 24px 16px; }
  .hero { padding: 70px 16px 60px; }
  .cards { grid-template-columns: 1fr; }
}