/* Sim Moto Shop — Global Styles (no inline styles) */

:root{
  --bg: #ffffff;
  --text: #0b0f19;
  --muted: #5b6472;

  --blue: #1f5cff;
  --blue-2: #0b3fd6;
  --blue-soft: #eef4ff;

  --border: #e7ebf2;
  --shadow: 0 10px 30px rgba(11, 15, 25, 0.08);

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.brand-text{ font-size: 16px; }

.nav{
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link{
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{ background: var(--blue-soft); color: var(--text); }
.nav-link.is-active{ color: var(--text); background: var(--blue-soft); }

.header-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover{ background: var(--blue-2); border-color: var(--blue-2); }

.btn-ghost{
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ background: var(--blue-soft); border-color: #d7e3ff; }

.btn-lg{ padding: 12px 18px; border-radius: 14px; }

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

/* Hero */
.hero{
  padding: 54px 0 26px;
  background:
    radial-gradient(900px 360px at 20% 0%, var(--blue-soft), rgba(255,255,255,0)),
    radial-gradient(700px 300px at 90% 10%, rgba(31,92,255,0.08), rgba(255,255,255,0));
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero h1{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.lead{
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 60ch;
}

.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge{
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid #dbe6ff;
  background: #f6f9ff;
  border-radius: 999px;
  color: #1b2a5a;
}

/* Hero visual */
.hero-visual{
  display: grid;
  gap: 10px;
  justify-items: end;
}

.visual-card{
  width: min(360px, 100%);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.visual-title{
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.visual-row{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px dashed #eef1f6;
  color: var(--muted);
}
.visual-row strong{ color: var(--text); }

.visual-note{
  width: min(360px, 100%);
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* Sections */
.section{
  padding: 52px 0;
}

.section-alt{
  background: #f7f9fd;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head h2{
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.section-head p{
  margin: 0 0 22px;
  color: var(--muted);
}

/* Cards grid */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 6px 18px rgba(11, 15, 25, 0.04);
}
.card h3{
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.card p{
  margin: 0;
  color: var(--muted);
}

/* Steps */
.steps{
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.step{
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}
.step-num{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue-2);
  font-weight: 900;
}
.step-body h3{ margin: 0 0 4px; }
.step-body p{ margin: 0; color: var(--muted); }

/* CTA band */
.cta-band{
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-band-text h3{ margin: 0 0 4px; }
.cta-band-text p{ margin: 0; opacity: 0.9; }

/* Footer */
.site-footer{
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand{ font-weight: 900; }
.footer-muted{ color: var(--muted); font-size: 13px; margin-top: 4px; }
.footer-links{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a{ color: var(--muted); font-weight: 700; }
.footer-links a:hover{ color: var(--text); }

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ justify-items: start; }
  .visual-note{ text-align: left; }
  .grid-2{ grid-template-columns: 1fr; }
  .nav{ display: none; } /* on fera un burger plus tard si tu veux */
}

/* Auth pages */
.auth{
  padding: 42px 0;
  background:
    radial-gradient(900px 360px at 15% 0%, var(--blue-soft), rgba(255,255,255,0)),
    radial-gradient(700px 300px at 90% 10%, rgba(31,92,255,0.06), rgba(255,255,255,0));
}

.auth-inner{
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.auth-card{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.auth-head h1{
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.auth-head p{
  margin: 0 0 16px;
  color: var(--muted);
}

.form{
  display: grid;
  gap: 12px;
}

.field label{
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"]{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 16px; /* important mobile (évite zoom iOS) */
  background: #fff;
}

.field input:focus{
  border-color: #c7d6ff;
  box-shadow: 0 0 0 4px rgba(31, 92, 255, 0.10);
}

.help{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}
.check input{ margin-top: 4px; }

.btn-block{
  width: 100%;
}

.form-meta{
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  margin-top: 6px;
}
.form-meta a{ color: var(--blue-2); }
.dot{ opacity: .6; }

.auth-side{
  position: sticky;
  top: 86px;
}

.side-card{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
}

.side-card h2{
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.side-card p{
  margin: 0 0 12px;
  color: var(--muted);
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 600;
}
.bullets li{ margin: 6px 0; }

.mini-stats{
  display: grid;
  gap: 10px;
}
.mini-stat{
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
  color: var(--muted);
}
.mini-stat strong{ color: var(--text); }

/* Responsive adjustments */
@media (max-width: 920px){
  .auth-inner{ grid-template-columns: 1fr; }
  .auth-side{ position: static; }
}

/* Header actions tighter on small screens */
@media (max-width: 560px){
  .header-actions .btn-ghost{ display: none; } /* garde juste "Créer un compte" */
  .brand-text{ display: none; } /* logo compact */
}


/* Alerts */
.alert{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.alert-error{
  background: #fff3f3;
  border-color: #ffd7d7;
  color: #8a1f1f;
}
.alert-success{
  background: #f2fff6;
  border-color: #cfeedd;
  color: #155d33;
}

/* Dashboard */
.dash{ padding: 36px 0 52px; }
.dash-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dash-head h1{
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.dash-sub{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.kpis{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 18px;
}
.kpi{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(11, 15, 25, 0.04);
}
.kpi-label{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kpi-value{
  margin-top: 6px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.dash-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
.panel{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
}
.panel-head h2{
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.panel-head p{
  margin: 0 0 12px;
  color: var(--muted);
}

.empty{
  color: var(--muted);
  font-weight: 700;
  padding: 12px 0 2px;
}

.table{
  display: grid;
  gap: 8px;
}
.tr{
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.6fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
}
.th{
  background: var(--blue-soft);
  border-color: #dbe6ff;
  font-weight: 900;
  color: #1b2a5a;
}

.todo{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}
.todo li{ margin: 8px 0; }

@media (max-width: 920px){
  .kpis{ grid-template-columns: repeat(2, 1fr); }
  .dash-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .kpis{ grid-template-columns: 1fr; }
}
