/* ==========================================================================
   MANTA MENTAL — Feuille de style partagée
   Palette et typographie derivees directement de l'identite visuelle
   de l'application (fond marine, dore, terracotta, wordmark espace).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0D0F14;
  --surface: #1B1E27;
  --surface-2: #22252F;
  --border: #2A2D38;
  --gold: #C9A55A;
  --terra: #C4623A;
  --foreground: #F2EDE6;
  --muted: #6B7480;
  --muted-dim: #3A3D48;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

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

/* ---------- Wordmark / en-tete ---------- */

.site-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 22px;
  letter-spacing: 10px;
  color: var(--gold);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.main-nav a:hover {
  color: var(--foreground);
  text-decoration: none;
}
.main-nav a.active { color: var(--gold); }

/* ---------- Heros / sections generiques ---------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--foreground);
}

.hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.divider {
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
  margin: 0 auto 28px;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .3px;
}
.btn-primary {
  background: var(--gold);
  color: #14161C;
}
.btn-primary:hover {
  background: #d8b56c;
  text-decoration: none;
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-ghost:hover {
  border-color: var(--gold);
  text-decoration: none;
}

section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h2.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

p.section-lede {
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 40px;
  font-size: 16px;
}

/* ---------- Grilles de cartes ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.card .card-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--foreground);
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Blog : liste ---------- */

.post-list {
  display: grid;
  gap: 18px;
}

.post-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-row .post-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--foreground);
}
.post-row .post-info h3 a { color: inherit; }
.post-row .post-info h3 a:hover { color: var(--gold); text-decoration: none; }

.post-row .post-info p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 560px;
}

.post-meta {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-dim);
  white-space: nowrap;
}

/* ---------- Article ---------- */

.article-header {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}

.article-header .eyebrow { color: var(--terra); }

.article-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 20px;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
}

.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  font-size: 17px;
  line-height: 1.8;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 48px 0 18px;
  color: var(--foreground);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 32px 0 12px;
  color: var(--foreground);
}

.article-body p { margin: 0 0 22px; color: #D8D3CC; }
.article-body ul, .article-body ol { color: #D8D3CC; margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }

.article-body strong { color: var(--foreground); font-weight: 500; }

.callout {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
}
.callout .callout-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; }

.article-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  margin: 48px 0 0;
}
.article-cta p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer p {
  color: var(--muted-dim);
  font-size: 13px;
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  section { padding: 44px 0; }
  .hero { padding: 64px 0 48px; }
}
