:root {
  --navy: #07111f;
  --navy-soft: #122033;
  --gold: #c9a44c;
  --gold-soft: #e8d5a3;
  --cream: #f6f1e8;
  --ink: #1a1a1a;
  --white: #ffffff;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}
.wide-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 22px;
}

.topbar {
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 12px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(7, 17, 31, 0.1);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}
.brand-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.18em;
  color: var(--navy);
  font-weight: 700;
  margin: 0;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(7, 17, 31, 0.6);
  margin: 0;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(7, 17, 31, 0.16);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.search-bar {
  flex: 1;
  min-width: 240px;
  display: flex;
}
.search-bar input {
  flex: 1;
  padding: 11px 18px;
  border: 1px solid rgba(7, 17, 31, 0.16);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: var(--white);
  font-size: 14px;
}
.search-bar button {
  padding: 11px 22px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  font-weight: 500;
}

.cart-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(7, 17, 31, 0.15);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.cart-badge {
  background: var(--gold);
  color: var(--navy);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   DISPOSITION AVEC MENU VERTICAL DU CÔTÉ GAUCHE
   ========================================================================== */
.app-shell {
  max-width: 1520px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  align-items: stretch;
}
.left-sidebar {
  width: 288px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid rgba(7, 17, 31, 0.1);
}
.left-sidebar-sticky {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-head {
  background: var(--navy);
  color: var(--cream);
  padding: 16px 20px;
}
.sidebar-head-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}
.sidebar-head-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  margin: 3px 0 0;
}
.sidebar-close-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(7, 17, 31, 0.1);
}
.sidebar-nav {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(7, 17, 31, 0.5);
  margin: 0 0 8px;
  padding: 0 10px;
}
.vertical-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vertical-menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(7, 17, 31, 0.86);
  transition: background 0.18s ease, color 0.18s ease;
}
.vertical-menu-list a:hover {
  background: var(--cream);
  color: var(--navy);
}
.vertical-menu-list a.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}
.vertical-menu-list a.active-dark {
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
}
.vertical-chevron {
  color: var(--gold);
  font-weight: 700;
}
.vertical-menu-list a.active .vertical-chevron {
  color: var(--navy);
}
.sidebar-support-card {
  margin: 4px 16px 18px;
  padding: 15px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
}
.sidebar-backdrop {
  display: none;
}

.app-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: 310px;
    max-width: 86vw;
    transform: translateX(-104%);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 60px rgba(7, 17, 31, 0.35);
    overflow-y: auto;
  }
  .left-sidebar.open {
    transform: translateX(0);
  }
  .left-sidebar-sticky {
    position: static;
    max-height: none;
  }
  .sidebar-close-bar {
    display: flex;
  }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(7, 17, 31, 0.58);
  }
}

.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: 58px 0;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
}
.hero h1, .display-title {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.04;
  margin: 12px 0 18px;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); }
.display-title { font-size: clamp(1.85rem, 3.4vw, 2.8rem); color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-outline { border: 1px solid rgba(246, 241, 232, 0.45); color: var(--cream); background: transparent; }

.section { padding: 48px 0; }
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.rayon-card {
  position: relative;
  height: 185px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}
.rayon-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 0.4s ease;
}
.rayon-card:hover img { transform: scale(1.06); }
.rayon-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(7,17,31,0.94), transparent);
}
.rayon-card-body h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 4px;
  font-size: 19px;
}
.rayon-card-body p {
  margin: 0;
  font-size: 12px;
  opacity: 0.78;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, 0.08);
  box-shadow: 0 12px 34px rgba(7, 17, 31, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ebe5d8;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(7,17,31,0.5); }
.product-title { font-family: "Fraunces", Georgia, serif; font-size: 20px; margin: 6px 0; color: var(--navy); }
.product-desc { font-size: 13px; color: rgba(7,17,31,0.7); margin: 0 0 12px; }
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 19px; font-weight: 700; color: var(--navy); }
.price-old { font-size: 13px; color: rgba(7,17,31,0.4); text-decoration: line-through; }

.card-surface {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(7, 17, 31, 0.08);
}
.dark-surface {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}
.thumbs button.active { border-color: var(--gold); }
.thumbs img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }

.form-grid { display: grid; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(7, 17, 31, 0.18);
  background: var(--white);
  font: inherit;
}

.pay-disabled {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.06);
  border: 1px solid rgba(7, 17, 31, 0.12);
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
  user-select: none;
}
.pay-active {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(201, 164, 76, 0.14);
  border: 2px solid var(--gold);
  margin-top: 12px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
}
.specs-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(7, 17, 31, 0.08);
  font-size: 14px;
}
.specs-table td:first-child { color: rgba(7, 17, 31, 0.55); }
.specs-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

/* ==========================================================================
   PIEDS DE PAGE COMPLETS (ENGAGEMENTS + NAVIGATION 5 COLONNES + SOUS-PIED)
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  margin-top: auto;
  border-top: 1px solid rgba(7, 17, 31, 0.12);
}
.footer-commitments {
  background: var(--navy-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 0;
}
.footer-commitments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.commitment-box {
  background: rgba(7, 17, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
}
.commitment-box h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.commitment-box p {
  margin: 0;
  font-size: 12px;
  opacity: 0.78;
}
.footer-main {
  padding: 52px 0 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; opacity: 0.84; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  background: rgba(0, 0, 0, 0.26);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 12px;
  color: rgba(246, 241, 232, 0.65);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 11px;
  border-radius: 999px;
  color: rgba(246, 241, 232, 0.85);
}

.table-clean {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-clean th, .table-clean td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(7,17,31,0.08);
}

/* Tableau de bord — menu vertical à gauche */
.admin-shell {
  min-height: 100vh;
  display: flex;
  background: #efe8da;
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--cream);
}
.admin-nav-link:hover { background: rgba(255,255,255,0.1); }
.admin-nav-link.active { background: var(--gold); color: var(--navy); font-weight: 600; }
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
