/* The Conseils (RFC-032 §6.4, lot L3) in charter A: the list, filtered by theme, and the article with its question form.
   Tokens from site.css, both themes; no animation. */

.advice-head { padding: 48px 0 8px; }
.advice-head h1 { max-width: 17em; margin: 18px 0 0; }
.advice-head .lead { margin: 18px 0 0; }

/* The theme filters: plain links, the current one filled. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.filters a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .94rem; font-weight: 500; text-decoration: none; }
.filters a:hover { border-color: var(--field-line); text-decoration: none; }
.filters a[aria-current] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 600; }

.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--pastel-2); color: var(--accent-text); font-size: .8rem; font-weight: 600; line-height: 1.3; }
a.tag { text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.advice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--muted); font-size: .9rem; }

/* The list: the newest article first, with its photograph or share image, then a grid of cards (the guarantor's choice 1 of 12 November 2026). */
.advice-list { padding: 8px 0 24px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; margin-top: 36px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--pastel); }
.feature h2 { margin: 14px 0 0; font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.15; letter-spacing: -.02em; }
.feature h2 a, .post h2 a { color: var(--text); }
.feature .feature-photo { aspect-ratio: 16 / 9; object-fit: cover; }
.feature p:not(.advice-meta) { margin: 12px 0 0; color: var(--muted); }
.feature img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 0; padding: 0; list-style: none; }
.post { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.post:hover { border-color: var(--field-line); }
.post img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.post h2 { margin: 2px 0 0; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.01em; }
.post-summary { margin: 0; color: var(--muted); }
.post-more { margin: auto 0 0; padding-top: 6px; color: var(--accent-text); font-weight: 600; }
.advice-empty { margin-top: 36px; padding: 28px; border: 1px dashed var(--field-line); border-radius: 14px; }
.advice-empty p { margin: 0; }
.advice-empty p + p { margin-top: 8px; font-weight: 600; }

.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 20px 26px; border-radius: 14px; background: var(--pastel); }
.follow p { margin: 0; color: var(--text); font-weight: 600; }
.follow-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.follow-links a { color: var(--accent-text); font-weight: 600; }

.advice-last { padding: 40px 0 0; }
.advice-last .final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px; }
.advice-last .final h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.advice-last .final p { margin: 8px 0 0; }

/* The article: a reading column, the contents beside it on a wide screen. */
.advice-reading { display: grid; grid-template-columns: minmax(0, 720px) 250px; justify-content: space-between; gap: 56px; align-items: start; padding-top: 44px; }
.advice-article .advice-meta { margin-top: 8px; }
.advice-article h1 { margin: 16px 0 0; font-size: clamp(2rem, 4.4vw, 2.85rem); line-height: 1.1; letter-spacing: -.03em; }
.advice-article .lead { margin: 18px 0 0; }
.byline { margin: 16px 0 0; color: var(--muted); font-size: .95rem; font-weight: 600; }
.advice-text { margin-top: 12px; }
.advice-text h2 { margin: 44px 0 12px; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 96px; }
.advice-text h3 { margin: 28px 0 8px; font-size: 1.2rem; scroll-margin-top: 96px; }
.advice-text p, .advice-text li { color: var(--text); font-size: 1.05rem; line-height: 1.7; }
.advice-text p { margin: 14px 0 0; }
.advice-text ul, .advice-text ol { margin: 14px 0 0; padding-left: 24px; }
.advice-text li { margin: 6px 0; padding-left: 2px; }
.advice-text li::marker { color: var(--accent-text); font-weight: 700; }
.advice-text a { color: var(--accent-text); text-decoration: underline; }
/* « À retenir »: a quotation block of the Markdown. */
.advice-text blockquote { margin: 28px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--pastel-2); }
.advice-text blockquote p { margin: 0; }
.advice-text blockquote p + p { margin-top: 10px; }
.advice-text code { padding: 1px 6px; border-radius: 6px; background: var(--pastel); font-size: .92em; overflow-wrap: anywhere; }

.advice-side { position: sticky; top: 96px; }
.advice-toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.advice-toc p { margin: 0 0 8px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.advice-toc ul { margin: 0; padding: 0; list-style: none; }
.advice-toc a { display: block; padding: 7px 0; color: var(--text); font-size: .93rem; font-weight: 500; line-height: 1.35; }

/* After the text: the question form, then what to read next. */
.advice-after { padding-top: 56px; }
.advice-question, .advice-more { max-width: 720px; }
.advice-question .form-panel { border: 1px solid var(--line); box-shadow: none; }
.form-intro { margin: 4px 0 18px; }
.advice-more { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.advice-more h2 { margin: 0; font-size: 1.4rem; }
.advice-more ul { margin: 18px 0 0; padding: 0; list-style: none; }
.advice-more li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.advice-more li a { color: var(--text); font-weight: 600; }
.advice-all { margin: 18px 0 0; font-weight: 600; }
.advice-all a { color: var(--accent-text); }

@media (max-width: 980px) {
  .feature, .advice-reading { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* On a narrow screen the contents would come after the text: the headings are enough. */
  .advice-side { display: none; }
}

@media (max-width: 640px) {
  .advice-head { padding-top: 32px; }
  .feature { padding: 22px; gap: 22px; }
  /* The share image repeats the title beside it: on a phone it only lengthens the page. */
  .feature img { display: none; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .post-body { padding: 18px; }
  .follow { padding: 18px; }
  .advice-last .final { padding: 32px 22px; }
  .advice-last .final .btn { width: 100%; }
  .advice-reading { padding-top: 28px; }
  .advice-after { padding-top: 40px; }
  .advice-question .form-panel { padding: 22px 18px; }
}

/* The link from an e-mail or Microsoft 365 article to the service page (RFC-032, lot L5). */
.advice-service { margin: 32px 0 0; padding: 18px 22px; border-radius: 14px; background: var(--pastel-2); color: var(--text); font-size: 1rem; }
.advice-service a { color: var(--accent-text); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
