/*
Theme Name: Steve Ressources
Theme URI: https://stevestpierre.com/
Author: Steve St-Pierre
Description: Theme editorial et commercial pour les livres, outils et contenus en orientation de carriere.
Version: 1.0.0
Text Domain: steve-ressources
*/

:root {
  --ink: #17212b;
  --muted: #596775;
  --paper: #ffffff;
  --soft: #f3f6f7;
  --blue: #0879ae;
  --blue-dark: #075a82;
  --green: #25775f;
  --line: #d9e1e5;
  --focus: #f0b429;
  --content: 1180px;
  --reading: 760px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1, h2, h3 { margin: 0 0 0.65em; line-height: 1.16; letter-spacing: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.25rem; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 9999; }
.skip-link:focus { left: 10px; padding: 10px 14px; background: var(--paper); color: var(--ink); }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.site-brand span { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); padding: 8px 12px; font: inherit; }
.primary-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.primary-nav a:hover { color: var(--blue); }
.primary-nav .shop-link { padding: 9px 14px; color: var(--paper); background: var(--blue-dark); border-radius: var(--radius); }

.hero {
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  color: #fff;
  background-color: #24343e;
  background-image: linear-gradient(90deg, rgba(12,26,36,.94) 0%, rgba(12,26,36,.78) 42%, rgba(12,26,36,.12) 72%), url("assets/images/guide-terrain-hero.jpg");
  background-position: center;
  background-size: cover;
}
.hero-content { max-width: 680px; padding-block: 76px 110px; }
.eyebrow { margin-bottom: 16px; color: #a7d8ec; font-size: .84rem; font-weight: 800; text-transform: uppercase; }
.hero h1 { max-width: 640px; }
.hero .lead { max-width: 620px; font-size: 1.18rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--blue-dark);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--green); color: #fff; }
.button.secondary { border-color: rgba(255,255,255,.62); background: rgba(0,0,0,.18); }
.button.secondary:hover { background: #fff; color: var(--ink); }

.section { padding-block: 82px; }
.section.soft { background: var(--soft); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, .72fr); gap: 48px; align-items: end; margin-bottom: 38px; }
.section-heading p { color: var(--muted); }
.book-feature { display: grid; grid-template-columns: minmax(240px, 390px) 1fr; gap: clamp(38px, 7vw, 92px); align-items: center; }
.book-cover { filter: drop-shadow(0 18px 20px rgba(23,33,43,.18)); }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.book-meta span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .84rem; }
.check-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.topic-grid, .post-grid, .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.topic { padding: 24px 0; border-top: 4px solid var(--blue); }
.topic:nth-child(2) { border-color: var(--green); }
.topic:nth-child(3) { border-color: var(--focus); }
.topic p { color: var(--muted); }
.post-card, .product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.post-card-content, .product-card-content { padding: 22px; }
.post-card .category { color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.post-card h3 a, .product-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p, .product-card p { color: var(--muted); font-size: .94rem; }
.text-link { font-weight: 750; }
.newsletter-band { padding-block: 48px; color: #fff; background: var(--green); }
.newsletter-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.newsletter-band p { margin: 0; color: rgba(255,255,255,.88); }
.newsletter-band .button { background: #fff; color: var(--ink); }

.page-hero { padding-block: 72px 50px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.content-area { padding-block: 64px 90px; }
.entry-content > * { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--content); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul { padding-left: 1.25rem; }
.archive-list { display: grid; gap: 22px; }
.archive-item { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.archive-item h2 { font-size: 1.7rem; }
.archive-item h2 a { color: var(--ink); text-decoration: none; }

.site-footer { padding-block: 54px 28px; color: #d8e0e5; background: #17212b; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #d8e0e5; }
.copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: .84rem; }

.woocommerce .woocommerce-breadcrumb { color: var(--muted); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce div.product { margin-top: 28px; }
.woocommerce span.onsale { background: var(--green); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--blue); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; inset: 76px 0 auto; padding: 16px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 10px; }
  .primary-nav a { display: block; padding: 8px 0; }
  .hero { min-height: 680px; background-position: 64% center; }
  .hero-content { max-width: 560px; }
  .book-feature, .section-heading, .newsletter-inner { grid-template-columns: 1fr; }
  .book-cover { width: min(72vw, 360px); margin-inline: auto; }
  .topic-grid, .post-grid, .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .container, .reading-width { width: min(calc(100% - 28px), var(--content)); }
  .site-brand span { display: none; }
  .hero { min-height: 650px; background-position: 70% center; background-image: linear-gradient(90deg, rgba(12,26,36,.94) 0%, rgba(12,26,36,.82) 67%, rgba(12,26,36,.45) 100%), url("assets/images/guide-terrain-hero.jpg"); }
  .hero-content { padding-block: 62px 92px; }
  .section { padding-block: 58px; }
  .topic-grid, .post-grid, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}
