:root {
  --background: #f8f5f0;
  --foreground: #211f1c;
  --card: #ffffff;
  --secondary: #ece7e0;
  --muted-foreground: #6d675f;
  --border: #e0dad1;
  --rose: #f2c3c6;
  --sage: #c7d9be;
  --terracotta: #c4652f;
  --ink: #211f1c;
  --radius: 3px;
  --product-white: #ffffff;
  --product-black: #222222;
  --product-light-blue: #92c9e6;
  --product-navy: #203458;
  --product-red: #cf343d;
  --product-green: #368451;
  --product-orange: #ed8b34;
  --product-gray: #969696;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Bebas Neue", Impact, sans-serif; letter-spacing: 0.02em; margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 1.25rem; }
.narrow { max-width: 52rem; }
.center { text-align: center; }
.center-text { margin-left: auto; margin-right: auto; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,245,240,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.logo { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.6rem; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 0.4rem; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); display: inline-block; }
.logo-light { color: var(--background); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.nav-link:hover, .nav-link.is-active { color: var(--foreground); }
.burger { display: none; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; border-top: 1px solid var(--border); margin-top: 0.75rem; }
  .nav a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav .btn { border-bottom: 0; }
}

/* Boutons */
.btn { display: inline-block; border-radius: var(--radius); padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s; }
.btn-dark { background: var(--ink); color: var(--background); }
.btn-dark:hover { background: var(--terracotta); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--background); }
.btn-rose { background: var(--rose); color: var(--ink); margin-top: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { border-bottom: 1px solid var(--border); padding: 4.5rem 0; }
.hero-dark { background: var(--ink); color: var(--background); }
.hero-soft { background: var(--secondary); }
.display { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 0.98; max-width: 48rem; margin-top: 1.25rem; }
.display.small { font-size: clamp(2.2rem, 5vw, 3rem); }
.lead { margin-top: 1.5rem; max-width: 36rem; color: var(--muted-foreground); }
.lead-light, .hero-dark .lead { color: rgba(248,245,240,0.78); }
.eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.28em; color: var(--terracotta); }
.eyebrow-rose { color: var(--rose); }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Grilles */
.two-cols { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.three-cols { display: grid; gap: 2rem; }
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .two-cols { grid-template-columns: 1fr 1fr; } .three-cols { grid-template-columns: repeat(3, 1fr); } .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Cartes */
.card { position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
.card-flat { padding: 0; }
.card-body { padding: 1.25rem; }
.card-accent::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 5px; }
.accent-rose::before { background: var(--rose); }
.accent-sage::before { background: var(--sage); }
.card-link { display: block; padding: 2rem; transition: box-shadow .15s; }
.card-link:hover { box-shadow: 8px 8px 0 0 var(--ink); }
.card h3, .card-title { margin-top: 0.5rem; font-size: 1.35rem; }
.card .big { font-size: 1.9rem; }
.card-text { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted-foreground); }
.card-detail { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--muted-foreground); }
.arrow { display: inline-block; margin-top: 1.5rem; font-size: 0.875rem; font-weight: 600; }
.card-link:hover .arrow { color: var(--terracotta); }
.visuel { display: flex; height: 11rem; align-items: center; justify-content: center; font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.8rem; letter-spacing: 0.08em; color: rgba(33,31,28,0.7); }
.visuel-rose { background: var(--rose); }
.visuel-sage { background: var(--sage); }

/* Bandes & encarts */
.band { background: var(--secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3.5rem 0; }
.band h3 { font-size: 1.5rem; }
.callout { border: 1px solid var(--border); background: var(--secondary); border-radius: var(--radius); padding: 2rem; text-align: center; margin-bottom: 2rem; }
.callout-card { background: var(--card); }
.callout .btn { margin-top: 1.5rem; }
.callout .card-text { max-width: 32rem; margin-left: auto; margin-right: auto; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.filter { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.filter:hover { border-color: var(--ink); color: var(--foreground); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--background); }

/* Texte */
.prose { margin-top: 2rem; display: grid; gap: 1.25rem; color: var(--muted-foreground); }
.prose strong { color: var(--foreground); }
.note { border: 1px dashed var(--border); background: var(--secondary); border-radius: var(--radius); padding: 1rem; font-size: 0.8rem; color: var(--muted-foreground); margin-top: 2rem; }
.strong-link { font-weight: 600; color: var(--ink); }

/* Formulaire */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.form label { display: block; font-size: 0.875rem; font-weight: 500; margin-top: 1rem; }
.form label:first-of-type { margin-top: 0; }
.form input, .form select, .form textarea { margin-top: 0.35rem; width: 100%; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 0.55rem 0.75rem; font: inherit; font-size: 0.9rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form .btn { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: var(--radius); padding: 0.75rem; font-size: 0.875rem; margin-bottom: 1.25rem; }
.alert-ok { background: var(--sage); color: var(--ink); }
.alert-error { background: #f6d7d2; color: #7a2410; }

/* Pied de page */
.site-footer { margin-top: 6rem; background: var(--ink); color: rgba(248,245,240,0.8); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-title { font-weight: 600; color: var(--background); margin-bottom: 0.75rem; }
.footer-text { margin-top: 0.75rem; font-size: 0.9rem; max-width: 22rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.footer-list a:hover { color: var(--rose); }
.footer-bottom { border-top: 1px solid rgba(248,245,240,0.15); padding: 1.25rem; text-align: center; font-size: 0.75rem; }

/* Catalogue Racing */
.racing-tile { position: relative; display: flex; align-items: end; min-height: 380px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.racing-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.racing-tile-caption { position: relative; width: 100%; margin-top: 200px; padding: 1.25rem; background: color-mix(in srgb, var(--card) 95%, transparent); border-top: 3px solid var(--rose); }
.racing-tile-caption h3 { margin-top: .5rem; font-size: 1.5rem; }
.racing-tile-empty { position: absolute; inset: 0; text-align: center; padding-top: 60px; background: var(--secondary); color: var(--muted-foreground); font-family: "Bebas Neue", sans-serif; font-size: 3rem; }
.racing-tile:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.product-grid { align-items: start; }
.product-gallery { position: relative; border-bottom: 1px solid var(--border); }
.product-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4/3; }
.product-track::-webkit-scrollbar { display: none; }
.product-track img { flex: 0 0 100%; width: 100%; min-width: 0; height: 100%; object-fit: contain; scroll-snap-align: start; }
.product-placeholder { display: grid; place-items: center; aspect-ratio: 4/3; background: var(--secondary); color: var(--muted-foreground); }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer; }
.gallery-prev { left: 12px; }.gallery-next { right: 12px; }
.gallery-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--border); padding: 3px 12px; font-size: .75rem; white-space: nowrap; }
.product-colors { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; margin-bottom: 0; }
.product-colors li { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted-foreground); }
.product-swatch { width: 14px; height: 14px; border: 1px solid var(--border); border-radius: 50%; display: inline-block; flex-shrink: 0; }
.swatch-blanc { background: var(--product-white); }.swatch-noir { background: var(--product-black); }
.swatch-bleu-clair { background: var(--product-light-blue); }.swatch-bleu-marine { background: var(--product-navy); }
.swatch-rouge { background: var(--product-red); }.swatch-vert { background: var(--product-green); }
.swatch-orange { background: var(--product-orange); }.swatch-gris { background: var(--product-gray); }
