/* ==========================================================================
   AZK PARFUM — feuille de style
   Palette : ivoire chaud, sable, encre, or — esprit maison de niche
   ========================================================================== */

:root {
  --cream: #FAF6EE;
  --cream-2: #F4EDE0;
  --sand: #EDE1CB;
  --sand-deep: #E2D2B3;
  --ink: #2A2119;
  --ink-soft: #56493C;
  --taupe: #8C7A64;
  --gold: #B4914F;
  --gold-deep: #8C6D34;
  --gold-pale: #D9C9A3;
  --line: #E1D3B8;
  --white: #FFFFFF;
  --shadow: 0 18px 40px -22px rgba(42, 33, 25, 0.35);
  --shadow-soft: 0 10px 24px -14px rgba(42, 33, 25, 0.25);

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
}

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

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

button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 18px 0 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-bottom: 14px;
}

.brand {
  text-align: center;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--ink);
}

.brand-tagline {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
}

.header-actions {
  position: absolute;
  right: 28px;
  top: 4px;
  display: flex;
  gap: 18px;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.icon-btn:hover { background: var(--sand); }

.icon-btn svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; }

.icon-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: var(--white);
  font-size: 0.62rem;
  line-height: 16px;
  text-align: center;
  font-family: var(--sans);
}

.menu-toggle {
  position: absolute;
  left: 28px;
  top: 4px;
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

.main-nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  padding-bottom: 16px;
}

.main-nav a {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-color: var(--gold);
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
  }
  .main-nav.open { display: flex; }
  .header-actions { right: 16px; }
  .menu-toggle { left: 16px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--sand) 62%, var(--sand-deep) 100%);
  padding: 64px 0 0;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero-sub {
  max-width: 480px;
  margin: 22px auto 30px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

.hero-stage {
  position: relative;
  margin-top: 48px;
  height: clamp(280px, 40vw, 460px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(-30px, -2vw, 10px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8%;
  height: 46%;
  background: radial-gradient(ellipse at center, rgba(180, 145, 79, 0.16) 0%, rgba(180, 145, 79, 0) 72%);
}

.hero-bottle {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s cubic-bezier(.2,.7,.3,1) forwards;
}

.hero-bottle img {
  height: var(--h, 70%);
  width: auto;
  filter: drop-shadow(0 22px 18px rgba(42, 33, 25, 0.22));
}

.hero-bottle:nth-child(1) { animation-delay: 0.05s; margin-bottom: 0; }
.hero-bottle:nth-child(2) { animation-delay: 0.15s; margin-bottom: 4%; }
.hero-bottle:nth-child(3) { animation-delay: 0.25s; margin-bottom: 8%; }
.hero-bottle:nth-child(4) { animation-delay: 0.35s; margin-bottom: 2%; }
.hero-bottle:nth-child(5) { animation-delay: 0.45s; margin-bottom: 0; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-floor {
  height: 34px;
  background: linear-gradient(180deg, var(--sand-deep), var(--cream));
}

@media (max-width: 640px) {
  .hero-stage { gap: -18px; }
  .hero-bottle:nth-child(3) { display: none; }
}

/* ==========================================================================
   Bandeau confiance
   ========================================================================== */

.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 22px 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.trust-item svg { width: 18px; height: 18px; stroke: var(--gold-deep); fill: none; flex-shrink: 0; }

/* ==========================================================================
   Section générique
   ========================================================================== */

.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--cream-2); }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { display: block; margin-bottom: 12px; }

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Grille collection
   ========================================================================== */

.filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-chip {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--white);
  transition: all 0.2s ease;
}

.filter-chip:hover { border-color: var(--gold); color: var(--ink); }

.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--gold-pale);
}

.card-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  transition: background 0.2s ease, transform 0.15s ease;
}

.card-fav:hover { transform: scale(1.08); }

.card-fav svg {
  width: 17px; height: 17px;
  stroke: var(--ink);
  fill: none;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.card-fav.is-active svg {
  fill: var(--gold-deep);
  stroke: var(--gold-deep);
}

.card-media {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-media img {
  max-height: 100%;
  max-width: 82%;
  filter: drop-shadow(0 14px 14px rgba(42, 33, 25, 0.16));
}

.card-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--cream-2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-family {
  font-size: 0.78rem;
  color: var(--taupe);
  margin-bottom: 8px;
  min-height: 34px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.card-price {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}

.card-price span {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  color: var(--taupe);
  font-weight: 300;
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.add-btn:hover { background: var(--gold-deep); }

.add-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

.add-btn.added { background: var(--gold-deep); }

/* ==========================================================================
   Avis clients
   ========================================================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.stars svg { width: 15px; height: 15px; fill: var(--gold); stroke: none; }

.review-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 20px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.review-name {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}

.review-meta {
  font-size: 0.72rem;
  color: var(--taupe);
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.reviews-score {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
}

.reviews-summary-text {
  text-align: left;
}

.reviews-summary-text .stars { margin-bottom: 4px; }

.reviews-summary-text small {
  color: var(--taupe);
  font-size: 0.76rem;
}

/* ==========================================================================
   Favoris / Panier
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-soft);
}

.empty-state svg {
  width: 48px; height: 48px;
  stroke: var(--gold-pale);
  fill: none;
  margin-bottom: 18px;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.empty-state p { margin-bottom: 24px; font-size: 0.9rem; }

.empty-state .hero-cta { background: var(--ink); color: var(--cream); }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.cart-row-media {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  border-radius: 12px;
}

.cart-row-media img { max-height: 78%; max-width: 78%; }

.cart-row-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-row-family { font-size: 0.74rem; color: var(--taupe); margin-bottom: 10px; }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty-control button {
  width: 28px; height: 28px;
  font-size: 1rem;
  color: var(--ink-soft);
}

.qty-control button:hover { background: var(--cream-2); }

.qty-control span {
  width: 30px;
  text-align: center;
  font-size: 0.84rem;
}

.cart-row-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-row-price {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}

.remove-btn {
  font-size: 0.7rem;
  color: var(--taupe);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.remove-btn:hover { color: var(--ink); }

.summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  position: sticky;
  top: 110px;
}

.summary-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: none;
  padding-top: 14px;
}

.summary-card .hero-cta {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

/* ==========================================================================
   Bloc maison / valeurs
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  text-align: center;
}

@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; gap: 30px; } }

.value-icon {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
}

.value-icon svg { width: 20px; height: 20px; stroke: var(--gold-deep); fill: none; }

.value-block h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value-block p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--cream-2);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.14);
}

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-brand .brand-mark { color: var(--cream); font-size: 1.5rem; }
.footer-brand p {
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(250, 246, 238, 0.65);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.86rem;
  color: rgba(250, 246, 238, 0.75);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.74rem;
  color: rgba(250, 246, 238, 0.45);
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: var(--cream);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 300;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Pages (vues)
   ========================================================================== */

.view { display: none; }
.view.active { display: block; }

.page-hero {
  padding: 56px 0 20px;
  text-align: center;
}

.page-hero .eyebrow { display: block; margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { margin-top: 12px; color: var(--ink-soft); font-size: 0.94rem; }

@media (prefers-reduced-motion: reduce) {
  .hero-bottle { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
