/* zeroproof.one — main.css v2.0
   Design: Dark editorial · Playfair Display serif · Photo-driven
   Palette: #080e08 near-black · #1a5c3a forest · #7ecb9a sage
   Mobile-first. Google Fonts. LCP < 1s target. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:           #080e08;
  --bg-surface:   rgba(255,255,255,0.03);
  --bg-raised:    rgba(255,255,255,0.06);
  --forest:       #1a5c3a;
  --forest-mid:   #2d7a52;
  --sage:         #7ecb9a;
  --sage-dim:     rgba(126,203,154,0.65);
  --white:        #ffffff;
  --text:         #ffffff;
  --text-muted:   rgba(255,255,255,0.58);
  --text-faint:   rgba(255,255,255,0.28);
  --border:       rgba(255,255,255,0.08);
  --border-mid:   rgba(255,255,255,0.14);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:      860px;
  --container-wide: 1160px;
  --radius:         3px;
  --radius-lg:      8px;
  --transition:     0.24s ease;

  /* compat aliases */
  --color-primary: var(--forest);
  --color-accent:  var(--sage);
  --color-bg:      var(--bg);
  --color-text:    var(--text);
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage); }

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }

h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0;
}

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ─── UTILITIES ───────────────────────────────────────────── */
.container      { max-width: var(--container);      margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

/* ─── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,14,8,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo:hover { color: var(--white); }
.logo-accent { font-style: italic; color: var(--sage); }
.dot { color: var(--sage); }

.nav-primary { flex: 1; }
.nav-primary ul { list-style: none; display: flex; gap: 1.75rem; }
.nav-primary a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-primary a:hover,
.nav-primary a[aria-current] { color: var(--white); }
.nav-tool a { color: var(--sage) !important; }

.lang-switcher { display: flex; gap: 0.75rem; }
.lang-switcher a {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a[aria-current="true"] { color: var(--white); }

.header-cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--white);
  border: 0.5px solid var(--border-mid);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.header-cta:hover { border-color: var(--sage); color: var(--sage); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px; height: 28px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  margin-left: auto;
}
.burger span { display: block; height: 1.5px; background: var(--white); transition: transform var(--transition), opacity var(--transition); }

.mobile-drawer {
  display: none;
  background: rgba(8,14,8,0.98);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}
.mobile-drawer.open { display: block; }
.mobile-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.mobile-drawer a { font-size: 1rem; color: var(--text-muted); }
.mobile-drawer a:hover { color: var(--white); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(4,8,4,0.92) 0%, rgba(4,8,4,0.72) 45%, rgba(4,8,4,0.32) 100%);
}
.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding-top: 5rem;
}
.hero-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.02;
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--sage); font-style: italic; }
.tagline {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 420px;
}
.hero-cta-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--sage);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { background: #9edad0; color: var(--bg); transform: translateY(-1px); }

.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 0;
  transition: color var(--transition), border-color var(--transition);
}
.btn.ghost:hover { color: var(--white); border-color: var(--white); background: transparent; transform: none; }

/* ─── TRUST BAR ───────────────────────────────────────────── */
.trust-bar {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trust-bar-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.trust-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}
.trust-items { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-items li { font-size: 0.8rem; color: var(--sage-dim); }
.trust-items li::before { content: "·"; margin-right: 0.5rem; opacity: 0.4; }

/* ─── SECTIONS ────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section.alt { background: rgba(255,255,255,0.02); }

.section-header { margin-bottom: 3rem; }
.section-header h2 { color: var(--white); margin-bottom: 0.75rem; }
.section-header .section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* ─── BLOG / MAGAZINE CARDS ───────────────────────────────── */
.blog-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 1px;
}
.blog-featured-main {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  overflow: hidden;
}
.blog-card-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
}
.blog-card-small {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  min-height: 210px;
  overflow: hidden;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 1px;
}
.blog-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
  min-height: 260px;
  overflow: hidden;
}

.blog-featured-main .card-photo,
.blog-card-small .card-photo,
.blog-card .card-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0f1e0f;
  transition: transform 0.55s ease;
}
.blog-featured-main:hover .card-photo,
.blog-card-small:hover .card-photo,
.blog-card:hover .card-photo { transform: scale(1.04); }

.blog-featured-main .card-overlay,
.blog-card-small .card-overlay,
.blog-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,8,4,0.9) 0%, rgba(4,8,4,0.15) 55%, transparent 100%);
}
.blog-featured-main .card-content,
.blog-card-small .card-content,
.blog-card .card-content { position: relative; z-index: 2; }

.card-rubrique {
  display: block;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.55rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.card-title-sm {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.28;
  margin-bottom: 0.45rem;
}
.card-excerpt { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.card-meta { font-size: 0.7rem; color: var(--text-faint); }

/* ─── RUBRIQUES GRID ──────────────────────────────────────── */
.rubriques-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rubrique-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: #0a120a;
}
.rubrique-card .card-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rubrique-card:hover .card-photo { opacity: 0.5; transform: scale(1.05); }
.rubrique-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,8,4,0.88) 0%, transparent 65%);
}
.rubrique-card .card-content { position: relative; z-index: 2; }
.rubrique-count {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  display: block;
}
.rubrique-name { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ─── EDITORIAL QUOTE ─────────────────────────────────────── */
.editorial-quote {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.editorial-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.8vw, 1.85rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: 1.25rem;
}
.editorial-quote cite {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ─── FAQ ARTICLE PAGE ────────────────────────────────────── */
.faq-rubrique-header {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  margin-top: 64px;
}
.faq-rubrique-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0d1a0d;
}
.faq-rubrique-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(4,8,4,0.25) 0%, rgba(4,8,4,0.55) 45%, rgba(4,8,4,0.97) 100%);
}
.faq-rubrique-content {
  position: relative;
  z-index: 2;
  padding-bottom: 2.5rem;
  width: 100%;
}

.faq-breadcrumb {
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.faq-breadcrumb a { color: var(--text-faint); transition: color var(--transition); }
.faq-breadcrumb a:hover { color: var(--sage); }
.faq-breadcrumb span { opacity: 0.4; }

.faq-id-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.faq-silo-badge {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(126,203,154,0.14);
  color: var(--sage);
  padding: 4px 10px;
  border-radius: 2px;
}
.faq-id-badge { font-size: 0.66rem; color: var(--text-faint); letter-spacing: 0.05em; }

.faq-article h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.45rem);
  color: var(--white);
  font-weight: 400;
  line-height: 1.18;
  max-width: 760px;
}

.faq-bloc { padding: 2.75rem 0; border-bottom: 1px solid var(--border); }
.faq-bloc:last-child { border-bottom: none; }

.faq-bloc-1 { background: rgba(126,203,154,0.04); }
.bloc-1-answer { font-size: 1.08rem; line-height: 1.85; color: rgba(255,255,255,0.88); }
.bloc-1-answer p { font-size: 1.08rem; }

.faq-bloc-2 p { color: var(--text-muted); line-height: 1.88; font-size: 0.97rem; }
.faq-bloc-2 p:first-child { color: rgba(255,255,255,0.82); font-size: 1rem; }

.faq-bloc-3 table { width: 100%; border-collapse: collapse; font-size: 0.88rem; color: var(--text-muted); }
.faq-bloc-3 th {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-mid);
}
.faq-bloc-3 td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.faq-bloc-3 tr:last-child td { border-bottom: none; }
.faq-bloc-3 tr:hover td { background: var(--bg-surface); }

.bloc-4-cta {
  background: rgba(26,92,58,0.18);
  border: 0.5px solid rgba(126,203,154,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
}
.bloc-4-cta p { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin: 0; line-height: 1.72; }
.bloc-4-cta a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }

.related-h2 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); font-weight: 400; margin-bottom: 1.5rem; }
.related-questions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.related-q-card {
  display: block;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.related-q-card:hover { border-color: rgba(126,203,154,0.3); color: var(--white); background: var(--bg-raised); }

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: rgba(0,0,0,0.45); border-top: 1px solid var(--border); padding: 3.5rem 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo { display: inline-block; margin-bottom: 0.85rem; }
.footer-brand p { font-size: 0.82rem; color: var(--text-faint); line-height: 1.65; max-width: 260px; }
.footer-col h4 { margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col li a, .footer-bars p { font-size: 0.82rem; color: var(--text-faint); transition: color var(--transition); }
.footer-col li a:hover { color: var(--sage); }
.footer-bars p { margin-bottom: 0.5rem; }
.footer-bars strong { color: var(--text-muted); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom span { font-size: 0.74rem; color: var(--text-faint); }

/* ─── FAQ INDEX ───────────────────────────────────────────── */
.faq-index-header { padding: 7rem 0 3rem; }
.faq-index-header h1 { color: var(--white); margin-bottom: 0.75rem; }
.faq-index-header p { color: var(--text-muted); max-width: 540px; font-size: 1rem; }
.faq-silo-section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.faq-silo-section h2 { font-size: 1.25rem; color: var(--white); margin-bottom: 1.25rem; }
.faq-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.faq-link-item {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--border);
  transition: color var(--transition);
  line-height: 1.45;
}
.faq-link-item:hover { color: var(--sage); border-bottom-color: rgba(126,203,154,0.3); }

/* ─── GENERIC PAGES ───────────────────────────────────────── */
.page-header { padding: 8rem 0 3rem; border-bottom: 1px solid var(--border); }
.page-header h1 { color: var(--white); }
.page-body { padding: 3rem 0; }
.page-body p { color: var(--text-muted); font-size: 1rem; line-height: 1.85; max-width: 640px; }
.page-body h2 { font-size: 1.5rem; color: var(--white); margin: 2.5rem 0 1rem; }

/* ─── FADE-IN ─────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ─── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-primary, .header-cta, .lang-switcher { display: none; }
  .burger { display: flex; }

  .hero { min-height: 90vh; padding-bottom: 3rem; }
  .hero h1 { font-size: 2.6rem; }
  .tagline { font-size: 0.92rem; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(4,8,4,0.5) 0%, rgba(4,8,4,0.88) 100%); }

  .blog-featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .rubriques-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .related-questions-grid { grid-template-columns: 1fr; }
  .faq-links-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .rubriques-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .faq-rubrique-header { height: 260px; }
  .trust-items { gap: 0.75rem; }
}
