/* =============================================================
   KC HERO v2.1 — « Authentique & Personnalisé »
   Charte KoreanCosmetics :
     Couleurs  Rose #F5C1D4 · Blanc #FEFBFB · Bleu clair #CEDBF2 · Pervenche #7C92CB
     Polices   The Seasons (titres) · Satoshi (texte) · Schoolbell (manuscrit)
     (Pinyon Script non utilisée ici : illisible en petite taille à l'écran)
   Préfixe .kc2- (aucun conflit avec .kc-hero v1)
   ============================================================= */

/* The Seasons : police sous licence, à déposer dans views/fonts/ (woff2).
   Tant que les fichiers sont absents, le navigateur passe à Fraunces (repli). */
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'The Seasons';
  src: url('../fonts/TheSeasons-BoldItalic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

.kc2-hero {
  /* Charte */
  --kc2-rose: #F5C1D4;
  --kc2-white: #FEFBFB;
  --kc2-sky: #CEDBF2;
  --kc2-periwinkle: #7C92CB;
  /* Teintes dérivées (pervenche foncée) pour textes et boutons lisibles (contraste AA) */
  --kc2-accent: #4F64A6;
  --kc2-ink: #23243A;
  --kc2-muted: #4A4560;
  --kc2-line: rgba(124, 146, 203, .28);

  --kc2-serif: 'The Seasons', 'Fraunces', Georgia, serif;
  --kc2-sans: 'Satoshi', 'Noto Sans KR', system-ui, sans-serif;
  --kc2-hand: 'Schoolbell', 'Comic Sans MS', cursive;

  background: linear-gradient(120deg, var(--kc2-rose) 0%, var(--kc2-white) 52%, var(--kc2-sky) 100%);
  padding: 112px 0 40px; /* nav flottante du thème */
  font-family: var(--kc2-sans);
  color: var(--kc2-ink);
  margin-top: 0 !important;
}

/* Le thème fixe la police élément par élément : on impose celles de la charte */
.kc2-hero,
.kc2-hero * { font-family: var(--kc2-sans); }
.kc2-hero .kc2-hero__title,
.kc2-hero .kc2-hero__title *,
.kc2-hero .kc2-routine__head strong { font-family: var(--kc2-serif); }
.kc2-hero .kc2-routine__note { font-family: var(--kc2-hand); }

/* Neutralise le reset global « * { margin-top: 2px } » du thème */
.kc2-hero *,
.kc2-hero *::before,
.kc2-hero *::after {
  margin-top: 0;
  box-sizing: border-box;
}

.kc2-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

/* ── Colonne gauche ── */
.kc2-hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.kc2-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 7px 16px 7px 10px;
  background: rgba(254, 251, 251, .85);
  border: 1px solid var(--kc2-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--kc2-ink);
  line-height: 1.3;
}

.kc2-flag {
  display: inline-flex;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px #E5E5E5;
}
.kc2-flag span { width: 7px; height: 100%; }
.kc2-flag span:nth-child(1) { background: #1E3A8A; }
.kc2-flag span:nth-child(2) { background: #fff; }
.kc2-flag span:nth-child(3) { background: #D62839; }

.kc2-hero .kc2-hero__title {
  margin: 0;
  font-family: var(--kc2-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--kc2-ink);
  text-transform: none;
}
.kc2-hero__auth { color: var(--kc2-accent); }
.kc2-hero__amp {
  font-style: italic;
  font-weight: 400;
  color: var(--kc2-periwinkle);
}
.kc2-hero__perso { font-style: italic; }

.kc2-hero .kc2-hero__subtitle {
  margin: 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--kc2-muted);
}

/* Piliers */
.kc2-hero__pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 580px;
}
.kc2-pillar {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(254, 251, 251, .9);
  border: 1px solid var(--kc2-line);
  border-radius: 16px;
}
.kc2-pillar__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kc2-accent);
}
.kc2-pillar__icon svg { width: 20px; height: 20px; }
.kc2-pillar__icon--auth { background: var(--kc2-rose); }
.kc2-pillar__icon--perso { background: var(--kc2-sky); }
.kc2-pillar__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kc2-pillar__head { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; }
.kc2-hangul { font-size: 13px; font-weight: 400; color: var(--kc2-accent); }
.kc2-pillar__text { font-size: 14px; line-height: 1.45; color: var(--kc2-muted); }

/* CTA */
.kc2-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.kc2-hero a.kc2-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 8px 30px;
  border-radius: 999px;
  background: var(--kc2-accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(79, 100, 166, .7);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.kc2-hero a.kc2-btn:hover,
.kc2-hero a.kc2-btn:focus-visible {
  color: #fff;
  background: #3F5291;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(79, 100, 166, .8);
}
.kc2-btn__label { font-size: 17px; font-weight: 700; line-height: 1.3; }
.kc2-btn__sub { font-size: 12px; font-weight: 500; opacity: .92; line-height: 1.3; }

.kc2-hero a.kc2-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  color: var(--kc2-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--kc2-periwinkle);
}
.kc2-hero a.kc2-link:hover { color: var(--kc2-accent); border-color: var(--kc2-accent); }
.kc2-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.kc2-link:hover svg { transform: translateX(3px); }

.kc2-hero a:focus-visible { outline: 3px solid var(--kc2-ink); outline-offset: 3px; }

/* Preuve (note) */
.kc2-hero__proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--kc2-muted);
}
.kc2-hero__proof strong { color: var(--kc2-ink); font-size: 15px; }
.kc2-stars { color: #D99A00; letter-spacing: 1px; }

/* ── Colonne droite : visuel ── */
.kc2-hero__visual {
  position: relative;
  height: 500px;
  border-radius: 32px;
  background: rgba(254, 251, 251, .55);
  border: 1px solid rgba(254, 251, 251, .9);
  box-shadow: 0 30px 60px -40px rgba(79, 100, 166, .55);
  overflow: hidden;
}
/* Halo décoratif rose / bleu */
.kc2-hero__visual::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 193, 212, .8) 0%, rgba(245, 193, 212, 0) 70%);
  pointer-events: none;
}
.kc2-hero__visual::after {
  content: '';
  position: absolute;
  inset: auto auto -10% -10%;
  width: 70%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(206, 219, 242, .9) 0%, rgba(206, 219, 242, 0) 70%);
  pointer-events: none;
}

/* Cachet authenticité : étiquette centrée en haut, ne touche pas les produits */
.kc2-seal {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--kc2-white);
  border: 1.5px dashed var(--kc2-periwinkle);
  box-shadow: 0 8px 20px -14px rgba(35, 36, 58, .4);
  white-space: nowrap;
}
.kc2-seal svg { width: 16px; height: 16px; flex: none; color: var(--kc2-accent); }
.kc2-seal__1 { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kc2-accent); line-height: 1.2; }
.kc2-seal__2 { font-size: 12px; font-weight: 500; color: var(--kc2-ink); line-height: 1.2; }
.kc2-seal__2::before { content: '·'; margin-right: 8px; color: var(--kc2-periwinkle); }

/* Scène produits */
.kc2-stage {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
}
.kc2-stage__item {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 36px -20px rgba(79, 100, 166, .55);
  animation: kc2-float 6s ease-in-out infinite;
}
.kc2-stage__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kc2-stage__item--1 { width: 112px; height: 112px; margin-right: -12px; animation-delay: 1s; }
.kc2-stage__item--2 { width: 150px; height: 150px; position: relative; z-index: 1; }
.kc2-stage__item--3 { width: 104px; height: 104px; margin-left: -12px; animation-delay: 2s; }
.kc2-stage__shadow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 228px;
  transform: translateX(-50%);
  width: 320px;
  height: 22px;
  border-radius: 50%;
  background: rgba(79, 100, 166, .14);
}

@keyframes kc2-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Carte routine */
.kc2-card--routine {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--kc2-line);
  border-radius: 22px;
  box-shadow: 0 20px 40px -24px rgba(35, 36, 58, .45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kc2-routine__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kc2-routine__head strong { font-family: var(--kc2-serif); font-size: 19px; font-weight: 700; }
.kc2-routine__note {
  font-family: var(--kc2-hand);
  font-size: 16px;
  color: var(--kc2-accent);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.kc2-routine__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kc2-routine__tags span { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--kc2-rose); color: var(--kc2-ink); }
.kc2-hero .kc2-routine__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kc2-routine__steps a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  margin: 0 -6px;
  border-radius: 10px;
  color: var(--kc2-ink);
  text-decoration: none;
}
.kc2-routine__steps a:hover { background: var(--kc2-white); color: var(--kc2-ink); }
.kc2-routine__n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--kc2-sky);
  color: var(--kc2-accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kc2-routine__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc2-routine__step { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--kc2-muted); }
.kc2-routine__name { font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc2-routine__price { font-size: 14px; font-weight: 700; color: var(--kc2-accent); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .kc2-stage__item { animation: none; }
  .kc2-hero a.kc2-btn, .kc2-link svg { transition: none; }
}

/* ── Tablette ── */
@media (max-width: 1199px) {
  .kc2-hero__inner { padding: 0 32px; gap: 36px; }
  .kc2-stage__item--1 { width: 100px; height: 100px; }
  .kc2-stage__item--2 { width: 136px; height: 136px; }
  .kc2-stage__item--3 { width: 94px; height: 94px; }
  .kc2-stage__shadow { top: 214px; width: 280px; }
}

@media (max-width: 991px) {
  .kc2-hero { padding-top: 100px; }
  .kc2-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .kc2-hero__visual { width: 100%; max-width: 600px; margin: 0 auto; }
}

/* ── Mobile ── */
@media (max-width: 575px) {
  .kc2-hero { padding: 92px 0 28px; }
  .kc2-hero__inner { padding: 0 18px; gap: 24px; }
  .kc2-hero__content { gap: 16px; }
  .kc2-hero__badge { font-size: 12.5px; }
  .kc2-hero .kc2-hero__title { font-size: 2.3rem; }
  .kc2-hero .kc2-hero__subtitle { font-size: 15.5px; }

  .kc2-hero__pillars { gap: 10px; }
  .kc2-pillar { flex-direction: column; gap: 8px; padding: 12px; }
  .kc2-pillar__icon { width: 34px; height: 34px; }
  .kc2-pillar__icon svg { width: 18px; height: 18px; }
  .kc2-pillar__head { font-size: 15px; }
  .kc2-pillar__text { font-size: 13px; }

  .kc2-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .kc2-hero a.kc2-btn { align-items: center; text-align: center; width: 100%; }
  .kc2-hero a.kc2-link {
    justify-content: center;
    min-height: 48px;
    border: 2px solid var(--kc2-periwinkle);
    border-radius: 999px;
  }
  .kc2-hero__proof { justify-content: center; }

  .kc2-hero__visual { height: 460px; border-radius: 26px; }
  .kc2-seal { top: 12px; padding: 6px 12px 6px 8px; gap: 6px; }
  .kc2-seal svg { width: 14px; height: 14px; }
  .kc2-seal__1 { font-size: 10px; }
  .kc2-seal__2 { font-size: 11px; }
  .kc2-stage { top: 52px; }
  .kc2-stage__shadow { top: 166px; width: 230px; height: 18px; }
  .kc2-stage__item--1 { width: 84px; height: 84px; }
  .kc2-stage__item--2 { width: 110px; height: 110px; }
  .kc2-stage__item--3 { width: 80px; height: 80px; }
  .kc2-card--routine { left: 12px; right: 12px; bottom: 12px; padding: 14px; gap: 8px; }
  .kc2-routine__head strong { font-size: 17px; }
  .kc2-routine__note { font-size: 14px; }
}

/* Texte réservé aux lecteurs d'écran */
.kc2-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
