/* Comitari — Cabinet RH premium */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --navy: #0c1a2e;
  --navy-mid: #152238;
  --gold: #b8922a;
  --gold-light: #d4ad4a;
  --paper: #f7f8fa;
  --white: #ffffff;
  --muted: #5c6b7a;
  --line: #dde3ea;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --nav: 88px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--navy);
  line-height: 1.65;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* ── Navigation ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 500;
  height: var(--nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  transition: background 0.35s var(--ease), box-shadow 0.35s;
}
.nav.is-solid {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(12, 26, 46, 0.04);
}
.nav:not(.is-solid) { color: var(--white); }
.nav:not(.is-solid) .nav__logo-wrap { background: rgba(255,255,255,0.95); padding: 8px 14px; border-radius: var(--radius); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo { height: 48px; width: auto; }
.nav__symbol { height: 36px; width: auto; opacity: 0.9; }
.nav__links { display: none; gap: 32px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.nav__links a { transition: color 0.25s; }
.nav__links a:hover { color: var(--navy); }
.nav:not(.is-solid) .nav__links { color: rgba(255,255,255,0.85); }
.nav:not(.is-solid) .nav__links a:hover { color: var(--white); }
.nav__cta {
  padding: 11px 22px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.25s;
  letter-spacing: 0.02em;
}
.nav__cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav:not(.is-solid) .nav__cta { background: var(--white); color: var(--navy); }
.nav__burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; }

.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 600;
  width: min(320px, 88vw);
  background: var(--navy);
  color: var(--white);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  padding: 28px 24px;
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.drawer__head .nav__logo { height: 44px; filter: brightness(0) invert(1); }
.drawer__close { font-size: 1.75rem; color: rgba(255,255,255,0.6); line-height: 1; }
.drawer__links { display: flex; flex-direction: column; gap: 4px; }
.drawer__links a {
  padding: 14px 0; font-size: 1.0625rem; font-family: var(--serif);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__logo { height: 56px; }
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: grid;
  background: var(--navy);
  color: var(--white);
}
.hero__inner {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav) + 48px) clamp(20px, 5vw, 64px) 64px;
  max-width: 720px;
}
.hero__logo {
  height: clamp(56px, 12vw, 80px);
  width: auto;
  margin-bottom: 36px;
  filter: brightness(0) invert(1);
}
.hero__badge {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  margin-bottom: 24px;
  max-width: 18ch;
}
.hero__lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero__proofs {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  margin-bottom: 40px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}
.hero__proofs strong { display: block; color: var(--gold-light); font-size: 0.9375rem; margin-bottom: 2px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.25s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline-light {
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: border-color 0.25s;
}
.btn-outline-light:hover { border-color: rgba(255, 255, 255, 0.7); }
.hero__visual {
  position: relative;
  min-height: 40vh;
  background: var(--navy-mid);
  overflow: hidden;
}
.hero__visual img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.7);
}
.hero__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--navy) 0%, transparent 40%),
              linear-gradient(0deg, var(--navy) 0%, transparent 30%);
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .hero__visual { min-height: auto; }
  .hero__visual::after {
    background: linear-gradient(90deg, var(--navy) 0%, transparent 45%);
  }
}

/* ── Sections ── */
.section { padding: clamp(72px, 10vw, 112px) clamp(20px, 5vw, 64px); }
.section--alt { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.section--navy .section__head p { color: rgba(255,255,255,0.7); }

.eyebrow {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section--navy .eyebrow { color: var(--gold-light); }

/* ── Risks grid ── */
.risks { display: grid; gap: 24px; }
@media (min-width: 768px) { .risks { grid-template-columns: repeat(3, 1fr); } }
.risk-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.risk-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.risk-card .stat { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); margin-bottom: 8px; }
.risk-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; }

/* ── Solutions grid ── */
.solutions { display: grid; gap: 20px; }
@media (min-width: 768px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
.solution-card {
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s;
}
.solution-card:hover { border-color: var(--gold); }
.solution-card h3 { font-size: 1.375rem; margin-bottom: 12px; }
.solution-card > p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 20px; line-height: 1.65; }
.solution-card ul { list-style: none; }
.solution-card li {
  font-size: 0.8125rem; color: var(--navy); padding: 6px 0;
  border-top: 1px solid var(--line);
}
.solution-card li::before { content: '→ '; color: var(--gold); }

/* ── Stats band ── */
.stats-band {
  display: grid; gap: 32px; text-align: center;
  padding: 56px clamp(20px, 5vw, 64px);
  background: var(--navy-mid);
  color: var(--white);
}
@media (min-width: 768px) { .stats-band { grid-template-columns: repeat(3, 1fr); } }
.stats-band .num { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 3.5rem); color: var(--gold-light); }
.stats-band .lbl { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-top: 8px; max-width: 24ch; margin-inline: auto; }

/* ── Guarantees ── */
.guarantees { max-width: 800px; }
.guarantee-row {
  display: grid; gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .guarantee-row { grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
}
.guarantee-row strong { font-size: 0.9375rem; color: var(--navy); }
.guarantee-row p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── Testimonial ── */
.testimonial {
  max-width: 640px;
  padding: 40px 0;
  border-top: 2px solid var(--gold);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 20px;
}
.testimonial cite { font-style: normal; font-size: 0.875rem; color: var(--muted); font-weight: 500; }

/* ── Trust grid ── */
.trust-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-item h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.trust-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── Tool cards ── */
.tool-cards { display: grid; gap: 16px; max-width: 800px; }
@media (min-width: 768px) { .tool-cards { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  display: block; padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s;
}
.tool-card:hover { border-color: var(--gold); }
.tool-card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.tool-card p { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.tool-card span { font-size: 0.8125rem; font-weight: 600; color: var(--gold); }

/* ── CTA ── */
.cta-block {
  text-align: center;
  padding: clamp(72px, 12vw, 120px) clamp(20px, 5vw, 64px);
  background: var(--navy);
  color: var(--white);
}
.cta-block h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.7); max-width: 42ch; margin: 0 auto 32px; font-size: 0.9375rem; }
.cta-block .note { font-size: 0.8125rem; color: rgba(255,255,255,0.45); margin-top: 16px; }

/* ── Panel split (services) ── */
.panel-split { display: grid; border-top: 1px solid var(--line); }
.panel-split__img { aspect-ratio: 16/10; overflow: hidden; background: var(--paper); }
.panel-split__img img { width: 100%; height: 100%; object-fit: cover; }
.panel-split__text { padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 64px); max-width: 560px; }
.panel-split__text h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 8px; }
.panel-split__text .tagline { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 20px; }
.panel-split__text p { color: var(--muted); margin-bottom: 14px; line-height: 1.7; font-size: 0.9375rem; }
.panel-split__proof {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted); line-height: 1.65;
}
.panel-split__proof strong { color: var(--navy); }
@media (min-width: 960px) {
  .panel-split { grid-template-columns: 1fr 1fr; }
  .panel-split--flip .panel-split__img { order: 2; }
}

/* ── Blog ── */
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.blog-filters button {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 0.8125rem; background: var(--white); transition: all 0.2s;
}
.blog-filters button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.blog-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.blog-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s;
}
.blog-card:hover { border-color: var(--gold); }
.blog-card__img { aspect-ratio: 16/9; background: var(--paper); overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 24px; }
.blog-card__cat { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.blog-card h3 { font-size: 1.25rem; margin: 8px 0 12px; }
.blog-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.article-page { padding: calc(var(--nav) + 48px) clamp(20px, 5vw, 64px) 80px; max-width: 720px; margin: 0 auto; }
.article-page h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 16px; }
.article-meta { font-size: 0.8125rem; color: var(--muted); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-body h2 { font-size: 1.375rem; margin: 36px 0 12px; }
.article-body p, .article-body li { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.article-body ul { padding-left: 1.25rem; margin-bottom: 20px; }

/* ── Forms ── */
.form-shell { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: var(--white);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { min-height: 120px; resize: vertical; }
.btn-send {
  padding: 14px 32px; background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 0.875rem; border-radius: var(--radius);
  transition: background 0.25s;
}
.btn-send:hover { background: var(--navy-mid); }

/* ── Footer ── */
.footer {
  background: var(--navy); color: rgba(255, 255, 255, 0.55);
  padding: 56px clamp(20px, 5vw, 64px) 32px; font-size: 0.8125rem;
}
.footer__brand { margin-bottom: 32px; }
.footer__brand img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__grid { display: grid; gap: 32px; margin-bottom: 40px; }
.footer h4 { font-family: var(--serif); font-size: 1rem; color: var(--white); margin-bottom: 12px; }
.footer a:hover { color: var(--gold-light); }
.footer__bottom {
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
.footer__bottom strong { color: var(--white); }

/* ── WhatsApp flottant (discret) ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: grid; place-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float img { width: 28px; height: 28px; filter: brightness(0) invert(1); }

/* ── Tool pages ── */
.tool-page {
  padding: calc(var(--nav) + 48px) clamp(20px, 5vw, 64px) 80px;
  max-width: 640px; margin: 0 auto;
}
.tool-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 12px; }
.tool-lead { color: var(--muted); margin-bottom: 24px; max-width: 48ch; font-size: 0.9375rem; }
.tool-note {
  padding: 20px 24px; margin-bottom: 36px;
  background: var(--paper); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tool-note p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

.wizard-progress { height: 3px; background: var(--line); margin-bottom: 36px; border-radius: 2px; overflow: hidden; }
.wizard-progress__bar { height: 100%; background: var(--gold); width: 0%; transition: width 0.4s var(--ease); }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.wizard-step h2 { font-size: 1.25rem; margin-bottom: 20px; line-height: 1.35; }
.wizard-options { display: flex; flex-direction: column; gap: 10px; }
.wizard-opt {
  text-align: left; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
}
.wizard-opt:hover { border-color: var(--gold); background: rgba(184,146,42,0.04); }
.wizard-report {
  padding: 28px; background: var(--navy); color: var(--white);
  border-radius: var(--radius); margin-top: 24px;
}
.wizard-report h3 { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 16px; }
.wizard-report p { color: rgba(255,255,255,0.82); font-size: 0.9375rem; margin-bottom: 12px; }
.wizard-report .highlight { font-family: var(--serif); font-size: 1.75rem; color: var(--gold-light); margin: 16px 0; }

.legal-page {
  padding: calc(var(--nav) + 48px) clamp(20px, 5vw, 64px) 80px;
  max-width: 680px; margin: 0 auto;
}
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 32px; }
.legal-page h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 12px; }

.toast {
  position: fixed; top: calc(var(--nav) + 12px); left: 50%;
  transform: translateX(-50%) translateY(-12px);
  padding: 12px 24px; background: var(--navy); color: var(--white);
  font-size: 0.8125rem; border-radius: var(--radius);
  opacity: 0; pointer-events: none; transition: 0.3s; z-index: 800;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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

@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field--full { grid-column: 1 / -1; }
}
@media (max-width: 959px) { .hide-mobile { display: none; } }

.gated-landing, .calc-result, .gated-landing .result-box { /* keep tool pages */ }
.gated-landing {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav) + 48px) clamp(20px, 5vw, 64px) 80px; max-width: 560px; margin: 0 auto;
}
.gated-landing h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 20px; }
.gated-landing .hook { font-family: var(--serif); font-style: italic; color: var(--muted); margin-bottom: 32px; }
.calc-result { margin-top: 28px; padding: 24px; background: var(--paper); border-left: 3px solid var(--gold); display: none; }
.calc-result.visible { display: block; }
.calc-result strong { display: block; font-family: var(--serif); font-size: 1.375rem; margin: 8px 0 16px; }
