/* ==========================================================================
   Oenochain · charte de marque v1
   Lie-de-vin + encre sur fond sable ou nuit. Cuivre en accent rare.
   ========================================================================== */

:root {
  --oeno-wine:   #6E1E33;
  --oeno-ink:    #191518;
  --oeno-night:  #14090E;
  --oeno-copper: #B87333;
  --oeno-rose:   #C97B8B;
  --oeno-cream:  #F3EFEA;
  --oeno-sand:   #EFEDE9;
  --oeno-slate:  #5A5257;
  --oeno-line:   #DDD8D2;
  --oeno-white:  #FFFFFF;

  --oeno-font: 'Space Grotesk', sans-serif;
  --oeno-mono: 'IBM Plex Mono', monospace;

  --wrap: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--oeno-font);
  background: var(--oeno-sand);
  color: var(--oeno-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

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

a { color: var(--oeno-wine); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--oeno-copper); }

h1, h2, h3 { font-family: var(--oeno-font); font-weight: 600; letter-spacing: -0.01em; color: var(--oeno-ink); }

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }

p { color: var(--oeno-slate); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.text-cream { color: var(--oeno-cream); }
.text-cream-70 { color: rgba(243,239,234,0.7); }
.c-wine { color: var(--oeno-wine); }
.c-ink { color: var(--oeno-ink); }
.c-rose { color: var(--oeno-rose); }
.c-cream { color: var(--oeno-cream); }

/* noise overlay for subtle texture, no loud gradients */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow, .mono-label {
  font-family: var(--oeno-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oeno-wine);
  font-weight: 500;
}
.eyebrow { display: inline-block; margin-bottom: 14px; }
.eyebrow-dark { color: var(--oeno-rose); }
.mono-label { display: block; color: var(--oeno-copper); margin-bottom: 10px; }

/* ---------- œ monogram mark ---------- */
.oeno-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; border-radius: 22%;
  background: var(--oeno-wine); color: var(--oeno-cream);
  font-family: var(--oeno-font); font-weight: 600; line-height: 1;
  font-size: 2.2rem;
  flex-shrink: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--oeno-font); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--oeno-wine); color: var(--oeno-cream); }
.btn-primary:hover { background: var(--oeno-copper); color: var(--oeno-cream); }

.btn-outline-dark { border-color: rgba(243,239,234,0.35); color: var(--oeno-cream); }
.btn-outline-dark:hover { border-color: var(--oeno-copper); color: var(--oeno-copper); }

.btn-outline { border-color: var(--oeno-line); color: var(--oeno-ink); }
.btn-outline:hover { border-color: var(--oeno-wine); color: var(--oeno-wine); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239,237,233,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--oeno-line);
  background: rgba(239,237,233,0.95);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-word { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }

.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--oeno-ink);
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--oeno-copper); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--oeno-wine); }
.main-nav a:hover::after { width: 100%; }

.nav-cta { margin-left: 12px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--oeno-ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  background: var(--oeno-sand); border-bottom: 1px solid transparent;
  padding: 0 28px;
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
}
.mobile-nav.open { max-height: 400px; padding: 8px 28px 20px; border-bottom-color: var(--oeno-line); }
.mobile-nav a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--oeno-line); }
.mobile-nav .btn { margin-top: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(20,9,14,0.94) 0%, rgba(20,9,14,0.82) 38%, rgba(20,9,14,0.45) 68%, rgba(20,9,14,0.25) 100%),
    url('vignoble-lever-de-soleil-hero.jpg');
  background-size: cover;
  background-position: center 65%;
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero-glyph {
  position: absolute;
  top: 50%; right: -6%;
  transform: translateY(-50%);
  font-size: min(60vw, 620px);
  font-weight: 700;
  line-height: 1;
  color: var(--oeno-cream);
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { color: var(--oeno-cream); margin-bottom: 24px; max-width: 760px; }
.hero-sub { color: rgba(243,239,234,0.72); font-size: 1.1rem; max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.chip-row { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; }
.chip {
  font-family: var(--oeno-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--oeno-cream); border: 1px solid rgba(243,239,234,0.25);
  border-radius: 100px; padding: 8px 16px;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { background: var(--oeno-white); border-bottom: 1px solid var(--oeno-line); padding: 44px 0; }
.trust-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-label { margin: 0; white-space: nowrap; }
.trust-list {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  list-style: none; flex: 1;
}
.trust-list li { display: flex; align-items: center; height: 40px; }
.trust-list img {
  height: 100%; width: auto; max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9) brightness(0.75);
  opacity: 0.6;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.trust-list img:hover { filter: none; opacity: 1; }
.trust-list .trust-text {
  font-family: var(--oeno-font); font-weight: 500; font-size: 1.02rem;
  letter-spacing: -0.005em; color: var(--oeno-slate);
  opacity: 0.75;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.trust-list .trust-text:hover { color: var(--oeno-wine); opacity: 1; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 110px 0; }
.section-alt { background: var(--oeno-white); }
.section-dark { background: var(--oeno-night); }
.section-wine { background: var(--oeno-wine); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-lede { font-size: 1.08rem; max-width: 640px; }
.section-dark p, .section-wine p { color: rgba(243,239,234,0.75); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* plain card (constat) */
.plain-card {
  position: relative;
  overflow: hidden;
  background: var(--oeno-sand);
  border: 1px solid var(--oeno-line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.plain-card h3 { color: var(--oeno-ink); margin-top: 22px; }

/* service card */
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--oeno-sand);
  border: 1px solid var(--oeno-line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--oeno-wine);
  box-shadow: 0 16px 40px rgba(20,9,14,0.08);
}
.card-num {
  position: absolute; top: 28px; right: 32px; z-index: 1;
  font-family: var(--oeno-mono); font-size: 0.85rem; color: var(--oeno-slate);
  letter-spacing: 0.1em; opacity: 0.55;
}

/* laptop mockup (réalisation) */
.laptop-mockup { max-width: 780px; margin: 0 auto; }
.laptop-screen {
  position: relative;
  background: var(--oeno-ink);
  border-radius: 14px;
  padding: 16px 16px 10px;
  box-shadow: 0 24px 60px rgba(20,9,14,0.16);
}
.laptop-camera {
  display: block;
  width: 5px; height: 5px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(243,239,234,0.2);
}
.laptop-display { border-radius: 4px; overflow: hidden; }
.laptop-display img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 2672 / 1436;
}
.laptop-base {
  height: 14px;
  margin: 0 -22px;
  background: linear-gradient(180deg, #241d20, var(--oeno-night));
  clip-path: polygon(4% 0%, 96% 0%, 100% 100%, 0% 100%);
  border-radius: 0 0 6px 6px;
  display: flex;
  justify-content: center;
}
.laptop-base span {
  width: 64px; height: 4px;
  margin-top: -1px;
  background: rgba(243,239,234,0.14);
  border-radius: 0 0 4px 4px;
}

/* œ watermark, faint, cropped differently per card so it never repeats identically */
.plain-card h3, .plain-card p,
.service-card h3, .service-card p { position: relative; z-index: 1; }
.plain-card::before, .service-card::before {
  content: 'œ';
  position: absolute;
  font-family: var(--oeno-font); font-weight: 700; line-height: 0.8;
  color: var(--oeno-wine);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}
.plain-card::before, .service-card::before {
  font-size: 190px; right: -30px; bottom: -50px;
}

/* ---------- steps (approche) ---------- */
.steps { list-style: none; display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 100px 1fr; gap: 28px;
  padding: 32px 0; border-top: 1px solid rgba(243,239,234,0.12);
}
.step:last-child { border-bottom: 1px solid rgba(243,239,234,0.12); }
.step-num {
  font-family: var(--oeno-mono); font-size: 2.2rem; font-weight: 500;
  color: var(--oeno-rose); line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { max-width: 560px; }

/* ---------- réalisation ---------- */
.realisation-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.realisation-copy h2 { margin-bottom: 20px; }
.realisation-copy .section-lede { margin-bottom: 28px; }

/* ---------- about / pourquoi ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 60px; align-items: center;
}
.about-photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}
.about-photo-glyph {
  position: absolute;
  bottom: 5%; right: 6%;
  font-family: var(--oeno-font); font-weight: 700;
  font-size: min(18vw, 140px);
  line-height: 1;
  color: var(--oeno-cream);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.about-copy h2 { margin-bottom: 20px; }
.about-copy .section-lede { margin-bottom: 28px; }
.value-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.value-list li { font-weight: 500; color: var(--oeno-ink); padding-top: 10px; border-top: 1px solid var(--oeno-line); }

.value-list li:first-child { border-top: none; padding-top: 0; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.contact-intro h2 { margin: 14px 0 20px; }
.contact-direct { margin-top: 32px; }
.contact-direct a { font-size: 1.15rem; color: var(--oeno-cream); font-weight: 600; }
.contact-direct a:hover { color: var(--oeno-copper); }
.contact-direct .mono-label { color: var(--oeno-rose); }

.contact-form {
  background: var(--oeno-cream);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
.field label, .field-legend {
  font-family: var(--oeno-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--oeno-slate);
}
.method-toggle { display: flex; gap: 10px; }
.method-option {
  position: relative; cursor: pointer;
  font-family: var(--oeno-font); font-size: 0.92rem; font-weight: 500; color: var(--oeno-ink);
  border: 1px solid var(--oeno-line); border-radius: 100px;
  padding: 9px 18px;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.method-option input { position: absolute; opacity: 0; pointer-events: none; }
.method-option:has(input:checked), .method-option.is-selected {
  background: var(--oeno-wine); border-color: var(--oeno-wine); color: var(--oeno-cream);
}
.method-option:has(input:focus-visible) { outline: 2px solid var(--oeno-wine); outline-offset: 2px; }
.field input, .field textarea {
  font-family: var(--oeno-font); font-size: 0.98rem; color: var(--oeno-ink);
  background: var(--oeno-white); border: 1px solid var(--oeno-line); border-radius: var(--radius-sm);
  padding: 12px 14px; resize: vertical; transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--oeno-wine);
}
.contact-form .form-note { font-family: var(--oeno-mono); font-size: 0.8rem; color: var(--oeno-wine); min-height: 1em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--oeno-night); padding: 70px 0 30px; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 46px; border-bottom: 1px solid rgba(243,239,234,0.12);
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-word { color: var(--oeno-cream); }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-nav .mono-label, .footer-contact .mono-label { color: var(--oeno-rose); }
.footer-nav a, .footer-contact a, .footer-contact span { color: rgba(243,239,234,0.72); font-size: 0.95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--oeno-copper); }
.footer-social { display: inline-flex; align-items: center; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; flex-wrap: wrap; gap: 10px;
}
.footer-bottom span { color: rgba(243,239,234,0.45); font-size: 0.82rem; }
.footer-bottom .mono-label { font-family: var(--oeno-mono); color: rgba(243,239,234,0.45); margin: 0; display: inline; }
.footer-bottom a { color: rgba(243,239,234,0.45); font-size: 0.82rem; transition: color .2s var(--ease); }
.footer-bottom a:hover { color: var(--oeno-copper); }

/* ==========================================================================
   Page légale
   ========================================================================== */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 46px; margin-bottom: 16px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 20px; }
.legal-content li { color: var(--oeno-slate); margin-bottom: 6px; }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .realisation-grid { grid-template-columns: 1fr; }
  .about-photo { order: 2; max-width: 380px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .hero { padding: 76px 0 60px; }
  .step { grid-template-columns: 60px 1fr; gap: 18px; }
  .step-num { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
