/* =========================================================
   maréa - styles des pages secondaires (légales + Club)
   S'appuie sur les variables de styles.css
   ========================================================= */

/* ---------- En-tête simplifié ---------- */
.subnav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--shell) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.subnav__back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; letter-spacing: 0.06em; }
.subnav__back:hover { color: var(--sea); }
.subnav .logo { font-family: var(--ff-display); font-size: 1.85rem; font-weight: 600; text-align: center; }

/* ---------- Pages de texte (légal) ---------- */
.prose-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.prose-hero .eyebrow { margin-bottom: 0.9rem; }
.prose-hero h1 { font-family: var(--ff-display); font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.prose-hero p { color: var(--ink-soft); margin-top: 0.7rem; }

.prose { padding-bottom: clamp(4rem, 9vw, 7rem); }
.prose__inner { max-width: 760px; }
.prose h2 {
  font-family: var(--ff-display); font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.6rem 0 0.9rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-family: var(--ff-sans); font-size: 1rem; font-weight: 600; margin: 1.4rem 0 0.4rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 0.9rem; line-height: 1.7; }
.prose ul { padding-left: 1.1rem; list-style: disc; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.fill { background: color-mix(in srgb, var(--sea) 12%, transparent); color: var(--sea-deep); padding: 0 0.3em; border-radius: 2px; font-weight: 500; }
.prose__note { margin-top: 2.5rem; padding: 1.2rem 1.4rem; background: var(--shell-2); font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Page Club ---------- */
.club-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); text-align: center; }
.club-hero h1 { font-family: var(--ff-display); font-size: clamp(2.6rem, 6vw, 4rem); }
.club-hero p { color: var(--ink-soft); max-width: 52ch; margin: 1rem auto 0; }

.tiers { padding-bottom: clamp(3rem, 7vw, 5rem); }
.tiers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: stretch; }
.tier {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); padding: 1.8rem 1.4rem;
  background: var(--white); position: relative;
}
.tier--feature { background: var(--ink); color: var(--shell); border-color: var(--ink); }
.tier__name { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 500; }
.tier__seuil { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea); margin: 0.3rem 0 1.3rem; }
.tier--feature .tier__seuil { color: var(--azur); }
.tier__list { display: grid; gap: 0.7rem; }
.tier__list li { display: flex; gap: 0.55rem; font-size: 0.9rem; line-height: 1.45; }
.tier__list i { color: var(--sea); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.tier--feature .tier__list i { color: var(--azur); }

.perks { background: var(--shell-2); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.6rem); }
.perk { }
.perk i { font-size: 1.7rem; color: var(--sea); display: block; margin-bottom: 0.8rem; }
.perk h3 { font-family: var(--ff-display); font-size: 1.45rem; font-weight: 500; margin-bottom: 0.4rem; }
.perk p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

.club-cta { padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; }
.club-cta h2 { font-family: var(--ff-display); font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.8rem; }
.club-cta p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.8rem; }

@media (max-width: 980px) {
  .tiers__grid { grid-template-columns: repeat(2, 1fr); }
  .perks__grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .tiers__grid { grid-template-columns: 1fr; }
  .subnav .logo { font-size: 1.5rem; }
}

/* ---------- Page produit ---------- */
.product { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); }
.product__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product__gallery { display: grid; gap: 1rem; position: sticky; top: 90px; }
.product__main { aspect-ratio: 4 / 5; overflow: hidden; background: var(--shell-2); }
.product__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__sub { aspect-ratio: 16 / 11; overflow: hidden; background: var(--shell-2); }
.product__sub img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__thumbs { display: flex; gap: 0.5rem; }
.product__thumb { flex: 1; aspect-ratio: 1; overflow: hidden; background: var(--shell-2); cursor: pointer; border: 2px solid transparent; padding: 0; transition: border-color 0.25s var(--ease); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.product__thumb[aria-pressed="true"] { border-color: var(--ink); }
.product__info { padding-top: 0.5rem; }
.product__bc { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 1.4rem; }
.product__bc a:hover { color: var(--sea); }
.product__title { font-family: var(--ff-display); font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.05; font-weight: 500; }
.product__price { font-size: 1.3rem; margin: 0.5rem 0 1.4rem; }
.product__desc { color: var(--ink-soft); max-width: 48ch; margin-bottom: 1.8rem; }
.product__label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.7rem; font-weight: 500; }
.swatches { display: flex; gap: 0.7rem; margin-bottom: 1.6rem; }
.swatch-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem; border: 1px solid var(--line); background: var(--white); font-family: inherit; font-size: 0.85rem; cursor: pointer; transition: border-color .3s var(--ease); }
.swatch-btn .dot { width: 14px; height: 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.swatch-btn[aria-pressed="true"] { border-color: var(--ink); }
.sizes { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.size-btn { min-width: 46px; padding: 0.6rem 0.8rem; border: 1px solid var(--line); background: var(--white); font-family: inherit; font-size: 0.85rem; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.size-btn[aria-pressed="true"] { background: var(--ink); color: var(--shell); border-color: var(--ink); }
.size-link { background: none; border: none; color: var(--sea); font-family: inherit; font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; margin-bottom: 1.7rem; display: inline-block; }
.size-link:hover { color: var(--sea-deep); }
.product__reassure { margin-top: 1.7rem; display: grid; gap: 0.6rem; font-size: 0.88rem; color: var(--ink-soft); }
.product__reassure i { color: var(--sea); margin-right: 0.5rem; }

/* ---------- Tableau des tailles ---------- */
.sizeguide { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.sizetable-wrap { overflow-x: auto; }
.sizetable { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 700px; }
.sizetable th, .sizetable td { padding: 0.75rem 0.8rem; text-align: center; border-bottom: 1px solid var(--line); }
.sizetable thead th { font-family: var(--ff-sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.sizetable tbody th { font-weight: 600; font-size: 1rem; }
.sizetable tbody tr:hover { background: var(--shell-2); }

@media (max-width: 860px) {
  .product__grid { grid-template-columns: 1fr; gap: 2rem; }
  .product__gallery { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .product__gallery { grid-template-columns: 1fr; }
}
