:root {
  --brand: #0d6efd;
  --brand-dark: #0a4fb0;
  --bg-soft: #f4f6fb;
}

body {
  background: var(--bg-soft);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f2350, #16305f);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .5rem .25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 1rem;
}

.sidebar-nav .nav-link {
  color: rgba(255,255,255,.75);
  border-radius: .5rem;
  padding: .6rem .75rem;
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
}

.sidebar-nav .nav-link i { width: 1.1rem; text-align: center; }
.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.sidebar-nav .nav-link.active {
  background: var(--brand);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.content {
  flex: 1;
  padding: 1.75rem 2rem;
  min-width: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.stat-card {
  background: #fff;
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(15, 35, 80, .06);
  border: 1px solid rgba(15,35,80,.05);
}

.stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 700;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
}

.card-panel {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 2px 10px rgba(15, 35, 80, .06);
  border: 1px solid rgba(15,35,80,.05);
}

.table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b7280;
  border-bottom-width: 1px;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f2350, #1c4fa0);
}

/* ---- Page de commande publique ---- */
.order-header {
  background: linear-gradient(135deg, #0f2350, #1c4fa0);
  color: #fff;
  padding: 3rem 0 4rem;
  text-align: center;
}
.order-header h1 { font-weight: 700; font-size: 1.9rem; margin-bottom: .5rem; }
.order-header p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; }
.order-wrap { max-width: 760px; margin: -2.5rem auto 3rem; padding: 0 1rem; }

.plan-option {
  border: 2px solid rgba(15,35,80,.1);
  border-radius: .75rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color .15s;
  background: #fff;
  height: 100%;
}
.plan-option:has(input:checked) { border-color: var(--brand); background: #eef5ff; }
.plan-option .price { font-size: 1.4rem; font-weight: 700; }
.plan-option .price span { font-size: .85rem; font-weight: 400; color: #6b7280; }

.pay-method {
  border: 1px solid rgba(15,35,80,.1);
  border-radius: .6rem;
  padding: .9rem 1rem;
  background: #fff;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 1rem;
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .2s; }
  .sidebar.open { left: 0; }
  .content { padding: 1rem; }
}

/* ---- Redesign page de commande (v2) : hero, étapes numérotées, badges de formule ---- */
.order-header { position: relative; overflow: hidden; }
.order-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.12), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,.10), transparent 45%);
  pointer-events: none;
}
.order-header-inner { position: relative; z-index: 1; }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1.5rem;
  margin-top: 1.25rem;
  font-size: .82rem;
  color: rgba(255,255,255,.85);
}
.trust-bar span { display: inline-flex; align-items: center; gap: .4rem; }

.step-heading {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}
.step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-heading h2 { margin: 0; }

.plan-option { position: relative; overflow: visible; transition: transform .15s, box-shadow .15s, border-color .15s; }
.plan-option:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,35,80,.08); }

.plan-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--brand);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(13,110,253,.35);
}
.plan-badge-dark { background: #16305f; box-shadow: 0 2px 6px rgba(22,48,95,.35); }

.pay-method { transition: box-shadow .15s; }
.pay-method:hover { box-shadow: 0 4px 14px rgba(15,35,80,.08); }

.order-submit-btn { box-shadow: 0 10px 24px rgba(13,110,253,.28); }

.help-note { text-align: center; font-size: .85rem; color: #6b7280; margin-top: .75rem; }

.seo-section p { line-height: 1.6; }
.faq-item {
  border-bottom: 1px solid rgba(15,35,80,.08);
  padding: .85rem 0;
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  color: var(--brand);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item p { margin: .6rem 0 0 1.1rem; color: #6b7280; }

.row.g-2.mb-4 > .col-md-6:has(> a[href*="login.php"]) { display: flex; flex-direction: column; }
.row.g-2.mb-4 > .col-md-6:has(> a[href*="login.php"]) > .plan-option { height: auto; flex: 1 1 auto; }
/* ---- Cartes de plateforme (v3) ---- */
.platform-option { justify-content: center; padding: 1.25rem .75rem; text-align: center; height: 100%; }
.platform-option .platform-icons { color: var(--brand); gap: .5rem; display: flex; }
.platform-radio-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.platform-option:has(.platform-radio-input:checked) { border-color: var(--brand); box-shadow: 0 4px 14px rgba(13,110,253,.18); }
.platform-option:has(.platform-radio-input:checked) .platform-icons { color: var(--brand-dark); }
/* ---- Footer (v4) ---- */
.site-footer { background: linear-gradient(160deg, #0f2350, #16305f); color: rgba(255,255,255,.85); margin-top: 3rem; }
.site-footer-inner { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem; display: flex; flex-wrap: wrap; gap: 2rem; }
.site-footer-brand { flex: 1 1 240px; }
.site-footer-brand img { max-height: 40px; margin-bottom: .5rem; }
.site-footer-brand .fa-layer-group { font-size: 1.75rem; display: block; margin-bottom: .5rem; }
.site-footer-brand span { font-weight: 700; font-size: 1.05rem; display: block; }
.site-footer-brand p { color: rgba(255,255,255,.6); }
.site-footer-col { flex: 1 1 200px; }
.site-footer-col h3 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.site-footer-col p { margin-bottom: .5rem; color: rgba(255,255,255,.75); }
.site-footer-col a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer-col a:hover { color: #fff; text-decoration: underline; }
.site-footer-col i { width: 1.1rem; text-align: center; margin-right: .4rem; color: rgba(255,255,255,.5); }
.site-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 1rem; font-size: .8rem; color: rgba(255,255,255,.55); }