/* ============================================================
   Coach BBFIT - Design system (dark premium "performance lab")
   Accent rouge BBFIT. Thème dark verrouillé. Vanilla CSS.
   ============================================================ */

:root {
  /* Surfaces (off-black, jamais #000) */
  --bg:            #0a0a0c;
  --bg-elev:       #121216;
  --bg-elev-2:     #18181e;
  --surface:       #1c1c23;

  /* Texte */
  --text:          #f4f4f6;
  --text-muted:    #9a9aa6;
  --text-faint:    #6b6b76;

  /* Accent rouge BBFIT */
  --red:           #e50b00;
  --red-bright:    #ff2417;
  --red-deep:      #b00800;

  /* Lignes */
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);

  /* Rayons (échelle unique) */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* -------- Typo -------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  text-transform: uppercase;
}
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 56ch; }
.accent { color: var(--red); }

/* -------- Layout helpers -------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 140px); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

/* -------- Boutons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -12px var(--red);
}
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 14px 36px -10px var(--red); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--red); color: #fff; }

/* ============================================================
   Header / Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand b { color: var(--red); }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-elev);
    border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav.open .nav-links a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); width: 100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100dvh - 70px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-copy { max-width: 38rem; }
.hero h1 { margin: 1.1rem 0 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: clamp(380px, 64vh, 640px); object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  filter: saturate(1.05) contrast(1.03);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,12,0.55));
  pointer-events: none;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 28px; z-index: 2;
  background: var(--red); color: #fff; padding: 0.85rem 1.2rem;
  border-radius: var(--r); font-family: var(--font-display); font-weight: 800;
  line-height: 1; box-shadow: 0 18px 40px -16px var(--red);
}
.hero-badge span { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.85; letter-spacing: 0.1em; margin-top: 0.35rem; text-transform: uppercase; }
.hero-glow {
  position: absolute; z-index: -1; top: -10%; right: -5%;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(229,11,0,0.18), transparent 62%);
  pointer-events: none;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 2.5rem 1rem; }
  .hero-media { order: -1; }
  .hero-media img { height: 46vh; }
}

/* ============================================================
   Bandeau accroche
   ============================================================ */
.banner {
  border-block: 1px solid var(--line);
  background: var(--bg-elev);
}
.banner .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.banner p {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem); line-height: 1.12;
  letter-spacing: -0.02em; max-width: 22ch; margin-inline: auto; text-transform: uppercase;
}

/* ============================================================
   Steps (Comment ça marche)
   ============================================================ */
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-top: 0.9rem; }
.section-head p { margin-top: 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.step { position: relative; padding-top: 2.2rem; }
.step + .step::before {
  content: ""; position: absolute; left: -1rem; top: 3.4rem; bottom: 0; width: 1px; background: var(--line);
}
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.9rem;
  color: var(--red); letter-spacing: 0.1em; margin-bottom: 1rem;
}
.step-icon {
  width: 58px; height: 58px; object-fit: contain; margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--text-muted); font-size: 0.98rem; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 1.6rem 0; border-top: 1px solid var(--line); }
  .step + .step::before { display: none; }
}

/* ============================================================
   Split feature (À propos / méthode)
   ============================================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%; height: clamp(340px, 50vh, 560px); object-fit: cover;
  border-radius: var(--r-lg); border: 1px solid var(--line);
}
.split-copy h2 { margin: 0.9rem 0 1.2rem; }
.split-copy .lead { margin-bottom: 1.6rem; }
.feature-list { list-style: none; display: grid; gap: 1rem; margin-bottom: 2rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--text-muted); }
.feature-list svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.feature-list b { color: var(--text); font-weight: 700; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}

/* ============================================================
   Formules (pricing)
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); align-items: start; }
.plan {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan.featured {
  border-color: var(--red);
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 12%, var(--bg-elev)), var(--bg-elev));
  box-shadow: 0 30px 70px -40px var(--red);
}
.plan-tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 0.3rem 0.7rem; border-radius: var(--r-pill); margin-bottom: 1.1rem;
}
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-muted); margin: 0.4rem 0 1.4rem; }
.plan-icon { width: 46px; height: 46px; object-fit: contain; margin-bottom: 1.1rem; }
.plan ul { list-style: none; display: grid; gap: 0.8rem; margin-bottom: 1.8rem; }
.plan li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-muted); font-size: 0.97rem; }
.plan li svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; }

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

/* ============================================================
   Transformations (carrousel)
   ============================================================ */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 clamp(260px, 80vw, 380px); scroll-snap-align: start;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  position: relative; background: var(--bg-elev);
}
.slide img { width: 100%; height: 420px; object-fit: cover; }
.slide-cap { padding: 1rem 1.2rem; }
.slide-cap b { font-family: var(--font-display); }
.slide-cap span { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.carousel-controls { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.carousel-controls button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.carousel-controls button:hover { border-color: var(--red); background: rgba(229,11,0,0.08); }
.carousel-controls svg { width: 22px; height: 22px; }

/* ============================================================
   CTA final
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--red-deep), var(--red));
  border-radius: var(--r-lg);
}
.cta .wrap { padding-block: clamp(3rem, 7vw, 5.5rem); text-align: center; position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 1.2rem; }
.cta p { color: rgba(255,255,255,0.88); max-width: 48ch; margin: 0 auto 2rem; }
.cta .btn-primary { background: #fff; color: var(--red-deep); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6); }
.cta .btn-primary:hover { background: #fff; transform: translateY(-2px); }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.16), transparent 45%);
}

/* ============================================================
   Page header (pages internes)
   ============================================================ */
.pagehead { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); position: relative; }
.pagehead h1 { margin: 1rem 0 1rem; }
.pagehead .lead { margin: 0; }
.crumb { color: var(--text-faint); font-size: 0.85rem; }
.crumb a:hover { color: var(--red); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 0.85rem 1rem; transition: border-color 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,11,0,0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item svg { width: 26px; height: 26px; color: var(--red); flex-shrink: 0; }
.info-item b { font-family: var(--font-display); display: block; margin-bottom: 0.2rem; }
.info-item span, .info-item a { color: var(--text-muted); }
.info-item a:hover { color: var(--red); }
.socials { display: flex; gap: 0.8rem; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.socials a:hover { border-color: var(--red); color: var(--red); }
.socials svg { width: 22px; height: 22px; }
.form-note { font-size: 0.85rem; color: var(--text-faint); }

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

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-elev); }
.footer .wrap { padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--text-muted); max-width: 34ch; margin-top: 1rem; font-size: 0.95rem; }
.footer h4 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: 0.7rem; }
.footer ul a { color: var(--text-muted); font-size: 0.95rem; }
.footer ul a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--text-faint); font-size: 0.85rem;
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   E-COMMERCE
   ============================================================ */

/* -- Cart link + badge dans la nav -- */
.cart-link {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease);
}
.cart-link:hover { border-color: var(--red); }
.cart-link svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: var(--r-pill); background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 920px) { .nav-cta .cart-link { display: inline-flex; } }

/* -- Filtres boutique -- */
.shop-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.4rem; }
.chip {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  padding: 0.55rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* -- Grille produits -- */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.product-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
  background: var(--red); padding: 0.3rem 0.65rem; border-radius: var(--r-pill);
}
.product-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.product-cat { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.product-name a:hover { color: var(--red); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.8rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.price s { color: var(--text-faint); font-weight: 600; font-size: 0.9rem; margin-right: 0.4rem; }
.btn-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease);
}
.btn-icon:hover { background: var(--red-bright); }
.btn-icon:active { transform: scale(0.92); }
.btn-icon svg { width: 20px; height: 20px; }

/* -- Fiche produit -- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.8rem; margin-top: 0.9rem; }
.gallery-thumbs button { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-strong); width: 88px; height: 70px; opacity: 0.6; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); }
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { color: var(--red); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; }
.pd-title { margin: 0.8rem 0 1rem; }
.pd-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin-bottom: 1.4rem; }
.pd-desc { color: var(--text-muted); margin-bottom: 1.8rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 46px; height: 48px; color: var(--text); font-size: 1.3rem; transition: background 0.2s var(--ease); }
.qty button:hover { background: var(--bg-elev-2); }
.qty span { min-width: 44px; text-align: center; font-family: var(--font-display); font-weight: 700; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.pd-meta { display: grid; gap: 0.9rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.pd-meta div { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.pd-meta svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* -- Panier -- */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 96px; height: 80px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.cart-item-info h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.25rem; }
.cart-item-info span { color: var(--text-faint); font-size: 0.85rem; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.cart-item-right .price { font-size: 1.05rem; }
.link-remove { color: var(--text-faint); font-size: 0.85rem; transition: color 0.2s var(--ease); }
.link-remove:hover { color: var(--red); }
@media (max-width: 540px) {
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 64px; }
  .cart-item-right { grid-column: 2; align-items: flex-start; }
}
.summary { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; position: sticky; top: 88px; }
.summary h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 1.4rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.6rem 0; color: var(--text-muted); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 0.6rem; padding-top: 1.1rem; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.summary .btn { width: 100%; justify-content: center; margin-top: 1.4rem; }

/* -- Auth (connexion / inscription) -- */
.auth-wrap { min-height: calc(100dvh - 70px); display: grid; place-items: center; padding-block: clamp(3rem, 6vw, 5rem); position: relative; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 2.6rem);
}
.auth-card h1 { font-size: clamp(1.6rem, 3vw, 2rem); text-transform: uppercase; margin-bottom: 0.5rem; }
.auth-card .sub { color: var(--text-muted); margin-bottom: 1.8rem; font-size: 0.97rem; }
.auth-card .form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }
.auth-alt { text-align: center; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.93rem; }
.auth-alt a { color: var(--red); font-weight: 700; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; }
.auth-row a { color: var(--text-muted); }
.auth-row a:hover { color: var(--red); }
.checkbox { display: flex; gap: 0.6rem; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--red); }

/* -- Compte (profil) -- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav { display: grid; gap: 0.3rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.8rem; position: sticky; top: 88px; }
.account-nav a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; border-radius: var(--r);
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: all 0.2s var(--ease);
}
.account-nav a svg { width: 20px; height: 20px; }
.account-nav a:hover { color: var(--text); background: var(--bg-elev-2); }
.account-nav a.active { background: var(--red); color: #fff; }
.account-nav .logout { color: var(--text-faint); margin-top: 0.4rem; border-top: 1px solid var(--line); border-radius: 0; }
.account-nav .logout:hover { color: var(--red); background: transparent; }
@media (max-width: 820px) { .account-nav { grid-auto-flow: column; overflow-x: auto; position: static; } }

.panel { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.6rem; }
.panel h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; margin-bottom: 1.4rem; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
@media (max-width: 600px) { .account-stats { grid-template-columns: 1fr; } }
.stat { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--red); }
.stat .l { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form-2col { grid-template-columns: 1fr; } }

/* -- Tableau commandes -- */
.orders { display: grid; gap: 0.9rem; }
.order-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
}
.order-row .oid { font-family: var(--font-display); font-weight: 700; }
.order-row .odate { color: var(--text-faint); font-size: 0.88rem; }
.badge {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
}
.badge.paid { background: rgba(34,197,94,0.16); color: #4ade80; }
.badge.pending { background: rgba(234,179,8,0.16); color: #facc15; }
@media (max-width: 600px) { .order-row { grid-template-columns: 1fr auto; } .order-row .odate { grid-column: 1; } }
