/* =============================================================
   KC DESIGN SYSTEM — Étape 1 : tokens globaux & utilitaires
   koreancosmetics.fr — v1.0
   ============================================================= */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ── Variables ── */
:root {
  --kc-pink:        #EC4899;
  --kc-pink-light:  #F9A8D4;
  --kc-pink-bg:     #FDF2F8;
  --kc-pink-deep:   #831843;
  --kc-pink-mid:    #FCE7F3;
  --kc-purple:      #8B5CF6;
  --kc-purple-light:#C4B5FD;
  --kc-purple-bg:   #EDE9FE;
  --kc-white-glass: rgba(255,255,255,0.6);
  --kc-blur:        blur(16px);
}

/* ── Font globale ── */
body,
body * {
  font-family: 'Noto Sans KR', sans-serif;
}

/* ── Glassmorphism ── */
.kc-glass {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
}

.kc-glass-dark {
  background: rgba(131,24,67,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(236,72,153,0.15);
}

/* ── Gradients ── */
.kc-gradient-hero {
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 40%, #EDE9FE 100%);
}

.kc-gradient-cta {
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
}

.kc-gradient-stats {
  background: linear-gradient(135deg, #EC4899 0%, #A855F7 50%, #8B5CF6 100%);
}

/* ── Blob shape ── */
.kc-blob {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* ── Animations ── */
@keyframes kc-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(3deg); }
}
@keyframes kc-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kc-float      { animation: kc-float 6s ease-in-out infinite; }
.kc-float-d    { animation: kc-float 6s ease-in-out infinite 2s; }
.kc-fade-in    { animation: kc-fade-in 0.6s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .kc-float, .kc-float-d { animation: none; }
}

/* ── Boutons CTA ── */
.kc-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
}
.kc-btn-primary:hover {
  box-shadow: 0 8px 24px rgba(236,72,153,0.35);
  transform: scale(1.02);
  color: #fff;
  text-decoration: none;
}

.kc-btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139,92,246,0.3);
  color: #8B5CF6;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: 'Noto Sans KR', sans-serif;
}
.kc-btn-secondary:hover {
  background: rgba(139,92,246,0.1);
  transform: scale(1.01);
  color: #8B5CF6;
  text-decoration: none;
}

/* ── Badge pill ── */
/* =============================================================
   NAVIGATION FLOTTANTE
   ============================================================= */

.kc-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  overflow: visible; /* permet au panel de recherche de dépasser */
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(131,24,67,0.08);
}

.kc-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

/* Logo */
.kc-nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.kc-nav__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kc-nav__logo-icon svg { width: 16px; height: 16px; fill: #fff; }
.kc-nav__logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #831843;
  white-space: nowrap;
}
.kc-nav__logo-text span { color: #EC4899; }
.kc-nav__logo-img { height: 40px; width: auto; display: block; }

/* Liens */
.kc-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.kc-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: #831843 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.kc-nav__link:hover { color: #EC4899 !important; }
.kc-nav__b2b {
  background: rgba(139,92,246,0.1);
  color: #8B5CF6 !important;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.kc-nav__b2b:hover { background: rgba(139,92,246,0.2); color: #8B5CF6 !important; }

/* Droite */
.kc-nav__right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.kc-nav__cart {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
  text-decoration: none !important;
}
.kc-nav__cart:hover { background: rgba(236,72,153,0.08); }
.kc-nav__cart svg { width: 20px; height: 20px; fill: #831843; }
.kc-nav__lang {
  font-size: 13px;
  font-weight: 500;
  color: #831843;
}

/* Hook displayNav2 dans la nav flottante */
.kc-nav__right { align-items: center; }

.kc-nav__right .blockcart .cart-products-count,
.kc-nav__right #_desktop_cart .cart-products-count {
  background: #EC4899;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Annule l'absolute du thème — inline à côté de "Panier" */
  position: relative !important;
  top: auto !important;
  right: auto !important;
  margin-left: 4px;
}

/* Panier */
.kc-nav__right .blockcart a,
.kc-nav__right #_desktop_cart a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #831843 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.kc-nav__right .blockcart a:hover { background: rgba(236,72,153,0.08); }


/* =============================================================
   TAB FLOTTANT "SE CONNECTER" — fixed top: 30vh, right: 0
   ============================================================= */

.kc-login-tab {
  position: fixed;
  top: 30vh;
  right: 0;
  z-index: 9997;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-right: none;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 4px 20px rgba(131,24,67,0.10);
}

.kc-login-tab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  color: #831843 !important;
  text-decoration: none !important;
  transition: background 0.2s ease;
  border-radius: 10px 0 0 10px;
}

.kc-login-tab a:hover {
  background: rgba(236,72,153,0.07);
  color: #EC4899 !important;
}

.kc-login-tab i {
  font-size: 18px;
  line-height: 1;
  color: #831843;
}

.kc-login-tab a:hover i { color: #EC4899; }

.kc-login-tab__text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Mobile — texte masqué, icône seule */
@media (max-width: 768px) {
  .kc-login-tab__text { display: none; }
  .kc-login-tab a { padding: 12px 9px; }
}

/* Social login — supprimé via override TPL vide (ets_sociallogin/views/templates/hook/social-login.tpl) */

/* Mobile */
@media (max-width: 768px) {
  .kc-nav { top: 8px; left: 8px; right: 8px; }
  .kc-nav__links { display: none; }

  /* Menu mobile Mega Menu PRO — commence sous la kc-nav */
  .transition_floating .mm_menus_ul,
  .transition_full .mm_menus_ul {
    top: 76px !important;
  }

  .kc-nav__lang { display: none; }

  /* Masquer "Rechercher" — garder l'icône */
  .kc-nav__right .search_icon_toogle {
    font-size: 0 !important;
    gap: 0;
  }
  .kc-nav__right .search_icon_toogle i {
    font-size: 16px !important;
  }

  /* Masquer "Panier" — garder icône et badge */
  .kc-nav__right .blockcart a,
  .kc-nav__right #_desktop_cart a {
    font-size: 0 !important;
    gap: 2px;
  }
  .kc-nav__right .blockcart a i,
  .kc-nav__right #_desktop_cart a i {
    font-size: 20px !important;
  }
  .kc-nav__right .blockcart .cart-products-count,
  .kc-nav__right #_desktop_cart .cart-products-count {
    font-size: 10px !important;
  }
}

/* =============================================================
   RECHERCHE DANS LA NAV
   ============================================================= */

/* Cookiesplus — hors nav */
.kc-nav__right #cookie-link {
  display: none !important;
}

/* Annule min-width: 16.5rem du thème sur #search_widget */
@media (min-width: 992px) {
  .kc-nav__right #search_widget {
    min-width: 0 !important;
  }
}

/* Wrapper d_flex_between — flex item dans kc-nav__right */
.kc-nav__right .d_flex_between {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 4px;
  flex: 0 0 auto; /* ne s'étire pas */
}

/* Toggle — grande zone cliquable, icône seule */
.kc-nav__right .search_icon_toogle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  color: #831843;
  padding: 8px 10px;
  min-width: 36px;
  min-height: 36px;
  line-height: 1 !important; /* écrase line-height: 50px du thème */
  border-radius: 10px;
  transition: background 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  gap: 5px;
  vertical-align: middle;
}
.kc-nav__right .search_icon_toogle i {
  font-size: 16px !important;
  line-height: 1;
  pointer-events: none; /* click bubble vers le span parent */
}
.kc-nav__right .search_icon_toogle:hover {
  background: rgba(236,72,153,0.08);
}

/* Panel — centré sous la nav, largeur fixe */
.kc-nav__right .search_block_top_fixed {
  display: none; /* caché par défaut, jQuery slideDown() peut l'ouvrir */
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: calc(100% + 32px); /* ne dépasse pas la nav */
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(131,24,67,0.12);
  padding: 16px 24px;
}
.kc-nav__right .search_block_top_content form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kc-nav__right #search_query_top {
  flex: 1;
  border: 1px solid rgba(236,72,153,0.25);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  background: rgba(255,255,255,0.8);
  color: #831843;
}
.kc-nav__right #search_query_top:focus {
  border-color: #EC4899;
  box-shadow: 0 0 0 3px rgba(236,72,153,0.12);
}
.kc-nav__right .button-search {
  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.kc-nav__right .button-search:hover { opacity: 0.88; }

/* Supprimer l'espace blanc résiduel au-dessus du mega menu */
.header_content .header_home2,
.header_content .header-top,
.header_content .wrapper_header_top,
.header_content .wrapper_header_top > .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  min-height: 0 !important;
  border: none !important;
}

/* =============================================================
   BADGES
   ============================================================= */

/* =============================================================
   HERO SECTION
   ============================================================= */

.kc-hero {
  padding: 100px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.kc-hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
}

/* ── Contenu gauche ── */
.kc-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #831843;
  width: fit-content;
  white-space: nowrap;
}

.kc-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #EC4899;
  border-radius: 50%;
  flex-shrink: 0;
}

.kc-hero__text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #1a0a10;
  line-height: 1.15;
  margin-bottom: 16px;
}

.kc-hero__text p {
  font-size: 16px;
  color: rgba(26,10,16,0.65);
  line-height: 1.65;
  max-width: 520px;
}

.kc-hero__cta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px;
  margin-top: 8px;
}
.kc-hero__cta > a,
.kc-hero__cta .kc-btn-primary,
.kc-hero__cta .kc-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

.kc-hero__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.kc-hero__trust {
  font-size: 12px;
  font-weight: 500;
  color: rgba(131,24,67,0.7);
  white-space: nowrap;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ── Contenu — largeur max ── */
.kc-hero__content {
  max-width: 540px;
}

/* ── Visuel droit ── */
.kc-hero__visual {
  flex: 0 0 480px;
  position: relative;
  height: 480px;
}

/* Blob de fond */
.kc-hero__visual::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  background: rgba(255,255,255,0.45);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.kc-hero__card,
.kc-hero__rating { z-index: 1; }

/* Cartes produits */
.kc-hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #1a0a10 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 180px;
  max-width: 220px;
}

.kc-hero__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(131,24,67,0.15) !important;
  text-decoration: none !important;
  color: #1a0a10 !important;
}

.kc-hero__card--1 { top: 5%;    right: 5%; animation: kc-float 6s ease-in-out infinite; }
.kc-hero__card--2 { bottom: 5%; left: 5%; animation: kc-float 6s ease-in-out infinite 2s; }
.kc-hero__card--3 { top: 65%;   right: 5%; transform: translateY(-50%); animation: kc-float 6s ease-in-out infinite 1s; }

.kc-hero__card-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(236,72,153,0.06);
}

.kc-hero__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kc-hero__card-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a0a10;
  line-height: 1.3;
}

.kc-hero__card-price {
  font-size: 13px;
  font-weight: 700;
  color: #EC4899;
  margin-top: 2px;
}

/* Badge note Google — centré dans la zone visuelle */
.kc-hero__rating {
  position: absolute;
  top: 35%;
  left: 42%;
  transform: translate(-50%, -50%);
  padding: 16px 20px;
  border-radius: 16px;
  text-align: center;
  width: 160px;
  animation: kc-float 6s ease-in-out infinite 3s;
}

.kc-hero__rating-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(131,24,67,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kc-hero__rating-score {
  font-size: 28px;
  font-weight: 800;
  color: #831843;
  line-height: 1;
}

.kc-hero__rating-star {
  color: #EC4899;
  font-size: 24px;
}

.kc-hero__rating-count {
  font-size: 12px;
  color: rgba(131,24,67,0.6);
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .kc-hero {
    padding: 90px 0 40px;
    min-height: auto;
  }
  .kc-hero__inner {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
  }
  .kc-hero__visual {
    width: 100%;
    height: 300px;
  }
  /* Mobile — repositionner les cartes dans 300px de hauteur */
  .kc-hero__card--1 { top: 4%;    right: 4%; }
  .kc-hero__card--2 { bottom: 1%;  left: 4%; }
  .kc-hero__card--3 { bottom: 18%; right: 4%; transform: none; }
  .kc-hero__rating  { top: 38%; left: 40%; }
  .kc-hero__text h1 { font-size: 1.8rem; }
}

/* =============================================================
   BADGES
   ============================================================= */

/* ── Badge pill ── */
.kc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(131,24,67,0.8);
}
