/*
  Distribel — Poubelle design (particuliers)
  Feuille de style unique, mobile-first.
  Police : Roboto (self-hosted, woff2, 2 graisses : 400 / 700)
*/

/* -------------------------------------------------- */
/* 1. Fonts                                            */
/* -------------------------------------------------- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------- */
/* 2. Design tokens                                    */
/* -------------------------------------------------- */
:root {
  /* Couleurs (mesurées sur la maquette) */
  --color-bg: #fbfafa;
  --color-surface: #ffffff;
  --color-surface-alt: #ededed;
  --color-faq-bg: #f5f1e8;
  --color-ink: #171412;
  --color-ink-soft: #3d3c3b;

  /* Accent doré : 3 nuances pour rester conforme WCAG AA selon l'usage
     - accent        : décor uniquement (non-texte) — sous-lignés, puces
     - accent-dark   : texte de grand titre (≥ 24px / 18.66px gras) — 3,63:1
     - accent-button : texte blanc sur fond accent (boutons) — 4,58:1 */
  --color-accent: #bf8f54;
  --color-accent-dark: #a97a44;
  --color-accent-button: #986d39;
  --color-accent-button-hover: #825e31;

  --color-border: #e2ddd6;
  --color-footer-bg: #121212;
  --color-footer-ink: #f2f0ee;
  --color-footer-muted: #b7b3ae;
  --color-flag-blue: #283583;
  --color-flag-red: #cd1719;

  /* Typographie */
  --font-base: "Roboto", "Segoe UI", Arial, sans-serif;
  --lh-tight: 1.15;
  --lh-normal: 1.55;

  /* Rayons / ombres */
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;
  --shadow-card: 0 1px 2px rgba(23, 20, 18, 0.06), 0 8px 24px -12px rgba(23, 20, 18, 0.12);

  /* Grille */
  --container-max: 1200px;
  --container-pad: 20px;
  --space-section: 24px;

  /* Transitions */
  --transition-fast: 160ms ease;
}

@media (min-width: 640px) {
  :root {
    --container-pad: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-pad: 48px;
    --space-section: 36px;
  }
}

/* -------------------------------------------------- */
/* 3. Reset minimal                                    */
/* -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-ink-soft);
  background: var(--color-bg);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  text-transform: uppercase;
  margin: 0;
  color: var(--color-ink);
  font-weight: 700;
  line-height: var(--lh-tight);
}

button {
  font-family: inherit;
}

/* -------------------------------------------------- */
/* 4. Accessibilité                                    */
/* -------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  z-index: 1000;
  transition: top var(--transition-fast);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------- */
/* 5. Layout utilitaire                                */
/* -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-section);
}

/* Bande pleine largeur sur fond gris (alternance des sections) */
.section--alt {
  background: var(--color-surface-alt);
  padding-block: calc(var(--space-section) * 1.5);
}

.section--warm {
  background: var(--color-faq-bg);
}

.section-surface {
  background: var(--color-surface-alt);
  border-radius: var(--radius-l);
  padding: 1.5em;
  overflow: hidden;
}

.section-surface--warm {
  background: var(--color-faq-bg);
}

@media (min-width: 768px) {
  .section-surface {
    padding: 2em;
  }
}

@media (min-width: 1024px) {
  .section-surface {
    padding: 2.5em;
  }
}

.section-header {
  max-width: 46em;
  margin-bottom: 36px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.discover {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.eyebrow {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.trait {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto;
}
.trait_v {
  transform: rotate(90deg);
}
/*
.eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
*/
.section-header--center .eyebrow {
  justify-content: center;
}

.section-header--center .eyebrow::after {
  display: none;
}

.section-header--center .eyebrow {
  flex-direction: column;
  gap: 8px;
}

h2 {
  font-size: clamp(1.6rem, 1.35rem + 1.3vw, 2.375rem);
}

h2 .text-accent {
  color: var(--color-accent-dark);
  display: block;
}

h3 {
  font-size: 1.05rem;
}

.lead {
  font-size: 1.0625rem;
}

.center {
  text-align: center;
}
/* -------------------------------------------------- */
/* 6. Boutons                                          */
/* -------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.button:active {
  transform: translateY(1px);
}

.button-dark {
  background: var(--color-ink);
  color: #fff;
}

.button-dark:hover {
  background: #000;
}

.button-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.button-outline:hover {
  background: var(--color-ink);
  color: #fff;
}

.button-accent {
  background: var(--color-accent-button);
  color: #fff;
}

.button-accent:hover {
  background: var(--color-accent-button-hover);
}

.button-sm {
  min-height: 40px;
  padding: 9px 18px;
  font-size: 0.875rem;
}

.button-block {
  width: 100%;
}

.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-group--center {
  justify-content: center;
  margin-top: 40px;
}

/* -------------------------------------------------- */
/* 7. Header                                           */
/* -------------------------------------------------- */
.site-header {
  padding-block: 22px;
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink-soft);
}

.logo svg {
  height: 32px;
  width: auto;
}

@media (min-width: 768px) {
  .logo svg {
    height: 50px;
  }
}

/* -------------------------------------------------- */
/* 8. Hero                                             */
/* -------------------------------------------------- */
.hero {
  padding-block: 35px var(--space-section);
}

.hero-grid {
  display: grid;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(1.9rem, 1.5rem + 2vw, 2.5rem);
}

.hero h1 span {
  display: block;
}

.h1-accent {
  color: var(--color-accent-dark);
}

.h1-light {
  font-weight: 400;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  list-style: none;
  padding-top: 6px;
  text-transform: uppercase;
  margin-top: 1em;
}

.trust-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}

.trust-badges img {
  max-height: 35px;
  flex-shrink: 0;
}

.trust-badges--grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 18px 28px;
}

@media (min-width: 480px) {
  .trust-badges--grid {
    grid-template-columns: repeat(3, max-content);
  }
}

.hero-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 6 / 7;
  height: 100%;
}
.hero-media a svg {
  fill: white;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.media-cta {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }
}

/* -------------------------------------------------- */
/* 9. Section "ergonomie" (2 colonnes + vignettes)     */
/* -------------------------------------------------- */
.ergonomics-grid {
  display: grid;
  gap: 36px;
}

.ergonomics-media {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 6 / 7;
}

.ergonomics-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ergonomics-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--color-ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
}

.demo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
}

.demo-thumbs figure {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-alt);
}

.demo-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .ergonomics-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
  }
}

/* -------------------------------------------------- */
/* 10. Cartes "pourquoi choisir" (icônes)              */
/* -------------------------------------------------- */
.value-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  list-style: none;
}

.value-card {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.value-card__icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

@media (min-width: 640px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------------------------------- */
/* 11. "Pour chaque espace"                            */
/* -------------------------------------------------- */
.space-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 16px;
  list-style: none;
}

.space-card {
  margin: 0;
}

.space-card__media {
  margin: 0 0 12px;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 13 / 12;
  background: var(--color-surface-alt);
}

.space-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-card figcaption h3 {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-ink);
}

@media (min-width: 640px) {
  .space-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .space-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 22px 20px;
  }
}

.space-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .space-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* -------------------------------------------------- */
/* 11 bis. "Nos produits" (cartes produit)             */
/* -------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.product-card__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: stretch;
}

.product-card__media {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-surface-alt);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
}

.product-card h3 {
  text-transform: none;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
}

.product-card__price {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
}

.product-card__meta {
  margin: 0;
  color: var(--color-ink-soft);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
  }

  .product-card {
    padding: 20px;
  }

  .product-card h3,
  .product-card__price {
    font-size: 1.3rem;
  }
}

/* -------------------------------------------------- */
/* 12. "Fabrication française"                         */
/* -------------------------------------------------- */
.section_made_in_france .section-surface {
  padding: 0;
}
.section_made_in_france .craft-media {
  border-radius: 0;
}
.craft-grid {
  display: grid;
  gap: 20px;
  align-items: center;
}
.craft-text {
  padding-left: 1.5em;
}

@media (min-width: 768px) {
  .craft-text {
    padding-left: 2em;
  }
}

@media (min-width: 1024px) {
  .craft-text {
    padding-left: 2.5em;
  }
}
.craft-flag {
  width: 50%;
  height: 6px;
  margin: 18px 0 20px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--color-flag-blue) 0 33%,
    transparent 33% 66%,
    var(--color-flag-red) 66% 100%
  );
}

.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.checklist svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: black;
  margin-top: 2px;
}

.craft-media {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 6 / 7;
}

.craft-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .craft-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }
}

/* -------------------------------------------------- */
/* 13. "Nos solutions"                                 */
/* -------------------------------------------------- */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 20px;
  list-style: none;
}

.solution-card {
  margin: 0;
}

.solution-card__media {
  margin: 0 0 16px;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 1.03 / 1;
  background: var(--color-surface-alt);
}

.solution-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card h3 {
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

@media (min-width: 640px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------- */
/* 14. FAQ                                             */
/* -------------------------------------------------- */
.faq-section {
  background: var(--color-faq-bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 52em;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  color: var(--color-ink);
  position: relative;
  font-size: 0.98rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-accent-dark);
  border-bottom: 2px solid var(--color-accent-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item[open] summary, 
.faq-item summary:hover {
  background: var(--color-faq-bg);
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
}

/* Variante FAQ : fond clair, question ouverte en noir */
.faq-section--plain {
  background: transparent;
}

.faq-section--plain .faq-item summary:hover {
  background: var(--color-surface-alt);
}

.faq-section--plain .faq-item[open] summary {
  background: var(--color-ink);
  color: #fff;
}

.faq-section--plain .faq-item[open] summary::after {
  border-color: #fff;
}

.faq-section--plain .faq-item[open] .faq-answer {
  padding-top: 20px;
}

/* -------------------------------------------------- */
/* 15. CTA final                                       */
/* -------------------------------------------------- */
.final-cta-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.final-cta-grid > div {
  display: flex;
    flex-direction: column;
    gap: 1rem;
}
.final-cta-media {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 6 / 7;
}

.final-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Variante centrée, sans visuel */
.final-cta--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta--center h2 {
  margin-bottom: 20px;
}

.final-cta--center > p:not(.eyebrow):not(.center) {
  max-width: 36em;
}

.final-cta--center .cta-group {
  justify-content: center;
  margin-top: 12px;
}

.final-cta__sub {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
}

@media (min-width: 1024px) {
  .final-cta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* -------------------------------------------------- */
/* 16. Footer                                          */
/* -------------------------------------------------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-muted);
  padding-block: 56px 24px;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

.footer-brand .logo {
  color: var(--color-footer-ink);
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 32em;
  font-size: 0.9375rem;
}
.socials {
  display: flex;
  gap: 5px;
}
.socials svg {
  fill: white;
}
.footer-heading {
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9375rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-footer-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-footer-ink);
}

.footer-contact {
  font-style: normal;
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  color: var(--color-footer-muted);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-footer-ink);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

/* -------------------------------------------------- */
/* 17. Utilitaires responsives diverses                */
/* -------------------------------------------------- */
@media (min-width: 1024px) {
  .section-header {
    margin-bottom: 48px;
  }
}
/* -------------------------------------------------- */
/* 18. Mini-site éditorial                            */
/*     Composants ajoutés pour les pages du guide :    */
/*     fil d'Ariane, méta, sommaire, contenu long,     */
/*     tableaux, encadrés, étapes, cartes de liens.    */
/* -------------------------------------------------- */

/* Fil d'Ariane */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.875rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--color-accent);
}

.breadcrumb a {
  color: var(--color-ink-soft);
  text-underline-offset: 3px;
}

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

/* Ligne auteur / date */
.page-meta {
  font-size: 0.875rem;
  color: var(--color-ink-soft);
}

.page-meta time {
  font-weight: 700;
  color: var(--color-ink);
}

/* Sommaire */
.toc {
  background: var(--color-surface-alt);
  border-radius: var(--radius-m);
  padding: 22px 24px;
  max-width: 46em;
  margin-inline: auto;
}

.toc-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  color: var(--color-ink);
  margin-bottom: 10px;
}

.toc ol {
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}

.toc a {
  color: var(--color-ink);
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

/* Contenu long */
.prose {
  max-width: 46em;
  margin-inline: auto;
}

.prose > h2 {
  margin-bottom: 20px;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 30px 0 10px;
}

.prose ul.bullets,
.prose ol.numbered {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose ul.bullets li,
.prose ol.numbered li {
  margin-bottom: 8px;
}

.prose ul.bullets li::marker {
  color: var(--color-accent);
}

.prose a:not(.button),
.text-link {
  color: var(--color-accent-button);
  font-weight: 700;
  text-underline-offset: 3px;
}

.prose a:not(.button):hover,
.text-link:hover {
  color: var(--color-accent-button-hover);
}

.prose .feature-list,
.prose .checklist {
  margin-bottom: 1.5em;
}

.section-intro {
  max-width: 46em;
  margin: -12px auto 32px;
  text-align: center;
}

/* Tableaux de données */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5em;
  background: var(--color-surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--color-ink-soft);
}

.data-table th {
  text-align: left;
  background: var(--color-ink);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table tbody th {
  background: transparent;
  color: var(--color-ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9375rem;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
}

/* Encadrés */
.callout {
  background: var(--color-faq-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-s);
  padding: 18px 22px;
  margin: 0 0 1.5em;
}

.callout-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.callout--media {
  display: grid;
  gap: 20px;
  align-items: center;
}

.callout--media figure {
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-alt);
}

.callout--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .callout--media {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* Étapes numérotées */
.step-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.step-card {
  counter-increment: step;
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-s);
  background: var(--color-ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

.step-card h3 {
  margin-bottom: 8px;
}

.step-card h3 a {
  text-decoration: none;
}

.step-card h3 a:hover {
  color: var(--color-accent-dark);
}

.step-card p {
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .step-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Cartes de liens vers les autres pages du guide */
.link-grid {
  list-style: none;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  background: var(--color-surface);
  border: 2px solid transparent;
  border-radius: var(--radius-m);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}

.link-card:hover {
  border-color: var(--color-accent);
}

.link-card p {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
}

.link-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-accent-button);
}

.link-card__more svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 768px) {
  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero des pages internes : sans bouton sur l'image */
.hero--page .hero-content {
  gap: 18px;
}

.hero--page h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.375rem);
}

/* Formule de calcul */
.formula {
  background: var(--color-surface);
  border-radius: var(--radius-s);
  border: 1px solid var(--color-border);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 1em;
}

.section-note {
  max-width: 46em;
  margin: 32px auto 0;
  text-align: center;
}

.prose--spaced {
  margin-top: 32px;
}

/* Tableaux empilés sur mobile : une carte par ligne */
@media (max-width: 639px) {
  .data-table {
    min-width: 0;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table tr,
  .data-table tbody th,
  .data-table td {
    display: block;
  }

  .data-table tbody tr {
    border-top: 1px solid var(--color-border);
    padding: 6px 0;
  }

  .data-table tbody th,
  .data-table td {
    border-top: 0;
    padding: 6px 16px;
  }

  .data-table tbody th {
    font-size: 1rem;
  }

  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent-button);
  }

  .data-table caption {
    display: block;
  }
}

/* Image dans le contenu long, avec légende */
.content-figure {
  margin: 8px 0 1.75em;
}

.content-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
}

.content-figure figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-ink-soft);
}

/* Page mentions légales : titres de rubrique plus discrets */
.prose--legal h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.prose--legal h2:first-child {
  margin-top: 0;
}

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

.footer-bottom a:hover {
  color: var(--color-footer-ink);
}
