/* ═══════════════════════════════════════════════════════════
   XpressLog – style.css
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --yellow:      #FFCC00;
  --yellow-dark: #E6B800;
  --yellow-light:#FFF4CC;
  --black:       #111827;
  --dark:        #0F172A;
  --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;
  --green:       #22C55E;
  --green-light: #DCFCE7;
  --red:         #EF4444;
  --red-light:   #FEE2E2;
  --blue:        #3B82F6;
  --blue-light:  #DBEAFE;
  --orange:      #F97316;

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow:      0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --shadow-xl:   0 20px 50px rgba(0,0,0,.15);

  --transition:  .2s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px; color: var(--gray-800);
  background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(28px,5vw,48px); font-weight: 900; }
h2 { font-size: clamp(22px,4vw,36px); font-weight: 800; }
h3 { font-size: clamp(18px,3vw,24px); font-weight: 700; }
p  { color: var(--gray-600); }
code { font-family: monospace; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 20px; color: var(--white);
  line-height: 1;
}
.nav-logo img { display: block; }
.nav-logo .xl-box {
  width: 38px; height: 38px; background: var(--yellow); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: var(--black);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-cta {
  background: var(--yellow); color: var(--black); padding: 8px 18px;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--yellow-dark); transform: translateY(-1px); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm); border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all var(--transition); line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,204,0,.4); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--gray-800); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gray-700); border: 2px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--yellow); background: var(--yellow-light); color: var(--black); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #DC2626; }
.btn-sm  { padding: 7px 14px; font-size: 12px; }
.btn-lg  { padding: 15px 32px; font-size: 16px; }
.btn-xl  { padding: 18px 40px; font-size: 17px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-control {
  width: 100%; padding: 11px 15px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--gray-800); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,204,0,.15); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.error { border-color: var(--red); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.form-error { font-size: 12px; color: var(--red); font-weight: 500; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 42px; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); font-size: 14px; pointer-events: none;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  border-left: 4px solid;
}
.alert-success { background: var(--green-light);  border-color: var(--green); color: #166534; }
.alert-error   { background: var(--red-light);    border-color: var(--red);   color: #991B1B; }
.alert-warning { background: #FEF9C3;             border-color: #EAB308;     color: #713F12; }
.alert-info    { background: var(--blue-light);   border-color: var(--blue);  color: #1E40AF; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h2, .card-header h3 { font-size: 16px; font-weight: 700; }
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px; border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ── Badge / Status ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge-yellow { background: var(--yellow-light); color: #92700A; }
.badge-green  { background: var(--green-light);  color: #166534; }
.badge-red    { background: var(--red-light);    color: #991B1B; }
.badge-blue   { background: var(--blue-light);   color: #1E40AF; }
.badge-gray   { background: var(--gray-100);     color: var(--gray-600); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--dark); color: var(--white);
  padding: 80px 24px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1 span { color: var(--yellow); }
.hero p { color: rgba(255,255,255,.65); font-size: 18px; }

/* ── Section ──────────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 span { color: var(--yellow); }
.section-title p { color: var(--gray-500); font-size: 17px; margin-top: 8px; }

/* ── Grid ─────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Track input (public) ────────────────────────────────── */
.track-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-xl);
}
.track-result {
  background: var(--gray-50); border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 24px; margin-top: 24px;
}

/* ── Timeline suivi ──────────────────────────────────────── */
.timeline { list-style: none; padding: 0; }
.timeline-item {
  display: flex; gap: 16px; padding-bottom: 24px;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute;
  left: 15px; top: 32px; bottom: 0; width: 2px;
  background: var(--gray-200);
}
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--white); position: relative; z-index: 1;
}
.timeline-dot.active { background: var(--yellow); color: var(--black); }
.timeline-dot.done   { background: var(--green); }
.timeline-dot.pending{ background: var(--gray-300); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: rgba(255,255,255,.5);
  padding: 60px 24px 32px; font-size: 14px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }

/* ── Container ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-yellow { color: var(--yellow); }
.text-gray   { color: var(--gray-500); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 56px 16px; }
  .hero { padding: 56px 16px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
