/* Page d'accueil uniquement (chargée par /index.html).
   Ne pas importer ailleurs : styles.css reste la base commune. */

:root {
  --home-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --home-paper: #1a1411;
  --home-paper-2: #221a16;
  --home-ink: #f3e9dc;
  --home-ink-soft: rgba(243,233,220,.68);
  --home-line: rgba(243,233,220,.14);
  --home-frame: #f3e9dc;
  --home-wine: #c2416a;
  --home-gold: #e3b45b;
}
:root[data-theme="light"] {
  --home-paper: #f7f0e4;
  --home-paper-2: #efe4d2;
  --home-ink: #2b1d17;
  --home-ink-soft: rgba(43,29,23,.7);
  --home-line: rgba(43,29,23,.14);
  --home-frame: #fffaf2;
  --home-wine: #8b1e3f;
  --home-gold: #a86f12;
}

body:has(.home) { background: var(--home-paper); color: var(--home-ink); }
.home h1, .home h2, .home h3 { font-family: var(--home-serif); color: var(--home-ink); font-weight: 600; letter-spacing: -.01em; }
.home p { color: var(--home-ink-soft); }
.home a:not(.btn) { color: var(--home-ink); text-decoration: underline; text-decoration-color: var(--home-line); text-underline-offset: 3px; }
.home a:not(.btn):hover { color: var(--home-wine); text-decoration-color: currentColor; }

/* En-tête : liens rapides. Rend la marge latérale que .header-inner écrase dans styles.css */
.header-inner, .home-footer .mini-footer-inner { padding-left: 1rem; padding-right: 1rem; }
.home-nav { display: flex; gap: 1.1rem; font-size: 15px; }
.home-nav a { color: var(--text-primary); }
.home-nav a:hover { color: var(--link-hover); }
@media (max-width: 520px) { .home-nav a:last-child { display: none; } }

.home-btn { min-height: 46px; padding: 10px 22px; font-size: 16px; border-radius: 999px; }

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #f6ede1;
  background:
    linear-gradient(90deg, rgba(20,12,9,.88) 0%, rgba(20,12,9,.6) 45%, rgba(20,12,9,.1) 100%),
    url('/assets/home-hero-bg.png') center 40% / cover no-repeat;
}
.home-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(180deg, transparent, var(--home-paper));
  pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 5.5rem; width: 100%; }
.home .home-hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  color: #fbf4ea;
}
/* Mention « entre amis ou en famille » sous le titre : même police, plus petite, sans cadre. */
.home .home-audience { margin: -.4rem 0 1.2rem; font-family: var(--home-serif); font-weight: 400; font-size: clamp(22px, 3.4vw, 36px); line-height: 1.2; color: #fbf4ea; }
.home .app-home .home-audience { margin: -14px 0 20px; font-size: 20px; color: var(--home-ink); }
.home .home-hero-lead { margin: 0 0 2rem; max-width: 34rem; font-size: 18px; line-height: 1.55; color: rgba(251,244,234,.85); }
.home-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.home-hero .home-btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(251,244,234,.55); color: #fbf4ea; }
.home-hero-ctas--events { margin-top: .75rem; }
.home-hero .home-btn-ghost:hover { background: rgba(255,255,255,.16); border-color: #fbf4ea; color: #fff; }
.home-hero .btn-primary { background: #a8294f; border-color: #a8294f; }
.home-hero .btn-primary:hover { background: #c2416a; border-color: #c2416a; }
.home-resume {
  margin-top: 1rem;
  max-width: max-content;
  padding: .55rem .9rem;
  border-left: 3px solid var(--home-gold);
  background: rgba(20,12,9,.55);
  color: #fbf4ea !important;
  text-decoration: none !important;
  font-weight: 500;
}
.home-resume::before { content: "↺ "; }
.home .home-hero-more { margin: 1.5rem 0 0; font-size: 14px; color: rgba(251,244,234,.7); }
.home .home-hero-more a { color: rgba(251,244,234,.92); text-decoration-color: rgba(251,244,234,.35); }
.home .home-hero-more a:hover { color: #fff; }
.home-hero-more span { margin: 0 .4rem; }

/* ---------- Titres de section ---------- */
.home .home-title { margin: 0 0 2.25rem; font-size: clamp(28px, 3.6vw, 38px); }
.home .home-title::after {
  content: "";
  display: block;
  width: 56px; height: 3px; margin-top: .6rem;
  background: var(--home-wine);
  border-radius: 2px;
}

/* ---------- Parcours ---------- */
.home-steps { padding: 3.5rem 0 4.5rem; }
.home-steps-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.home-step { position: relative; }
.home-photo {
  margin: 0 0 1.25rem;
  padding: 10px 10px 28px;
  background: var(--home-frame);
  box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 24px -12px rgba(0,0,0,.45);
  transform: rotate(-1.6deg);
  transition: transform .25s ease;
}
.home-step:nth-child(2) .home-photo { transform: rotate(1.2deg); }
.home-step:nth-child(3) .home-photo { transform: rotate(-.6deg); }
.home-step:nth-child(4) .home-photo { transform: rotate(1.8deg); }
.home-step:hover .home-photo { transform: rotate(0) translateY(-4px); }
.home-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.home .home-step-who {
  margin: 0 0 .25rem;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--home-gold);
}
.home .home-step h3 { margin: 0 0 .4rem; font-size: 24px; display: flex; align-items: baseline; gap: .55rem; }
.home-step-num { font-size: 15px; font-family: var(--font-family-base); font-weight: 600; color: var(--home-wine); }
.home-step-num::after { content: "."; }
.home .home-step p:last-child { margin: 0; font-size: 15px; line-height: 1.55; }
.home-steps-cta { margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Recherche d'appellation ---------- */
.home-map { padding: 4rem 0; background: var(--home-paper-2); border-top: 1px solid var(--home-line); }
.home-map-side { max-width: 40rem; }
.home .home-map-lead { margin: -1rem 0 1.5rem; font-size: 16px; line-height: 1.55; max-width: 30rem; }
.home .appellations-search label { font-size: 13px; color: var(--home-ink-soft); font-weight: 600; }
.home .appellations-search-fields .input { min-width: 0; background: var(--home-paper); color: var(--home-ink); border-color: var(--home-line); }
.home .appellations-result { margin-top: 1rem; background: var(--home-paper); border-color: var(--home-line); box-shadow: none; }
.home .appellations-result-item { background: var(--home-paper-2); border-color: var(--home-line); }
.home .appellations-result-title { color: var(--home-ink); }

/* ---------- Pages légales (/legal/*) ---------- */
.legal { padding: 3rem 0 4rem; }
.legal .container { max-width: 44rem; }
.home.legal h1 { margin: 0 0 .5rem; font-size: clamp(30px, 4vw, 40px); }
.home.legal h2 { margin: 2.25rem 0 .5rem; font-size: 22px; }
.home.legal p, .home.legal li { font-size: 16px; line-height: 1.6; }
.home.legal ul { padding-left: 1.2rem; color: var(--home-ink-soft); }
.legal-updated { font-size: 14px !important; }
.legal-todo { font-style: italic; color: var(--home-gold); }

/* ---------- Pied de page ---------- */
.home-footer { margin-top: 0; background: var(--home-paper); border-top-color: var(--home-line); }
.home-footer .mini-footer-inner p { font-size: 13px; }

@media (max-width: 640px) {
  .home-hero { min-height: 0; background-position: 30% center; }
  .home-hero { background-image: linear-gradient(180deg, rgba(20,12,9,.55) 0%, rgba(20,12,9,.9) 100%), url('/assets/home-hero-bg.png'); }
  .home-hero-inner { padding-top: 7rem; padding-bottom: 4rem; }
  .home-hero-ctas .btn { width: 100%; }
  .home-steps-list { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .home .home-step h3 { font-size: 20px; }
  .home .home-step p:last-child { font-size: 14px; }
  .home-photo { padding: 6px 6px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-photo { transition: none; }
}
