/* ==========================================================================
   Domaine de Sounsides — vanilla rebuild of the Framer one-pager
   Fonts: PP Fragment Serif Regular, PP Fragment Sans Light
   Font-family names must match Framer's exact declarations.
   Breakpoints: Framer ≥1200 / 810–1199 / ≤809
   ========================================================================== */

/* --- font-face: use Framer's exact family names --- */

@font-face {
  font-family: "PP Fragment Serif Regular";
  src: url("../fonts/PPFragmentSerifRegular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "PP Fragment Sans Light";
  src: url("../fonts/PPFragmentSansLight.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal Medium";
  src: url("../fonts/PPNeueMontrealMedium.woff") format("woff");
  font-display: swap;
}

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

:root {
  --bg: #ffffff;
  --ink: #3d3d3d;
  --muted: #5c5c5c;
  --dark: #292929;
  --card-bg: #f2f2f2;
  --white: #ffffff;
  --serif: "PP Fragment Serif Regular", Georgia, serif;
  --sans: "PP Fragment Sans Light", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  padding-bottom: 100px; /* white space below contact (Framer) */
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3 {
  font-weight: 400;
}

/* ---------- appear-on-scroll ---------- */

.appear {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.appear-delay-1 { transition-delay: 0.1s; }
.appear-delay-2 { transition-delay: 0.2s; }
.appear-delay-3 { transition-delay: 0.3s; }

/* ======================================================================
   HERO — 16px outer padding, dark inner box, image overlay
   ====================================================================== */

.hero {
  padding: 16px;
  height: 810px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgb(37, 37, 37);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 70px 0;
}

.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-nav a {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.2;
  color: var(--white);
  transition: opacity 0.3s ease;
}

.hero-nav a:hover {
  opacity: 0.65;
}

/* Framer: title top at 285px (nav ends 77px → 208px below), subtitle at 433px */
.hero-content {
  text-align: center;
  margin-top: 208px;
}

.hero-title {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1.2;
  color: var(--white);
}

.hero-subtitle {
  margin-top: 62px;
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1.2;
  color: var(--white);
}

/* ======================================================================
   TAGLINE — "Une passion qui se conjuge au féminin"
   ====================================================================== */

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 60px 72px;
}

.tagline-text {
  font-family: var(--serif);
  font-size: 90px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
}

/* ======================================================================
   VIGNERONNE — portrait, divider, title, description
   ====================================================================== */

/* Framer gaps: portrait→divider 38, divider→title 17, title→desc 31,
   desc→gallery 63 (+16 gallery padding = 79) */
.vigneronne {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 72px 63px;
}

.vigneronne-divider { margin-top: 38px; }
.vigneronne-title   { margin-top: 17px; }
.vigneronne-desc    { margin-top: 31px; }

.vigneronne-portrait {
  width: 360px;
  height: 414px;
  object-fit: cover;
}

.vigneronne-divider {
  width: 2px;
  height: 89px;
  background: #212121;
}

.vigneronne-title {
  font-family: var(--serif);
  font-size: 68px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
}

.vigneronne-desc {
  max-width: 1008px;
  font-size: 21px;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}

/* ======================================================================
   GALLERY — 3 images, 16px page padding
   ====================================================================== */

.gallery {
  display: flex;
  gap: 10px;
  padding: 16px;
  margin-bottom: 140px;
  overflow: hidden;
}

.gallery img {
  flex: 1;
  min-width: 0;
  height: 604px;
  object-fit: cover;
}

/* ======================================================================
   ENGAGEMENT — centered gray card (1080px)
   ====================================================================== */

.engagement {
  display: flex;
  justify-content: center;
  padding: 36px 0;
}

/* la gallery porte déjà le margin-bottom : pas de marge additionnelle */

.engagement-card {
  width: 1080px;
  max-width: calc(100% - 40px);
  min-height: 468px;
  background: var(--card-bg);
  padding: 80px 60px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 38px;
}

.engagement-badge {
  width: 115px;
  height: 115px;
}

.engagement-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.engagement-title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
}

.engagement-desc {
  max-width: 600px; /* wraps to 3 lines like Framer */
  font-size: 21px;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
}

/* ======================================================================
   TERRE FAMILIALE
   ====================================================================== */

.terre {
  padding: 140px 72px 100px;
  text-align: center;
}

.terre-text {
  font-family: var(--serif);
  font-size: 85px;
  line-height: 1.1;
  color: var(--ink);
}

/* ======================================================================
   CUVÉES — 3 wine cards with layered images
   ====================================================================== */

/* Framer: cards 416px wide, x=72/512/952 at 1440 → full-width container, 72 side padding */
.cuvees {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px 180px;
}

.wine-card {
  flex: 1;
  max-width: 416px;
}

.wine-img-wrap {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.wine-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wine-img-bottle {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  width: 255px;
  height: 390px;
  object-fit: cover;
  z-index: 1;
}

/* Framer gaps: image→title 24, title→desc 10, desc→btn 50, btn→details 24.
   All text centered. */
.wine-card-body {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.wine-card-title {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
}

.wine-card-desc {
  margin-top: 10px;
  font-size: 21px;
  line-height: 1.2;
  color: var(--muted);
  min-height: 50px;
}

.wine-btn {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 333px;
  max-width: 100%;
  padding: 13px 0;
  background: var(--dark);
  color: var(--white);
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.wine-btn:hover {
  opacity: 0.8;
}

.wine-detail {
  margin-top: 24px;
  font-size: 21px;
  line-height: 1.2;
  color: var(--ink);
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.wine-detail:hover {
  opacity: 0.6;
}

/* ======================================================================
   CONTACT — dark section
   ====================================================================== */

/* Framer: 1296 wide, 540 tall, content vertically centered, 100px below */
.contact-section {
  max-width: 1296px;
  height: 540px;
  margin: 0 auto;
  background: var(--dark);
  padding: 80px 72px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-title {
  font-family: var(--serif);
  font-size: 68px;
  line-height: 1.1;
  color: var(--white);
}

.contact-info {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.contact-info a,
.contact-info p {
  font-size: 21px;
  line-height: 1.2;
  color: var(--white);
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.65;
}

/* ======================================================================
   TABLET 810–1199
   ====================================================================== */

@media (max-width: 1199px) {
  .hero {
    height: 600px;
  }

  .hero-overlay {
    padding: 24px 40px 0;
  }

  .hero-nav a {
    font-size: 20px;
  }

  .hero-content {
    margin-top: 150px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-subtitle {
    font-size: 22px;
    margin-top: 40px;
  }

  .tagline {
    min-height: 400px;
    padding: 60px 40px;
  }

  .tagline-text {
    font-size: 56px;
  }

  .vigneronne {
    padding: 80px 40px 40px;
  }

  .vigneronne-portrait {
    width: 280px;
    height: 322px;
  }

  .vigneronne-title {
    font-size: 46px;
  }

  .vigneronne-desc {
    font-size: 18px;
  }

  .gallery {
    margin-bottom: 100px;
  }

  .gallery img {
    height: 400px;
  }

  .engagement-card {
    width: 90%;
    padding: 60px 40px 80px;
  }

  .engagement-badge {
    width: 90px;
    height: 90px;
  }

  .engagement-title {
    font-size: 26px;
  }

  .engagement-desc {
    font-size: 18px;
  }

  .terre {
    padding: 100px 40px 80px;
  }

  .terre-text {
    font-size: 55px;
  }

  .cuvees {
    padding: 0 40px 120px;
    gap: 16px;
  }

  .wine-img-wrap {
    height: 450px;
  }

  .wine-img-bottle {
    width: 200px;
    height: 306px;
    top: 80px;
  }

  .wine-card-title {
    font-size: 28px;
  }

  .wine-card-desc,
  .wine-btn,
  .wine-detail {
    font-size: 18px;
  }

  .wine-btn {
    width: 100%;
  }

  body {
    padding-bottom: 80px;
  }

  .contact-section {
    height: 440px;
    padding: 60px 40px 80px;
  }

  .contact-title {
    font-size: 48px;
  }

  .contact-info a,
  .contact-info p {
    font-size: 18px;
  }
}

/* ======================================================================
   PHONE ≤809
   ====================================================================== */

@media (max-width: 809px) {
  .hero {
    height: 460px;
    padding: 8px;
  }

  .hero-overlay {
    padding: 20px 20px 0;
  }

  .hero-nav a {
    font-size: 16px;
  }

  .hero-content {
    margin-top: 110px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-top: 24px;
  }

  .tagline {
    min-height: 300px;
    padding: 50px 20px;
  }

  .tagline-text {
    font-size: 34px;
  }

  .vigneronne {
    padding: 50px 20px 24px;
  }

  .vigneronne-divider { margin-top: 24px; }
  .vigneronne-title   { margin-top: 14px; }
  .vigneronne-desc    { margin-top: 20px; }

  .vigneronne-portrait {
    width: 200px;
    height: 230px;
  }

  .vigneronne-divider {
    height: 50px;
  }

  .vigneronne-title {
    font-size: 34px;
  }

  .vigneronne-desc {
    font-size: 16px;
  }

  .gallery {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
    margin-bottom: 60px;
  }

  .gallery img {
    width: 100%;
    height: 280px;
  }

  .engagement {
    padding: 24px 0;
  }

  .engagement-card {
    width: calc(100% - 16px);
    padding: 50px 20px 60px;
    gap: 24px;
  }

  .engagement-badge {
    width: 70px;
    height: 70px;
  }

  .engagement-title {
    font-size: 22px;
  }

  .engagement-desc {
    font-size: 15px;
  }

  .terre {
    padding: 60px 20px 50px;
  }

  .terre-text {
    font-size: 34px;
  }

  .cuvees {
    flex-direction: column;
    align-items: center;
    padding: 0 20px 80px;
    gap: 48px;
  }

  .wine-card {
    max-width: 100%;
  }

  .wine-img-wrap {
    height: 380px;
  }

  .wine-img-bottle {
    width: 180px;
    height: 275px;
    top: 60px;
  }

  .wine-card-title {
    font-size: 26px;
  }

  .wine-card-desc {
    font-size: 16px;
  }

  .wine-btn {
    width: 100%;
    font-size: 17px;
  }

  .wine-detail {
    font-size: 17px;
  }

  body {
    padding-bottom: 40px;
  }

  .contact-section {
    margin: 0;
    max-width: 100%;
    height: 380px;
    padding: 50px 20px 60px;
  }

  .contact-title {
    font-size: 34px;
  }

  .contact-info {
    margin-top: 32px;
  }

  .contact-info a,
  .contact-info p {
    font-size: 16px;
  }

  .appear {
    transform: translateY(24px);
  }
}
