/* =========================================================
   HOZAY — feuille de style
   Tout ce qui compte visuellement est ici, en variables,
   pour que tu puisses changer une couleur en un seul endroit.
   ========================================================= */

:root {
  /* --- Palette Hozay --- */
  --corail: #FF6F61;
  --corail-fonce: #E85A4D;
  --teal: #2AA198;
  --sable: #E7DFC6;
  --encre: #1E1E1E;
  --creme: #FBF8F2;

  /* --- Typographie --- */
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  /* --- Rythme --- */
  --radius: 14px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.5;
}

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

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

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.btn-primary {
  background: var(--corail);
  color: var(--creme);
}
.btn-primary:hover:not(:disabled) { background: var(--corail-fonce); }

.btn-ghost {
  background: transparent;
  border-color: var(--encre);
  color: var(--encre);
}
.btn-ghost:hover { background: var(--encre); color: var(--creme); }

.btn-full { width: 100%; }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.logo-bang { color: var(--corail); }

.main-nav { display: flex; gap: 1.8rem; font-weight: 500; font-size: 0.95rem; }
.main-nav a { position: relative; }
.main-nav a:hover { color: var(--corail-fonce); }

.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--encre);
  padding: 0.4rem;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--corail);
  color: var(--creme);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--sable);
  overflow: hidden;
  padding: 5rem 1.5rem 6rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  max-width: 640px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--corail-fonce);
  margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero-title .hl {
  color: var(--corail-fonce);
  font-style: italic;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  max-width: 480px;
  color: rgba(30, 30, 30, 0.75);
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Le tampon signature, positionné dans le coin du hero */
.patch-stamp {
  position: absolute;
  right: 4%;
  bottom: -30px;
  color: var(--encre);
  opacity: 0.85;
  animation: spin-slow 40s linear infinite;
}
@media (max-width: 780px) {
  .patch-stamp { display: none; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .patch-stamp { animation: none; }
}

/* =========================================================
   BOUTIQUE
   ========================================================= */
.shop {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.section-title.light { color: var(--creme); }

.section-sub {
  margin-top: 0.8rem;
  color: rgba(30, 30, 30, 0.65);
  font-size: 1.05rem;
}

.product-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  text-align: left;
}
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(30, 30, 30, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(30, 30, 30, 0.1);
}

.product-visual {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--encre);
}

.product-body { padding: 1.4rem 1.4rem 1.6rem; }

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.product-desc {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: rgba(30, 30, 30, 0.65);
}

.product-footer {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-weight: 700;
  font-size: 1.1rem;
}

.add-to-cart {
  background: var(--encre);
  color: var(--creme);
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.add-to-cart:hover { background: var(--corail-fonce); }

/* petit écusson qui apparaît au survol de la carte, écho au tampon du hero */
.card-patch {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--teal);
  color: var(--creme);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.product-card:hover .card-patch { opacity: 1; transform: translateY(0); }

/* =========================================================
   À PROPOS
   ========================================================= */
.about {
  background: var(--encre);
  color: var(--creme);
  padding: 6rem 1.5rem;
}
.about-inner {
  max-width: 640px;
  margin: 0 auto;
}
.about-inner p {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: rgba(251, 248, 242, 0.85);
}
.about-inner .tagline {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--corail);
}

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--sable);
}
.footer-logo { justify-content: center; }
.footer-tagline {
  margin-top: 0.4rem;
  color: rgba(30, 30, 30, 0.65);
}
.footer-copy {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: rgba(30, 30, 30, 0.5);
}

/* =========================================================
   TIROIR DU PANIER
   ========================================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--creme);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 1.4rem 1.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(30,30,30,0.08);
}
.cart-header h3 { font-family: var(--font-display); font-size: 1.4rem; }
.cart-close {
  background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--encre);
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
}
.cart-empty { color: rgba(30,30,30,0.5); font-size: 0.95rem; }

.cart-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(30,30,30,0.06);
  align-items: center;
}
.cart-item-visual {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--sable);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; }
.cart-item-price { font-size: 0.82rem; color: rgba(30,30,30,0.55); margin-top: 0.15rem; }

.qty-control {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.4rem;
}
.qty-control button {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(30,30,30,0.2);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.remove-item {
  background: none; border: none; cursor: pointer;
  color: rgba(30,30,30,0.4);
  font-size: 0.78rem;
  text-decoration: underline;
  margin-left: auto;
}

.cart-footer {
  padding: 1.2rem 1.4rem 1.6rem;
  border-top: 1px solid rgba(30,30,30,0.08);
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 1.05rem;
  margin-bottom: 1rem;
}
.cart-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: rgba(30,30,30,0.5);
  text-align: center;
}
