/* ==========================================================================
   Mesa Conseil - design tokens
   Gold sampled directly from the client's own logo (#DCB853), paired with
   a warm charcoal (not pure black) and a warm cream background - same
   restrained, warm palette family as the reference site (adelep.com),
   distinguished by leaning on the brand gold as the primary accent
   instead of adelep's black-only accent system.
   ========================================================================== */
:root {
  --color-gold: #dcb853;
  --color-gold-dark: #a58a3e;
  --color-gold-text: #79652d;
  --color-ink: #211d17;
  --color-ink-soft: #55504a;
  --color-ink-faint: #8a8377;
  --color-cream: #f8f4ea;
  --color-cream-alt: #f1ead9;
  --color-cream-line: #e4dcc8;
  --color-white: #ffffff;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 2px rgba(33, 29, 23, 0.04), 0 8px 24px rgba(33, 29, 23, 0.06);
  --shadow-lift: 0 4px 10px rgba(33, 29, 23, 0.08), 0 16px 40px rgba(33, 29, 23, 0.1);

  --container-w: 1180px;
  --space-section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--color-ink-soft); }
.italic { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--color-cream-alt); }
.section-ink { background: var(--color-ink); color: var(--color-cream); }
.section-ink p { color: #c9c2b4; }
.section-ink h2, .section-ink h3 { color: var(--color-white); }

.text-center { text-align: center; }
.max-w-prose { max-width: 620px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-text);
  background: rgba(220, 184, 83, 0.16);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-ink);
  color: var(--color-white);
}
.btn-primary:hover { background: #342e24; box-shadow: var(--shadow-lift); }
.btn-gold {
  background: var(--color-gold);
  color: var(--color-ink);
}
.btn-gold:hover { background: #e6c468; box-shadow: var(--shadow-lift); }
.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: var(--color-white); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(248, 244, 234, 0.5);
  color: var(--color-cream);
}
.btn-outline-light:hover { background: var(--color-cream); color: var(--color-ink); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 234, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-cream-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-ink);
}
.brand img { width: 54px; height: 40px; }
.brand span { font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--color-ink); }
.main-nav__cta { display: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 8px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-cream-line);
    font-size: 1.05rem;
  }
  body.nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: inline-flex; }
  .header-cta__btn { display: none; }
  .main-nav__cta { display: block !important; margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
}
.hero video, .hero .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 29, 23, 0.35) 0%, rgba(33, 29, 23, 0.55) 55%, rgba(33, 29, 23, 0.82) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0 64px;
  width: 100%;
}
.hero h1 { color: var(--color-white); max-width: 820px; }
.hero p.lead { color: #e9e4d6; max-width: 540px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust {
  margin-top: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #d9d3c3;
}
.hero-trust strong { color: var(--color-white); }
.trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gold);
  display: inline-block;
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-cream-line);
}
.page-header h1 { max-width: 760px; }
.page-header p.lead { max-width: 620px; font-size: 1.08rem; }

/* ---------- Feature grid (icon + text) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}
.feature-item { display: flex; gap: 16px; }
.feature-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-cream-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-text);
}
.feature-item__icon svg { width: 22px; height: 22px; }
.feature-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature-item p { margin: 0; font-size: 0.94rem; }

/* ---------- Two-column media section ---------- */
.media-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.media-split.reverse { grid-template-columns: 1fr 1.1fr; }
.media-split.reverse .media-split__media { order: 2; }
.media-split__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
@media (max-width: 860px) {
  .media-split, .media-split.reverse { grid-template-columns: 1fr; }
  .media-split.reverse .media-split__media { order: 0; }
}

/* ---------- Stat rows (home "pourquoi nous choisir") ---------- */
.stat-rows { border-top: 1px solid var(--color-cream-line); }
.stat-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-cream-line);
}
.stat-row__label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.stat-row__label svg { width: 20px; height: 20px; color: var(--color-gold-text); flex-shrink: 0; }
.stat-row p { margin: 0; font-size: 0.95rem; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Service cards (carousel-free static grid) ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,29,23,0) 35%, rgba(33,29,23,0.85) 100%);
  z-index: 1;
}
.service-card__content { position: relative; z-index: 2; padding: 32px; }
.service-card__content h3 { color: var(--color-white); font-size: 1.5rem; margin-bottom: 10px; }
.service-card__content p { color: #e4ded0; font-size: 0.93rem; max-width: 380px; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  background: rgba(248,244,234,0.14);
  border: 1px solid rgba(248,244,234,0.4);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
@media (max-width: 760px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-cream-line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-card__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-gold-text);
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-cream-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card--highlight {
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
  box-shadow: var(--shadow-lift);
}
.price-card--highlight p, .price-card--highlight .price-card__note { color: #c9c2b4; }
.price-card h3 { font-size: 1.15rem; margin-bottom: 18px; }
.price-card--highlight h3 { color: var(--color-white); }
.price-card__amount { font-family: var(--font-display); font-size: 2.6rem; margin-bottom: 4px; }
.price-card__amount span { font-size: 0.95rem; font-family: var(--font-body); color: var(--color-ink-faint); font-weight: 400; }
.price-card--highlight .price-card__amount span { color: #a79e8c; }
.price-card__note { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-ink-faint); margin: 20px 0 14px; border-top: 1px solid var(--color-cream-line); padding-top: 18px; }
.price-card--highlight .price-card__note { border-color: rgba(248,244,234,0.15); }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex-grow: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.price-card li svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: var(--color-gold-text); }
.price-card--highlight li svg { color: var(--color-gold); }
@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ---------- CTA band (gradient blob) ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 56px;
  color: var(--color-ink);
  background: radial-gradient(120% 140% at 10% 10%, #f4e3b8 0%, #ecd3a1 22%, #e7c9a7 42%, #d9b7c2 62%, #c9c3d6 82%, #d7d9e4 100%);
}
.cta-band h2 { max-width: 480px; }
.cta-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) {
  .cta-band { padding: 32px 24px; }
  .cta-band__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-cream-line);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--color-ink-faint); margin-top: 10px; }
.form-success, .form-error {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.form-success { background: #e5f0e0; color: #345c27; }
.form-error { background: #f5e0de; color: #7a2e26; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-cream-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-ink);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-cream-line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--color-ink);
}
.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 10px; transition: opacity 0.15s ease; }
.faq-item[data-open="true"] .faq-item__icon::after { opacity: 0; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item__a-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--color-ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: var(--color-cream); padding: 72px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand { color: var(--color-white); margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a79e8c;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: #d9d3c3; }
.footer-col a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(248,244,234,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #a79e8c;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(248,244,234,0.2);
  display: flex; align-items: center; justify-content: center;
}
.footer-socials svg { width: 16px; height: 16px; }
.footer-legal {
  border-top: 1px solid rgba(248,244,234,0.12);
  padding: 22px 0 28px;
  font-size: 0.76rem;
  color: #8e8575;
  line-height: 1.7;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Misc ---------- */
.badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--color-ink-soft);
  background: var(--color-white);
  border: 1px solid var(--color-cream-line);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.badge svg { width: 16px; height: 16px; color: var(--color-gold-text); }

.logo-strip { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.logo-strip span { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-ink-soft); }

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift);
  z-index: 90;
}
.whatsapp-fab svg { width: 28px; height: 28px; color: white; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger siblings within the same grid so cards don't all pop at once */
.feature-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2),
.service-cards .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2),
.stat-rows .reveal:nth-child(2),
.faq-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3),
.service-cards .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3),
.stat-rows .reveal:nth-child(3),
.faq-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.feature-grid .reveal:nth-child(4),
.steps .reveal:nth-child(4),
.pricing-grid .reveal:nth-child(4),
.stat-rows .reveal:nth-child(4),
.faq-list .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Hero fades up on load - not scroll-triggered, it's already in view */
.hero__content { animation: hero-fade-up 0.8s ease both; }
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__content { animation: none; }
}

.legal-content h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-content p, .legal-content li { font-size: 0.95rem; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4em; color: var(--color-ink-soft); }
