@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Noto+Sans+KR:wght@300;400&family=Cormorant+Garamond:ital,wght@0,300;1,300&display=swap');

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

:root {
  --red: #C0392B;
  --deep: #1a1008;
  --sand: #f5efe6;
  --ink: #2c1a0e;
  --gold: #b8860b;
  --light: #faf7f2;
}

html { scroll-behavior: smooth; }

body {
  background: var(--light);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 60px;
  background: rgba(26,16,8,0.88);
  backdrop-filter: blur(8px);
  flex-wrap: nowrap;
}

nav .brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--sand);
  letter-spacing: 0.08em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul a {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
  white-space: nowrap;
}

nav ul a:hover { opacity: 1; color: #e8c97a; }

/* ── STICKY APP BANNER ── */
.sticky-app-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2.5rem;
  background: rgba(26,16,8,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(184,134,11,0.3);
  transform: translateY(0);
  -webkit-transform: translateY(0);
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s ease;
  opacity: 1;
  /* Flutter Android WebView : forcer le rendu du bandeau */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Fallback sticky si position:fixed non supporté (Flutter WebView) */
@supports not (position: fixed) {
  .sticky-app-banner {
    position: sticky;
    bottom: 0;
    width: 100%;
  }
}

.sticky-app-banner.hidden {
  transform: translateY(110%);
  -webkit-transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.sticky-app-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.sticky-app-banner .banner-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid rgba(184,134,11,0.4);
}

.sticky-app-banner .banner-copy {
  min-width: 0;
}

.sticky-app-banner .banner-copy strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--sand);
  white-space: nowrap;
}

.sticky-app-banner .banner-copy span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(245,239,230,0.5);
  text-transform: uppercase;
  white-space: nowrap;
}

.sticky-app-banner .banner-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--gold);
  color: var(--deep);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 1px;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.sticky-app-banner .banner-btn:hover {
  background: #e8c97a;
  transform: scale(1.04);
}

@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 -2px 24px rgba(184,134,11,0.15); }
  50% { box-shadow: 0 -2px 36px rgba(184,134,11,0.35); }
}

.sticky-app-banner {
  animation: bannerPulse 3s ease-in-out infinite;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 33.4vw; /* ratio exact de coree-hero : 660/1977 */
  min-height: 220px;
  max-height: 660px;
  overflow: hidden;
  display: block;
  margin-top: 60px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,16,8,0.72) 0%, rgba(26,16,8,0.1) 60%, transparent 100%);
}

.hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 3.5rem 4rem;
  max-width: 820px;
}

.hero-text .tag {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #e8c97a;
  margin-bottom: 1rem;
  display: block;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-text h1 em {
  font-style: italic;
  color: #e8c97a;
}

/* ── IMAGE HERO (autres sections) ── */
.img-section {
  width: 100%;
  height: 60vh;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.img-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 8s ease;
}

.img-section:hover img { transform: scale(1.04); }

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #2c1a0e 0%, #4a2c17 50%, #2c1a0e 100%);
  color: rgba(245,239,230,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.img-placeholder svg { opacity: 0.3; }

/* ── SECTIONS TEXTE ── */
.text-section {
  padding: 5rem 4rem;
  max-width: 80%;
  width: 80%;
  margin: 0 auto;
}

.text-section .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
  display: block;
}

.text-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1.8rem;
}

.text-section p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #4a3728;
  max-width: 100%;
}

.text-section p + p { margin-top: 1rem; }

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin: 2rem auto;
}

/* ── SECTION APP ── */
.app-section {
  background: var(--deep);
  padding: 6rem 4rem;
  text-align: center;
}

.app-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--sand);
  font-weight: 400;
  margin-bottom: 1rem;
}

.app-section .sub {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e8c97a;
  margin-bottom: 3.5rem;
  display: block;
}

/* ── LOGO SVG PLACEHOLDER ── */
.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), filter 0.3s;
  cursor: pointer;
}

.logo-link:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 12px 28px rgba(184,134,11,0.45));
}

.logo-svg {
  width: 180px;
  height: 180px;
}

/* ── PAGE APP ── */
.page-intro {
  padding: 5rem 4rem 3rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.page-intro .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.4rem;
  display: block;
}

.page-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.features {
  padding: 4rem;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(44,26,14,0.08);
  padding: 2rem;
  border-radius: 2px;
  box-shadow: 0 2px 18px rgba(44,26,14,0.06);
}

.feature-card .icon { font-size: 1.8rem; margin-bottom: 1rem; }

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #6b4f3a;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--deep);
  color: var(--sand);
  text-decoration: none;
  padding: 1rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(245,239,230,0.2);
  transition: background 0.3s, border-color 0.3s;
  margin-top: 2.5rem;
}

.store-btn:hover { background: var(--red); border-color: var(--red); }

.lorem-section {
  padding: 4rem;
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid rgba(44,26,14,0.1);
}

.lorem-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.lorem-section p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #6b4f3a;
  margin-bottom: 1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--deep);
  color: rgba(245,239,230,0.45);
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; gap: 0.6rem; }
  nav ul { gap: 0.8rem; }
  nav ul a { font-size: 0.58rem; letter-spacing: 0.08em; }
  nav .brand { font-size: 0.82rem; letter-spacing: 0.03em; }

  .hero { margin-top: 60px; }
  .hero-text { padding: 1.2rem 1.2rem; }
  .hero-text h1 { font-size: clamp(1rem, 5vw, 1.8rem); }
  .hero-text .tag { font-size: 0.6rem; }

  .text-section { padding: 3rem 1.5rem; max-width: 100%; width: 100%; }
  .app-section { padding: 4rem 1.5rem; }
  .features { padding: 2rem 1.5rem; }
  .page-intro { padding: 3.5rem 1.5rem 2rem; }
  .lorem-section { padding: 2.5rem 1.5rem; }

  /* Bandeau sticky mobile : version compacte */
  .sticky-app-banner {
    padding: 0.7rem 1rem;
    gap: 0.6rem;
  }
  .sticky-app-banner .banner-copy span {
    display: none; /* cache le sous-titre sur très petits écrans */
  }
  .sticky-app-banner .banner-copy strong {
    font-size: 0.82rem;
  }
  .sticky-app-banner .banner-btn {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
  }
}
