/* ==========================================================================
   LNAYATECH - Design premium inspire d'Amazon
   Marketplace Technologique Burkina Faso
   Aucun emoji : icones SVG et styles CSS uniquement
   ========================================================================== */

:root {
  --amz-dark: #131921;
  --amz-nav: #232f3e;
  --amz-nav-hover: #37475a;
  --amz-orange: #febd69;
  --amz-orange-hover: #f3a847;
  --amz-yellow: #ffd814;
  --amz-yellow-hover: #f7ca00;
  --amz-link: #007185;
  --amz-link-hover: #c7511f;
  --amz-price: #0f1111;
  --amz-red: #b12704;
  --amz-green: #007600;
  --amz-border: #d5d9d9;
  --amz-border-light: #e7e7e7;
  --amz-bg: #f0f2f2;
  --amz-surface: #ffffff;
  --amz-text: #0f1111;
  --amz-muted: #565959;
  --amz-secondary: #767676;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.16);
  --transition: 0.18s ease;
  --max-width: 1500px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background: var(--amz-bg);
  color: var(--amz-text);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 2.75rem 0;
}

.section-white {
  background: var(--amz-surface);
}

.section-alt {
  background: #f7f8f8;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.flash-countdown {
  background: var(--amz-orange);
  color: #131921;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amz-text);
  letter-spacing: -0.01em;
}

.section-link {
  color: var(--amz-link);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--amz-link-hover);
  text-decoration: underline;
}

/* ---------- Bandeau promotionnel ---------- */
.promo-bar {
  background: linear-gradient(90deg, #0f3d65 0%, #1d4ed8 55%, #0f3d65 100%);
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  white-space: nowrap;
}

#announcementsBar {
  min-height: 2.5rem;
  position: relative;
}

#announcementsBar > div {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

#announcementsBar > div > span {
  padding-right: 3rem;
  white-space: nowrap;
}

#announcementsBar > div:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.promo-bar strong {
  color: var(--amz-orange);
}

.promo-sep {
  opacity: 0.5;
  margin: 0 0.6rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  background: var(--amz-dark);
  color: #fff;
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
}

.brand-admin {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #febd69;
  border-left: 1px solid #4a5563;
  padding-left: 0.5rem;
}

.auth-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.brand:hover {
  border-color: #fff;
}

/* ---------- Recherche ---------- */
.search-form {
  flex: 1;
  display: flex;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  min-width: 180px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  color: #111;
}

.search-btn {
  width: 50px;
  background: var(--amz-orange);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.search-btn:hover {
  background: var(--amz-orange-hover);
}

/* ---------- Liens topbar ---------- */
.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.topbar-link {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}

.topbar-link:hover {
  border-color: #fff;
}

.topbar-link .line1 {
  font-size: 0.72rem;
  color: #ccc;
}

.topbar-link .line2 {
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-link {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
}

.cart-link:hover {
  border-color: #fff;
}

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--amz-orange);
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-text {
  font-size: 0.88rem;
  font-weight: 700;
  padding-bottom: 2px;
}

.mobile-menu-btn {
  display: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  border: 1px solid #566;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ---------- Subnav ---------- */
.subnav {
  background: var(--amz-nav);
  color: #fff;
}

.subnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.3rem 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}

.subnav a:hover {
  border-color: #fff;
}

.subnav-all {
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, #1e3a5f 0%, #0f1b2d 55%, #0a1220 100%);
  color: #fff;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

/* Sans publicité : l'encart disparaît et le texte occupe toute la largeur */
.hero-inner.no-promo {
  grid-template-columns: 1fr;
}

.hero-inner.no-promo .hero-content {
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amz-orange);
  margin-bottom: 0.9rem;
}

.hero-content h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.6px;
}

.hero-content p {
  font-size: 1.02rem;
  color: #c9d1d9;
  margin-bottom: 1.6rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.9rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.hero-stat .label {
  font-size: 0.78rem;
  color: #9aa6b2;
  margin-top: 0.15rem;
}

.hero-promo {
  position: relative;
  background: linear-gradient(160deg, #febd69 0%, #f3a847 100%);
  color: #131921;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

/* Pas de publicité active : l'encart n'est pas affiché du tout */
.hero-promo[hidden] {
  display: none !important;
}

/* Les éléments masqués par JavaScript (publicité sans visuel, sans texte...) */
.hero-promo [hidden] {
  display: none !important;
}

.promo-badge {
  display: inline-block;
  background: #131921;
  color: var(--amz-orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.promo-visual {
  height: 110px;
  margin: 0.9rem 0 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #131921 0%, #232f3e 100%);
  color: var(--amz-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

/* Visuel publicitaire : image, vidéo ou iframe (Google Ads, partenaire…) */
.promo-media {
  height: 170px;
  margin: 0.9rem 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1620;
}

.promo-media img,
.promo-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.hero-promo h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.hero-promo p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
  color: #3a2a12;
}

.hero-promo .btn-amz {
  background: #131921;
  border-color: #131921;
  color: #fff;
}

.hero-promo .btn-amz:hover {
  background: #000;
}

/* ---------- Benefices ---------- */
.benefits {
  max-width: var(--max-width);
  margin: -2.25rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 5;
}

.benefits-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.benefit {
  background: var(--amz-surface);
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef4fb;
  color: #0f3d65;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.benefit strong {
  display: block;
  font-size: 0.9rem;
  color: var(--amz-text);
}

.benefit span {
  font-size: 0.76rem;
  color: var(--amz-muted);
}

/* ---------- Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--amz-surface);
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--amz-border);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amz-text);
}

.category-count {
  font-size: 0.75rem;
  color: var(--amz-muted);
  margin-top: -0.45rem;
}

.category-visual {
  height: 110px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #232f3e, #4a5a6a);
}

.category-visual.has-image {
  background-size: cover;
  background-position: center;
}

.category-visual span {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.category-card:nth-child(2) .category-visual {
  background: linear-gradient(135deg, #0f3d65, #1d4ed8);
}

.category-card:nth-child(3) .category-visual {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.category-card:nth-child(4) .category-visual {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.category-card:nth-child(5) .category-visual {
  background: linear-gradient(135deg, #0f766e, #0d9488);
}

.category-card:nth-child(6) .category-visual {
  background: linear-gradient(135deg, #9d174d, #be185d);
}

.category-link {
  color: var(--amz-link);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: auto;
}

.category-link:hover {
  color: var(--amz-link-hover);
  text-decoration: underline;
}

/* ---------- Produits ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--amz-border);
}

.product-image {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  color: var(--amz-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: var(--amz-link-hover);
}

.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--amz-link);
  margin-bottom: 0.35rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.rating-badge {
  background: var(--amz-link);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.rating-text {
  color: var(--amz-muted);
  font-size: 0.78rem;
}

.product-price {
  color: var(--amz-price);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.price-whole {
  font-size: 1.35rem;
  font-weight: 700;
}

.price-currency {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amz-price);
}

.product-delivery {
  color: var(--amz-green);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-stock {
  font-size: 0.78rem;
  color: var(--amz-muted);
  margin-bottom: 0.75rem;
}

.product-stock.in {
  color: var(--amz-green);
  font-weight: 600;
}

.product-stock.out {
  color: var(--amz-red);
  font-weight: 700;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #e67a00;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  z-index: 2;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--amz-yellow);
  border-color: #fcd200;
  color: #0f1111;
}

.btn-primary:hover {
  background: var(--amz-yellow-hover);
}

.btn-outline {
  background: #fff;
  border-color: var(--amz-border);
  color: var(--amz-text);
}

.btn-outline:hover {
  background: #f7fafa;
}

.btn-success {
  background: var(--amz-yellow);
  border-color: #fcd200;
  color: #0f1111;
  font-weight: 600;
}

.btn-success:hover {
  background: var(--amz-yellow-hover);
}

.btn-danger {
  background: #fff;
  border-color: var(--amz-border);
  color: var(--amz-red);
}

.btn-danger:hover {
  background: #fdf3f2;
}

.btn-buy {
  background: var(--amz-orange);
  border: 1px solid #f0c14b;
  color: #0f1111;
  font-weight: 600;
}

.btn-buy:hover {
  background: var(--amz-orange-hover);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn-amz {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  background: var(--amz-yellow);
  border: 1px solid #fcd200;
  color: #0f1111;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background var(--transition);
}

.btn-amz:hover {
  background: var(--amz-yellow-hover);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success { background: #e7f4e4; color: var(--amz-green); }
.badge-warning { background: #fff4e5; color: #b26a00; }
.badge-danger { background: #fdf0ef; color: var(--amz-red); }
.badge-info { background: #e7f2f4; color: var(--amz-link); }

/* ---------- Page produits ---------- */
.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.filters-sidebar {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  min-width: 0;
}

.filters-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.filters-sidebar ul li {
  margin-bottom: 0.35rem;
}

.filter-link {
  color: var(--amz-text);
  font-size: 0.85rem;
  display: block;
  padding: 0.2rem 0;
}

.filter-link:hover,
.filter-link.active {
  color: var(--amz-link-hover);
  font-weight: 600;
}

.results-main {
  min-width: 0;
}

.results-bar {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.85rem;
  color: var(--amz-muted);
}

.results-count strong {
  color: var(--amz-text);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--amz-muted);
}

.sort-control select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--amz-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.85rem;
  color: var(--amz-text);
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  color: var(--amz-muted);
}

.empty-state .btn {
  margin-top: 1rem;
}

/* ---------- Fiche produit ---------- */
.product-detail-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 390px 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 110px;
}

.detail-main-image {
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-main-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.detail-info h1 {
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--amz-text);
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--amz-border-light);
}

.detail-price-block {
  margin: 0.75rem 0;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--amz-price);
}

.detail-price .price-currency {
  font-size: 0.85rem;
}

.detail-meta {
  font-size: 0.85rem;
  color: var(--amz-muted);
  margin-top: 0.35rem;
}

.detail-desc {
  color: var(--amz-text);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--amz-border-light);
}

.detail-stock {
  font-size: 1rem;
  margin: 0.75rem 0;
}

.stock-ok { color: var(--amz-green); font-weight: 700; }
.stock-low { color: #b26a00; font-weight: 700; }
.stock-out { color: var(--amz-red); font-weight: 700; }

.detail-bullets {
  margin: 1rem 0;
  padding-left: 1.1rem;
  list-style: disc;
  font-size: 0.9rem;
  color: var(--amz-text);
}

.detail-bullets li {
  margin-bottom: 0.35rem;
}

.buy-box {
  border: 1px solid var(--amz-border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  background: #fff;
  position: sticky;
  top: 110px;
}

.buy-box-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.buy-box-delivery {
  font-size: 0.82rem;
  color: var(--amz-muted);
  margin-bottom: 0.75rem;
}

.buy-box-delivery strong {
  color: var(--amz-text);
}

.buy-box-stock {
  color: var(--amz-green);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.buy-box-stock.out {
  color: var(--amz-red);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.qty-row label {
  font-size: 0.85rem;
  color: var(--amz-text);
}

.qty-row select,
.qty-row input {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--amz-border);
  border-radius: var(--radius-sm);
  background: #f0f2f2;
  font-size: 0.9rem;
}

.buy-box .btn-amz {
  margin-bottom: 0.5rem;
}

.buy-box-secure {
  font-size: 0.78rem;
  color: var(--amz-muted);
  text-align: center;
}

/* ---------- Panier ---------- */
.cart-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 1.5rem;
  align-items: start;
}

.cart-card {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
}

.cart-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--amz-border-light);
}

.cart-card-header h1 {
  font-size: 1.75rem;
  font-weight: 400;
}

.cart-price-label {
  font-size: 0.85rem;
  color: var(--amz-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--amz-border-light);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.cart-item-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--amz-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.cart-item-title:hover {
  color: var(--amz-link-hover);
}

.cart-item-stock {
  color: var(--amz-green);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cart-item-shipping {
  color: var(--amz-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--amz-muted);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--amz-border);
  border-radius: 100px;
  background: #f0f2f2;
  overflow: hidden;
}

.qty-control button {
  width: 30px;
  height: 28px;
  background: #f0f2f2;
  color: var(--amz-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.qty-control button:hover {
  background: #e3e6e6;
}

.qty-control span {
  min-width: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--amz-text);
}

.cart-sep {
  color: var(--amz-border);
}

.remove-item {
  color: var(--amz-link);
  font-size: 0.82rem;
}

.remove-item:hover {
  color: var(--amz-link-hover);
  text-decoration: underline;
}

.cart-item-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amz-price);
  white-space: nowrap;
}

.cart-card-footer {
  text-align: right;
  padding-top: 1rem;
  border-top: 1px solid var(--amz-border-light);
  font-size: 1.05rem;
  color: var(--amz-text);
}

.cart-card-footer strong {
  font-size: 1.15rem;
}

.subtotal-box {
  background: #fff;
  border: 1px solid var(--amz-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: sticky;
  top: 110px;
}

.subtotal-line {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--amz-text);
}

.subtotal-line strong {
  font-weight: 700;
}

.subtotal-box .btn-amz {
  margin-bottom: 0.5rem;
}

.subtotal-note {
  font-size: 0.78rem;
  color: var(--amz-muted);
  text-align: center;
}

/* ---------- Checkout ---------- */
.checkout-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.checkout-card {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.checkout-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--amz-border-light);
}

.order-summary {
  background: #fff;
  border: 1px solid var(--amz-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: sticky;
  top: 110px;
}

.order-summary h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--amz-border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--amz-text);
}

.summary-row.total {
  border-top: 1px solid var(--amz-border-light);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ---------- Formulaires ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-hint {
  display: block;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--amz-muted);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amz-text);
}

.form-group input,
.form-group select {
  padding: 0.55rem 0.7rem;
  border: 1px solid #888c8c;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.92rem;
  color: var(--amz-text);
  box-shadow: inset 0 1px 2px rgba(15, 17, 17, 0.12);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #e77600;
  box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.25);
}

.form-group input:disabled {
  background: #f3f3f3;
  color: #6f7373;
}

/* ---------- Mot de passe : afficher / masquer ---------- */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--amz-muted);
  transition: background var(--transition), color var(--transition);
}

.password-toggle:hover {
  background: #eef1f1;
  color: var(--amz-text);
}

.password-toggle:focus-visible {
  outline: 2px solid #e77600;
  outline-offset: 1px;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.password-toggle .password-eye-hide {
  display: none;
}

.password-toggle.is-visible .password-eye-show {
  display: none;
}

.password-toggle.is-visible .password-eye-hide {
  display: block;
}

/* ---------- Alertes ---------- */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  border: 1px solid;
}

.alert-error {
  background: #fff;
  border-color: #cc0c39;
  color: #cc0c39;
}

.alert-success {
  background: #fff;
  border-color: #067d62;
  color: #067d62;
}

.alert-info {
  background: #fff;
  border-color: var(--amz-link);
  color: var(--amz-link);
}

/* ---------- Auth ---------- */
.auth-shell {
  max-width: 380px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

/* ---------- Version web : connexion et inscription côte à côte ---------- */
@media (min-width: 768px) {
  .auth-shell {
    max-width: 940px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
  }

  .auth-brand,
  .auth-new {
    grid-column: 1 / -1;
  }

  /* Le séparateur « Nouveau chez Lanayatech ? » n'a plus de sens côte à côte */
  .auth-divider {
    display: none;
  }

  .auth-shell .auth-box {
    margin-bottom: 0;
  }
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
}

.auth-box h2 {
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.auth-box .form-group {
  margin-bottom: 0.9rem;
}

.auth-box .btn {
  border-radius: 100px;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.25rem 0 0.75rem;
  color: var(--amz-secondary);
  font-size: 0.78rem;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e7e7e7;
}

.auth-divider span {
  position: relative;
  background: var(--amz-bg);
  padding: 0 0.5rem;
}

.auth-new {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 1rem 1.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--amz-text);
}

.auth-new a {
  color: var(--amz-link);
}

.auth-new a:hover {
  color: var(--amz-link-hover);
  text-decoration: underline;
}

/* ---------- Tableaux ---------- */
.table-container {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--amz-border-light);
  font-size: 0.86rem;
}

th {
  background: #f7f8f8;
  font-weight: 700;
  color: var(--amz-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #fafafa;
}

/* ---------- Admin ---------- */
.admin-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.stat-card .value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--amz-text);
}

.stat-card .label {
  font-size: 0.82rem;
  color: var(--amz-muted);
  margin-top: 0.25rem;
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.admin-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.admin-form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-form-row input {
  padding: 0.55rem 0.7rem;
  border: 1px solid #888c8c;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* ---------- Compte ---------- */
.account-card {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.account-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--amz-border-light);
}

/* Tableau "Mes commandes" (page compte) */
.account-orders-number,
.account-orders-action {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.account-orders-number {
  color: #565959;
}

.order-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f1f3f4;
  color: #0f1111;
  font-size: 0.8rem;
  font-weight: 700;
}

.order-cancel-btn {
  padding: 0.35rem 0.85rem;
  border: 1px solid #f20d16;
  border-radius: 999px;
  background: #fff;
  color: #f20d16;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.order-cancel-btn:hover:not(:disabled) {
  background: #f20d16;
  color: #fff;
}

.order-cancel-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.order-action-none {
  color: #8a8f94;
  font-size: 0.8rem;
}

.account-orders-notice {
  margin: 0 0 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
}

.account-orders-notice.is-success {
  background: #e7f4e4;
  color: #067d62;
}

.account-orders-notice.is-error {
  background: #fdf0ef;
  color: var(--amz-red);
}

/* Invitation a se connecter (page compte) */
.account-guest p {
  margin: 0 0 0.9rem;
  color: #565959;
}

.account-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--amz-yellow);
  border-color: #fcd200;
  color: #0f1111;
}

.account-login-btn:hover {
  background: var(--amz-yellow-hover);
  color: #0f1111;
}

.account-guest-hint {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #565959;
}

.account-guest-hint a {
  color: var(--amz-link);
  font-weight: 600;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, #131921 0%, #232f3e 100%);
  color: #fff;
  padding: 2.75rem 0;
}

.newsletter-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.newsletter p {
  color: #c9d1d9;
  font-size: 0.9rem;
}

.newsletter-action {
  flex: 1;
  max-width: 470px;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #3a4553;
  background: #fff;
  font-size: 0.9rem;
  color: #111;
  outline: none;
}

.newsletter-form .btn {
  white-space: nowrap;
}

.newsletter-msg {
  font-size: 0.82rem;
  color: var(--amz-orange);
  margin-top: 0.5rem;
  min-height: 1.1em;
}

/* ---------- Footer ---------- */
.footer-top {
  display: block;
  width: 100%;
  background: var(--amz-nav-hover);
  color: #fff;
  text-align: center;
  padding: 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.footer-top:hover {
  background: #485769;
}

.footer-main {
  background: var(--amz-nav);
  color: #ddd;
  padding: 2.75rem 1.5rem 2rem;
}

.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.footer-col a,
.footer-col li,
.footer-col span {
  color: #ddd;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-logo {
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  display: block;
  height: 34px;
  width: auto;
}

.footer-about p {
  max-width: 280px;
  line-height: 1.55;
}

.footer-payments {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #3a4553;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #b0b8bf;
}

.pay-chip {
  border: 1px solid #4a5563;
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  color: #e2e8f0;
  font-size: 0.75rem;
}

.footer-bottom {
  background: #131a22;
  color: #999;
  text-align: center;
  padding: 1.75rem 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.footer-brand-img {
  display: block;
  height: 26px;
  width: auto;
}

.footer-bottom p {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.6rem;
}

.footer-legal a {
  color: #999;
  font-size: 0.78rem;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Réseaux sociaux (footer) ---------- */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0.15rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #232f3e;
  color: #e6e6e6;
  border: 1px solid #37475a;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--amz-orange);
  border-color: var(--amz-orange);
  color: #131921;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.link-primary { color: var(--amz-link); }
.link-primary:hover { color: var(--amz-link-hover); text-decoration: underline; }

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ---------- Page contact ---------- */
.contact-main {
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.contact-intro {
  margin-bottom: 1.5rem;
}

.contact-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c45500;
  margin-bottom: 0.3rem;
}

.contact-lead {
  max-width: 640px;
  color: var(--amz-muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-side {
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--amz-border-light);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--amz-muted);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: grid;
  gap: 0.1rem;
}

.contact-list a {
  color: var(--amz-link);
  font-size: 0.92rem;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--amz-link-hover);
  text-decoration: underline;
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amz-muted);
}

.contact-list li > span:not(.contact-label) {
  font-size: 0.92rem;
}

.contact-optional {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--amz-muted);
}

.contact-submit {
  width: 100%;
  margin-top: 1.25rem;
}

.contact-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--amz-muted);
}

.contact-card-accent {
  background: #fffbf2;
  border-color: #f5d9a8;
}

.contact-card-muted {
  background: #f7f8f8;
  box-shadow: none;
}

.contact-mail-btn {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  word-break: break-word;
}

.contact-alert-link {
  display: inline-block;
  margin-left: 0.45rem;
  font-weight: 700;
  text-decoration: underline;
}

.form-group textarea {
  padding: 0.6rem 0.7rem;
  border: 1px solid #888c8c;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--amz-text);
  box-shadow: inset 0 1px 2px rgba(15, 17, 17, 0.12);
  resize: vertical;
  min-height: 120px;
}

.form-group textarea:focus {
  outline: none;
  border-color: #e77600;
  box-shadow: 0 0 0 3px rgba(228, 121, 17, 0.25);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .product-detail-layout {
    grid-template-columns: 340px 1fr;
  }
  .buy-box {
    grid-column: 1 / -1;
    position: static;
  }
  .footer-cols {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .topbar-link .line1 {
    display: none;
  }
  .benefits-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-shell {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    display: block;
    padding: 0.85rem 1rem;
  }
  .filters-sidebar h3 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  .filters-sidebar ul {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .filters-sidebar ul::-webkit-scrollbar {
    display: none;
  }
  .filters-sidebar ul li {
    margin: 0;
  }
  .filter-link {
    white-space: nowrap;
    border: 1px solid var(--amz-border);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }
  .filter-link.active {
    background: var(--amz-nav);
    border-color: var(--amz-nav);
    color: #fff;
  }
  .cart-layout,
  .checkout-shell {
    grid-template-columns: 1fr;
  }
  .subtotal-box,
  .order-summary {
    position: static;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
  }
  .search-form {
    order: 3;
    flex-basis: 100%;
    margin-top: 0.35rem;
  }
  .topbar-links .topbar-link {
    display: none;
  }
  .topbar-links {
    margin-left: auto;
  }
  .mobile-menu-btn {
    display: inline-flex;
    margin-left: 0.35rem;
  }
  .subnav {
    display: none;
  }
  .subnav.open {
    display: block;
  }
  .subnav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0.75rem;
  }
  .subnav a {
    border-bottom: 1px solid #3a4553;
    padding: 0.65rem 0.5rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 4rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-promo {
    justify-self: stretch;
    max-width: none;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-gallery {
    position: static;
  }
  .detail-main-image {
    height: 320px;
  }
  .cart-item {
    grid-template-columns: 120px 1fr;
  }
  .cart-item-image {
    width: 120px;
    height: 120px;
  }
  .cart-item-price {
    grid-column: 2;
    text-align: left;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .newsletter-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-action {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    height: 30px;
  }
  .cart-text {
    display: none;
  }
  .benefits-inner {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .product-card {
    padding: 0.7rem;
  }
  .product-image {
    height: 140px;
  }
  .product-title {
    font-size: 0.85rem;
  }
  .price-whole {
    font-size: 1.1rem;
  }
  .cart-item {
    grid-template-columns: 90px 1fr;
    gap: 0.75rem;
  }
  .cart-item-image {
    width: 90px;
    height: 90px;
  }
  .checkout-card,
  .cart-card {
    padding: 1rem;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 1.65rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .newsletter-form {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   Promotions et ventes flash
   -------------------------------------------------------------------------- */

.product-badge-flash {
  background: #c62828;
}

.product-badge-promo {
  background: #e67a00;
}

.product-badge-best {
  background: #0b6b3a;
}

.product-badge-top {
  background: #b91c1c;
}

.product-badge-popular {
  background: #1f4e79;
}

/* ---------- Partage d'un produit ---------- */
.product-share {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(15, 17, 17, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #232f3e;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.product-share:hover {
  background: #232f3e;
  color: #fff;
  transform: translateY(-1px);
}

.product-share svg {
  width: 15px;
  height: 15px;
  display: block;
}

.btn-share-product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--amz-border);
  border-radius: 100px;
  background: #fff;
  color: #232f3e;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.btn-share-product:hover {
  background: #f3f7f7;
  border-color: #b9c1c1;
}

.btn-share-product svg {
  flex: 0 0 auto;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 9999;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.1rem;
  border-radius: 100px;
  background: #131921;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.price-old {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--amz-muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: line-through;
}

.price-discount {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  background: #c62828;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.detail-price-old {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--amz-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: line-through;
}

.detail-sale-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  background: #c62828;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.detail-sale-badge.is-promo {
  background: #e67a00;
}

.buy-box-price .detail-price-old {
  font-size: 0.85rem;
}

.buy-box-price .detail-sale-badge {
  font-size: 0.65rem;
}

/* ---------- Page confidentialite ---------- */
.legal-main {
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.legal-intro {
  margin-bottom: 1.5rem;
}

.legal-updated {
  margin-top: 0.5rem;
  color: #8a8a8a;
  font-size: 0.82rem;
}

.legal-card {
  margin-bottom: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--amz-border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.legal-card h2 {
  margin-bottom: 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--amz-border-light);
  font-size: 1.08rem;
  font-weight: 700;
  color: #232f3e;
}

.legal-card p {
  margin-bottom: 0.7rem;
  color: #3f4646;
  font-size: 0.93rem;
  line-height: 1.65;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--amz-link);
  font-weight: 600;
}

.legal-card a:hover {
  color: var(--amz-link-hover);
  text-decoration: underline;
}

.legal-list {
  margin: 0 0 0.7rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal-list li {
  margin-bottom: 0.4rem;
  color: #3f4646;
  font-size: 0.93rem;
  line-height: 1.6;
}

.legal-list strong {
  color: #232f3e;
}

.legal-contact {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, #131921 0%, #232f3e 100%);
  color: #fff;
}

.legal-contact h2 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-contact p {
  margin-bottom: 1rem;
  font-size: 0.93rem;
  opacity: 0.9;
}

.legal-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.legal-contact-actions .btn {
  text-decoration: none;
}

.legal-contact-actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.legal-contact-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ==========================================================================
   PAGE COMPTE - Styles pour les onglets
   ========================================================================== */

.m-account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--amz-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.m-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amz-surface);
  color: var(--amz-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 2px solid var(--amz-red);
}

.m-account-hero strong {
  display: block;
  font-size: 1.25rem;
  color: var(--amz-text);
  margin-bottom: 0.25rem;
}

.m-account-hero span {
  font-size: 0.875rem;
  color: var(--amz-surface);
}

/* Onglets du compte */
.account-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--amz-border);
}

.account-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--amz-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.account-tab:hover {
  color: var(--amz-link);
}

.account-tab.active {
  color: var(--amz-red);
  border-bottom-color: var(--amz-red);
}

.account-tab svg {
  display: block;
  flex-shrink: 0;
}

/* Contenu des onglets */
.account-tab-content {
  display: none;
}

.account-tab-content.active {
  display: block;
}

/* Style pour les icones dans les titres des onglets */
.account-card h2 svg {
  vertical-align: middle;
  margin-right: 0.5rem;
}
