/* ============================================================
   Marie Preto — Feuille de style des pages « Textes »
   (se charge en complément de style.css)
   ============================================================ */

/* ---------- Barre de progression de lecture ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--clay);
  z-index: 200;
  transition: width .1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .read-progress { transition: none; }
}

/* ---------- Largeur de lecture (texte + sommaire) ---------- */
.container.reading { max-width: 61rem; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb {
  font-size: .875rem;
  color: var(--ink-soft);
  padding: 1.75rem 0 0;
}
.breadcrumb ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem;
}
.breadcrumb li + li::before {
  content: "\203A";
  margin-right: .5rem;
  color: var(--line);
}
.breadcrumb a { color: var(--ink-soft); text-decoration-color: rgba(90, 101, 94, .3); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- En-tête d'article ---------- */
.article-head {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.article-head .kicker { margin-bottom: .9rem; }
.article-title {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 20ch;
  margin-bottom: 1.4rem;
}
.article-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.article-byline {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 2rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.article-byline img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
.article-byline strong { color: var(--ink); font-weight: 600; display: block; }

/* ---------- Mise en page à deux colonnes ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 4rem;
  align-items: start;
  padding-bottom: 4rem;
}
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Sommaire ---------- */
.toc {
  position: sticky;
  top: 104px;
  order: 2;
  font-size: .9375rem;
}
.toc-title {
  font-family: var(--sans);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: .9rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: .4rem 0 .4rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.35;
}
.toc a:hover { color: var(--green); }
.toc a.active {
  color: var(--green-deep);
  border-left-color: var(--clay);
  font-weight: 500;
}

/* Sommaire replié sur mobile */
@media (max-width: 980px) {
  .toc {
    position: static;
    order: 0;
    margin-bottom: 2.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .25rem 1.1rem;
  }
  .toc .toc-title { display: none; }
  .toc summary {
    cursor: pointer;
    list-style: none;
    padding: .85rem 0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-soft);
    display: flex; justify-content: space-between; align-items: center;
  }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: "+"; font-size: 1.1rem; color: var(--clay); }
  .toc details[open] summary::after { content: "\2013"; }
  .toc ol { padding-bottom: .75rem; }
}
@media (min-width: 981px) {
  .toc summary { display: none; }
}

/* ---------- Corps de l'article ---------- */
.article-body {
  order: 1;
  max-width: 34rem;
  font-size: 1.09rem;
  line-height: 1.75;
}
.article-body > p { margin-bottom: 1.35rem; }
.article-body > p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.2;
  margin: 3.5rem 0 1.25rem;
  scroll-margin-top: 104px;
}
.article-body > h2:first-child { margin-top: 0; }

.article-body strong { font-weight: 600; color: var(--ink); }

/* Citations d'exergue : les questions qui rythment le texte */
.article-body blockquote {
  margin: 2.25rem 0;
  padding: .35rem 0 .35rem 1.6rem;
  border-left: 3px solid var(--clay);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.35;
  color: var(--green-deep);
  letter-spacing: -.01em;
}
.article-body blockquote p { margin: 0 0 .6rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Encadré de repère / définition */
.aside-note {
  margin: 2.5rem 0;
  padding: 1.4rem 1.5rem;
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.65;
}
.aside-note .aside-label {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  margin-bottom: .5rem;
}
.aside-note p { margin: 0 0 .7rem; }
.aside-note p:last-child { margin-bottom: 0; }

/* ---------- Bloc auteur en fin d'article ---------- */
.author-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 4rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.author-card img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
.author-card h2 {
  font-size: 1.2rem;
  margin: 0 0 .15rem;
}
.author-card .author-role {
  font-size: .875rem;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}
.author-card p { font-size: .975rem; line-height: 1.6; margin-bottom: .8rem; }
.author-card .author-ids {
  font-size: .8125rem;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 560px) {
  .author-card { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Appel à l'action de fin d'article ---------- */
.article-cta {
  margin-top: 1.5rem;
  padding: 2rem;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
}
.article-cta h2 {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  margin: 0 0 .75rem;
}
.article-cta p {
  color: rgba(255, 255, 255, .88);
  margin-bottom: 1.5rem;
  max-width: 48ch;
  line-height: 1.65;
}
.article-cta .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.article-cta .btn-primary { background: var(--clay); }
.article-cta .btn-primary:hover { background: var(--clay-deep); }
.article-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.article-cta .btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* ---------- Encart « aller plus loin » ---------- */
.next-steps {
  margin-top: 1.5rem;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-deep);
}
.next-steps h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.next-steps p { font-size: .975rem; line-height: 1.65; color: var(--ink-soft); margin-bottom: .9rem; }
.next-steps p:last-child { margin-bottom: 0; }

/* ---------- Liste des textes (page index + accueil) ---------- */
.text-list { list-style: none; margin: 0; padding: 0; }
.text-list li { border-top: 1px solid var(--line); }
.text-list li:last-child { border-bottom: 1px solid var(--line); }
.text-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.9rem 0;
  text-decoration: none;
  color: inherit;
  transition: padding .25s ease;
}
.text-list a:hover { padding-left: .6rem; }
.text-list h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: .55rem;
  color: var(--ink);
}
.text-list a:hover h3 { color: var(--green); }
.text-list p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0;
}
.text-list .text-tag {
  display: inline-block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green);
  background: var(--green-tint);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.text-list .text-arrow {
  font-size: 1.5rem;
  color: var(--clay);
  transition: transform .25s ease;
}
.text-list a:hover .text-arrow { transform: translateX(5px); }
@media (max-width: 620px) {
  .text-list a { grid-template-columns: 1fr; gap: .8rem; }
  .text-list .text-arrow { display: none; }
}

/* ---------- Page « Textes » : en-tête ---------- */
.page-head {
  padding: 2.5rem 0 2.75rem;
}
.page-head h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
}
.page-head p {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  max-width: 58ch;
}
