/* =========================================================
   AST77 Mini — feuille de styles
   ========================================================= */

:root {
  --bg: #0d0f12;
  --bg-2: #14171c;
  --bg-3: #1c2027;
  --line: #2a2f38;
  --txt: #e8eaed;
  --txt-2: #a2a9b4;
  --txt-3: #6f7783;
  --accent: #2f80ed;
  --accent-dark: #1b5fc0;
  --amber: #f0a500;
  --green: #3ba55c;
  --radius: 10px;
  --max: 1180px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit };
img {object-fit : contain} ;

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

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: -.5px; color: #fff;
  box-shadow: 0 4px 14px rgba(47, 128, 237, .35);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.brand-sub { font-size: 10.5px; color: var(--txt-3); text-transform: uppercase; letter-spacing: 1.2px; }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; color: var(--txt-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 7px; transition: .15s;
}
.nav a:hover { color: var(--txt); background: var(--bg-3); }
.nav a.active { color: #fff; background: var(--bg-3); }

.nav-toggle {
  display: none; margin-left: auto; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--txt); width: 42px; height: 38px; border-radius: 8px; font-size: 17px; cursor: pointer;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 12px 22px; border-radius: 8px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47, 128, 237, .3); }
.btn-primary:hover { background: #4a90f0; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-3); border-color: #3a4150; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(47, 128, 237, .20), transparent 62%),
    radial-gradient(700px 380px at 88% 8%, rgba(240, 165, 0, .11), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(255, 255, 255, .014) 38px 39px);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 80px 0 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700;
  color: var(--amber); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -1.2px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 18px; color: var(--txt-2); margin: 0 0 30px; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-collage figure:nth-child(1) { transform: translateY(-14px); }
.hero-collage figure:nth-child(4) { transform: translateY(14px); }
.hero-collage img { aspect-ratio: 1; object-fit: cover; }

/* ---------- bandeau de confiance ---------- */
.trust { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust-cell { background: var(--bg-2); padding: 26px 20px; text-align: center; }
.trust-num { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.trust-num.pos { color: var(--green); }
.trust-lbl { font-size: 12.5px; color: var(--txt-3); text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 8px; letter-spacing: -.8px; font-weight: 800; }
.section-head p { margin: 0; color: var(--txt-2); max-width: 62ch; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- grille produits ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: .2s; position: relative;
}
.card:hover { transform: translateY(-4px); border-color: #3d444f; box-shadow: var(--shadow); }
.card-media { position: relative; background: #fff; aspect-ratio: 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: .3s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 5px; text-transform: uppercase; letter-spacing: .7px;
}
.card-badge.rare { background: var(--amber); color: #1a1200; }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 13.5px; line-height: 1.42; font-weight: 600; color: var(--txt); margin: 0; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-price { font-size: 19px; font-weight: 800; color: var(--amber); letter-spacing: -.4px; }
.card-cta { font-size: 12px; color: var(--txt-3); font-weight: 600; }
.card:hover .card-cta { color: var(--accent); }

/* ---------- filtres ---------- */
.toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 18px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 26px;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  background: var(--bg-3); border: 1px solid var(--line); color: var(--txt-2);
  padding: 8px 15px; border-radius: 20px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: .15s; font-family: inherit;
}
.chip:hover { color: var(--txt); border-color: #3d444f; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.search {
  flex: 1; min-width: 200px; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--txt); padding: 10px 15px; border-radius: 8px; font-size: 14.5px; font-family: inherit;
}
.search:focus { outline: none; border-color: var(--accent); }
.search::placeholder { color: var(--txt-3); }
.count { font-size: 13.5px; color: var(--txt-3); margin-left: auto; }
.empty { text-align: center; padding: 60px 20px; color: var(--txt-3); }

/* ---------- en-tête de page ---------- */
.article-hero { border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 44px; }
.article-hero .eyebrow { margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.14; margin: 0 0 16px; letter-spacing: -1px; font-weight: 800; max-width: 22ch; }
.article-hero .lead { font-size: 18.5px; color: var(--txt-2); max-width: 68ch; margin: 0 0 18px; }
.article-meta { font-size: 13px; color: var(--txt-3); display: flex; gap: 16px; flex-wrap: wrap; }

.factbox {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 32px 0;
}
.factbox h4 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--amber); }
.factbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; font-size: 14.5px; }
.factbox dt { color: var(--txt-3); }
.factbox dd { margin: 0; color: var(--txt); font-weight: 550; }

/* encart boutique inséré dans les articles */
.shop-inline {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(47, 128, 237, .12), rgba(240, 165, 0, .07));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 40px 0;
}
.shop-inline-txt { flex: 1; min-width: 240px; }
.shop-inline h4 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.3px; }
.shop-inline p { margin: 0; font-size: 14.5px; color: var(--txt-2); }

/* ---------- évaluations ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 13px;
}
.review-stars { color: var(--amber); font-size: 15px; letter-spacing: 2px; }
.review-txt { margin: 0; font-size: 15px; color: #d6dae0; line-height: 1.6; flex: 1; }
.review-who { font-size: 12.5px; color: var(--txt-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verified { color: var(--green); font-weight: 650; }

.ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 34px; }
.rating-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rating-label { font-size: 13.5px; color: var(--txt-2); margin-bottom: 10px; }
.rating-score { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.rating-bar { height: 5px; background: var(--bg); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.rating-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--green)); border-radius: 3px; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 52px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-col h5 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--txt-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--txt-2); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--txt); }
.footer-about p { color: var(--txt-2); font-size: 14.5px; margin: 12px 0 0; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--txt-3);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 52px; gap: 36px; }
  .hero-collage figure:nth-child(1), .hero-collage figure:nth-child(4) { transform: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 52px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .count { margin-left: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
