/* ==========================================================================
   TEMPO - marque fictive de sneakers
   Design tokens + base. Palette contrastée : noir, blanc cassé, orange électrique.
   Chaque modèle a sa couleur d'accent (--model).
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-2: #1C1C1C;
  --bone: #F2EFE9;
  --bone-2: #E6E1D8;
  --orange: #FF5A1F;
  --violet: #8B3DFF;
  --green: #1F5A3D;
  --steel: #8A8F98;

  --bg: var(--bone);
  --fg: var(--ink);
  --muted: rgba(17, 17, 17, 0.58);
  --line: rgba(17, 17, 17, 0.14);
  --model: var(--orange);

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 68px;
  --radius: clamp(14px, 1.6vw, 24px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-text); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Typo ---------- */
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88; }
.mono { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.accent { color: var(--model); }

.wrap { padding-inline: var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-title { font-family: var(--f-display); font-size: clamp(48px, 9vw, 140px); text-transform: uppercase; line-height: 0.86; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em;
  border: 2px solid var(--fg); transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--spring);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--f-display); font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.logo__img { display: block; height: 26px; width: auto; }
.nav { display: flex; gap: 28px; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__right { justify-self: end; display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.cart-count.is-bump { animation: bump 0.5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.4); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--bone); padding-block: 14px; }
.marquee__track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee__item { font-family: var(--f-display); font-size: clamp(28px, 4vw, 56px); text-transform: uppercase; padding-inline: 0.5em; white-space: nowrap; }
.marquee__item:nth-child(even) { color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bone); padding: 56px var(--gutter) 28px; }
.footer__top { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(242, 239, 233, 0.14); }
.footer__top h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; color: rgba(242, 239, 233, 0.5); margin-bottom: 14px; }
.footer__top li { padding-block: 4px; }
.footer__top a:hover { color: var(--orange); }
.footer__slogan { font-family: var(--f-display); font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; line-height: 0.9; }
.footer__slogan span { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(242, 239, 233, 0.5); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% 140%;
  padding: 14px 20px; border-radius: 999px; background: var(--ink); color: var(--bone);
  font-weight: 600; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
  transition: translate 0.5s var(--spring);
}
.toast.is-on { translate: -50% 0; }

@media (max-width: 860px) {
  .header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
