/* ==========================================================================
   Talveron — Minimal Swiss executive consulting interface
   Palette: pale gray surfaces, restrained type, disciplined grid
   ========================================================================== */

:root {
  --ink:        #1f2933;
  --ink-soft:   #3e4c59;
  --slate:      #6c7a89;
  --line:       #d9dee3;
  --line-soft:  #e7ebee;
  --surface:    #f4f6f8;
  --surface-2:  #eceff2;
  --paper:      #ffffff;
  --gold:       #b8862f;
  --gold-soft:  #e8b339;
  --ok:         #2f6f4f;
  --err:        #9a2f2f;

  --maxw: 1180px;
  --gut: 2rem;
  --r: 4px;

  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Arial", "Segoe UI", system-ui, sans-serif;

  --shadow: 0 1px 2px rgba(31,41,51,.06), 0 8px 28px rgba(31,41,51,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

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

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

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

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .85rem 1.6rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.btn:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .02em; }
.brand span { color: var(--slate); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; display: block; margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .85rem; color: var(--ink-soft); letter-spacing: .02em; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: .6rem 1.2rem; }

.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .7rem; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem;
  align-items: center; padding: 5rem 0;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; margin: 0 0 1.4rem; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36ch; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1rem 1.2rem; box-shadow: var(--shadow);
}
.hero-badge b { font-family: var(--serif); font-size: 1.7rem; display: block; }
.hero-badge small { color: var(--slate); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.metrics { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line-soft); }
.metric { padding: 1.8rem 0; text-align: center; border-right: 1px solid var(--line-soft); }
.metric:last-child { border-right: 0; }
.metric b { font-family: var(--serif); font-size: 1.9rem; display: block; color: var(--ink); }
.metric small { color: var(--slate); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Section base ---------- */
section { padding: 5.5rem 0; }
.sec-head { max-width: 60ch; margin-bottom: 3rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 1rem; }
.sec-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.svc {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 2rem 1.8rem; transition: border-color .18s, transform .18s;
}
.svc:hover { border-color: var(--slate); transform: translateY(-3px); }
.svc .num { font-family: var(--serif); color: var(--gold); font-size: .95rem; letter-spacing: .1em; }
.svc h3 { font-size: 1.2rem; margin: .7rem 0 .6rem; }
.svc p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1rem; }
.svc ul { list-style: none; padding: 0; margin: 0; }
.svc li { font-size: .88rem; color: var(--slate); padding: .35rem 0 .35rem 1.3rem; position: relative; border-top: 1px solid var(--line-soft); }
.svc li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Approach (process) ---------- */
.approach { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.approach-figure img { height: 430px; width: 100%; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .idx {
  counter-increment: step;
  font-family: var(--serif); font-size: 1rem; color: var(--ink);
  width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; background: var(--paper);
}
.step .idx::before { content: "0" counter(step); }
.step h3 { font-size: 1.1rem; margin: .2rem 0 .4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--paper); }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 2.2rem 2rem; background: var(--paper);
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.plan.featured::after {
  content: "Le plus choisi"; position: absolute; top: -12px; right: 1.6rem;
  background: var(--ink); color: #fff; font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--r);
}
.plan h3 { font-size: 1.25rem; margin: 0 0 .3rem; }
.plan .tag { color: var(--slate); font-size: .86rem; margin: 0 0 1.3rem; }
.plan .amount { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); }
.plan .amount span { font-size: .9rem; color: var(--slate); font-family: var(--sans); letter-spacing: .04em; }
.plan .per { color: var(--slate); font-size: .82rem; margin: .2rem 0 1.5rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.plan li { font-size: .9rem; color: var(--ink-soft); padding: .55rem 0 .55rem 1.5rem; position: relative; border-top: 1px solid var(--line-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; }
.plan .btn { width: 100%; text-align: center; }
.price-note { margin-top: 1.8rem; font-size: .82rem; color: var(--slate); text-align: center; }

/* ---------- Sectors / proof ---------- */
.proof { background: var(--surface); border-top: 1px solid var(--line-soft); }
.proof-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.proof-figure img { height: 400px; width: 100%; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.quote { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; color: var(--ink); margin: 0 0 1.5rem; }
.quote-by { color: var(--slate); font-size: .9rem; }
.quote-by b { color: var(--ink); font-family: var(--sans); display: block; }
.sectors { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.sectors span { font-size: .78rem; letter-spacing: .04em; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--paper); }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
.contact-info h2 { font-size: 2rem; margin: 0 0 1rem; }
.contact-info p { color: var(--ink-soft); }
.contact-info dl { margin: 2rem 0 0; }
.contact-info dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: 1.3rem; }
.contact-info dd { margin: .3rem 0 0; font-size: 1rem; color: var(--ink); }

form .field { margin-bottom: 1.2rem; }
form label { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .45rem; }
form input, form select, form textarea {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: border-color .15s, background .15s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--ink); background: var(--paper);
}
form textarea { resize: vertical; min-height: 120px; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: .2rem; }
.consent a { text-decoration: underline; }
.form-note { font-size: .82rem; margin-top: 1rem; min-height: 1.2rem; }
.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--err); }
.error-msg { color: var(--err); font-size: .78rem; margin-top: .35rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field.invalid .error-msg { display: block; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #c9d1d9; padding: 4rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #3e4c59; }
.foot-brand b { font-family: var(--serif); color: #fff; font-size: 1.3rem; }
.foot-brand p { color: #8593a0; font-size: .9rem; max-width: 36ch; margin: 1rem 0 0; }
.foot-col h4 { color: #fff; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.1rem; }
.foot-col a, .foot-col p { display: block; color: #aab4bf; font-size: .9rem; margin-bottom: .65rem; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.8rem; font-size: .82rem; color: #8593a0; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 100;
  max-width: 720px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem; display: none;
}
.cookie.show { display: block; }
.cookie p { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.cookie p a { text-decoration: underline; }
.cookie-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cookie .btn { padding: .65rem 1.3rem; font-size: .76rem; }

/* ---------- Legal pages ---------- */
.legal { background: var(--surface); border-bottom: 1px solid var(--line-soft); padding: 3.5rem 0; }
.legal h1 { font-size: clamp(1.8rem,3vw,2.6rem); margin: 0 0 .5rem; }
.legal .updated { color: var(--slate); font-size: .85rem; }
.legal-body { padding: 3.5rem 0; }
.legal-body .wrap { max-width: 820px; }
.legal-body h2 { font-size: 1.4rem; margin: 2.5rem 0 .8rem; }
.legal-body h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin-bottom: .5rem; }
.back-link { display: inline-block; margin-top: 2.5rem; font-size: .85rem; color: var(--gold); }
.back-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .approach-grid, .proof-grid, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { height: 320px; }
  .svc-grid, .price-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 1rem var(--gut) 1.5rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .4rem 0; }
  .menu-btn { display: block; }
  .hero-badge { left: 0; }
}
@media (max-width: 560px) {
  :root { --gut: 1.25rem; }
  section { padding: 3.5rem 0; }
  .field.two { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
}
