/* Guides : feuille autonome, alignée sur la page d’accueil (src/styles.css).
   Mêmes couleurs, même typographie, mêmes rayons et mêmes boutons. */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8f9f5;
  --surface: #eef0e9;
  --ink: #172c25;
  --muted: #5c6861;
  --line: #d9ded4;
  --accent: #d4ef85;
  --radius: 16px;
}

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

html {
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

p {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 30;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.skip:focus {
  top: 16px;
}

/* Titres : même échelle que les sections de l’accueil. */
h1,
.guide-catalog > h2,
.guide-next h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.055em;
  text-wrap: balance;
}

h1 em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.lead {
  max-width: 62ch;
  margin-top: 28px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* Bouton plein et lien souligné : les deux seules formes d’action, comme à l’accueil. */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
}

.button:hover {
  opacity: .85;
}

.button:active {
  transform: scale(.98);
}

.text-link,
.guide-card a,
.guide-body a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  padding-block: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.text-link::after,
.guide-card a::after,
.guide-body a::after {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  background: currentColor;
  mask: url("assets/guides/arrow-up-right.svg") center / contain no-repeat;
  transition: transform .2s;
}

.text-link:hover::after,
.guide-card a:hover::after,
.guide-body a:hover::after {
  transform: translate(2px, -2px);
}

/* En-tête : même hauteur, même logo et mêmes liens que l’accueil. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header-inner {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.logo span {
  font-weight: 400;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  padding-block: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-underline-offset: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .button {
  display: none;
  min-height: 40px;
  padding: 10px 20px;
}

/* Menu mobile en <details> : il fonctionne sans JavaScript. */
.menu > summary {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary .icon-close,
.menu[open] > summary .icon-open {
  display: none;
}

.menu[open] > summary .icon-close {
  display: block;
}

.menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 20px 24px;
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.menu-panel a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  font-size: 18px;
}

.menu-panel a:hover {
  background: var(--surface);
}

.menu-panel a[aria-current="page"] {
  font-weight: 600;
}

.menu-panel .menu-cta {
  margin-top: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
}

.menu-panel .menu-cta:hover {
  background: var(--ink);
  opacity: .85;
}

/* Fil d’Ariane et haut de page. */
.guide-hero {
  padding-block: 40px 56px;
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.guide-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: 8px;
}

.guide-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.guide-breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.guide-intro {
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-intro p {
  max-width: 80ch;
  color: var(--ink);
  line-height: 1.8;
}

.concept-hero {
  display: grid;
  align-items: center;
  gap: 32px;
}

.guide-meta {
  margin-top: 20px;
  font-size: 12px;
}

.concept-figure {
  overflow: hidden;
  min-width: 0;
}

.concept-figure img {
  width: 100%;
  max-height: 260px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface);
}

.concept-figure figcaption {
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Catalogue des six guides. */
.guide-catalog {
  padding-block: 24px 80px;
}

.guide-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.guide-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s;
}

.guide-card:hover {
  border-color: var(--ink);
}

.guide-card-art {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 12px;
}

.guide-card .eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.guide-card h3 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.guide-card h3 + p {
  margin-block: 16px 28px;
  font-size: 14px;
  line-height: 1.75;
}

.guide-card a {
  margin-top: auto;
}

.pricing-note {
  max-width: 72ch;
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.7;
}

/* Lecture d’un guide : sommaire à gauche, texte à droite. */
.guide-layout {
  display: grid;
  gap: 40px;
  padding-bottom: 80px;
}

.guide-toc {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.guide-toc h2 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.guide-toc ol {
  padding: 0;
  list-style: none;
}

.guide-toc a {
  display: block;
  padding-block: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-underline-offset: 6px;
}

.guide-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.guide-reading {
  min-width: 0;
  max-width: 760px;
}

.concept-summary {
  margin-bottom: 56px;
}

.concept-summary ol {
  display: grid;
  gap: 0 24px;
  margin-top: 20px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.concept-summary li {
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  counter-increment: step;
}

.concept-summary li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.guide-body section {
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.guide-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.guide-body p,
.guide-body li {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.guide-body h2 + p,
.guide-body h2 + ul {
  margin-top: 20px;
}

.guide-body a {
  overflow-wrap: anywhere;
}

/* Exemple et liste de contrôle : blocs pleins, sans filet latéral. */
.guide-body .guide-example,
.guide-body .guide-callout {
  margin-block: 0 36px;
  padding: 32px;
  border: 0;
  border-radius: var(--radius);
}

.guide-body .guide-example {
  background: var(--surface);
}

.guide-body .guide-callout {
  background: var(--accent);
}

.guide-body .guide-example + section,
.guide-body .guide-callout + section {
  border-top: 0;
  padding-top: 0;
}

.guide-callout ul {
  padding: 0;
  list-style: none;
}

.guide-callout li {
  display: flex;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.guide-callout li + li {
  margin-top: 14px;
}

.guide-callout li::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 5px;
  background: currentColor;
  mask: url("assets/guides/check.svg") center / contain no-repeat;
}

.guide-takeaway h2 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.guide-body .guide-takeaway p {
  max-width: 28ch;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.04em;
  text-wrap: balance;
}

/* Suite de lecture : même bloc que le contact de l’accueil. */
.guide-next {
  padding-bottom: 56px;
}

.guide-next-card {
  padding: 48px 28px;
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-next h2 {
  margin-top: 24px;
}

.guide-next h2 + p {
  margin-top: 20px;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 36px;
}

/* Pied de page : celui de l’accueil. */
.site-footer {
  padding-bottom: 32px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.site-footer .logo {
  line-height: 1.2;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 2;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  font-size: 12px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  padding-block: 4px;
}

.footer-links a:hover,
.footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.footer-legal {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-bottom a {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 40px;
  }

  .header-actions .button {
    display: inline-flex;
  }

  .menu-panel {
    padding-inline: 40px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-summary ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-next-card {
    padding: 48px;
  }
}

@media (min-width: 768px) {
  .guide-hero {
    padding-block: 56px 72px;
  }

  .concept-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
  }

  .concept-figure img {
    max-height: none;
  }

  .guide-catalog {
    padding-bottom: 112px;
  }

  .footer-main {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding-inline: 64px;
  }

  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 96px;
    padding-bottom: 112px;
  }

  .guide-toc {
    position: sticky;
    top: 112px;
  }

  .guide-next-card {
    padding: 64px;
  }
}

@media (min-width: 1280px) {
  .site-nav {
    display: flex;
  }

  .menu {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .guide-toc,
  .guide-next,
  .site-footer,
  .skip {
    display: none;
  }

  .guide-layout {
    display: block;
  }

  .guide-hero {
    padding-block: 20px;
  }
}
