:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --text: #1a1a18;
  --muted: #6b6b66;
  --line: #e8ddd0;
  --brand: #1a6b5e;
  --brand-strong: #145247;
  --ok: #166534;
  --err: #991b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.m-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(26, 26, 24, 0.05);
}
.m-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.m-logo-link {
  color: var(--text);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.m-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand);
  font-size: 0.8rem;
}
.m-logo-text strong { color: var(--brand); }
.m-nav__menu { display: flex; gap: 0.9rem; }
.m-nav-link { color: var(--text); font-size: 0.9rem; font-weight: 700; }
.m-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--text);
  background: #f5efe8;
  border: 1px solid var(--line);
  border-radius: 999px;
  position: relative;
}
.m-cart-badge {
  min-width: 1.3rem;
  min-height: 1.3rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  position: absolute;
  right: -0.25rem;
  top: -0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top-mini{background:#faf6f0;border-bottom:1px solid #e8ddd0;color:#6f655e;font-size:11px;font-weight:700}
.top-mini .inner{max-width:1280px;margin:0 auto;padding:8px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.top-mini .links{display:flex;gap:14px;text-transform:uppercase;letter-spacing:.08em}
.top-mini .links a{color:#1a6b5e}
.top-mini,.top-mini a{line-height:1}
.top-mini .top-mini-stars{display:flex;align-items:center;gap:8px;text-transform:uppercase;color:#F59E0B;font-size:15px;line-height:1;margin-bottom:0}
.top-mini .top-mini-stars-glyph{color:#F59E0B;font-size:11px;letter-spacing:.12em;line-height:1}
.top-mini .top-mini-stars a{color:#F59E0B !important;font-size:13px;line-height:1;text-decoration:none;border-bottom:1px dotted #e3b648}
.top-mini .top-mini-stars a:hover{color:#d89100 !important;border-bottom-color:#d89100}
.home-nav{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid #e8ddd0;box-shadow:0 1px 8px rgba(0,0,0,.03)}
.home-nav .inner{max-width:1280px;margin:0 auto;padding:12px 18px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px}
.home-nav .left,.home-nav .right{display:flex;align-items:center;gap:24px}
.home-nav .right{justify-content:flex-end}
.home-nav,.home-nav a{line-height:1}
.home-nav a{font-size:13px;font-weight:800;color:#1a1a18;text-transform:uppercase;letter-spacing:.02em}
.home-nav .muted{font-size:13px;font-weight:600;color:#6f655e;text-transform:none}
.home-logo{display:flex;align-items:center;gap:10px}
.logo-mark{width:32px;height:32px;border-radius:10px;background:#1a6b5e;color:#fff;font-size:11px;font-weight:800;line-height:1;letter-spacing:0;text-transform:none;display:flex;align-items:center;justify-content:center;padding-top:1px}
.logo-text{font-size:24px;font-weight:800;letter-spacing:-.02em}
.logo-text b{color:#1a6b5e}
.cart-link{position:relative;display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border:1px solid #e8ddd0;border-radius:999px;background:#f5efe8}
.cart-link .material-symbols-rounded{font-size:20px}
.cart-dot{position:absolute;top:-4px;right:-3px;width:18px;height:18px;border-radius:999px;background:#1a6b5e;color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff}

.page,
.admin-main {
  max-width: 1120px;
  margin: 1.25rem auto;
  padding: 1rem;
}

.flash-messages {
  max-width: 1120px;
  margin: 0.8rem auto;
  padding: 0 1rem;
}
.flash-messages__item {
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
}
.flash-error { border-color: #fecaca; color: var(--err); }
.flash-success { border-color: #bbf7d0; color: var(--ok); }

#global-toast {
  position: fixed;
  top: 86px;
  right: 20px;
  z-index: 80;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 0.9rem;
  padding: 0.8rem 1rem;
  font-weight: 800;
  color: var(--brand);
  transform: translateX(130%);
  transition: transform 0.4s ease;
}
#global-toast.show { transform: translateX(0); }

.hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #faf6f0 0%, #fff 100%);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: #eaf5f2;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 1rem 0;
}
.hero-copy { color: var(--muted); max-width: 58ch; }
.hero-visual {
  min-height: 320px;
  border-radius: 2rem;
  background: #f5efe8;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-paw { font-size: 5rem; }
.hero-chip {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
}
.section-head { text-align: center; margin-bottom: 1.2rem; }
.section-kicker {
  text-transform: uppercase;
  color: var(--brand);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0.4rem 0; }
.section-head p { color: var(--muted); }

.catalogue-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product-thumb {
  background: #f5efe8;
  border-radius: 1rem;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.product-emoji { font-size: 2.5rem; }
.product-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product-card h3 { margin: 0; font-size: 1.05rem; }
.product-price { margin: 0; font-weight: 800; font-size: 1.2rem; }

.site-footer {
  margin-top: 2rem;
  background: #1a1a18;
  color: #f5f5f5;
  border-top: 4px solid var(--brand);
  padding: 28px 0 30px;
}
.site-footer .page { margin-top: 0; margin-bottom: 0; text-align: center; }
.site-footer-title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; }
.site-footer-title-link { color: #f5f5f5; text-decoration: underline; text-underline-offset: 4px; }
.site-footer-title-link:hover { color: #9bd7cc; }
.site-footer-copy { margin: 0 0 14px; color: #c2c2bf; line-height: 1.45; }
.site-footer-social-title { margin: 0 0 8px; color: #d8d5cf; font-weight: 700; font-size: 0.92rem; }
.site-footer-socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f5;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.site-footer-social-link:hover { transform: translateY(-1px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }
.site-footer-social-icon { width: 18px; height: 18px; display: inline-flex; }
.site-footer-social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer-social-fallback { font-size: 12px; font-weight: 800; }
.site-footer-links { display: flex; justify-content: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer-links a { color: #f5f5f5; font-weight: 700; font-size: 0.9rem; }
.site-footer-links a:hover { color: #9bd7cc; }
.site-footer-legal { margin: 0; color: #bdb9b2; font-size: 0.88rem; }

.product-page { padding: 1rem 0 2rem; }
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}
.product-config,
.product-media,
.product-description {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}
.prix-block { margin: 0.9rem 0; }
.prix-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.prix-valeur { font-size: 2rem; font-weight: 800; margin: 0.2rem 0 0; }
.prix-valeur small { font-size: 1rem; color: var(--muted); }
.selector-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0.85rem 0 0.45rem;
}
.selector-label span { text-transform: none; color: var(--brand); font-weight: 600; }
.tailles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 0.5rem; }
.taille-card {
  border: 2px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.55rem 0.45rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
}
.taille-card.active { border-color: var(--brand); background: #eaf5f2; }
.t-nom { display: block; font-size: 1rem; font-weight: 800; }
.t-surcout { font-size: 0.7rem; color: var(--brand); }
.t-desc { display: block; font-size: 0.64rem; color: var(--muted); line-height: 1.35; margin-top: 0.1rem; }
.couleurs-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.couleur-btn {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.8rem;
}
.couleur-btn small { color: var(--muted); }
.couleur-btn.active { border-color: var(--brand); background: #eaf5f2; color: var(--brand); }
.gravure-input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.68rem 0.8rem;
  font: inherit;
}
.cta-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.btn-panier,
.btn-commander {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0.7rem 1rem;
}
.btn-panier { background: #fff; border: 2px solid var(--line); }
.btn-commander { background: #1a1a18; color: #fff; }
.product-media #main-img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.hero-img-thumbnails {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.hero-img-thumbnails img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.6rem;
  border: 2px solid var(--line);
  cursor: pointer;
}
.prose-lite p,
.prose-lite li { color: #3b3b37; line-height: 1.7; }

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 62px);
}
.admin-topbar {
  margin-bottom: 1rem;
}
.admin-topbar h1,
.admin-topbar .admin-topbar__heading {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #4a433c;
}
/* Bandeau: admin boutique (pas la navbar publique) */
.admin-boutique-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 0.65rem;
  background: linear-gradient(90deg, #1a6b5e 0%, #2d8a7a 55%, #1a6b5e 100%);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(26, 107, 94, 0.25);
}
.admin-boutique-banner strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.admin-boutique-banner__build {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}
.admin-boutique-banner__hint {
  flex: 1 1 200px;
  opacity: 0.92;
  font-size: 0.8rem;
}
.admin-boutique-banner__link {
  margin-left: auto;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-boutique-banner__link:hover {
  color: #e8fff9;
}
.admin-main--boutique {
  padding-top: 0.5rem;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e8ddd0;
  border-radius: 999px;
  background: #fff;
  color: #6f655e;
  padding: 0.32rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}
.admin-tab:hover { text-decoration: none; color: #1a1a18; }
.admin-tab.is-active { border-color: #d7c9b8; background: #f6efe7; color: #1a1a18; }
.admin-tab.deco { border-color: #f5c2c7; color: #b02a37; background: #fff5f5; }
.admin-tab__notif {
  margin-left: 0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
  box-shadow: 0 0 0 2px #fff;
}
.admin-sidebar {
  background: #0b1220;
  color: #fff;
  border-right: 1px solid #111827;
}
.admin-sidebar__inner { padding: 1rem; }
.admin-logo { color: #fff; font-weight: 700; display: inline-block; margin-bottom: 1rem; }
.admin-nav { display: grid; gap: 0.45rem; }
.admin-nav__link {
  color: #cbd5e1;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 0.55rem;
  padding: 0.5rem 0.65rem;
}
.admin-nav__link:hover { text-decoration: none; color: #fff; border-color: #334155; }
.admin-nav__link.is-active { color: #fff; background: #1a6b5e; border-color: #1a6b5e; }

section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.kpi-card.clean {
  background: #fff;
  border: 1px solid #e8ddd0;
}
.mini-chart {
  border: 1px solid #e8ddd0;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.85rem;
}
.mini-bars {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
}
.mini-bars span {
  flex: 1;
  background: linear-gradient(180deg, #b9a7f8 0%, #8c73f2 100%);
  border-radius: 8px 8px 4px 4px;
  min-height: 16px;
}
.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 8px auto 0;
  background: conic-gradient(#56d48e 0 62%, #5f93ff 62% 75%, #f6bf4e 75% 85%, #c8c8c8 85% 100%);
  position: relative;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  background: #fff;
  border-radius: 50%;
}
.kpi-card {
  background: #f8fafc;
  border: 1px solid #dbe3f0;
  border-radius: 0.65rem;
  padding: 0.75rem;
}
.kpi-label {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0 0 0.25rem;
}
.kpi-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.btn-link {
  display: inline-block;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #1e3a8a;
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
}
.urgency-list { display: grid; gap: 0.55rem; margin-top: 0.75rem; }
.urgency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.55rem 0.7rem;
}
.urgency-item strong { font-size: 0.95rem; }
.urgency-item span { color: var(--muted); font-size: 0.85rem; }
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-badge--ok { background: #dcfce7; color: #166534; border-color: #86efac; }
.status-badge--warn { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.status-badge--new { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.status-badge--muted { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.55rem 0.5rem;
}
th { font-size: 0.9rem; color: var(--muted); }
td pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  line-height: 1.35;
}

input, textarea, select, button {
  font: inherit;
}
input, textarea, select {
  width: 100%;
  max-width: 420px;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
}
button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 0.55rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}
button:hover { background: var(--brand-strong); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid #111827; }
  .m-nav__menu { display: none; }
}
@media (max-width: 1024px){
  .home-nav .inner{grid-template-columns:1fr auto auto}
  .home-nav .left{display:none}
  .logo-text{font-size:20px}
}
@media (max-width: 700px){
  .top-mini .top-mini-stars{display:none}
  .home-nav .right .muted{display:none}
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.contact-modal.is-open { display: block; }
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.45);
}
.contact-modal__panel {
  position: relative;
  width: min(620px, calc(100vw - 24px));
  margin: 6vh auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.contact-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  background: #1a1a18;
  color: #fff;
}
.contact-modal__form {
  display: grid;
  gap: 10px;
}
.contact-modal__actions {
  display: flex;
  gap: 8px;
}
.btn-secondary {
  background: #f5efe8;
  color: #1a1a18;
}
.cms-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:500;background:rgba(10,12,14,.55);padding:14px}
.cms-modal.is-open{display:flex}
.cms-modal__card{width:min(860px,100%);max-height:86vh;overflow:auto;background:#fff;border-radius:14px;border:1px solid #e8ddd0;box-shadow:0 14px 44px rgba(0,0,0,.22);padding:14px 16px}
.cms-modal__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.cms-modal__title{margin:0;font-size:1.15rem}
.cms-modal__close{border:1px solid #e8ddd0;background:#f8f5f1;color:#6f655e;border-radius:8px;padding:7px 10px;cursor:pointer}
.cms-modal__body{font-size:15px;line-height:1.65;color:#2a211b}

/* Checkout and cart refresh */
.page-header { margin-bottom: 1rem; }
.page-header h1 { margin: 0 0 0.35rem; font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -0.02em; }
.page-header p { margin: 0; color: var(--muted); }

.panier-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1rem;
  align-items: start;
}
.panier-layout--empty {
  grid-template-columns: 1fr;
  justify-items: center;
}
.panier-layout--empty .panier-empty {
  width: min(760px, 100%);
}
.panier-items-card,
.panier-summary,
.checkout-card,
.checkout-reassure,
.checkout-result-card,
.panier-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}
.panier-items-card h2,
.panier-summary h2,
.checkout-reassure h2 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}
.panier-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.panier-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid #efe6db;
  background: #fcfaf7;
  border-radius: 0.85rem;
  padding: 0.7rem;
}
.panier-item__name { font-weight: 800; color: #2a211b; }
.panier-item__options { display: block; color: var(--muted); margin-top: 0.18rem; font-size: 0.78rem; }
.panier-item__qty {
  min-width: 44px;
  text-align: center;
  font-weight: 800;
  color: var(--brand);
  background: #eaf5f2;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}
.panier-item__price { text-align: right; white-space: nowrap; }
.panier-item__price strong { display: block; font-size: 0.92rem; }
.panier-item__price small { color: var(--muted); font-size: 0.75rem; }
.panier-item__remove { margin: 0; }

.panier-summary__row,
.panier-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0;
  padding: 0.42rem 0;
  color: #3f372f;
}
.panier-summary__row span { color: var(--muted); }
.panier-summary__total {
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 800;
}
.panier-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.82rem; }
.panier-empty { text-align: center; }
.panier-empty h2 { margin: 0 0 0.4rem; }

.btn-pay,
.btn-outline-neutral,
.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  padding: 0.72rem 1rem;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}
.btn-pay {
  border: 0;
  background: var(--brand);
  color: #fff;
}
.btn-pay:hover { background: var(--brand-strong); transform: translateY(-1px); text-decoration: none; }
.btn-outline-neutral {
  border: 1px solid var(--line);
  background: #fff;
  color: #2a211b;
}
.btn-outline-neutral:hover { border-color: #c8b8a6; text-decoration: none; }
.btn-outline-danger {
  border: 1px solid #f4c7c7;
  background: #fff5f5;
  color: #b42318;
  width: auto;
  padding: 0.45rem 0.72rem;
  font-size: 0.82rem;
}
.btn-outline-danger:hover { border-color: #e89a9a; text-decoration: none; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1rem;
  align-items: start;
}
.checkout-elements {
  border: 1px solid #efe6db;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.7rem;
  margin-bottom: 0.65rem;
}
.checkout-message {
  margin-top: 0.7rem;
  min-height: 1.4rem;
  color: #9a3412;
  font-weight: 700;
  font-size: 0.9rem;
}
.checkout-reassure ul {
  margin: 0;
  padding-left: 1rem;
  color: #3f372f;
}
.checkout-reassure li { margin-bottom: 0.45rem; }

.checkout-result-card.is-success { border-color: #bde6d8; background: #f6fcf9; }
.checkout-result-card.is-cancel { border-color: #f4d7c7; background: #fff9f4; }
.checkout-result-main { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 800; }
.checkout-result-actions {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
}

@media (max-width: 900px) {
  .panier-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .panier-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .panier-item__price { text-align: left; }
}

/* Cart / checkout polish: motion, promo, trust, landscape */
@keyframes panier-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.panier-items-card,
.panier-summary--animate,
.checkout-card--lift {
  animation: panier-fade-up 0.45s ease-out both;
}
.panier-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.panier-item:hover {
  border-color: #d7c9b8;
  box-shadow: 0 4px 14px rgba(26, 26, 24, 0.06);
}
.panier-summary__row--discount strong { color: #166534; }
.panier-promo-block {
  margin: 0.85rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.panier-promo-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.panier-promo-form {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.panier-promo-form input[type="text"] {
  flex: 1;
  min-width: 140px;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}
.panier-promo-submit {
  width: auto !important;
  min-width: 110px;
  padding: 0.55rem 1rem !important;
}
.panier-promo-remove-form { margin-top: 0.35rem; }
.btn-text-danger {
  width: auto;
  background: transparent;
  color: #b42318;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text-danger:hover { color: #991b1b; background: transparent; }
.panier-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.panier-trust-strip span {
  background: #eaf5f2;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  border: 1px solid #c5e4dc;
}

.checkout-amount-recap {
  background: #f6fcf9;
  border: 1px solid #bde6d8;
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
  margin: 0.5rem 0 0.35rem;
  max-width: 420px;
}
.checkout-amount-recap__line,
.checkout-amount-recap__total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.2rem 0;
  font-size: 0.9rem;
}
.checkout-amount-recap__line span { color: var(--muted); }
.checkout-amount-recap__line--off strong { color: #166534; }
.checkout-amount-recap__total {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid #a8d5c8;
  font-weight: 800;
  font-size: 1rem;
}
.checkout-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.checkout-trust-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #1a1a18;
  color: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}
.checkout-card--lift {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.checkout-card--lift:hover {
  box-shadow: 0 10px 32px rgba(26, 26, 24, 0.08);
}
@media (min-width: 901px) {
  .checkout-reassure--sticky {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .page-panier .page-header,
  .page-checkout .page-header {
    margin-bottom: 0.5rem;
  }
  .page-panier .page-header h1,
  .page-checkout .page-header h1 {
    font-size: 1.35rem;
  }
  .panier-layout,
  .checkout-layout {
    gap: 0.65rem;
  }
  .panier-items-card,
  .panier-summary,
  .checkout-card,
  .checkout-reassure {
    padding: 0.65rem 0.75rem;
  }
}
