/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #ffffff;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* Header */
.header {
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.logo-wrap { display: flex; align-items: baseline; gap: 5px; text-decoration: none; }
.logo-the { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 14px; color: #64748b; font-weight: 400; }
.logo-name { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; font-weight: 700; color: #0f172a; letter-spacing: -0.01em; }
.nav { display: flex; gap: 24px; font-size: 13px; }
.nav a { color: #475569; transition: color 0.2s; }
.nav a:hover { color: #0f172a; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 99px;
  font-size: 12px;
  background: white;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
}
.lang-pill:hover { border-color: #0f172a; }
.lang-option {
  padding: 0 2px;
  cursor: pointer;
  transition: color 0.2s;
  color: #94a3b8;
}
.lang-option.active {
  color: #0f172a;
  font-weight: 500;
}
.lang-sep {
  color: #cbd5e1;
  pointer-events: none;
}

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.hero-eyebrow {
  font-size: 11px;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: #2563eb; }
.hero-sub {
  font-size: 16px;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary { background: #0f172a; color: white; border: 1px solid #0f172a; }
.btn-primary:hover { background: #1e293b; }
.btn-secondary { background: transparent; color: #0f172a; border: 1px solid #cbd5e1; }
.btn-secondary:hover { border-color: #0f172a; }

/* Values bar */
.values { padding: 40px 0; border-bottom: 1px solid #f1f5f9; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.value-item { text-align: center; }
.value-icon { font-size: 24px; margin-bottom: 10px; }
.value-title { font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.value-desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* Sections */
.sections { padding: 56px 0 16px; }
.section-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 10px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* Category cards */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.cat-card {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  display: block;
}
.cat-card:hover { border-color: #0f172a; transform: translateY(-2px); }
.cat-count {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cat-name { font-size: 15px; font-weight: 600; color: #0f172a; margin: 6px 0; }
.cat-desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* Tools list */
.tools-list { display: flex; flex-direction: column; gap: 10px; }
.tool {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}
.tool:hover { border-color: #0f172a; }
.tool-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
}
.tool-name { font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 3px; }
.tool-desc { font-size: 12px; color: #64748b; }
.tool-tag {
  font-size: 10px;
  color: #2563eb;
  background: #eff6ff;
  padding: 5px 10px;
  border-radius: 99px;
  font-weight: 500;
}

/* Articles */
.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-card {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: white;
  display: block;
}
.article-card:hover { border-color: #0f172a; }
.article-cat {
  font-size: 10px;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.article-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 8px 0 10px;
  line-height: 1.4;
}
.article-excerpt { font-size: 12px; color: #64748b; line-height: 1.5; }

/* About */
.about {
  padding: 32px;
  background: #f8fafc;
  border-radius: 12px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
}
.about-avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-title { font-size: 15px; font-weight: 600; color: #0f172a; margin-bottom: 8px; }
.about-text { font-size: 13px; color: #475569; line-height: 1.6; }

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 56px;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

/* Article page styles */
.article-page { padding: 56px 0; }

/* Article à venir — état placeholder */
.article-card.coming-soon {
  background: #f8fafc;
  border-style: dashed;
  border-color: #94a3b8;
  cursor: default;
  pointer-events: none;
}
.article-card.coming-soon:hover { border-color: #94a3b8; }
.article-card.coming-soon .article-cat { color: #94a3b8; }
.article-card.coming-soon .article-title {
  color: #64748b;
  font-style: italic;
}
.article-card.coming-soon .article-excerpt { color: #94a3b8; }
.coming-soon-badge {
  display: inline-block;
  font-size: 10px;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 600;
  margin-bottom: 10px;
}

.article-page h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin: 16px 0 24px;
  line-height: 1.3;
  max-width: 760px;
}
.article-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 36px 0 16px;
}
.article-page h3 {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin: 24px 0 12px;
}
.article-page p {
  font-size: 15px;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 720px;
}
.article-page ul, .article-page ol {
  margin: 16px 0 16px 24px;
  font-size: 15px;
  color: #334155;
  line-height: 1.75;
  max-width: 720px;
}
.article-page li { margin-bottom: 8px; }
.article-page strong { color: #0f172a; font-weight: 600; }
.article-page .prompt-box {
  background: #f1f5f9;
  border-left: 3px solid #2563eb;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #1e293b;
  border-radius: 4px;
  max-width: 720px;
  white-space: pre-wrap;
}
.article-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: #2563eb;
  margin-bottom: 24px;
}

/* Tool detail page */
.tool-page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid #e5e5e5;
}
.tool-card-detail {
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: white;
  margin-bottom: 16px;
}
.tool-card-detail h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}
.tool-card-detail .tool-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}
.tool-card-detail p {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 10px;
}
.tool-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: #2563eb;
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: flex-start; flex-wrap: wrap; padding-top: 12px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .values-grid { grid-template-columns: 1fr; gap: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .tool { grid-template-columns: 44px 1fr; }
  .tool-tag { grid-column: 2; justify-self: start; margin-top: 6px; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about-avatar { margin: 0 auto; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body { background: #0a0a0a; color: #e5e5e5; }
  .header { background: #0a0a0a; border-bottom-color: #1e293b; }
  .logo-name { color: #f1f5f9; }
  .logo-the { color: #94a3b8; }
  .nav a { color: #94a3b8; }
  .nav a:hover { color: #f1f5f9; }
  .lang-pill { background: #0a0a0a; border-color: #1e293b; }
  .lang-pill:hover { border-color: #94a3b8; }
  .lang-option { color: #475569; }
  .lang-option.active { color: #f1f5f9; }
  .lang-sep { color: #1e293b; }
  .hero { border-bottom-color: #1e293b; }
  .hero h1, .section-title, .cat-name, .tool-name, .article-title, .about-title, .value-title,
  .article-page h1, .article-page h2, .article-page h3, .article-page strong,
  .tool-card-detail h3 { color: #f1f5f9; }
  .hero-sub, .cat-desc, .tool-desc, .article-excerpt, .about-text, .value-desc,
  .article-page p, .article-page ul, .article-page ol, .tool-card-detail p { color: #94a3b8; }
  .values { border-bottom-color: #1e293b; }
  .cat-card, .tool, .article-card, .tool-card-detail { background: #0f172a; border-color: #1e293b; }
  .cat-card:hover, .tool:hover, .article-card:hover, .tool-card-detail:hover { border-color: #94a3b8; }
  .article-card.coming-soon { background: #0f172a; border-color: #475569; }
  .article-card.coming-soon .article-title { color: #94a3b8; }
  .article-card.coming-soon .article-cat,
  .article-card.coming-soon .article-excerpt { color: #64748b; }
  .coming-soon-badge { background: #1e3a5f; color: #60a5fa; }
  .btn-primary { background: #f1f5f9; color: #0f172a; border-color: #f1f5f9; }
  .btn-primary:hover { background: #e2e8f0; }
  .btn-secondary { color: #f1f5f9; border-color: #1e293b; }
  .btn-secondary:hover { border-color: #94a3b8; }
  .tool-logo { background: linear-gradient(135deg, #1e3a8a, #1e40af); color: #dbeafe; }
  .about { background: #1e293b; }
  .about-avatar { background: #f1f5f9; }
  .article-cat, .cat-count { color: #60a5fa; }
  .tool-tag { background: #1e3a8a; color: #93c5fd; }
  .footer { color: #475569; border-top-color: #1e293b; }
  .article-page .prompt-box { background: #1e293b; color: #cbd5e1; }
  .tool-page-header { border-bottom-color: #1e293b; }
}
