/* =========================================================
   Sweet Vanilla Heritage — feuille de style principale
   Charte : noir profond + or, esprit plaquette "L'Or Noir de Madagascar"
   ========================================================= */

:root {
  --black: #0a0908;
  --black-soft: #141210;
  --black-elevated: #1c1815;
  --gold: #c9a24a;
  --gold-light: #e6c878;
  --gold-dark: #9c7a30;
  --cream: #f8f3e8;
  --cream-2: #efe7d6;
  --text-light: #f5efe0;
  --text-muted: #cdc2a8;
  --text-dark: #241f18;
  --text-dark-muted: #5c5344;
  --border-gold: rgba(201, 162, 74, 0.35);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 2px;
  --serif: "Playfair Display", "Georgia", serif;
  --script: "Alex Brush", "Brush Script MT", cursive;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9em;
  font-weight: 600;
}

.tagline-script {
  font-family: var(--script);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold-light);
  font-weight: 400;
  line-height: 1.3;
}

.section {
  padding: 84px 0;
}
.section--tight { padding: 56px 0; }

.section--dark {
  background: var(--black);
  color: var(--text-light);
}
.section--dark h2, .section--dark h3 { color: var(--text-light); }
.section--dark .eyebrow { color: var(--gold-light); }

.section--elevated { background: var(--black-soft); color: var(--text-light); }
.section--elevated h2, .section--elevated h3 { color: var(--text-light); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.divider {
  width: 64px;
  height: 2px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--black);
  border-color: transparent;
}
.btn--gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--outline {
  color: var(--gold-light);
  border-color: var(--gold);
  background: transparent;
}
.btn--outline:hover { background: rgba(201, 162, 74, 0.12); }
.section--dark .btn--outline, .section--elevated .btn--outline { color: var(--gold-light); }
body:not(.section--dark) .btn--outline { color: var(--gold-dark); border-color: var(--gold-dark); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(10,9,8,0.85), transparent);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 9, 8, 0.96);
  padding: 10px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; transition: height 0.3s ease; }
.is-scrolled .brand img { height: 40px; }

.brand-text { font-family: var(--serif); color: var(--text-light); }
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: 0.03em; }
.brand-text span { display: block; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--gold-light); text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  width: 42px; height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-light); border-color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--black-soft);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.72) 55%, rgba(10,9,8,0.95) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 680px; padding-top: 60px; }
.hero-logo { width: 220px; margin-bottom: 28px; }
.hero h1 { color: var(--text-light); }
.hero .lede { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin-bottom: 2em; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  padding: 190px 0 90px;
  color: var(--text-light);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,8,0.78), rgba(10,9,8,0.92));
}
.page-hero .container { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { color: var(--text-light); }
.page-hero .lede { max-width: 640px; margin: 0 auto; color: var(--text-muted); }

/* ===== Grids & cards ===== */
.grid {
  display: grid;
  gap: 32px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

.card {
  background: var(--black-soft);
  border: 1px solid var(--border-gold);
  padding: 30px;
  color: var(--text-light);
}
.card h3 { color: var(--gold-light); }

.product-card {
  background: var(--black-soft);
  border: 1px solid var(--border-gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card .photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .photo img { transform: scale(1.06); }
.product-card .body { padding: 26px; color: var(--text-light); flex: 1; display: flex; flex-direction: column; }
.product-card .kicker { color: var(--gold-light); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.product-card h3 { margin-bottom: 4px; }
.product-card .type { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.product-card .desc { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.product-card .meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-gold);
  font-size: 0.78rem; color: var(--gold-light);
}
.product-card .meta span { white-space: nowrap; }

.rating { display: flex; gap: 10px; font-size: 0.78rem; color: var(--text-muted); margin: 10px 0 4px; }
.dots { letter-spacing: 2px; color: var(--gold); }

/* ===== Tables (tarifs) ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-gold); }
table.price {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: var(--black-soft);
  color: var(--text-light);
  font-size: 0.86rem;
}
table.price caption { caption-side: top; padding: 14px; font-family: var(--serif); font-size: 1.1rem; color: var(--gold-light); text-align: left; }
table.price th, table.price td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(201,162,74,0.18);
  text-align: center;
  vertical-align: middle;
}
table.price thead th {
  background: var(--black-elevated);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
table.price td:first-child, table.price th:first-child {
  text-align: left;
  font-family: var(--serif);
  color: var(--text-light);
  min-width: 220px;
}
table.price tr:hover td { background: rgba(201,162,74,0.06); }
.price-highlight { color: var(--gold-light); font-weight: 700; }
.price-note { font-size: 0.72rem; color: var(--text-dark-muted); }
.section--dark .price-note, .section--elevated .price-note, table.price .price-note { color: var(--text-muted); }

.tarif-legend {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin: 20px 0 40px;
  font-size: 0.82rem; color: var(--text-dark-muted);
}
.tarif-legend strong { color: var(--gold-dark); }

/* ===== Trust / clients ===== */
.client-list { list-style: none; margin: 0; padding: 0; }
.client-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  display: flex; align-items: center; gap: 14px;
  color: var(--text-light);
}
.client-list li::before { content: "✦"; color: var(--gold); font-size: 0.8rem; }
.client-list .role { font-family: var(--sans); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; }

.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold-dark);
}
.stat span { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dark-muted); }
.section--dark .stat strong, .section--elevated .stat strong { color: var(--gold-light); }
.section--dark .stat span, .section--elevated .stat span { color: var(--text-muted); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--black);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--black); }
.cta-band .btn--outline { border-color: var(--black); color: var(--black); }
.cta-band .btn--outline:hover { background: rgba(0,0,0,0.08); }

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  color: var(--text-muted);
  padding: 56px 0 24px;
  font-size: 0.86rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold-light); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--sans); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.social-row { display: flex; gap: 14px; margin-top: 16px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,74,0.15);
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.76rem;
}

/* ===== Utility ===== */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-dark-muted); }
.section--dark .muted, .section--elevated .muted { color: var(--text-muted); }
.img-frame { border: 1px solid var(--border-gold); overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gold-dark); color: var(--gold-dark);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; margin: 2px 6px 2px 0;
}
.section--dark .badge, .section--elevated .badge { border-color: var(--gold); color: var(--gold-light); }
.breadcrumb { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-light); }

.quote-block {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-light);
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 28px 0;
}

.legal h2 { font-size: 1.15rem; margin-top: 2em; color: var(--gold-dark); }
.legal p, .legal li { font-size: 0.92rem; color: var(--text-dark-muted); }
.legal { max-width: 820px; margin: 0 auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--black-soft);
  border: 1px solid var(--border-gold);
  padding: 32px;
}
.contact-card a.link-line {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(201,162,74,0.18);
  color: var(--text-light);
}
.contact-card a.link-line:hover { color: var(--gold-light); }
.contact-card .icon { color: var(--gold); width: 20px; text-align: center; }

form.simple-form { display: grid; gap: 16px; }
form.simple-form label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; display: block; }
form.simple-form input, form.simple-form select, form.simple-form textarea {
  width: 100%;
  background: var(--black-elevated);
  border: 1px solid var(--border-gold);
  color: var(--text-light);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
form.simple-form textarea { min-height: 120px; resize: vertical; }
form.simple-form input:focus, form.simple-form select:focus, form.simple-form textarea:focus {
  outline: none; border-color: var(--gold);
}

.map-image { position: relative; }
.map-image img { filter: saturate(0.85) brightness(0.95); }

.anchor-offset { scroll-margin-top: 100px; }

/* =========================================================
   Cinématique — intro logo/vanille, Ken Burns, reveal au scroll
   ========================================================= */

/* --- Intro loader (page d'accueil) --- */
.intro-loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
.intro-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
body.intro-active { overflow: hidden; height: 100vh; }

.intro-loader__bg {
  position: absolute; inset: 0;
  background: url('../img/harvest-vertical.jpg') center / cover no-repeat;
  opacity: 0;
  transform: scale(1.15);
  filter: brightness(0.5) saturate(1.05);
  animation: introBgIn 3.6s cubic-bezier(.22,.61,.36,1) forwards;
}
.intro-loader::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,9,8,0.35) 0%, rgba(10,9,8,0.92) 78%);
}
.intro-loader__content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.intro-loader__logo {
  width: min(240px, 46vw);
  opacity: 0;
  transform: scale(0.82);
  filter: drop-shadow(0 0 28px rgba(201,162,74,0.35));
  animation: introLogoIn 1.5s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 0.5s;
}
.intro-loader__tagline {
  margin-top: 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: introTagIn 1.3s ease forwards;
  animation-delay: 1.7s;
}
.intro-loader__rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-top: 22px;
  animation: introRuleIn 1.2s ease forwards;
  animation-delay: 2.3s;
}

@keyframes introBgIn {
  0% { opacity: 0; transform: scale(1.15); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: scale(1.0); }
}
@keyframes introLogoIn {
  0% { opacity: 0; transform: scale(0.82); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes introTagIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes introRuleIn {
  0% { width: 0; }
  100% { width: 120px; }
}

@media (max-width: 600px) {
  .intro-loader__tagline { font-size: 1.4rem; }
}

/* --- Ken Burns backgrounds (hero / page-hero) --- */
.kenburns-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
.hero, .page-hero { background: var(--black); }
.hero::before, .page-hero::before { z-index: 1; }
.hero .container, .page-hero .container { z-index: 2; }

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Gold shimmer text */
.shimmer-gold {
  background: linear-gradient(100deg, var(--gold-dark) 20%, var(--gold-light) 38%, #fff6dc 50%, var(--gold-light) 62%, var(--gold-dark) 80%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  to { background-position: -220% center; }
}

/* Floating decorative flower motif */
.float-motif {
  position: absolute;
  opacity: 0.14;
  filter: brightness(1.4);
  animation: floatMotif 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes floatMotif {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }

/* Hero content entrance (plays once, no scroll trigger needed) */
.hero-inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.9s ease forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.32s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.5s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.68s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader, .intro-loader__bg, .intro-loader__logo, .intro-loader__tagline, .intro-loader__rule,
  .kenburns-bg, .shimmer-gold, .float-motif, .reveal, .reveal-stagger > *, .hero-inner > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .intro-loader { display: none !important; }
}
