/* ─────────────────────────────────────────────────────────────────────────
   Capitali — feuille de style commune
   Tokens, navigation, conteneur, boutons, footer et blocs Ressources/Guide.
   Les styles spécifiques aux sections de la landing restent dans index.html.
   ───────────────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --white: #fafaf9;
  --green: #00b86b;
  --green-dark: #009a59;
  --green-bg: rgba(0,184,107,0.06);
  --gray-50: #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-400: #a8a29e;
  --gray-600: #57534e;
  --gray-800: #292524;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.85rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,250,249,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none; color: var(--black);
}

.nav-logo-mark {
  width: 30px; height: 30px;
  background: var(--green);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.7rem;
}

.nav-right {
  display: flex; align-items: center; gap: 0.5rem;
}

.nav-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  transition: all 0.2s;
}
.nav-link:hover { color: var(--black); background: var(--gray-100); }
.nav-link.is-active { color: var(--black); background: var(--gray-100); }

.nav-login {
  color: var(--black);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  transition: all 0.2s;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.nav-login:hover { border-color: var(--gray-400); }

.nav-cta {
  background: var(--green);
  color: white;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--green-dark); }

/* ── LAYOUT ── */
section { padding: 6rem 2rem; }
.container { max-width: 1080px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 1rem;
}

/* ── BOUTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-ghost {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.9rem 1rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--black); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ── FOOTER ── */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────────────────
   Section Ressources (hub des guides)
   ───────────────────────────────────────────────────────────────────────── */

.guides-hero {
  padding: 9rem 2rem 3.5rem;
  text-align: center;
}

.guides-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.guides-hero h1 em {
  font-style: italic;
  color: var(--green);
}

.guides-hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

.guides-section { padding: 1rem 2rem 6rem; }

.guides-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.guides-toolbar-label {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.guides-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.guides-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s;
}
.guides-tag:hover { border-color: var(--gray-400); color: var(--black); }
.guides-tag.is-active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.guide-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 28px rgba(0,184,107,0.08);
  transform: translateY(-2px);
}

.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--gray-600);
  font-weight: 500;
}

.guide-card-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gray-400);
}

.guide-card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

.guide-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--black);
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
  flex: 1;
}

.guide-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.guide-card.is-soon {
  background: var(--gray-50);
  border-style: dashed;
  cursor: default;
}
.guide-card.is-soon:hover { transform: none; box-shadow: none; border-color: var(--gray-200); }
.guide-card.is-soon h3 { color: var(--gray-600); }
.guide-card.is-soon .guide-card-tag { color: var(--gray-400); }

/* ─────────────────────────────────────────────────────────────────────────
   Article (page guide individuelle)
   ───────────────────────────────────────────────────────────────────────── */

.article-hero {
  padding: 8.5rem 2rem 2.5rem;
}

.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.article-breadcrumb a {
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.article-breadcrumb a:hover { color: var(--black); border-bottom-color: var(--gray-400); }

.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.85rem;
}

.article-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.article-hero h1 em { font-style: italic; color: var(--green); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.article-meta .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gray-400);
}

.article-body { padding: 1rem 2rem 4rem; }

.article-prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-800);
}

.article-prose > * + * { margin-top: 1.1rem; }

.article-prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

.article-prose h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-prose p { color: var(--gray-800); }

.article-prose strong { color: var(--black); font-weight: 600; }

.article-prose a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-prose a:hover { color: var(--green); }

.article-prose ul,
.article-prose ol {
  padding-left: 1.4rem;
  color: var(--gray-800);
}
.article-prose li + li { margin-top: 0.4rem; }

.article-prose ul li::marker { color: var(--green); }

.article-callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--green-bg);
  border: 1px solid rgba(0,184,107,0.18);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.6;
}

.article-callout strong { color: var(--green-dark); }

.article-toc {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
}

.article-toc-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}

.article-toc ol {
  list-style: decimal;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--gray-800);
}

.article-toc a {
  color: var(--gray-800);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.article-toc a:hover { color: var(--black); border-bottom-color: var(--green); }

.article-disclaimer {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.article-cta {
  margin-top: 3rem;
  padding: 2rem 2rem;
  background: var(--black);
  color: var(--white);
  border-radius: 18px;
  text-align: center;
}

.article-cta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.article-cta h3 em { color: var(--green); font-style: italic; }

.article-cta p {
  color: var(--gray-400);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
  line-height: 1.55;
}

.article-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0.65rem 1rem; }
  .nav-link { display: none; }

  .guides-hero { padding-top: 7rem; }
  .guides-grid { grid-template-columns: 1fr; }
  .guides-section { padding: 1rem 1.25rem 4rem; }

  .article-hero { padding: 7rem 1.25rem 2rem; }
  .article-body { padding: 0.5rem 1.25rem 3rem; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
