/* FéliClean — Apple Design System — Mai 2026 */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --primary:      #0066cc;
  --primary-dk:   #0071e3;
  --primary-inv:  #2997ff;
  --ink:          #1d1d1f;
  --ink-80:       #333333;
  --ink-48:       #7a7a7a;
  --muted:        #cccccc;
  --hairline:     #e0e0e0;
  --canvas:       #ffffff;
  --parch:        #f5f5f7;
  --pearl:        #fafafc;
  --tile-1:       #272729;
  --tile-2:       #2a2a2c;
  --black:        #000000;
  --on-dark:      #ffffff;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 44px;
  --sub-h: 52px;
}

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { font-family: var(--font); }

/* ── Global Nav ──────────────────────────────────────────────── */
.g-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.g-nav__logo { color: var(--on-dark); font-size: 17px; font-weight: 600; }
.g-nav__logo:hover { text-decoration: none; }
.g-nav__links { display: flex; gap: 22px; }
.g-nav__links a {
  color: rgba(255,255,255,.8);
  font-size: 12px; letter-spacing: -0.12px;
}
.g-nav__links a:hover { color: var(--on-dark); text-decoration: none; }
.g-nav__action {
  background: var(--primary); color: var(--on-dark);
  font-size: 12px; padding: 6px 16px; border-radius: 9999px;
}
.g-nav__action:hover { background: var(--primary-dk); text-decoration: none; }

/* ── Sub-nav (produit.html) ──────────────────────────────────── */
.sub-nav {
  position: sticky; top: var(--nav-h); z-index: 100;
  height: var(--sub-h);
  background: rgba(245,245,247,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.sub-nav__name { font-size: 21px; font-weight: 600; letter-spacing: 0.231px; }
.sub-nav__right { display: flex; align-items: center; gap: 16px; }
.sub-nav__price { font-size: 14px; color: var(--ink-48); }

/* ── Page offset ─────────────────────────────────────────────── */
.page { padding-top: var(--nav-h); }

/* ── Tiles (full-bleed sections) ─────────────────────────────── */
.tile {
  width: 100%; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.tile--light  { background: var(--canvas); color: var(--ink); }
.tile--parch  { background: var(--parch);  color: var(--ink); }
.tile--dark   { background: var(--tile-1); color: var(--on-dark); }
.tile--dark2  { background: var(--tile-2); color: var(--on-dark); }

/* ── Typography ──────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.tile--dark .eyebrow, .tile--dark2 .eyebrow { color: var(--primary-inv); }

.t-h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 600; line-height: 1.07; letter-spacing: -0.28px;
  max-width: 720px; margin: 0 auto 16px;
}
.t-h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; line-height: 1.1;
  max-width: 640px; margin: 0 auto 16px;
}
.t-lead {
  font-size: clamp(17px, 2.5vw, 24px);
  font-weight: 300; line-height: 1.5;
  max-width: 560px; margin: 0 auto 32px;
}
.tile--dark  .t-lead,
.tile--dark2 .t-lead { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────────── */
.cta-pair {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 8px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 17px/1 var(--font); letter-spacing: -0.374px;
  padding: 11px 22px; border-radius: 9999px; border: none;
  cursor: pointer; transition: transform .1s; text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.95); }
.btn:hover  { text-decoration: none; }
.btn--primary     { background: var(--primary);  color: var(--on-dark); }
.btn--primary:hover { background: var(--primary-dk); }
.btn--ghost       { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn--ghost-inv   { background: transparent; color: var(--primary-inv); border: 1px solid var(--primary-inv); }
.btn--ghost-dark  { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn--full        { width: 100%; }
.btn--large       { font-size: 18px; font-weight: 300; padding: 14px 28px; }

/* ── Product hero image ──────────────────────────────────────── */
.product-hero-img {
  max-width: 500px; width: 90%; margin: 48px auto 0;
  border-radius: 18px;
  box-shadow: rgba(0,0,0,.22) 3px 5px 30px 0;
}

/* ── Feature cards ───────────────────────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 900px; width: 100%; margin: 48px auto 0;
}
.feat-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 24px; text-align: left;
}
.feat-card__ico { width: 40px; height: 40px; margin-bottom: 16px; color: var(--primary); }
.feat-card__title { font-size: 17px; font-weight: 600; letter-spacing: -0.374px; margin-bottom: 6px; }
.feat-card__desc  { font-size: 14px; line-height: 1.43; color: var(--ink-48); }

/* ── Connected feature list ──────────────────────────────────── */
.conn-list {
  max-width: 420px; margin: 32px auto 0;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.conn-list li {
  font-size: 17px; color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.conn-list__check {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--primary-inv);
}

/* ── Stars & rating ──────────────────────────────────────────── */
.stars-row { display: flex; gap: 4px; justify-content: center; margin-bottom: 16px; }
.star-svg  { width: 22px; height: 22px; fill: #ff9500; }
.rating-big { font-size: 56px; font-weight: 600; letter-spacing: -0.28px; line-height: 1.07; }
.rating-sub { font-size: 14px; color: var(--ink-48); margin-top: 6px; }

/* ── Review cards ────────────────────────────────────────────── */
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 960px; width: 100%; margin: 48px auto 0;
}
.rev-card {
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: 18px; padding: 24px; text-align: left;
}
.rev-stars { display: flex; gap: 3px; margin-bottom: 10px; }
.rev-star  { width: 14px; height: 14px; fill: #ff9500; }
.rev-name  { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.rev-text  { font-size: 14px; line-height: 1.43; color: var(--ink-80); }

/* ── Buy tile ────────────────────────────────────────────────── */
.price-old   { font-size: 17px; color: var(--ink-48); text-decoration: line-through; }
.price-big   { font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.28px; margin: 8px 0; }
.badge-promo {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: #e8f5e9; color: #2e7d32;
  padding: 4px 12px; border-radius: 9999px; margin-bottom: 28px;
}
.buy-perks { max-width: 340px; display: flex; flex-direction: column; gap: 12px; margin: 0 0 32px; }
.buy-perks li { font-size: 14px; color: var(--ink-48); display: flex; align-items: center; gap: 10px; }
.perk-ico   { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }

/* ── Sticky bar ──────────────────────────────────────────────── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  height: 64px;
  background: rgba(245,245,247,.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar__info { display: flex; flex-direction: column; gap: 2px; }
.sticky-bar__name  { font-size: 14px; font-weight: 600; letter-spacing: -0.374px; }
.sticky-bar__price { font-size: 14px; color: var(--ink-48); }

/* ── Product layout (produit.html) ───────────────────────────── */
.product-layout {
  max-width: 1100px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.gallery__main {
  border-radius: 18px; overflow: hidden;
  background: var(--parch);
  box-shadow: rgba(0,0,0,.22) 3px 5px 30px 0;
}
.gallery__main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--parch);
  transition: border-color .15s;
}
.gallery__thumb.active, .gallery__thumb:hover { border-color: var(--primary); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Product detail card ─────────────────────────────────────── */
.detail__eye   { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.detail__name  { font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: -0.28px; margin-bottom: 16px; }
.detail__stars { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.detail__star  { width: 16px; height: 16px; fill: #ff9500; }
.detail__rcount { font-size: 14px; color: var(--primary); }
.detail__price-old  { font-size: 14px; color: var(--ink-48); text-decoration: line-through; }
.detail__price { font-size: 34px; font-weight: 600; margin: 4px 0; }
.detail__badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: #e8f5e9; color: #2e7d32;
  padding: 3px 10px; border-radius: 9999px; margin-bottom: 20px;
}
.detail__ship {
  font-size: 14px; line-height: 1.6; color: var(--ink-48);
  background: var(--parch); border-radius: 11px;
  padding: 16px; margin-bottom: 24px;
}
.detail__ship strong { color: var(--ink); font-weight: 600; }
.detail__cta-wrap { display: flex; flex-direction: column; gap: 10px; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tabs-bar {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex; gap: 0; overflow-x: auto;
}
.tab-btn {
  padding: 16px 24px; font-size: 14px; font-weight: 400;
  color: var(--ink-48); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s; white-space: nowrap;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-panel { display: none; max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.tab-panel.active { display: block; }

/* ── Specs table ─────────────────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; text-align: left; }
.specs-table tr { border-bottom: 1px solid var(--hairline); }
.specs-table td { padding: 13px 8px; font-size: 14px; line-height: 1.43; }
.specs-table td:first-child { color: var(--ink-48); width: 45%; }

/* ── Legal / static pages ────────────────────────────────────── */
.legal-page { max-width: 720px; margin: 0 auto; padding: 64px 24px; }
.legal-page h1 { font-size: 34px; font-weight: 600; letter-spacing: -0.374px; margin-bottom: 8px; }
.legal-page .subtitle { font-size: 17px; color: var(--ink-48); margin-bottom: 48px; }
.legal-page h2 { font-size: 21px; font-weight: 600; margin: 40px 0 12px; }
.legal-page p, .legal-page li { font-size: 17px; line-height: 1.47; color: var(--ink-80); margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; list-style: disc; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--parch); padding: 64px 24px 40px; }
.footer__inner { max-width: 960px; margin: 0 auto; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline); margin-bottom: 20px;
}
.footer__brand   { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.footer__tagline { font-size: 12px; color: var(--ink-48); }
.footer__col-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer__links li + li { margin-top: 6px; }
.footer__links a { font-size: 12px; color: var(--ink-80); line-height: 2.41; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { font-size: 12px; color: var(--ink-48); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 833px) {
  .g-nav__links { display: none; }
  .feat-grid    { grid-template-columns: 1fr; max-width: 480px; }
  .review-grid  { grid-template-columns: 1fr; max-width: 480px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .product-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; }
  .sub-nav__price { display: none; }
  .tile { padding: 60px 20px; }
}
@media (max-width: 640px) {
  .tile { padding: 48px 20px; }
  .sticky-bar { padding: 0 20px; }
  .sticky-bar__price { display: none; }
  .price-big { font-size: 40px; }
  .rating-big { font-size: 40px; }
}
