/*
 * components.css — KIRA Collection
 * Header global / menu drawer / footer — classes indépendantes de kira.css
 * Chargé APRÈS kira.css → ces règles prennent le dessus
 */

/* ── Reset body padding (kira.css met 96px pour fixed header) ── */
body {
  padding-top: 0 !important;
}

/* ── Body lock quand menu ouvert ─────────────────────── */
body.menu-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
.kira-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(31, 29, 27, 0.07);
  box-sizing: border-box;
}

/* Burger — col gauche */
.kira-burger {
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1F1D1B;
}
.kira-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.3s;
}

/* Logo header — flexbox clip : image 2000×2000, logo ~25% h × 36% w au centre
   Image rendue à 220px → logo visible ≈ 55px h × 79px w, container 84×58px */
.kira-logo-link {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 58px;
  overflow: hidden;
  flex-shrink: 0;
}
.kira-logo-img {
  width: 220px;
  height: auto;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

/* Actions droite — col droite */
.kira-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}
.kira-search-btn,
.kira-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(31, 29, 27, 0.65);
  padding: 4px;
  position: relative;
  transition: color 0.2s;
  text-decoration: none;
}
.kira-search-btn:hover,
.kira-cart-btn:hover {
  color: #1F1D1B;
}

/* Badge panier */
.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  background: #A67C7D;
  color: #fff;
  font-size: 8.5px;
  font-weight: 500;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  padding: 0 2px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   MENU DRAWER GAUCHE
═══════════════════════════════════════════════════════ */
.kira-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 27, 0.28);
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.35s ease;
}
.kira-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.kira-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(84vw, 360px);
  height: 100vh;
  background: #F8F5EF;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  padding: 34px 30px;
  box-sizing: border-box;
  display: block;
  visibility: hidden;
}
.kira-menu-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.kira-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #1F1D1B;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.kira-menu-close:hover {
  color: #A67C7D;
}

.kira-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
}
.kira-menu-nav a {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: #1a0a12;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(180, 60, 100, 0.12);
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.kira-menu-nav a:first-child {
  border-top: 0.5px solid rgba(180, 60, 100, 0.12);
}
.kira-menu-nav a:hover {
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   CART DRAWER (compatible avec composants JS existant)
═══════════════════════════════════════════════════════ */
.kira-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.kira-cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.kira-cart-drawer {
  z-index: 1400 !important;
}

/* Toast notification */
.kira-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1a0a12;
  color: #fff;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.26s;
  z-index: 500;
  white-space: nowrap;
}
.kira-toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════
   FOOTER — nouveau footer minimaliste (.kf)
   N'interfère pas avec le footer inline de index.html
═══════════════════════════════════════════════════════ */
.kira-foot {
  background: #F8F5EF;
  border-top: 0.5px solid rgba(31, 29, 27, 0.10);
  padding: 36px 40px 28px;
  margin-top: 40px;
}

.kf__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ── Logo centré : image 260px → logo visible ≈ 65px h × 94px w ── */
.kf__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 72px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.kf__logo img {
  width: 260px;
  height: auto;
  flex-shrink: 0;
  mix-blend-mode: multiply;
}

/* ── Ligne 2 : liens ── */
.kf__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
}
.kf__links a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(31, 29, 27, 0.58);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0 12px;
  transition: color 0.2s;
}
.kf__links a:hover {
  color: #1F1D1B;
}
.kf__dot {
  color: rgba(31, 29, 27, 0.20);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Ligne 3 : réseaux sociaux ── */
.kf__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.kf__social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(31, 29, 27, 0.48);
  text-decoration: none;
  padding: 0 12px;
  transition: color 0.2s;
}
.kf__social svg { flex-shrink: 0; transition: color 0.2s; }
.kf__social:hover,
.kf__social:hover svg { color: #1F1D1B; }

/* ── Ligne 4 : copyright ── */
.kf__copy {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 10px !important;
  font-weight: 300 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  color: #B8B0AC !important;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Header */
  .kira-header {
    height: 64px;
    padding: 0 16px;
  }
  .kira-logo-link {
    width: 68px;
    height: 46px;
  }
  .kira-logo-img {
    width: 174px;
  }

  /* Footer */
  .kira-foot {
    padding: 24px 20px 18px;
    margin-top: 24px;
  }
  .kf__inner {
    gap: 14px;
  }

  /* Logo footer mobile */
  .kf__logo {
    width: 84px;
    height: 58px;
  }
  .kf__logo img {
    width: 208px;
  }

  /* Liens mobile */
  .kf__links a {
    font-size: 10px;
    padding: 0 8px;
  }

  /* Socials mobile */
  .kf__social {
    font-size: 9px;
    padding: 0 8px;
    gap: 5px;
  }
  .kf__social svg {
    width: 13px;
    height: 13px;
  }

  /* Copyright mobile */
  .kf__copy {
    font-size: 9px;
  }
}
