/* ============================================================
   MARZENA — Homepage-specific styles
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(80px, 12vh, 150px) clamp(72px, 10vh, 130px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(26,68,48,0.85) 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 120%, rgba(184,154,80,0.10) 0%, transparent 60%);
  pointer-events:none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: clamp(26px, 4vw, 40px); }
.hero .display { color: var(--accent); margin: 0; }
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.6vw, 32px);
  color: var(--ivoire);
  margin: clamp(18px, 2.5vw, 28px) 0 0;
}
.hero .lead { max-width: 600px; margin: 28px auto 0; }
.hero .cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: clamp(34px, 5vw, 48px);
}
.hero .corner {
  position:absolute; width: 64px; height: 64px; border: 1px solid var(--line-gold);
  z-index: 2;
}
.hero .corner.tl { top: 26px; left: 26px; border-right:0; border-bottom:0; }
.hero .corner.tr { top: 26px; right: 26px; border-left:0; border-bottom:0; }
.hero .corner.bl { bottom: 26px; left: 26px; border-right:0; border-top:0; }
.hero .corner.br { bottom: 26px; right: 26px; border-left:0; border-top:0; }

/* ---------- HERO CAROUSEL ---------- */
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}
.hero-bg-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  /* CSS Level 4 syntax — compatible with var() inside opacity channel */
  background: rgb(14 42 28 / var(--slide-overlay, 0.65));
}
.hero-bg-slide.active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { transition: none; }
  .hero-bg-slide:not(.active) { display: none; }
}

/* Hero alignment tweak */
body[data-hero="left"] .hero { text-align: left; }
body[data-hero="left"] .hero .lead { margin-inline: 0; }
body[data-hero="left"] .hero .cta-row { justify-content: flex-start; }

/* ---------- TRUST BAR ---------- */
.trust { background: var(--encre); border-block: 1px solid var(--line-gold); }
.trust .wrap { padding-block: clamp(34px, 4vw, 48px); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-gold);
}
.trust-item {
  background: var(--encre);
  padding: 8px clamp(16px, 2.5vw, 30px);
  display: flex; flex-direction: column; gap: 8px;
}
.trust-item .mk {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-gold-2);
  display: grid; place-items: center; color: var(--accent);
  font-family: var(--serif); font-size: 17px;
}
.trust-item .t {
  font-family: var(--serif); font-size: clamp(17px, 1.6vw, 20px); color: var(--ivoire);
  line-height: 1.2;
}
.trust-item .d { font-size: 12.5px; color: var(--ivoire-faint); font-weight: 300; letter-spacing: 0.02em; }

/* ---------- SERVICES ---------- */
.services { background: var(--vert-imperial); }
.services .head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 24px; margin-bottom: clamp(40px, 5vw, 64px);
}
.services .head .h-section { max-width: 14ch; }
.services .head .lead { max-width: 36ch; }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-gold);
  border: 1px solid var(--line-gold);
}
.svc-card {
  background: var(--vert-imperial);
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.4vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  transition: background .45s ease;
  position: relative;
}
.svc-card .num {
  font-family: 'SF Mono', ui-monospace, monospace; font-size: 12px;
  color: var(--accent); letter-spacing: 0.1em;
}
.svc-card h3 { font-size: clamp(24px, 2.4vw, 30px); color: var(--ivoire); }
.svc-card p { color: var(--ivoire-dim); font-size: 14.5px; font-weight: 300; margin: 0; flex: 1; }
.svc-card .more {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
}
.svc-card:hover { background: var(--vert-profond); }
.svc-card:hover .more { opacity: 1; transform: none; }

.svc-feature {
  margin-top: 1px;
  background: var(--vert-profond);
  border: 1px solid var(--line-gold);
  padding: clamp(36px, 4vw, 56px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
}
.svc-feature .eyebrow { margin-bottom: 18px; }
.svc-feature h3 { font-size: clamp(30px, 3.6vw, 46px); color: var(--ivoire); }
.svc-feature p { color: var(--ivoire-dim); font-weight: 300; max-width: 46ch; margin: 18px 0 0; }
.svc-feature .feat-side { display: flex; flex-direction: column; gap: 14px; }
.svc-feature .feat-side .row {
  display:flex; align-items:center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line-gold);
  font-size: 14px; color: var(--ivoire-dim);
}
.svc-feature .feat-side .row:first-child { border-top: 1px solid var(--line-gold); }
.svc-feature .feat-side .row span.dot { color: var(--accent); font-family: var(--serif); font-size: 18px; }

/* ---------- QUOTE ---------- */
.quote { background: var(--vert-profond); text-align: center; }
.quote .mark { font-family: var(--serif); font-size: 90px; line-height: 0.4; color: var(--accent); display:block; height: 50px; }
.quote blockquote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.32;
  color: var(--ivoire); margin: 0 auto; max-width: 18ch;
}
.quote .attr {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.quote .attr::before { content:""; width: 40px; height: 1px; background: var(--line-gold-2); }

/* ---------- À PROPOS DE MARZENA ---------- */
.about { background: var(--vert-imperial); }
.about-inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4 / 5; width: 100%;
  position: relative;
}
.about-portrait .ph { position:absolute; inset:0; }
.about-portrait .badge {
  position: absolute; bottom: -1px; right: -1px;
  background: var(--ivoire); color: var(--green-on-ivoire);
  padding: 16px 22px; text-align: center; max-width: 180px;
}
.about-portrait .badge .n { font-family: var(--serif); font-size: 34px; line-height: 1; }
.about-portrait .badge .l { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-label); margin-top: 4px; }
.about-body .h-section { margin: 18px 0 0; }
.about-body .lead { margin-top: 24px; }
.about-body .signature {
  font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent);
  margin-top: 30px;
}
.about-body .signed { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivoire-dim); margin-top: 6px; }

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-gold); border: 1px solid var(--line-gold);
  margin-top: clamp(48px, 6vw, 80px);
}
.about-stats .stat { background: var(--vert-imperial); padding: clamp(26px, 3vw, 38px) 22px; text-align: center; }
.about-stats .stat .n { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 60px); color: var(--accent); line-height: 1; }
.about-stats .stat .l { font-size: 12px; color: var(--ivoire-dim); font-weight: 300; margin-top: 12px; letter-spacing: 0.04em; }

/* About variant: editorial centered */
body[data-about="editorial"] .about-inner { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin-inline: auto; }
body[data-about="editorial"] .about-portrait { display: none; }
body[data-about="editorial"] .about-body .eyebrow { justify-content: center; }
body[data-about="editorial"] .about-body .eyebrow.flanked::after { display:inline-block; }
body[data-about="editorial"] .about-body .lead { margin-inline: auto; max-width: 56ch; }
body[data-about="editorial"] .about-body .signed { text-align: center; }

/* About variant: portrait right */
body[data-about="right"] .about-inner { grid-template-columns: 1.15fr 0.85fr; }
body[data-about="right"] .about-portrait { order: 2; }
body[data-about="right"] .about-body { order: 1; }

/* ---------- FORM ---------- */
.reserve { background: var(--ivoire); color: var(--green-on-ivoire); }
.reserve-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.reserve .intro .eyebrow { color: var(--or-label); }
.reserve .intro h2 { color: var(--green-on-ivoire); margin: 16px 0 0; }
.reserve .intro p { color: rgba(20,54,31,0.72); font-weight: 300; font-size: 16px; margin-top: 20px; max-width: 40ch; }
.reserve .intro .meta { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.reserve .intro .meta .m { display:flex; align-items:center; gap: 12px; font-size: 14px; color: rgba(20,54,31,0.78); }
.reserve .intro .meta .m b { font-weight: 600; }
.reserve .intro .meta .dot { color: var(--or-label); font-family: var(--serif); font-size: 18px; }

.reserve-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-label); font-weight: 600; }
.field input, .field select {
  font-family: var(--sans); font-size: 15px; color: var(--green-on-ivoire);
  background: transparent; border: 0; border-bottom: 1px solid rgba(20,54,31,0.28);
  padding: 10px 2px; outline: none;
  transition: border-color .3s ease;
}
.field select { appearance: none; cursor: pointer; }
.field input::placeholder { color: rgba(20,54,31,0.4); }
.field input:focus, .field select:focus { border-color: var(--accent); }
.reserve-form .btn.full { grid-column: 1 / -1; justify-content: center; margin-top: 10px; }
.reserve-form .note { grid-column: 1/-1; font-size: 12px; color: rgba(20,54,31,0.5); font-weight: 300; }

/* Form variant: floating card on green */
body[data-form="card"] .reserve { background: var(--vert-imperial); color: var(--ivoire); }
body[data-form="card"] .reserve-inner {
  background: var(--ivoire); color: var(--green-on-ivoire);
  padding: clamp(36px, 4vw, 60px); border: 1px solid var(--line-gold);
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
}

/* Form variant: split — green intro panel + ivory form */
body[data-form="split"] .reserve { background: var(--vert-imperial); padding: 0; }
body[data-form="split"] .reserve > .wrap { padding: 0; max-width: none; }
body[data-form="split"] .reserve-inner { grid-template-columns: 0.9fr 1.1fr; gap: 0; align-items: stretch; }
body[data-form="split"] .reserve .intro {
  background: var(--vert-profond); color: var(--ivoire);
  padding: clamp(56px, 7vw, 110px) clamp(32px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
body[data-form="split"] .reserve .intro h2 { color: var(--ivoire); }
body[data-form="split"] .reserve .intro p { color: var(--ivoire-dim); }
body[data-form="split"] .reserve .intro .meta .m { color: var(--ivoire-dim); }
body[data-form="split"] .reserve .intro .meta .m b { color: var(--ivoire); }
body[data-form="split"] .reserve .form-side {
  background: var(--ivoire); padding: clamp(56px, 7vw, 110px) clamp(32px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.reserve .form-side { padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-feature { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  body[data-about="right"] .about-portrait { order: 0; }
  .about-portrait { max-width: 380px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .reserve-inner,
  body[data-form="split"] .reserve-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trust-grid, .svc-grid, .about-stats, .reserve-form { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS CAROUSEL  ·  PRD §8 Gesture ⑥
   ═══════════════════════════════════════════════════════════════ */
.testimonials { background: var(--vert-profond); overflow: hidden; }

.t-header {
  text-align: center;
  padding-block: clamp(56px, 7vw, 80px) clamp(28px, 3.5vw, 44px);
}

/* ── Scroll container ── */
.t-viewport {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  outline: none;
}
.t-viewport::-webkit-scrollbar { display: none; }
.t-viewport:active             { cursor: grabbing; }

/* ── Flex track ── */
.t-track { display: flex; }

/* ── Each slide = one scroll page ── */
.t-slide {
  flex-shrink: 0;
  width: 100vw; /* CSS fallback — JS overrides with exact viewport.offsetWidth in px */
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(52px, 7vw, 96px) clamp(28px, 10vw, 180px) clamp(44px, 5vw, 72px);
  min-height: 360px;
  box-sizing: border-box;
  position: relative;
}

/* ── Watermark guillemet ── */
.t-wm {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.72;
  color: var(--accent);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

/* ── Quote text ── */
.t-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.72;
  color: var(--ivoire);
  max-width: 48ch;
  margin: 0 auto clamp(22px, 3vw, 34px);
  position: relative;
  z-index: 1;
}

/* ── Attribution ── */
.t-attr {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

/* ── Controls row ── */
.t-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 32px) clamp(24px, 4vw, 40px) clamp(48px, 6vw, 72px);
}

/* ── Gold round arrow buttons ── */
.t-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 220ms var(--ease-soft, cubic-bezier(0.4,0,0.2,1)),
    color      220ms var(--ease-soft, cubic-bezier(0.4,0,0.2,1));
}
.t-btn:hover  { background: var(--accent); color: var(--vert-profond); }
.t-btn:disabled { opacity: 0.28; cursor: default; pointer-events: none; }

/* ── Progress bar ── */
.t-progress {
  flex: 1;
  height: 1px;
  background: rgba(184,154,80, 0.18);
  position: relative;
  overflow: visible;
}
.t-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0.125); /* 1/8 initial — JS overrides per actual N */
  transform-origin: left center;
  transition: transform 380ms var(--ease-soft, cubic-bezier(0.4,0,0.2,1));
}

/* Segment tick marks — inserted by JS */
.t-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: rgba(184,154,80, 0.22);
  pointer-events: none;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .t-slide { min-height: 300px; }
  .t-btn   { width: 36px; height: 36px; font-size: 14px; }
}
