/* === Mendworthy — Santé financière éducative === */
/* Palette complètement différente : chaud, terreux, premium */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-warm: #f5f0e8;
  --ink: #1c1917;
  --ink-light: #44403c;
  --muted: #78716c;
  --soft: #d6d3d1;
  --line: #e7e5e4;
  --line-light: #f5f5f4;

  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-light: #fffbeb;
  --accent-bright: #d97706;

  --green: #065f46;
  --green-light: #ecfdf5;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(28,25,23,.04);
  --shadow: 0 4px 20px rgba(28,25,23,.08);
  --shadow-lg: 0 16px 48px rgba(28,25,23,.12);

  --max: 1160px;
  --header-height: 72px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0; color: var(--muted); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 14ch; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -6rem; left: 1.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(250,248,245,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--max));
  height: 100%;
  margin-inline: auto;
}

.brand-logo img { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  cursor: pointer;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.site-nav a {
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-light);
  transition: background .2s, color .2s;
}

.site-nav a:hover { background: var(--line-light); color: var(--ink); }
.site-nav a.active { background: var(--accent-light); color: var(--accent); }

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 4rem;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding: 6rem 0 5rem;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-copy h1 { margin-bottom: 1.25rem; }

.hero-copy .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(180,83,9,.28);
}
.button.primary:hover { background: var(--accent-hover); }

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover { background: var(--line-light); }

.button.ghost {
  background: transparent;
  color: var(--ink-light);
  border: 1px solid var(--line);
}
.button.ghost:hover { background: var(--line-light); }

/* Hero visual block */
.hero-visual {
  position: relative;
  background: linear-gradient(145deg, var(--surface-warm) 0%, #ede8df 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: var(--accent-bright);
  opacity: .12;
  border-radius: 50%;
  filter: blur(50px);
}

.hero-visual::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 140px; height: 140px;
  background: var(--green);
  opacity: .08;
  border-radius: 50%;
  filter: blur(40px);
}

.visual-stat {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.visual-stat:last-child { border-bottom: none; }

.visual-stat strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 3.5rem;
}
.visual-stat span {
  font-size: .9rem;
  color: var(--muted);
}

/* === Trust strip === */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  position: relative;
}

.trust-strip span::before {
  content: '✓';
  display: inline-block;
  margin-right: .4rem;
  color: var(--green);
  font-weight: 700;
}

/* === Notice band === */
.notice-band {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding: 1.25rem 0;
  font-size: .88rem;
  color: var(--muted);
}

.notice-band strong {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* === Sections === */
.section-wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding: 5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head .eyebrow {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-head h2 { margin-bottom: .75rem; }
.section-head p { font-size: 1.05rem; line-height: 1.7; }

/* === Cards === */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two   { grid-template-columns: repeat(2, 1fr); }

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.content-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--soft);
}

.content-card > span {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-light);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.content-card h3 { margin-bottom: .6rem; color: var(--ink); }
.content-card p { font-size: .95rem; line-height: 1.65; margin-bottom: 1.25rem; }

.content-card a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.content-card a:hover { border-bottom-color: var(--accent); }

/* === Split section (image + text) === */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding: 5rem 0;
}

.split-media {
  background: linear-gradient(135deg, var(--surface-warm), #e8e2d6);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.split-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"60\" height=\"60\" viewBox=\"0 0 60 60\"><circle cx=\"30\" cy=\"30\" r=\"1.5\" fill=\"%23d6d3d1\"/></svg>');
  opacity: .6;
}

.split-content .eyebrow {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .75rem;
}

.split-content h2 { margin-bottom: 1rem; }
.split-content p { margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.7; }

/* === Feature list === */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--ink-light);
}

.feature-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .55rem;
  flex-shrink: 0;
}

/* === Page hero === */
.page-hero {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding: 4rem 0 3rem;
}
.page-hero .eyebrow { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .75rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { font-size: 1.05rem; max-width: 60ch; line-height: 1.7; }

/* === Article list === */
.article-list { display: flex; flex-direction: column; gap: 1.25rem; }

.article-list a {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}

.article-list a:hover {
  box-shadow: var(--shadow);
  border-color: var(--soft);
}

.article-list .num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.article-list h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: .15rem; }
.article-list p { font-size: .88rem; }
.article-list .arrow { color: var(--accent); font-weight: 700; }

/* === Text stack === */
.text-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.text-block h3 { margin-bottom: .6rem; color: var(--ink); }
.text-block p { font-size: .95rem; line-height: 1.7; }

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: #a8a29e;
  margin-top: 4rem;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.footer-brand p { color: #a8a29e; font-size: .9rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }

.footer-links h4 {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #d6d3d1;
  margin-bottom: 1.25rem;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .9rem; color: #a8a29e; transition: color .2s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #292524;
  font-size: .82rem;
  color: #78716c;
}

/* === Cookie panel === */
.cookie-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -8px 30px rgba(28,25,23,.1);
}

.cookie-panel p { font-size: .88rem; max-width: 620px; }
.cookie-panel strong { color: var(--ink); }

/* === Forms === */
.form-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-field label { font-size: .85rem; font-weight: 500; color: var(--ink-light); }

.form-field input,
.form-field textarea,
.form-field select {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180,83,9,.12);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 560px;
}

/* === Utility === */
.two-cols { columns: 2; gap: 3rem; }
.two-cols p { margin-bottom: 1rem; }

.legal-page h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; color: var(--ink); }
.legal-page h3 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; color: var(--ink-light); }
.legal-page p { margin-bottom: 1rem; font-size: .95rem; line-height: 1.75; }
.legal-page ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.legal-page ul li { margin-bottom: .4rem; font-size: .95rem; color: var(--muted); line-height: 1.65; }

/* === Responsive === */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
  .hero-visual { min-height: 260px; }
  .split-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-grid.three { grid-template-columns: 1fr 1fr; }
  .text-stack { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-height); left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem;
    display: none;
    gap: .25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: .65rem 1rem; }
  .card-grid.three, .card-grid.two, .text-stack { grid-template-columns: 1fr; }
  .article-list a { grid-template-columns: 1fr; gap: .5rem; }
  .article-list .arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .trust-strip { grid-template-columns: 1fr; gap: .75rem; padding: 1.25rem 0; }
  .trust-strip span { text-align: left; }
  .two-cols { columns: 1; }
  .notice-band { flex-direction: column; gap: .5rem; }
  h1 { font-size: 2.4rem; }
  .section-wrap { padding: 3.5rem 0; }
  .button { width: 100%; }
}
