@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

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

:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a26;
  --accent: #6c63ff;
  --accent2: #ff6584;
  --accent-glow: rgba(108,99,255,0.3);
  --text: #f0f0f5;
  --text2: #9090a8;
  --border: #2a2a3a;
  --card: #16161f;
  --success: #00d4aa;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(10,10,15,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.6rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text2); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.cart-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: white; border: none;
  padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 600;
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.cart-btn:hover { background: #5a52e0; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.cart-count {
  background: var(--accent2); color: white;
  border-radius: 50%; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.hamburger { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 0.4rem 0.7rem; border-radius: 8px; cursor: pointer; font-size: 1.1rem; }

/* ── HERO ── */
.hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 5%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.15) 0%, transparent 70%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width=60 height=60 viewBox=0 0 60 60 xmlns=http://www.w3.org/2000/svg%3E%3Cg fill=none fill-rule=evenodd%3E%3Cg fill=%236c63ff fill-opacity=0.03%3E%3Ccircle cx=30 cy=30 r=2/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { max-width: 800px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3);
  color: var(--accent); padding: 0.4rem 1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.2rem; color: var(--text2); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: white; padding: 1rem 2rem;
  border-radius: 50px; text-decoration: none; font-weight: 700;
  font-size: 1rem; transition: all 0.2s; border: none; cursor: pointer;
  box-shadow: 0 4px 30px var(--accent-glow);
}
.btn-primary:hover { background: #5a52e0; transform: translateY(-2px); box-shadow: 0 8px 40px var(--accent-glow); }
.btn-secondary {
  background: transparent; color: var(--text); padding: 1rem 2rem;
  border-radius: 50px; text-decoration: none; font-weight: 600;
  font-size: 1rem; transition: all 0.2s; border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text2); }

/* ── SECTIONS ── */
section { padding: 5rem 5%; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 0.5rem; }
.section-header p { color: var(--text2); font-size: 1.05rem; }

/* ── FEATURES ── */
.features { background: var(--bg2); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text2); font-size: 0.9rem; }

/* ── PRODUCTS GRID ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all 0.3s;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(108,99,255,0.4); }
.product-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--accent2); color: white; padding: 0.3rem 0.7rem;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.product-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 1.2rem; }
.product-category { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.product-desc { font-size: 0.85rem; color: var(--text2); margin-bottom: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.stars { color: #ffd700; font-size: 0.85rem; }
.rating-count { font-size: 0.8rem; color: var(--text2); }
.product-price { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.price-current { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.price-original { font-size: 0.9rem; color: var(--text2); text-decoration: line-through; }
.add-to-cart {
  width: 100%; background: var(--accent); color: white; border: none;
  padding: 0.8rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s;
}
.add-to-cart:hover { background: #5a52e0; transform: translateY(-1px); }

/* ── CATALOGUE FILTERS ── */
.catalogue-header { padding: 3rem 5% 1rem; }
.catalogue-header h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.filters { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.filter-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--text2);
  padding: 0.5rem 1.2rem; border-radius: 50px; cursor: pointer;
  font-size: 0.9rem; font-weight: 500; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── PRODUCT DETAIL ── */
.product-detail { max-width: 1100px; margin: 0 auto; padding: 3rem 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.product-detail-img { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); height: 400px; display: flex; align-items: center; justify-content: center; font-size: 8rem; }
.product-detail-info h1 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.product-detail-price { font-size: 2.5rem; font-weight: 900; color: var(--accent); margin-bottom: 0.5rem; }
.product-detail-original { font-size: 1.1rem; color: var(--text2); text-decoration: line-through; margin-bottom: 1.5rem; }
.qty-selector { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.qty-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; transition: all 0.2s; }
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-input { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 60px; height: 40px; border-radius: 8px; text-align: center; font-size: 1rem; font-weight: 600; }

/* ── CART SIDEBAR ── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(4px); }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; right: -420px; top: 0; width: 420px; height: 100vh;
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 2000; transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.cart-header h2 { font-size: 1.2rem; font-weight: 700; }
.close-cart { background: none; border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: all 0.2s; }
.close-cart:hover { border-color: var(--accent2); color: var(--accent2); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem; background: var(--card); border-radius: 12px; margin-bottom: 0.8rem; border: 1px solid var(--border); }
.cart-item-emoji { font-size: 2.5rem; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--bg3); border-radius: 10px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.cart-item-price { color: var(--accent); font-weight: 700; }
.cart-item-remove { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1.1rem; padding: 0.2rem; transition: color 0.2s; }
.cart-item-remove:hover { color: var(--accent2); }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text2); }
.cart-empty-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; }
.checkout-btn { width: 100%; background: var(--accent); color: white; border: none; padding: 1rem; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.checkout-btn:hover { background: #5a52e0; transform: translateY(-1px); }

/* ── CHECKOUT ── */
.checkout-page { max-width: 1000px; margin: 0 auto; padding: 3rem 5%; display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.checkout-form h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text2); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  color: var(--text); padding: 0.8rem 1rem; border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.order-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.order-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.summary-item { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.summary-total { display: flex; justify-content: space-between; padding: 1rem 0 0; font-size: 1.1rem; font-weight: 800; color: var(--accent); }
.place-order-btn { width: 100%; background: var(--success); color: #0a0a0f; border: none; padding: 1rem; border-radius: 12px; font-weight: 800; font-size: 1rem; cursor: pointer; margin-top: 1.5rem; transition: all 0.2s; }
.place-order-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,170,0.3); }

/* ── CONTACT ── */
.contact-page { max-width: 900px; margin: 0 auto; padding: 3rem 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { color: var(--text2); margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon { font-size: 1.5rem; width: 50px; height: 50px; background: rgba(108,99,255,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item h4 { font-weight: 600; margin-bottom: 0.2rem; }
.contact-item p { color: var(--text2); font-size: 0.9rem; margin: 0; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.contact-form h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.submit-btn { width: 100%; background: var(--accent); color: white; border: none; padding: 0.9rem; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s; margin-top: 0.5rem; }
.submit-btn:hover { background: #5a52e0; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--card); border: 1px solid var(--accent);
  color: var(--text); padding: 1rem 1.5rem; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem;
  transform: translateY(100px); opacity: 0; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── FOOTER ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { font-size: 1.4rem; display: inline-block; margin-bottom: 1rem; }
.footer-brand p { color: var(--text2); font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--text2); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border); color: var(--text2); font-size: 0.85rem; }

/* ── LEGAL PAGES ── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 3rem 5%; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.legal-page .date { color: var(--text2); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.8rem; color: var(--accent); }
.legal-page p, .legal-page li { color: var(--text2); line-height: 1.8; margin-bottom: 0.8rem; }
.legal-page ul { padding-left: 1.5rem; }

/* ── CONFIRMATION ── */
.confirmation { max-width: 600px; margin: 5rem auto; padding: 0 5%; text-align: center; }
.confirmation-icon { font-size: 5rem; display: block; margin-bottom: 1.5rem; }
.confirmation h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.confirmation p { color: var(--text2); margin-bottom: 2rem; }
.order-number { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.order-number span { color: var(--accent); font-weight: 700; font-size: 1.2rem; }

/* ── ADMIN ── */
.admin-page { max-width: 1200px; margin: 0 auto; padding: 2rem 5%; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.8rem; font-weight: 800; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.admin-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.admin-stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.admin-stat-label { color: var(--text2); font-size: 0.85rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.admin-table th { background: var(--bg3); padding: 1rem; text-align: left; font-size: 0.85rem; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table tr:last-child td { border-bottom: none; }
.status-badge { padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-pending { background: rgba(255,193,7,0.15); color: #ffc107; }
.status-paid { background: rgba(0,212,170,0.15); color: var(--success); }
.status-shipped { background: rgba(108,99,255,0.15); color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .checkout-page { grid-template-columns: 1fr; }
  .contact-page { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
}

/* ── SECTION TITLE ── */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 0.5rem; }
.section-title p { color: var(--text2); font-size: 1.05rem; }

/* ── REVIEWS ── */
.trust-section { padding: 5rem 5%; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all 0.3s; }
.review-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.review-stars { color: #ffd700; font-size: 1.2rem; margin-bottom: 1rem; }
.review-card p { color: var(--text2); font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.reviewer { font-weight: 600; font-size: 0.9rem; color: var(--accent); }

/* ── BADGE PROMO ── */
.badge-promo {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--accent2); color: white; padding: 0.3rem 0.7rem;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}

/* ── CHECKOUT LAYOUT ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; max-width: 1100px; margin: 0 auto; padding: 0 5% 4rem; }
.checkout-form h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ── RESPONSIVE PANIER & MOBILE ── */
@media (max-width: 768px) {
  /* Nav mobile */
  .nav-links { display: none; }
  .hamburger { display: block; }
  nav { padding: 0 4%; }

  /* Hero mobile */
  .hero { min-height: 70vh; padding: 3rem 4%; }
  .hero h1 { font-size: 2rem; letter-spacing: -1px; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }

  /* Panier sidebar FULL WIDTH sur mobile */
  .cart-sidebar {
    width: 100vw !important;
    right: -100vw !important;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .cart-sidebar.open { right: 0 !important; }

  /* Items panier mobile */
  .cart-item { padding: 0.8rem; gap: 0.8rem; }
  .cart-item-img img { width: 50px !important; height: 50px !important; }
  .cart-item-name { font-size: 0.85rem; }
  .cart-item-qty { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }
  .cart-item-qty .qty-btn { width: 28px; height: 28px; font-size: 0.9rem; padding: 0; }

  /* Grille produits mobile */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-img { height: 160px; }
  .product-name { font-size: 0.9rem; }
  .price-current { font-size: 1.1rem; }
  .add-to-cart { padding: 0.7rem; font-size: 0.85rem; }

  /* Checkout mobile */
  .checkout-layout { grid-template-columns: 1fr !important; }

  /* Product detail mobile */
  .product-detail { grid-template-columns: 1fr !important; gap: 2rem; padding: 2rem 4%; }
  .product-detail-img { height: 280px; }

  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2rem; }

  /* Features mobile */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Catalogue header mobile */
  .catalogue-header { padding: 2rem 4% 1rem; }
  .catalogue-header h1 { font-size: 1.8rem; }
  .filters { gap: 0.5rem; }
  .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .cart-header h2 { font-size: 1rem; }
}

/* ── CHECKOUT LAYOUT ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 5%;
}
.checkout-form-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.checkout-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; height: fit-content; position: sticky; top: 90px; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text2); margin-bottom: 0.4rem; }
.form-group input, .form-group select { width: 100%; background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.95rem; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.summary-item { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.summary-total { display: flex; justify-content: space-between; padding: 1rem 0 0; font-weight: 800; font-size: 1.1rem; }
.pay-btn { width: 100%; background: var(--accent); color: white; border: none; padding: 1rem; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 1rem; transition: all 0.2s; }
.pay-btn:hover { background: #5a52e0; transform: translateY(-1px); }
#stripe-card-element { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin-top: 0.4rem; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--card); border: 1px solid var(--accent); color: var(--text); padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 600; z-index: 9999; transition: transform 0.3s; white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── REVIEWS ── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.review-stars { color: #ffd700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.review-card p { color: var(--text2); font-style: italic; margin-bottom: 1rem; }
.reviewer { font-weight: 600; font-size: 0.9rem; color: var(--accent); }

/* ── FOOTER ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 5% 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text2); font-size: 0.9rem; margin-top: 0.8rem; max-width: 250px; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text2); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text2); font-size: 0.85rem; flex-wrap: wrap; gap: 0.5rem; }

/* ── SECTION TITLE ── */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 0.5rem; }
.section-title p { color: var(--text2); font-size: 1rem; }

/* ── CHECKOUT BTN ── */
.checkout-btn { width: 100%; background: var(--accent); color: white; border: none; padding: 1rem; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.checkout-btn:hover { background: #5a52e0; }

/* ── CART ITEM QTY ── */
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-qty .qty-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cart-item-qty .qty-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   CHECKOUT — REFONTE COMPLÈTE
══════════════════════════════════════ */
.checkout-wrapper { max-width: 1100px; margin: 0 auto; padding: 3rem 5% 5rem; }
.checkout-header { text-align: center; margin-bottom: 3rem; }
.checkout-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.checkout-header p { color: var(--text2); font-size: 1rem; }

.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }

.checkout-left { display: flex; flex-direction: column; gap: 1.5rem; }

.checkout-section { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.checkout-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

.field-full { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field-full label { font-size: 0.85rem; font-weight: 600; color: var(--text2); margin-bottom: 0.4rem; }
.field-full input, .field-full select {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); padding: 0.85rem 1rem; border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s;
  box-sizing: border-box;
}
.field-full input:focus, .field-full select:focus { outline: none; border-color: var(--accent); }

.field-half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stripe-wrapper { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; }
.stripe-error { color: #ff6584; font-size: 0.85rem; margin-top: 0.5rem; min-height: 1.2rem; }
.secure-badge { font-size: 0.8rem; color: var(--text2); margin-top: 1rem; text-align: center; }

.pay-btn {
  width: 100%; background: linear-gradient(135deg, var(--accent), #00d4aa);
  color: white; border: none; padding: 1.1rem; border-radius: 14px;
  font-size: 1.1rem; font-weight: 800; cursor: pointer;
  transition: all 0.3s; letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.5); }
.pay-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* Récap commande */
.checkout-right { position: sticky; top: 90px; }
.summary-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.summary-box h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.summary-item { display: flex; justify-content: space-between; padding: 0.6rem 0; font-size: 0.9rem; color: var(--text2); border-bottom: 1px solid rgba(255,255,255,0.05); }
.summary-line { display: flex; justify-content: space-between; padding: 0.6rem 0; font-size: 0.9rem; color: var(--text2); }
.summary-total { display: flex; justify-content: space-between; padding: 1rem 0 0; font-size: 1.2rem; font-weight: 800; color: var(--accent); border-top: 1px solid var(--border); margin-top: 0.5rem; }
.summary-info { margin-top: 1.5rem; font-size: 0.82rem; color: var(--text2); line-height: 2; background: var(--bg); border-radius: 10px; padding: 1rem; }

/* Responsive checkout */
@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr !important; }
  .checkout-right { position: static; }
  .field-half { grid-template-columns: 1fr !important; }
  .checkout-wrapper { padding: 2rem 4% 4rem; }
}
