@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Courier+Prime:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  position: relative;
  min-height: 100vh;
}

/* tapisserie — crâne de marque répété, visible dans les bandes
   latérales (hors de la colonne de contenu 1100px). Deux bandes
   fixes indépendantes plutôt qu'un masque, pour un rendu fiable
   sur tous les navigateurs. */
.tapestry-band {
  position: fixed;
  top: 0;
  bottom: 0;
  width: calc((100% - 1100px) / 2);
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/tapestry-skull.png");
  background-repeat: repeat;
  background-size: 220px 220px;
}

.tapestry-band-left { left: 0; }
.tapestry-band-right { right: 0; }

@media (max-width: 1150px) {
  .tapestry-band { display: none; }
}

.site-header, .hero, .shop, .site-footer {
  position: relative;
  z-index: 1;
}

/* film grain / static overlay — subtle, always on, theme controls intensity */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tape);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 2rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.main-nav a:hover { color: var(--text); }
.main-nav a.active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.menu-toggle:hover { border-color: var(--text); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1rem;
  z-index: 150;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 0.9rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text); }
.mobile-nav a.active { color: var(--text); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wordmark a {
  display: flex;
  align-items: center;
}

.wordmark-img {
  height: 22px;
  width: auto;
  display: block;
}

.wordmark .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.cart-toggle {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.cart-toggle:hover { border-color: var(--accent); }

.cart-count {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-compact {
  min-height: 110px;
  padding: 1.2rem 2rem;
}

.hero-compact .hero-doodle-1 {
  top: 0.6rem;
  left: 1.5rem;
  width: 40px;
}

.hero-compact .hero-doodle-2 {
  bottom: 0.6rem;
  right: 1.5rem;
  width: 55px;
}

.hero-logo {
  display: block;
  width: 170px;
  max-width: 45vw;
  margin: 0 auto;
  opacity: 0.95;
}

.hero-home {
  min-height: calc(100vh - 200px);
}

.hero-intro {
  min-height: 0;
  padding: 4rem 2rem 3.5rem;
  border-bottom: none;
}

.hero-category {
  min-height: 440px;
}

.hero-logo-home {
  width: 230px;
  max-width: 55vw;
}

.hero-text {
  margin-top: 2rem;
  text-align: left;
}

.hero-tagline {
  margin-top: 1.1rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline:first-child {
  margin-top: 0;
}

.hero-tagline-emphasis {
  color: var(--text);
  margin-top: 1.6rem;
}

.home-banner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.banner-doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.15;
}

.banner-doodle-1 {
  top: -1.5rem;
  left: -1rem;
  width: 60px !important;
  transform: rotate(-8deg);
}

.banner-doodle-2 {
  bottom: -1.8rem;
  right: -0.5rem;
  width: 75px !important;
  transform: rotate(10deg);
}

@media (max-width: 900px) {
  .banner-doodle { display: none; }
}

.home-banner img:not(.banner-doodle) {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
}

.home-banner .banner-doodle {
  width: auto;
  height: auto;
}

.hero-icon {
  display: block;
  width: 145px;
  max-width: 40vw;
  height: auto;
  margin: 0 auto;
  color: var(--text);
  opacity: 0.85;
}

.hero-garment {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 45vw;
  max-height: 45vw;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0.92;
}

.hero-soon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.5rem;
}

.hero-soon-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.03em;
  color: var(--text);
  margin-top: 1.6rem;
}

.hero-doodle {
  position: absolute;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-doodle-1 {
  top: 1.5rem;
  left: 2rem;
  width: 64px;
  transform: rotate(-10deg);
}

.hero-doodle-2 {
  top: 1rem;
  right: 2.5rem;
  width: 105px;
  transform: rotate(6deg);
}

@media (max-width: 780px) {
  .hero-doodle { display: none; }
}

.hero .case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--tape);
  border: 1px dashed var(--border-strong);
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  max-width: 14ch;
}

.hero h1 span { color: var(--accent); }

/* ---------- Product grid ---------- */
.shop {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
  position: relative;
}

.shop-doodle {
  position: absolute;
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.shop-doodle-1 {
  top: -1.8rem;
  left: -0.5rem;
  width: 80px;
  transform: rotate(-8deg);
}

.shop-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.shop-heading h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.03em;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.product-card {
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.55rem;
  color: var(--tape);
}

.product-photo {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg, var(--surface-raised), var(--surface-raised) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.2rem;
  position: relative;
}

.product-photo.has-image {
  background-color: #1c1c1c;
  border-style: solid;
}

.product-photo span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding: 0.4rem 0.6rem;
}

.product-photo.has-image span { display: none; }

.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  z-index: 2;
}
.photo-nav:hover {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-color: var(--text);
}
.photo-nav-prev { left: 0.6rem; }
.photo-nav-next { right: 0.6rem; }

.photo-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.photo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 40%, transparent);
  border: 1px solid var(--border-strong);
}
.photo-dot.active {
  background: var(--text);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.product-price {
  font-family: var(--font-mono);
  color: var(--tape);
  margin: 0.3rem 0 1rem;
}

.info-toggle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: underline;
  margin-bottom: 1rem;
  text-align: left;
}
.info-toggle:hover { color: var(--text); }

.info-panel {
  display: none;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px dashed var(--border-strong);
  background: var(--surface-raised);
}
.info-panel.open { display: block; }

.size-chart {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 0.8rem;
}
.size-chart th, .size-chart td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.5rem;
  text-align: center;
  color: var(--text-dim);
}
.size-chart th { color: var(--text); font-weight: 600; }
.size-chart .size-chart-label {
  text-align: left;
  color: var(--text);
}

.size-chart-unit {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.info-care {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-dim);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.info-description {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.info-fit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-dim);
  padding-top: 0.6rem;
}

.product-sizes {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.size-pill {
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.size-pill:hover { border-color: var(--accent); }
.size-pill.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.size-pill.sold-out {
  color: var(--text-dim);
  border-color: var(--border);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.5;
}
.size-pill.sold-out:hover { border-color: var(--border); }

.add-btn {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  padding: 0.85rem 1rem;
  text-align: center;
  transition: all 0.15s;
}
.add-btn:hover { background: var(--text); color: var(--bg); }
.add-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.add-btn:disabled:hover { background: none; color: var(--text); }

.add-btn.just-added { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.cart-close {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 2rem;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 72px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  background-size: cover;
  background-position: center;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.qty-btn {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.qty-btn:hover { border-color: var(--accent); }

.remove-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-align: right;
  align-self: start;
  text-transform: uppercase;
}
.remove-btn:hover { text-decoration: underline; }

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 1.5rem 1.6rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.cart-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.checkout-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem;
  text-align: center;
  transition: filter 0.15s;
}
.checkout-btn:hover { filter: brightness(1.12); }
.checkout-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-doodle {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%) rotate(12deg);
  width: 38px;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.site-footer > div, .site-footer .footer-links, .site-footer .footer-pages {
  position: relative;
  z-index: 1;
}

.footer-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

.footer-pages a {
  margin-right: 1.1rem;
}

.footer-pages a:last-child {
  margin-right: 0;
}

.footer-pages a:hover { color: var(--text); }

/* ---------- Info pages (FAQ, Retours, Termes, Confidentialité) ---------- */
.info-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
  min-height: 50vh;
}

.info-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
}

.info-content {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-dim);
}

.info-content p {
  margin-bottom: 1.2rem;
}

.info-placeholder {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px dashed var(--border-strong);
  padding: 1.5rem;
}

/* ---------- Contact page (mise en page simplifiée) ---------- */
.contact-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-heading h1 {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-logo {
  width: 44px;
  height: auto;
  opacity: 0.95;
}

.contact-content p {
  margin-bottom: 0.9rem;
}

.contact-label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.2rem !important;
}

.faq-item {
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.faq-item p {
  margin-bottom: 0;
}

.faq-item a {
  color: var(--text);
  text-decoration: underline;
}
.faq-item a:hover { color: var(--tape); }

.footer-brand {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.footer-shipping {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}
.footer-links a {
  color: var(--text-dim);
  display: flex;
}
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .site-header { padding: 1rem; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .shop { padding: 2.5rem 1.2rem 4rem; }
  .cart-item { grid-template-columns: 50px 1fr; }
  .remove-btn { grid-column: 2; text-align: left; }
  .shop-heading { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

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

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