/* ============================================================
   Vente de laptops — storefront
   Palette: gallery white + graphite, clay accent
   Type: Plus Jakarta Sans (geometric bold)
   Motion: hyper-stillness (hover only)
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f2f1ef;
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --rule: #e2e0dd;
  --accent: #a4532d;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 12px 32px -18px rgba(26, 26, 26, .28);
  --radius: 14px;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --surface: #1b1b1b;
    --surface-2: #1f1e1d;
    --ink: #f2f0ed;
    --muted: #a8a5a1;
    --rule: #2e2c2a;
    --accent: #e08a5f;
    --accent-ink: #1a1a1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -22px rgba(0, 0, 0, .8);
  }
}

html[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f2f1ef;
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --rule: #e2e0dd;
  --accent: #a4532d;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(26, 26, 26, .05), 0 12px 32px -18px rgba(26, 26, 26, .28);
}

html[data-theme="dark"] {
  --bg: #131313;
  --surface: #1b1b1b;
  --surface-2: #1f1e1d;
  --ink: #f2f0ed;
  --muted: #a8a5a1;
  --rule: #2e2c2a;
  --accent: #e08a5f;
  --accent-ink: #1a1a1a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -22px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; line-height: 1.3; }

p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 820px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1rem;
  white-space: nowrap;
}
.brand-mark { color: var(--accent); font-size: 1.15rem; line-height: 1; }

.nav {
  display: flex;
  gap: 26px;
  margin-inline-start: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-icon { font-size: 1rem; line-height: 1; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }

.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(40px, 6vw, 80px) var(--section-y); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lede {
  margin-top: 22px;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.hero-media figcaption {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  background: var(--surface);
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }
.section-tint { background: var(--surface-2); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ---------- Categories ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.category {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.category:hover { border-color: var(--accent); transform: translateY(-2px); }
.category img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.category-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}
.category-body strong { font-size: 1rem; letter-spacing: -0.01em; }
.category-body span { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.product:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); box-shadow: var(--shadow); }

.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
  flex: 1;
}

.specs {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.product-note { font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.product-cta {
  justify-content: center;
  background: transparent;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
}
.product-cta .product-body { justify-content: center; gap: 14px; }
.product-cta .product-foot { justify-content: flex-start; }

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  background: var(--bg);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.step-num {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.steps p { color: var(--muted); font-size: 0.9375rem; }

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--rule);
}
.info-strip div { display: flex; flex-direction: column; gap: 4px; }
.info-strip strong { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.09em; }
.info-strip span { font-size: 0.9375rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; }

.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-child { border-top: 1px solid var(--rule); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color .18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq details p {
  padding: 0 40px 22px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 68ch;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-copy h2 { margin-bottom: 16px; }
.contact-copy > p { color: var(--muted); max-width: 46ch; }

.contact-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 12px 0;
  background: var(--surface-2);
  font-size: 0.9375rem;
}
.contact-list li > span:first-child {
  color: var(--muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact-list a:hover { color: var(--accent); }
.contact-list .plain { color: var(--ink); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .8; }

.contact-form .btn { margin-top: 4px; align-self: flex-start; }

.form-status { font-size: 0.9375rem; color: var(--muted); }
.form-status.is-error { color: #b3261e; }
html[data-theme="dark"] .form-status.is-error { color: #ff9b90; }
@media (prefers-color-scheme: dark) {
  .form-status.is-error { color: #ff9b90; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(36px, 5vw, 56px);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}

.footer-brand strong { font-size: 0.9375rem; letter-spacing: -0.01em; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-inline-start: auto;
  font-size: 0.875rem;
}
.footer-nav a { text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

.attribution {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin: 0;
}
.attribution a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.attribution a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}

@media (max-width: 560px) {
  .theme-label { display: none; }
  .theme-toggle { padding: 0 12px; }
  .hero-points { flex-direction: column; gap: 8px; }
  .product-foot { flex-wrap: wrap; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-nav { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
