/* Wenji — design system (premium / clair) ------------------------------- */

:root {
  --ink:        #2b2620;   /* texte principal / brun-noir chaud */
  --ink-2:      #46413a;
  --muted:      #6f675c;   /* texte secondaire */
  --line:       #e8e3d8;   /* bordures (teinte sable) */
  --bg:         #fcfbf8;   /* ivoire */
  --bg-soft:    #f4f1ea;   /* sable clair (sections alternées) */
  --bg-dark:    #44515f;   /* ardoise douce (sections sombres / hero) */
  --bg-dark-2:  #5a6877;
  --accent:     #c9a24b;   /* or premium */
  --accent-2:   #a9842f;
  --accent-soft:#f3ead2;
  --white:      #ffffff;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(15,28,46,.04), 0 12px 32px -12px rgba(15,28,46,.18);
  --shadow-sm:  0 1px 2px rgba(15,28,46,.05), 0 6px 18px -10px rgba(15,28,46,.16);
  --maxw:       1140px;
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head:  'Sora', var(--font);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

*:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .72em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn-lg { padding: .9em 1.7em; font-size: 1.02rem; }
.btn-accent { background: var(--accent); color: #1c1404; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-2); color: #1c1404; transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateY(-2px); }
.section .btn-ghost, .cta-final .btn-ghost { border-color: var(--line); color: var(--ink); }
.section .btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }

.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
  margin: 0 0 .8rem;
}
.eyebrow-light { color: var(--accent); }
.accent { color: var(--accent); }

/* Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.logo { height: 30px; width: auto; display: block; }
.logo-light { color: #fff; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.nav-list > li > a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-2);
  padding: .5em .8em; border-radius: 8px;
}
.nav-list > li > a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

/* Hero ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #44515f 0%, #55636f 55%, #677483 100%); color: #fff; }
.hero-bg { position: absolute; inset: 0; opacity: .9; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(56,66,77,.92) 0%, rgba(56,66,77,.58) 55%, rgba(56,66,77,.18) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(64px, 9vw, 120px) 24px clamp(56px, 7vw, 96px); max-width: var(--maxw); margin: 0 auto; }
.hero .eyebrow { color: var(--accent); }
.hero-title { font-size: clamp(2.1rem, 5.6vw, 4rem); font-weight: 800; color: #fff; margin-bottom: .55em; letter-spacing: -.02em; }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #ece8df; max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin: 3rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats span { color: #cdc8bd; font-size: .9rem; margin-top: .35rem; }

/* Trust band ----------------------------------------------------------- */
.band.trust { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 30px 0; }
.trust-label { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.trust-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 0; padding: 0; }
.trust-tags li { font-family: var(--font-head); font-weight: 600; color: var(--ink-2); letter-spacing: .02em; opacity: .8; }

/* Sections ------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

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

.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 18px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }

/* Steps ---------------------------------------------------------------- */
.steps { list-style: none; counter-reset: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--accent-2); background: var(--accent-soft); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Sectors -------------------------------------------------------------- */
.sector { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sector h3 { display: flex; align-items: center; gap: 10px; }
.sector h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.sector p { color: var(--muted); margin: 0; }

/* Dark band (why) ------------------------------------------------------ */
.section-dark { background: linear-gradient(155deg, #404c59, #55636f); color: #fff; }
.section-dark h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.why-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.why-list li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid rgba(255,255,255,.14); color: #e4e0d6; }
.why-list li strong { color: #fff; }
.why-list li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 14px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.why-stats { display: grid; gap: 16px; }
.bigstat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px 24px; }
.bigstat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--accent); line-height: 1; }
.bigstat span { color: #d8d3c9; font-size: .95rem; }

/* FAQ ------------------------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; padding: 18px 52px 18px 22px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-2); font-weight: 400; transition: transform .2s ease; }
.faq-item[open] summary::after { content: "–"; }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { margin: 0; }
.faq-more { text-align: center; margin-top: 24px; }
.faq-more a { font-family: var(--font-head); font-weight: 600; color: var(--accent-2); }

/* Final CTA ------------------------------------------------------------ */
.cta-final { background: var(--bg-soft); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; padding: clamp(56px, 8vw, 96px) 24px; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: .4em; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.8rem; }
.cta-inner .hero-actions { justify-content: center; }

/* Footer --------------------------------------------------------------- */
.site-footer { background: #3a444f; color: #d2cec5; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .logo { height: 30px; margin-bottom: 16px; }
.footer-tag { color: #aaa499; max-width: 260px; font-size: .95rem; }
.footer-col h2 { font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c6c1b6; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-strong { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; color: #948e83; font-size: .85rem; }

/* Generic page (legal, faq, contact) ----------------------------------- */
.page-hero { background: linear-gradient(155deg, #404c59, #55636f); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.page-hero p { color: #e4e0d6; max-width: 640px; font-size: 1.1rem; margin: 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--accent-2); text-decoration: underline; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Contact form --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-aside h2 { font-size: 1.6rem; }
.contact-aside .lead { margin-bottom: 1.6rem; }
.contact-points { list-style: none; margin: 0; padding: 0; }
.contact-points li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-points svg { width: 24px; height: 24px; color: var(--accent-2); flex: none; margin-top: 2px; }
.contact-points strong { display: block; font-family: var(--font-head); }
.contact-points span { color: var(--muted); font-size: .95rem; }

.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .92rem; margin-bottom: 7px; }
.field .req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .72em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfdfe; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,75,.18); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: .85rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-note { color: var(--muted); font-size: .82rem; margin: 0; }
.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: .96rem; }
.alert-success { background: #e9f7ef; border: 1px solid #b8e3c9; color: #1d6b3f; }
.alert-error { background: #fdecea; border: 1px solid #f5c6c0; color: #a93226; }

/* Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 920px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: .2s; }
  .nav-list {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: .8em .6em; }
  .nav-cta { margin: 8px 0 0; }
  .cards-3, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
