/* Editorial guide pages (guide pages) - light premium system aligned with calculator pages. */

body.guide-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  color-scheme: light;
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.guide-page,
body.guide-page * {
  box-sizing: border-box;
}

body.guide-page a {
  color: inherit;
}

body.guide-page img {
  display: block;
  max-width: 100%;
}

body.guide-page main.container {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 16px 0 80px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

body.guide-page .guide-page-shell {
  display: grid;
  gap: 40px;
}

body.guide-page header .logo-img {
  width: 92px;
  height: auto;
}

body.guide-page .guide-hero {
  --editorial-accent: var(--color-category-indigo);
  --editorial-accent-deep: var(--color-category-indigo-deep);
  max-width: 66rem;
  display: grid;
  gap: 14px;
}

body.guide-page .guide-hero--transport {
  --editorial-accent: var(--color-category-cyan);
  --editorial-accent-deep: var(--color-category-cyan-deep);
}

body.guide-page .guide-hero--famille {
  --editorial-accent: var(--color-category-pink);
  --editorial-accent-deep: var(--color-category-pink-deep);
}

body.guide-page .guide-hero--maison-charges,
body.guide-page .guide-hero--maison-energie {
  --editorial-accent: var(--color-category-amber);
  --editorial-accent-deep: var(--color-category-amber-deep);
}

body.guide-page .guide-hero--sante,
body.guide-page .guide-hero--sante-bien-etre {
  --editorial-accent: var(--color-category-emerald);
  --editorial-accent-deep: var(--color-category-emerald-deep);
}

body.guide-page .guide-hero--animaux {
  --editorial-accent: var(--color-category-teal);
  --editorial-accent-deep: var(--color-category-teal-deep);
}

body.guide-page .guide-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--editorial-accent) 24%, var(--color-surface-border));
  background: color-mix(in srgb, var(--editorial-accent) 12%, var(--color-surface));
  color: var(--editorial-accent-deep);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.guide-page .guide-hero--budget-foyer .guide-kicker {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--color-text-secondary);
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.7;
}

body.guide-page .guide-hero h1 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 800;
}

body.guide-page .guide-hero > p:not(.guide-kicker) {
  max-width: 58ch;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.72;
}

body.guide-page .guide-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.guide-page .guide-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-surface-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
}

body.guide-page .guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.guide-page .guide-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--color-brand-electric);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

body.guide-page .guide-hero-cta--secondary {
  border-color: var(--color-surface-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

body.guide-page .guide-hero-cta:hover,
body.guide-page .guide-hero-cta:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

body.guide-page .guide-hero-cta:hover,
body.guide-page .guide-hero-cta:focus-visible {
  background: var(--color-brand-electric-deep);
  box-shadow: var(--shadow-soft);
}

body.guide-page .guide-hero-cta--secondary:hover,
body.guide-page .guide-hero-cta--secondary:focus-visible {
  background: color-mix(in srgb, var(--color-brand-electric) 8%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-brand-electric) 30%, var(--color-surface-border));
  box-shadow: var(--shadow-soft);
}

body.guide-page .guide-summary-card,
body.guide-page .guide-section-card,
body.guide-page .guide-side-card,
body.guide-page .guide-theme-card,
body.guide-page .guide-contextual-links,
body.guide-page .card {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-surface-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

body.guide-page .guide-summary-card,
body.guide-page .guide-section-card,
body.guide-page .guide-side-card,
body.guide-page .guide-theme-card,
body.guide-page .guide-contextual-links {
  display: grid;
  gap: 18px;
}

body.guide-page .guide-summary-card h2,
body.guide-page .guide-section-card h2,
body.guide-page .guide-side-card h2,
body.guide-page .guide-theme-card h2,
body.guide-page .guide-contextual-links h2 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

body.guide-page .guide-summary-card > p,
body.guide-page .guide-section-card > p,
body.guide-page .guide-side-card > p,
body.guide-page .guide-theme-card > p,
body.guide-page .guide-contextual-links > p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.96rem;
  line-height: 1.68;
}

body.guide-page .guide-summary-lead {
  margin: 0;
}

body.guide-page .guide-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.guide-page .guide-summary-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

body.guide-page .guide-summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--editorial-accent);
}

body.guide-page .guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
}

body.guide-page .guide-main,
body.guide-page .guide-side {
  display: grid;
  gap: 20px;
}

body.guide-page .guide-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

body.guide-page .guide-link-card,
body.guide-page .guide-path-list a,
body.guide-page .guide-footer-links a,
body.guide-page .guide-contextual-links .related-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid var(--color-surface-border);
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.guide-page .guide-link-card {
  flex-direction: column;
  padding: 16px 16px 18px;
}

body.guide-page .guide-link-card strong {
  color: var(--color-text-primary);
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
}

body.guide-page .guide-link-card span {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.guide-page .guide-path-list,
body.guide-page .guide-footer-links {
  display: grid;
  gap: 10px;
}

body.guide-page .guide-path-list a,
body.guide-page .guide-footer-links a {
  padding: 13px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

body.guide-page .guide-contextual-links .related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

body.guide-page .guide-contextual-links .related-list a {
  padding: 12px 14px;
  color: var(--color-text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

body.guide-page .guide-link-card:hover,
body.guide-page .guide-link-card:focus-visible,
body.guide-page .guide-path-list a:hover,
body.guide-page .guide-path-list a:focus-visible,
body.guide-page .guide-footer-links a:hover,
body.guide-page .guide-footer-links a:focus-visible,
body.guide-page .guide-contextual-links .related-list a:hover,
body.guide-page .guide-contextual-links .related-list a:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--editorial-accent) 30%, var(--color-surface-border));
  background: color-mix(in srgb, var(--editorial-accent) 8%, var(--color-background-secondary));
  box-shadow: var(--shadow-soft);
}

body.guide-page .guide-link-card:focus-visible,
body.guide-page .guide-path-list a:focus-visible,
body.guide-page .guide-footer-links a:focus-visible,
body.guide-page .guide-contextual-links .related-list a:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

body.guide-page .guide-contextual-links .related-list a::after,
body.guide-page .guide-path-list a::after,
body.guide-page .guide-footer-links a::after {
  content: "\2192";
  margin-left: auto;
  color: var(--editorial-accent-deep);
  flex: 0 0 auto;
}

body.guide-page .guide-contextual-links .related-list a {
  align-items: center;
}

body.guide-page .guide-page-shell a,
body.guide-page .guide-page-shell button {
  -webkit-tap-highlight-color: transparent;
}

body.guide-page :focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  body.guide-page main.container {
    gap: 32px;
  }

  body.guide-page .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body.guide-page main.container {
    width: min(100% - 24px, 100%);
    padding: 12px 0 60px;
  }

  body.guide-page .guide-page-shell {
    gap: 32px;
  }

  body.guide-page .guide-summary-card,
  body.guide-page .guide-section-card,
  body.guide-page .guide-side-card,
  body.guide-page .guide-theme-card,
  body.guide-page .guide-contextual-links,
  body.guide-page .card {
    padding: 20px;
    border-radius: 22px;
  }

  body.guide-page .guide-link-grid,
  body.guide-page .guide-contextual-links .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.guide-page .guide-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.guide-page .guide-hero-cta {
    width: 100%;
  }
}
