/* ==========================================================================
   Bijouterie Couasnon - Design system
   ========================================================================== */

:root {
  --color-cream: #f8f5f0;
  --color-white: #ffffff;
  --color-black: #191714;
  --color-charcoal: #262420;
  --color-gray-light: #ece8e1;
  --color-gray: #8c877e;
  --color-gold: #b28a4c;
  --color-gold-soft: #c9a876;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container-width: 1180px;
  --header-height: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-black);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-black);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.8em 1.4em;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 6vw;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1em 2.4em;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.btn-outline {
  border: 1px solid rgba(248, 245, 240, 0.55);
  color: var(--color-cream);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-cream);
  color: var(--color-black);
  border-color: var(--color-cream);
}

.btn-line {
  border: 1px solid var(--color-black);
  color: var(--color-black);
}
.btn-line:hover,
.btn-line:focus-visible {
  background: var(--color-black);
  color: var(--color-cream);
}

.link-button {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.link-button:hover,
.link-button:focus-visible {
  border-bottom-color: currentColor;
}

.placeholder-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-soft);
  padding: 0.15em 0.6em;
  border-radius: 2px;
  margin-left: 0.4em;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(25, 23, 20, 0.06);
}

.header-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream);
  transition: color 0.5s var(--ease);
}
.is-scrolled .brand {
  color: var(--color-black);
}

.main-nav ul {
  display: flex;
  gap: 2.6rem;
}

.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.5s var(--ease), border-color 0.3s var(--ease);
}
.is-scrolled .main-nav a {
  color: var(--color-black);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  border-bottom-color: var(--color-gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--color-cream);
  transition: background 0.5s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.is-scrolled .nav-toggle span {
  background: var(--color-black);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-cream);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
  box-shadow: 0 1px 0 rgba(25, 23, 20, 0.06);
}
.mobile-nav.is-open {
  max-height: 320px;
}
.mobile-nav ul {
  padding: 1rem 6vw 2rem;
}
.mobile-nav a {
  display: block;
  padding: 0.9em 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-gray-light);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6vw;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(178, 138, 76, 0.14), transparent 55%),
    linear-gradient(160deg, #201d19 0%, #191714 55%, #121110 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 120px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--color-cream);
}

.hero-divider {
  width: 64px;
  height: 1px;
  background: var(--color-gold-soft);
  margin: 2rem auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: rgba(248, 245, 240, 0.82);
  max-width: 480px;
  margin: 0 auto 2.8rem;
  line-height: 1.7;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: rgba(248, 245, 240, 0.25);
}
.hero-scroll-cue span {
  position: absolute;
  top: 0;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold-soft);
  animation: scrollCue 2.6s var(--ease) infinite;
}

@keyframes scrollCue {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .reveal {
  transition-delay: 0.15s;
}
.hero-content .reveal:nth-child(2) { transition-delay: 0.3s; }
.hero-content .reveal:nth-child(3) { transition-delay: 0.42s; }
.hero-content .reveal:nth-child(4) { transition-delay: 0.54s; }
.hero-content .reveal:nth-child(5) { transition-delay: 0.66s; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(5rem, 12vw, 9rem) 0;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-align: center;
}

.section-divider {
  width: 56px;
  height: 1px;
  background: var(--color-gold-soft);
  margin: 1.8rem auto 0;
}

/* Presentation */

.presentation-text {
  max-width: 680px;
  margin: 2.6rem auto 0;
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--color-charcoal);
  line-height: 1.85;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

.value-item {
  text-align: center;
  padding: 0 1rem;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--color-gold);
  margin-bottom: 1.4rem;
}
.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.value-item p {
  font-size: 0.92rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* Boutiques */

.boutiques {
  background: var(--color-white);
}

.boutique-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4.5rem;
}

.boutique-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-cream);
}

.boutique-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.boutique-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boutique-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.4rem 2.2rem 2.6rem;
}

.boutique-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

.boutique-address,
.boutique-phone,
.boutique-hours {
  font-size: 0.92rem;
  color: var(--color-charcoal);
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

.boutique-note {
  color: var(--color-gray);
  font-style: italic;
}

.boutique-phone a {
  border-bottom: 1px solid var(--color-gold-soft);
}

.boutique-content .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Contact */

.contact-text {
  max-width: 560px;
  margin: 1.6rem auto 0;
  text-align: center;
  color: var(--color-charcoal);
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  text-align: center;
}

.contact-item h3 {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--color-gold);
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--color-charcoal);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.contact-item a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.contact-item a:hover {
  border-bottom-color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-black);
  color: var(--color-cream);
  padding: 3.4rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-nav .link-button {
  color: var(--color-gold-soft);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(248, 245, 240, 0.5);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Legal modal
   -------------------------------------------------------------------------- */

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw;
  background: rgba(25, 23, 20, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.legal-overlay[hidden] {
  display: none;
}

.legal-overlay.is-visible {
  opacity: 1;
}

.legal-modal {
  position: relative;
  background: var(--color-cream);
  max-width: 560px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 3rem 2.6rem;
  transform: translateY(16px);
  transition: transform 0.4s var(--ease);
}

.legal-overlay.is-visible .legal-modal {
  transform: translateY(0);
}

.legal-modal h2 {
  font-size: 1.7rem;
  margin-bottom: 1.6rem;
}

.legal-body p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-charcoal);
  margin-bottom: 1.4rem;
}

.legal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-gray);
  width: 36px;
  height: 36px;
}
.legal-close:hover {
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }
  .boutique-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 72px;
  }
  .hero-eyebrow {
    letter-spacing: 0.2em;
  }
  .section {
    padding: 4.5rem 0;
  }
  .boutique-content {
    padding: 2rem 1.6rem 2.2rem;
  }
}
