/* Page d'accueil — complète style.css (mêmes couleurs, mêmes polices) */
html { scroll-behavior: smooth; }
body.home { font-size: 16px; }
.home a { color: inherit; }

/* ---- En-tête ---- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, #b0405f55, transparent 60%),
              linear-gradient(135deg, #3a0a1a, #7b1e3a 60%, #9c2f4f);
  color: #fff; padding: 0 0 72px;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; }
.brand { font-family: "Cormorant Garamond", serif; font-size: 26px; font-weight: 700; text-decoration: none; }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
}
.nav-cta:hover { background: rgba(255,255,255,.12); }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 36px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; margin: 0 0 18px; }
.lead { font-size: 18px; line-height: 1.55; opacity: .92; margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light { background: #fff; color: #7b1e3a; text-decoration: none; display: inline-block; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); text-decoration: none; display: inline-block; }
.hero-note { font-size: 13px; opacity: .7; margin: 18px 0 0; }

/* Aperçu de l'appli */
.hero-preview {
  background: var(--bg); color: var(--ink); border-radius: 18px; padding: 16px;
  box-shadow: 0 30px 80px rgba(20,0,8,.45); transform: rotate(1.2deg);
}
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pv-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.pv-stats b { display: block; font-family: "Cormorant Garamond", serif; font-size: 22px; color: var(--wine); }
.pv-stats span { font-size: 12px; color: var(--muted); }
.pv-card {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-top: 8px;
}
.pv-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pv-card b { font-family: "Cormorant Garamond", serif; font-size: 18px; }
.pv-card small { color: var(--muted); font-size: 12px; }
.pv-card em { font-style: normal; align-self: flex-start; }
.pv-bottle { width: 12px; height: 40px; border-radius: 4px 4px 3px 3px; background: var(--c); flex: none; box-shadow: inset 0 -14px 0 rgba(255,255,255,.75), inset 0 -26px 0 var(--c); }
.pv-qty { font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }

/* ---- Sections ---- */
.section { padding: 64px 16px; }
.section h2 { font-family: "Cormorant Garamond", serif; font-size: clamp(30px, 4vw, 40px); margin: 0 0 8px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 0 0 32px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature span { font-size: 26px; }
.feature h3 { margin: 8px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.steps-wrap { background: var(--wine-soft); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border-radius: 16px; padding: 20px; border: 1px solid var(--line); }
.steps b {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--wine); color: #fff; font-family: "Cormorant Garamond", serif; font-size: 20px;
}
.steps h3 { margin: 10px 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---- Connexion ---- */
.auth-section { scroll-margin-top: 16px; }
.auth-box {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(60,20,30,.08);
}
.auth-side { background: linear-gradient(135deg, #4a0f22, #7b1e3a); color: #fff; padding: 36px; }
.auth-side h2 { text-align: left; color: #fff; }
.auth-side p { opacity: .88; line-height: 1.6; margin: 0; }
.auth-panel { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-panel h3 { font-family: "Cormorant Garamond", serif; font-size: 28px; margin: 0; }
.auth-panel p { margin: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; }
.tab { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); padding: 9px; border-radius: 9px; cursor: pointer; }
.tab.on { background: var(--card); color: var(--wine); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
#authForm { display: flex; flex-direction: column; gap: 14px; }
#authForm label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 16px; padding: 6px; opacity: .6; }
.btn-block { width: 100%; text-align: center; text-decoration: none; display: block; padding: 12px 16px; }
.auth-panel .link { align-self: center; }

.foot { padding: 28px 16px 40px; color: var(--muted); font-size: 14px; text-align: center; }
.foot a { color: var(--wine); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; }
  .hero-preview { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .auth-box { grid-template-columns: 1fr; }
  .auth-side { padding: 26px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .section { padding: 48px 16px; }
  .lead { font-size: 16px; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .auth-panel { padding: 22px; }
  .pv-stats b { font-size: 18px; }
}
