/* ==========================================================================
   Astushop — CSS pur, mobile-first, zéro dépendance externe
   Palette : blanc / noir / gris + accent bleu
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-text: #1a1a1a;
  --color-text-muted: #5f6368;
  --color-border: #e3e5e8;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-accent-light: #eaf1ff;
  --color-success: #16a34a;
  --color-error: #dc2626;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --max-width: 1100px;
}

/* ---------- Reset minimal ---------- */
* { box-sizing: border-box; }
html, body, ul, ol, figure { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; color: var(--color-text-muted); }

.section-title {
  text-align: center;
  margin-bottom: 28px;
  color: var(--color-text);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  padding: 14px 26px;
  font-size: 1rem;
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-primary:disabled { background: var(--color-border); color: var(--color-text-muted); cursor: not-allowed; }

.btn-large { width: 100%; padding: 16px 24px; font-size: 1.05rem; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 30px; background: var(--color-bg-alt); }
.hero-inner { display: flex; flex-direction: column; gap: 28px; }
.hero-text h1 { font-size: 2rem; }
.hero-subtitle { font-size: 1.05rem; }
.hero-trust { font-size: 0.85rem; margin-top: 14px; }
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

/* ---------- Bénéfices ---------- */
.benefits { padding: 50px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.benefit-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon svg { width: 24px; height: 24px; }

/* ---------- Avis ---------- */
.reviews { padding: 50px 0; background: var(--color-bg-alt); }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.review-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0;
}
.stars { color: var(--color-accent); margin-bottom: 8px; letter-spacing: 2px; }
.review-card cite { font-style: normal; font-weight: 600; color: var(--color-text); font-size: 0.9rem; }

/* ---------- Garantie ---------- */
.guarantee { padding: 40px 0; }
.guarantee-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.guarantee-icon { width: 44px; height: 44px; color: var(--color-accent); }
.guarantee-icon svg { width: 100%; height: 100%; }
.guarantee h2 { margin-bottom: 6px; }
.guarantee p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { padding: 50px 0; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--color-accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 10px; }

/* ---------- Commande ---------- */
.order { padding: 50px 0 60px; background: var(--color-bg-alt); }
.order-inner { text-align: center; max-width: 480px; }
.order-price { font-size: 2rem; font-weight: 800; color: var(--color-text); margin-bottom: 18px; }
.order-shipping { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.checkout-error {
  color: var(--color-error);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ---------- Success page ---------- */
.success { padding: 60px 0; min-height: 60vh; }
.success-inner { max-width: 480px; text-align: center; }
.success-icon { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--color-success); }
.success-icon svg { width: 100%; height: 100%; }
.success-lead { margin-bottom: 20px; }
.order-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
}
.order-box p { margin: 0 0 8px; color: var(--color-text); }
.order-box p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.footer-inner p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-legal { color: var(--color-text-muted); }
.footer-copy { color: var(--color-text-muted); }

/* ==========================================================================
   Breakpoints — mobile-first : on ajoute, on ne retire jamais
   ========================================================================== */

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.3rem; }
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .hero-text, .hero-image { flex: 1; }
  .hero-text h1 { font-size: 2.7rem; }
  .guarantee-inner { flex-direction: row; text-align: left; }
}
