/* =========================
   VARIABLES & RESET
   ========================= */
:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-section: #020617;
  --bg-soft: #020617;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #22c55e;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.3);
  --danger: #f97373;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   LAYOUT GLOBAL
   ========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 3rem 0;
}

h1,
h2 {
  font-weight: 700;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

/* =========================
   HEADER
   ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.15rem;
  color: var(--primary);
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(31, 41, 55, 0.9);
}

.cart-icon {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

/* =========================
   HERO
   ========================= */
.hero {
  padding: 4rem 0 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  margin-bottom: 1.6rem;
  max-width: 480px;
}

.hero-image {
  height: 240px;
  border-radius: 20px;
  background-image:
    radial-gradient(circle at 10% 20%, #38bdf8 0, transparent 55%),
    radial-gradient(circle at 80% 20%, #22c55e 0, transparent 55%),
    radial-gradient(circle at 50% 85%, #f97316 0, transparent 60%);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 0 45px rgba(37, 99, 235, 0.6);
}

/* =========================
   BOUTONS
   ========================= */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.55);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 32px rgba(37, 99, 235, 0.75);
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.4);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* =========================
   SECTION PRODUITS
   ========================= */
.products-section {
  background: rgba(15, 23, 42, 0.9);
}

.products-section h2 {
  margin-bottom: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.product-card {
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  height: 350px;              /* un peu plus haut si tu veux plus de place */
  border-radius: 12px;
  margin-bottom: 0.9rem;
  background-size: contain;   /* affiche l’image entière */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #020617;  /* fond neutre derrière l’image */
}


.product-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 0.5rem;
}

.product-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

/* =========================
   PANIER
   ========================= */
.cart-section {
  background: rgba(15, 23, 42, 1);
}

.cart-section h2 {
  margin-bottom: 1rem;
}

#cart-items {
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.8rem 1rem;
  max-height: 260px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  font-size: 0.9rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item strong {
  font-weight: 600;
}

.cart-item span {
  margin-right: 0.35rem;
}

.cart-item button {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 0.15rem;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.cart-summary div {
  font-weight: 600;
}

.cart-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* =========================
   À PROPOS
   ========================= */
.about-section p {
  max-width: 700px;
  color: var(--muted);
}

/* =========================
   CONTACT
   ========================= */
.contact-section {
  background: rgba(15, 23, 42, 0.95);
}

.contact-form {
  max-width: 520px;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.9rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
}

/* =========================
   FOOTER
   ========================= */
.footer {
  border-top: 1px solid var(--border);
  background: #020617;
  padding: 1rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* =========================
   MODAL TAILLE
   ========================= */
.size-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.size-modal-box {
  background: #020617;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.4rem 1.6rem;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.size-modal-box h3 {
  margin-bottom: 0.4rem;
}

.size-modal-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.size-buttons button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.size-buttons button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* =========================
   FICHE PRODUIT
   ========================= */
.product-page {
  padding: 3rem 0;
}

.product-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.product-page-images img#main-product-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.product-page-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.product-page-thumbs img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-page-thumbs img.active {
  border-color: var(--primary);
}

.product-page-info h1 {
  margin-bottom: 0.4rem;
}

.product-page-price {
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.product-page-desc {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.product-page-option {
  margin-bottom: 1.2rem;
}

.product-page-option h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.color-buttons,
.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-buttons button,
.size-buttons button {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.color-buttons button.active,
.size-buttons button.active {
  background: var(--primary);
  border-color: var(--primary);
}

.size-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-image {
    display: none;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .cart-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  #cart-items {
    max-height: none;
  }

  .product-page-grid {
    grid-template-columns: 1fr;
  }
}

.gender-filters {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gender-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #020617;
  color: var(--text);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.gender-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

