/* ============================================================
   CaloTape — style Apple-like : minimal, aéré, une seule couleur d'accent
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --accent: #8db600;
  --accent-fill: #1f7d45;
  --border: #d2d2d7;
  --radius: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-h: 108px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.47;
}

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

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }

.kicker {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

h1, h2, h3 { font-weight: 600; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 500; line-height: 1.05; }
h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 500; line-height: 1.08; }
h3 { font-size: 24px; font-weight: 600; }

p { color: var(--muted); font-size: 19px; margin: 0 0 8px; }
p.large { font-size: 24px; color: var(--fg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent-fill); color: #fff; }
.btn-primary:hover { opacity: 0.85; }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost { color: var(--accent); font-size: 17px; }
.btn-ghost:hover { opacity: 0.7; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo { display: flex; align-items: center; }
.logo-img-wrap { height: 88px; width: 324px; overflow: hidden; display: block; line-height: 0; }
.logo-img-wrap img { height: 138px; width: auto; display: block; }

.footer-logo { height: 144px; width: 530px; overflow: hidden; margin: 0 auto 16px; display: block; line-height: 0; }
.footer-logo img { height: 226px; width: auto; display: block; }
.header-right { display: flex; align-items: center; gap: 20px; }
.social-icons { display: flex; gap: 16px; }
.social-icons a { color: var(--fg); opacity: 0.8; }
.social-icons a:hover { opacity: 1; }
.social-icons svg { width: 18px; height: 18px; display: block; }

.lang-switch { display: flex; gap: 6px; font-size: 12px; }
.lang-switch button {
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px 4px;
}
.lang-switch button.active { color: var(--fg); font-weight: 600; }

.currency-select {
  font-size: 12px; color: var(--muted); background: none; border: none; cursor: pointer;
}

.nav-cta {
  padding: 8px 16px;
  font-size: 14px;
  background: var(--accent-fill);
  color: #fff;
  border-radius: var(--radius);
}
.nav-cta:hover { opacity: 0.85; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-h) 24px 0;
  gap: 24px;
}
.hero-visual {
  width: min(70vw, 420px);
  aspect-ratio: 1;
  margin: 24px 0;
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero p.large { max-width: 480px; }
.hero-scroll-hint {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Feature rows (alternating) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 100px 0;
}
.feature-row:nth-child(even) .feature-visual { order: 2; }
.feature-visual { aspect-ratio: 4/3; border-radius: 24px; background: var(--bg-alt); overflow: hidden; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-text { max-width: 420px; }

.wide-visual {
  max-width: 700px;
  margin: 48px auto 0;
  border-radius: 24px;
  overflow: hidden;
}
.wide-visual img { width: 100%; height: auto; display: block; }

/* ---------- How to use ---------- */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.howto-step { text-align: center; }
.howto-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600;
  margin: 0 auto 20px;
}

/* ---------- Social proof ---------- */
.trustpilot-widget { max-width: 500px; margin: 40px auto 0; }
.proof-follow { margin-top: 64px; }
.proof-follow .social-icons { justify-content: center; margin-top: 16px; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 700px; margin: 56px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-size: 19px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
}
.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 22px; }
.faq-answer p { font-size: 17px; margin: 0; }

/* ---------- Order ---------- */
.order-section { text-align: center; }
.order-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 40px;
  background: var(--bg-alt);
  border-radius: 32px;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 8px;
}
.price-main { font-size: 48px; font-weight: 600; }
.price-compare { font-size: 20px; color: var(--muted); text-decoration: line-through; }
.currency-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.order-cta { margin-top: 24px; width: 100%; font-size: 19px; padding: 16px; }
.stock-note { font-size: 14px; color: var(--accent); margin-top: 16px; }
.guarantees {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---------- Legal pages ---------- */
.legal-page { padding-top: calc(var(--header-h) + 64px); }
.legal-page .container { max-width: 680px; }
.legal-page h1 { font-size: 40px; font-weight: 500; margin-top: 24px; }
.legal-page h2 { font-size: 21px; font-weight: 600; margin-top: 40px; }
.legal-page p { font-size: 17px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer .social-icons { justify-content: center; margin-bottom: 20px; }
.footer-tagline { font-size: 15px; color: var(--fg); margin-bottom: 8px; }
.footer-legal { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; gap: 16px; font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--fg); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .section { padding: 72px 0; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .howto-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .logo-img-wrap { height: 44px; width: 162px; }
  .logo-img-wrap img { height: 69px; }
  .order-card { padding: 40px 24px; }
  .guarantees { gap: 12px 20px; }
}
