/* pasdagence.fr — static site styles. No framework, no JS. */

:root {
  --ink: #1a1a1a;
  --muted: #5b6470;
  --accent: #059669;       /* emerald-600 */
  --accent-dark: #047857;
  --border: #e5e7eb;
  --bg-soft: #f0fdf4;      /* emerald-50 */
  --maxw: 1200px;          /* site shell: nav, footer, blog grid, home */
  --readw: 1200px;         /* body text width — matches the shell (full width) */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Long-form reading column — kept narrow & centered inside the wide shell so
   article/privacy/home body text stays at a comfortable line length. */
.reading { max-width: var(--readw); margin-inline: auto; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .tld { color: var(--accent); }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ---- hero (home) ---- */
.hero {
  background: linear-gradient(to bottom, var(--bg-soft), #fff);
  border-bottom: 1px solid #f1f5f4;
  text-align: center;
  padding: 64px 20px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 1.125rem; max-width: 34rem; margin: 0 auto; }
.btn {
  display: inline-block; margin-top: 28px;
  background: var(--accent); color: #fff;
  padding: 12px 24px; border-radius: 999px; font-weight: 500;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ---- main / article prose ---- */
main { padding: 40px 0 24px; }
.back { font-size: 14px; display: inline-block; margin-bottom: 24px; }
.page-title { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 0.875rem; margin: 0 0 24px; }
.hero-img { border-radius: 12px; border: 1px solid #f1f1f1; margin: 24px 0; width: 100%; }

.prose { font-size: 1.0625rem; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 0.6em; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.prose p { margin: 1em 0; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; }
.prose li { margin: 0.4em 0; }
.prose img, .prose figure img { border-radius: 10px; margin: 1.5em auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { color: var(--muted); font-size: 0.875rem; text-align: center; margin-top: 0.5em; }
.prose blockquote {
  margin: 1.5em 0; padding: 0.5em 1.2em;
  border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}
.prose a { text-decoration: underline; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }

/* ---- blog index ---- */
.section-head { margin-bottom: 32px; }
.section-head h1 { font-size: 2rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: #fff; transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.07); border-color: #d1d5db; }
.card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #f3f4f6; }
.card-img--empty { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bg-soft), #f3f4f6); }
.card-body { padding: 16px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.card h2, .card h3 { font-size: 1.0625rem; margin: 0; line-height: 1.35; color: var(--ink); }
.card:hover h2, .card:hover h3 { color: var(--accent-dark); }
.card p { font-size: 0.9rem; color: var(--muted); margin: 8px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 2px 6px; border-radius: 4px;
}
.badge--fr { background: var(--bg-soft); color: var(--accent-dark); }
.badge--en { background: #eff6ff; color: #1d4ed8; }

/* ---- latest teaser on home ---- */
.teaser { margin-top: 64px; }
.teaser-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.teaser-head h2 { font-size: 1.5rem; margin: 0; letter-spacing: -0.01em; }
.teaser-head a { font-size: 14px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); margin-top: 64px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 32px 20px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }
