/* ============================================================
   ANORMAL — Stylesheet partagé
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #FFFFFF; /* white */
  --background2: #F3F3F1; /* near-white panel */
  --text:    #171717; /* Graphite */
  --white:    #FFFFFF; /* pure white, for text on dark bands */
  --accent:      #D4AF37; /* gold — primary CTA fill */
  --accent-strong: #B8952E; /* deeper gold, hover fill state */
  --accent-blue: #BED9F4; /* pastel baby blue — unused, available */
  --accent-green: #8FB78F; /* pastel sage — unused, available */
  --accent-cream: #FFEFB3; /* pastel cream — badges/tags & dark-band highlights */
  --pink: #FC0FC0; /* vivid pink — navbar outline */
  --dark-grey: #333333; /* navbar & footer background */
  --graphite: #171717; /* explicit alias, dark band backgrounds */
  --text2: #6E6E6C; /* muted grey, secondary text on light */
  --border: rgba(23,23,23,0.14); /* hairline dividers on light */
  --border-on-dark: rgba(245,247,242,0.18); /* hairline dividers on dark bands */
  --text-on-dark2: rgba(245,247,242,0.65); /* muted light text on dark bands */
  --charcoal: #171717; /* deepest surface, for max-emphasis bands */
  --grey: var(--text2);
  --red: var(--text);
  --radius: 6px;
  --font-display: 'Archivo Black', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background-color: var(--graphite);
  border-bottom: 2px solid var(--text);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 480px;
  max-width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--white) 0px, var(--white) 220px, var(--graphite) 480px);
  z-index: 0;
  pointer-events: none;
}

.navbar__logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  background-color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
}

.navbar__logo img {
  height: 20px;
  width: auto;
  display: block;
}

.navbar__logo:hover {
  opacity: 0.82;
}

.navbar__links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark2);
  position: relative;
  transition: color 0.2s;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--pink);
  transition: width 0.3s ease;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--white);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* Burger menu (mobile) */
.navbar__burger {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s;
}

/* ── Page wrapper ── */
.page {
  padding-top: 72px; /* height of navbar */
}

/* ── Section générique ── */
.section {
  padding: 6rem 3rem;
}

.section--dark {
  background-color: var(--charcoal);
}

.section--dark .section__label {
  color: var(--accent);
}

.section--dark .section__title {
  color: var(--white);
}

.section--dark .section__subtitle {
  color: var(--text-on-dark2);
}

.section--dark .btn--outline {
  border-color: var(--white);
  color: var(--white);
}

.section--dark .btn--outline:hover {
  background-color: var(--white);
  color: var(--text);
}

.section--background2 {
  background-color: var(--background2);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--text);
}

.btn--primary:hover {
  background-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23,23,23,0.25);
}

.btn--outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn--outline:hover {
  background-color: var(--text);
  color: var(--background);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text2);
  border: 1px solid var(--background2);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ── Filtres (boutons de filtre réutilisés sur boutique & collection) ── */
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border: none;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--accent-blue);
  margin: 1.5rem 0;
}

/* ── Cards ── */
.card {
  background-color: var(--background2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: 0 12px 28px rgba(23,23,23,0.18);
}

.card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: var(--charcoal)
}

.card__body {
  padding: 1.5rem;
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.6;
}

.card__price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 1rem;
}

/* ── Grid utilitaires ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Footer ── */
.footer {
  background-color: var(--dark-grey);
  border-top: 2px solid var(--dark-grey);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer__logo {
  display: inline-flex;
  background-color: var(--dark-grey);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.footer__logo img {
  height: 26px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-on-dark2);
  max-width: 220px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-on-dark2);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--pink);
}

.footer__address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-on-dark);
  font-size: 0.8rem;
  color: var(--text-on-dark2);
  letter-spacing: 0.02em;
}

.footer__address svg {
  flex-shrink: 0;
  color: var(--pink);
}

.footer__bottom {
  background-color: var(--dark-grey);
  border-top: 1px solid var(--dark-grey);
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-on-dark2);
  letter-spacing: 0.1em;
}

/* ── Formulaire contact ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text2);
}

.form__input,
.form__textarea,
.form__select {
  background-color: var(--background2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(62,138,99,0.3);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text2);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__select option {
  background-color: var(--background2);
}

/* ── Glitch animation (hero) ── */
@keyframes glitch {
  0%   { clip-path: inset(0 0 95% 0); transform: translate(-4px, 0); }
  10%  { clip-path: inset(30% 0 50% 0); transform: translate(4px, 0); }
  20%  { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 0); }
  30%  { clip-path: inset(80% 0 5% 0);  transform: translate(3px, 0); }
  40%  { clip-path: inset(0 0 0 0);     transform: translate(0, 0); }
  100% { clip-path: inset(0 0 0 0);     transform: translate(0, 0); }
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.glitch::before {
  color: var(--accent);
  animation: glitch 4s infinite steps(1);
  opacity: 0.6;
}

.glitch::after {
  color: var(--accent);
  animation: glitch 4s infinite steps(1) 0.1s;
  opacity: 0.4;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .navbar::before {
    width: 320px;
    max-width: 80%;
    background: linear-gradient(90deg, var(--white) 0px, var(--white) 170px, var(--graphite) 320px);
  }

  .navbar__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-grey);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 2px solid var(--text);
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__burger {
    display: flex;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .section__title {
    font-size: 2.2rem;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .glitch::before,
  .glitch::after {
    animation: none;
  }

  .card:hover {
    transform: none;
  }

  .btn--primary:hover {
    transform: none;
  }
}
