/* ============================================================
   Art Flight Instruments — feuille de style du site vitrine
   Palette inspirée des tableaux de bord Concorde : acier anthracite,
   ambre d'alerte, blanc cassé façon cadran vieilli.
   ============================================================ */

:root {
  --bg: #0c0f12;
  --bg-alt: #12161a;
  --panel: #1a2025;
  --panel-2: #20262c;
  --steel: #454d55;
  --steel-light: #6b7580;
  --line: #262d33;
  --line-soft: #1e242a;
  --amber: #e6a13a;
  --amber-dim: #a97a34;
  --red: #c1443b;
  --text: #ece7dd;
  --text-dim: #a7adb3;
  --text-faint: #6d747b;
  --radius: 3px;
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-heading: 'ITC Blair Medium', 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

@font-face {
  font-family: 'ITC Blair Medium';
  src: url('/fonts/ITC-Blair-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- petits éléments récurrents ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.kicker::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}
.kicker.center { justify-content: center; }
.center { text-align: center; }

.section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .3em; }
.section-sub { color: var(--text-dim); max-width: 560px; margin: 0 auto 2.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--amber); color: #1a1305; }
.btn-primary:hover { background: #f0af49; }
.btn-ghost { border-color: rgba(236,231,221,0.35); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-block { width: 100%; }

/* motif "rivets" aux quatre coins - clin d'oeil aux vis des instruments */
.riveted {
  background-image:
    radial-gradient(circle, var(--steel-light) 0 2px, transparent 2.6px),
    radial-gradient(circle, var(--steel-light) 0 2px, transparent 2.6px),
    radial-gradient(circle, var(--steel-light) 0 2px, transparent 2.6px),
    radial-gradient(circle, var(--steel-light) 0 2px, transparent 2.6px);
  background-repeat: no-repeat;
  background-size: 6px 6px;
  background-position:
    9px 9px, calc(100% - 9px) 9px,
    9px calc(100% - 9px), calc(100% - 9px) calc(100% - 9px);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(12,15,18,0.92);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 128px;
}
.brand { display: flex; align-items: center; }
.brand-mark { height: 100px; width: auto; display: block; filter: drop-shadow(0 0 1px rgba(0,0,0,.4)); }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-size: .92rem; color: var(--text-dim); }
.main-nav a:hover { color: var(--amber); }

.nav-toggle {
  display: none;
  position: relative;
  width: 34px; height: 34px;
  background: none; border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  position: absolute; left: 6px;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 21px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center 35%;
  filter: saturate(0.85) brightness(0.55);
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(180deg, rgba(10,12,14,.55) 0%, rgba(10,12,14,.35) 35%, rgba(10,12,14,.92) 100%),
    linear-gradient(90deg, rgba(10,12,14,.75) 0%, rgba(10,12,14,.1) 55%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 70px; max-width: 780px; }
.hero-eyebrow { color: var(--amber); font-size: .95rem; font-weight: 500; margin-bottom: 18px; }
.hero-title { font-size: clamp(1rem, 4.6vw, 2.65rem); line-height: 1.22; margin-bottom: .45em; }
.hero-sub { color: var(--text-dim); font-size: 1.08rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- intro strip ---------- */
.intro-strip { background: var(--bg-alt); padding: 110px 0 70px; border-bottom: 1px solid var(--line-soft); }
.intro-inner { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.intro-photo img { border: 1px solid var(--line); }
.intro-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.intro-text p { color: var(--text-dim); }
.link-more { color: var(--amber); font-weight: 600; font-size: .92rem; }
.link-more:hover { text-decoration: underline; }

/* ---------- collections / produits ---------- */
.collections { padding: 100px 0 110px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .86rem;
  transition: all .15s ease;
}
.filter-pill:hover { border-color: var(--amber-dim); color: var(--text); }
.filter-pill.is-active { background: var(--amber); border-color: var(--amber); color: #1a1305; font-weight: 600; }

.collection-block { margin-bottom: 64px; }
.collection-block:last-child { margin-bottom: 0; }
.collection-head { margin-bottom: 26px; border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }
.collection-head h3 { font-size: 1.35rem; margin-bottom: 4px; }
.collection-head p { color: var(--text-faint); font-size: .9rem; max-width: 640px; margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.product-card:hover { border-color: var(--steel-light); transform: translateY(-3px); }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #05070a;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-featured-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(12,15,18,.82);
  color: var(--amber);
  font-size: .7rem;
  padding: 4px 9px;
  border: 1px solid var(--amber-dim);
}
.product-plate {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}
.product-name { font-size: 1.05rem; margin-bottom: 4px; }
.product-dims { color: var(--text-faint); font-size: .78rem; margin-bottom: 10px; }
.product-desc { color: var(--text-dim); font-size: .86rem; margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.product-price { color: var(--amber); font-weight: 700; font-size: 1.05rem; }
.product-link { font-size: .8rem; color: var(--text-dim); }
.product-card:hover .product-link { color: var(--amber); }

.loading-note, .empty-note { text-align: center; color: var(--text-faint); padding: 40px 0; }

/* ---------- about / artiste ---------- */
.about { padding: 110px 0; background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.about-text p { color: var(--text-dim); white-space: pre-line; }
.about-facts { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.about-facts li { border-left: 2px solid var(--amber-dim); padding-left: 16px; color: var(--text-dim); font-size: .92rem; }
.about-facts li span { display: block; color: var(--text); font-weight: 600; font-family: var(--font-display); margin-bottom: 2px; }
.about-col-photo { position: relative; }
.about-col-photo img { border: 1px solid var(--line); }
.photo-plate {
  position: absolute; left: 16px; bottom: -16px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 8px 16px; font-size: .76rem; color: var(--text-dim);
}

/* ---------- contact ---------- */
.contact { padding: 110px 0 120px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-text p { color: var(--text-dim); }
.contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-details > div { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.contact-details dt { color: var(--text-faint); font-size: .78rem; margin-bottom: 4px; }
.contact-details dd { margin: 0; font-size: 1rem; }
.contact-details a:hover { color: var(--amber); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-note { font-size: .78rem; color: var(--text-faint); margin: 0; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--text-dim); }
.contact-form input, .contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 13px;
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--amber);
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-top: 50px; background: var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; padding-bottom: 30px; align-items: start; }
.footer-brand { display: flex; align-items: center; }
.footer-brand .footer-mark { height: 120px; width: auto; }
.footer-nav { display: flex; gap: 24px; align-self: center; }
.footer-nav a { color: var(--text-dim); font-size: .9rem; }
.footer-nav a:hover { color: var(--amber); }
.footer-note { grid-column: 1 / -1; color: var(--text-faint); font-size: .78rem; max-width: 640px; margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 18px 24px;
  display: flex; justify-content: center; align-items: center;
  color: var(--text-faint); font-size: .78rem;
}

/* ---------- modale produit ---------- */
.modal-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200;
  background: rgba(6,8,10,.82);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  max-width: 900px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(12,15,18,.7); color: var(--text);
  border: 1px solid var(--line); width: 34px; height: 34px;
  border-radius: 50%; font-size: 1rem; z-index: 2;
}
.modal-close:hover { color: var(--amber); border-color: var(--amber); }
.modal-media { background: #05070a; min-height: 260px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 34px; }
.modal-price { color: var(--amber); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.modal-dimensions { color: var(--text-faint); font-size: .85rem; }
.modal-description { color: var(--text-dim); margin: 16px 0 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .intro-inner { grid-template-columns: 1fr; }
  .intro-photo { max-width: 320px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-col-photo { order: -1; max-width: 420px; }
  .contact-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .modal-media { min-height: 220px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner { height: 84px; }
  .brand-mark { height: 64px; }
  .hero { min-height: 100vh; }
  .hero-inner { padding-top: 84px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* menu mobile ouvert : panneau plein écran */
body.nav-open .main-nav {
  display: flex;
  position: fixed;
  top: 84px; right: 0; bottom: 0; left: 0;
  background: var(--bg);
  flex-direction: column;
  padding: 30px 24px;
  gap: 0;
  z-index: 99;
}
body.nav-open .main-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.1rem;
}
