/* Orientation, feedback and the existing site's shared navigation. */
.guide-hero { padding: clamp(48px, 7vw, 100px) 0 56px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.guide-hero h1 { max-width: 1050px; margin: 0; font: 560 clamp(3rem, 6.7vw, 6.5rem)/.98 "Newsreader", Georgia, serif; letter-spacing: -.05em; }
.guide-hero h1 em { color: var(--coral-dark); font-weight: inherit; }
.guide-lead { max-width: 720px; margin: 28px 0 0; font-size: 1.03rem; color: var(--muted); }
.guide-jumps { display: flex; flex-wrap: wrap; gap: 16px 38px; margin-top: 38px; }
.guide-jumps a, .guide-text-link { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; font-size: .84rem; font-weight: 750; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--line); }
.guide-jumps a:hover, .guide-text-link:hover { color: var(--coral-dark); text-decoration-color: currentColor; }
.guide-jumps span { color: var(--coral-dark); }
.guide-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }
.guide-page h2, .guide-feedback h2 { font-family: "Newsreader", Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; margin: 0; font-weight: 560; }
.guide-page .section { padding-block: 80px; }
.guide-route { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.guide-route:last-child { border-bottom: 1px solid var(--line); }
.guide-number { align-self: start; color: var(--coral-dark); font: 500 2.4rem/1.15 "Newsreader", Georgia, serif; }
.guide-route h3 { margin: 0 0 12px; font: 570 clamp(1.65rem, 2.6vw, 2.5rem)/1.15 "Newsreader", Georgia, serif; letter-spacing: -.02em; }
.guide-route p { max-width: 650px; margin: 0; color: var(--muted); font-size: .9rem; }
.guide-route p.guide-sequence { margin-top: 14px; font-size: .78rem; font-weight: 750; color: var(--coral-dark); }
.guide-route .btn { white-space: normal; text-align: left; max-width: 240px; }
.guide-modes { background: var(--white); }
.guide-columns { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.guide-section-intro { position: sticky; top: calc(var(--header-height) + 36px); }
.guide-section-intro > p:not(.eyebrow) { max-width: 420px; margin: 24px 0; color: var(--muted); font-size: .93rem; }
.guide-mode-list { margin: 0; }
.guide-mode-list > div { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.guide-mode-list > div:last-child { border-bottom: 1px solid var(--line); }
.guide-mode-list dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; font-size: 1.16rem; font-weight: 800; }
.guide-mode-list dt span { color: var(--coral-dark); font-size: .72rem; font-weight: 650; }
.guide-mode-list dd { margin: 12px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.guide-resource-lines > div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) auto; align-items: baseline; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.guide-resource-lines h3 { margin: 0; font-size: 1.05rem; }
.guide-resource-lines p { margin: 0; color: var(--muted); font-size: .87rem; }
.guide-resource-lines a { font-size: .8rem; font-weight: 750; text-underline-offset: 5px; }
.guide-progress { background: var(--paper-2); }
.guide-faq details { border-top: 1px solid var(--line); }
.guide-faq details:last-child { border-bottom: 1px solid var(--line); }
.guide-faq summary { cursor: pointer; padding: 22px 0; font-size: .96rem; font-weight: 750; }
.guide-faq details p { color: var(--muted); font-size: .89rem; margin: 0; padding: 0 0 24px; }
.guide-faq details[open] p { animation: guidance-enter .2s ease-out; }
.guide-feedback > .section-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.guide-feedback p:not(.eyebrow) { max-width: 650px; margin: 22px 0 0; color: var(--muted); }
.guide-feedback-actions { display: grid; justify-items: start; flex-shrink: 0; gap: 22px; font-size: .84rem; }
.guide-feedback-actions > a:not(.btn) { text-underline-offset: 4px; }
.guide-page :is(a, summary):focus-visible, .reviews-page :is(a, button, input, textarea):focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 5px; }
.guide-page :is(.btn, .guide-text-link) span, .home-guide-callout a span { display: inline-block; transition: transform .2s ease; }
.guide-page :is(.btn, .guide-text-link):hover span, .home-guide-callout a:hover span { transform: translateX(4px); }
@keyframes guidance-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .guide-hero .section-inner { animation: guidance-enter .45s ease-out; } }
.home-guide-callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 0 36px; padding: 24px 0; border-block: 1px solid var(--line); }
.home-guide-callout p { margin: 0; color: var(--muted); font-size: .87rem; }
.home-guide-callout strong { display: block; color: var(--ink); margin-bottom: 4px; }
.home-guide-callout a { flex-shrink: 0; font-size: .84rem; font-weight: 750; text-underline-offset: 5px; }
.reviews-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 28px; font-size: .84rem; }
.home .reviews-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home .review-item, .home .review-item:nth-child(even) { border-left: 0; padding: 28px 24px; }
.home .review-item:first-child { padding-left: 0; }
.home .review-item + .review-item { border-left: 1px solid var(--line); }
.home .review-item blockquote { font-size: 1.6rem; }
.review-item blockquote, .review-byline { overflow-wrap: anywhere; }
.reviews-page .review-form-copy > p:last-child, .reviews-page .review-form-footer p { color: #c2c9d4; }
.reviews-page .review-field small { color: #b2bdcd; }
.reviews-page .review-field :is(input, textarea)::placeholder { color: #a6b2c5; }
.reader-mode-help { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); font-size: .78rem; text-underline-offset: 4px; }
.reader-mode-help:hover { color: var(--coral-dark); }
.reader-assistance { margin: 10px 0 18px; }
.report-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; background: var(--paper); border: 1px solid var(--coral-dark); border-radius: 7px; color: var(--coral-dark); font: 750 .78rem/1.4 "Manrope", sans-serif; text-decoration: none; }
.report-link:hover { background: #fae9e4; }
.report-link:focus-visible, .reader-mode-help:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 4px; }
.correction-report { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; padding: 22px 0; border-block: 1px solid var(--line); }
.reader-article .correction-report p { margin: 0; font-size: .85rem; color: var(--muted); }
.mobile-nav { max-height: calc(100dvh - var(--header-height)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-report { color: var(--coral-dark); font-weight: 750; }
.desktop-nav { gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.mobile-courses { display: none; }
.desktop-nav > a, .header-help summary { font: 650 .94rem/1.45 Manrope, sans-serif; padding-block: .7rem; }
.desktop-nav > a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: .4em; }
.header-help { position: relative; }
.header-help summary { cursor: pointer; list-style: none; }
.header-help summary::-webkit-details-marker { display: none; }
.header-help summary::after { content: ''; display: inline-block; width: .4em; height: .4em; margin: 0 .1em .18em .55em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.header-help[open] summary::after { transform: rotate(225deg); vertical-align: -.16em; }
.header-help-links { position: absolute; right: 0; top: 100%; min-width: 12.4rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.desktop-nav .header-help-links a { display: block; opacity: 1; padding: .7rem .6rem; font-size: .88rem; }
.header-help-links a:hover, .header-help-links a:focus-visible { background: #eeeae1; }
.mobile-help-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; padding-top: .5rem; }
.mobile-help-links a { font-size: .88rem; }
.home-tools { margin: 1.5rem 0 0; }
.home-tools a, .directory-jumps a { text-underline-offset: .25em; font-weight: 650; }
.home .hero-actions .btn-light { border: 0; background: none; padding-inline: .4rem; text-decoration: underline; text-underline-offset: .25em; }
.directory-jumps { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1.3rem; }
.directory-jumps a { font-size: .9rem; padding-block: .45rem; }
.course-directory .level-hero { padding-block: clamp(2.3rem, 4vw, 3.7rem); }
.course-directory .level-hero .eyebrow { margin: 0 0 .8rem; }
.footer-links strong { display: block; margin-bottom: .7rem; color: white; font-size: .9rem; }
@media (min-width: 861px) { .directory-jumps { display: none; } }
.course-directory .catalogue .section-inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, .85fr); column-gap: clamp(2rem, 6vw, 6rem); }
.course-directory .catalogue .section-inner > :not(.course-tools) { grid-column: 1; }
.course-directory .level-line { grid-template-columns: minmax(5rem, .37fr) 1fr 1.5rem; gap: .8rem; }
.course-directory .level-title { font-size: clamp(1.45rem, 2.25vw, 2.55rem); }
.course-directory :is(#niveaux, #outils) { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.course-tools { align-self: start; grid-column: 2; grid-row: 1 / span 4; padding: 1.35rem 0 0; border-top: 3px solid var(--coral-dark); }
.course-directory .course-tools h2 { margin: 0 0 .6rem; font: 550 1.9rem/1.1 Newsreader, Georgia, serif; }
.course-tools a { position: relative; display: grid; gap: .25rem; padding: 1rem 1.5rem 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.course-tools a::after { position: absolute; content: '→'; right: 0; top: 1rem; color: var(--coral-dark); }
.course-tools a:is(:hover,:focus-visible) strong { text-decoration: underline; text-underline-offset: .2em; }
.course-tools strong { font-size: .99rem; }
.course-tools span { font-size: .85rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) {
  .mobile-courses { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-weight: 700; font-size: .85rem; text-decoration: none; }
  .header-inner .header-search { margin-left: 0; }
  .course-directory .catalogue .section-inner { display: block; }
  .course-tools { margin-top: 2.5rem; }
  .course-directory .level-line { grid-template-columns: 1fr auto; }
  .course-directory .level-line .level-code { grid-column: 1 / -1; }
  .course-directory .level-line .level-arrow { grid-column: 2; grid-row: 2; }
}
@media (max-width: 1100px) {
  .guide-route { grid-template-columns: 48px minmax(0, 1fr); gap: 18px 28px; }
  .guide-route .btn { grid-column: 2; justify-self: start; max-width: none; }
  .guide-resource-lines > div { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 16px 32px; }
  .guide-resource-lines a { grid-column: 2; }
}
@media (max-width: 860px) {
  .guide-hero { padding: 48px 0 36px; }
  .guide-page .section { padding-block: 52px; }
  .guide-columns { grid-template-columns: 1fr; gap: 30px; }
  .guide-section-intro { position: static; }
  .guide-section-intro > p:not(.eyebrow) { max-width: 680px; }
  .guide-feedback > .section-inner, .home-guide-callout { flex-direction: column; align-items: flex-start; gap: 24px; }
  .home .reviews-list { grid-template-columns: 1fr; }
  .home .review-item, .home .review-item:nth-child(even), .home .review-item + .review-item { padding: 24px 0; border-left: 0; }
  .reader-toc { position: sticky; z-index: 50; top: var(--header-height); padding: 8px 0; background: var(--paper); }
  .reader-assistance { margin: 0; display: flex; justify-content: flex-end; }
  .reader-assistance .report-link { min-height: 44px; border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; background: transparent; }
  .reader-toc.is-open .toc-list { max-height: min(40svh, 300px); }
  .reader-article [id] { scroll-margin-top: calc(var(--header-height) + 140px); }
}
@media (max-width: 560px) {
  .guide-hero h1 { font-size: clamp(2.65rem, 11vw, 3.6rem); }
  .guide-hero .eyebrow { font-size: .64rem; letter-spacing: .09em; }
  .guide-lead { font-size: .92rem; }
  .guide-jumps { display: grid; gap: 0; margin-top: 24px; }
  .guide-jumps a { justify-content: space-between; border-top: 1px solid var(--line); min-height: 48px; }
  .guide-route { grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 28px 0; }
  .guide-number { font-size: 1.65rem; }
  .guide-route .btn { font-size: .76rem; }
  .guide-route p { font-size: .85rem; }
  .guide-resource-lines > div { grid-template-columns: 1fr; gap: 14px; }
  .guide-resource-lines a { grid-column: 1; min-height: 44px; display: inline-flex; align-items: center; }
  .guide-feedback-actions { flex-shrink: 1; }
  .guide-feedback .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .guide-faq details[open] p { animation: none; } .guide-page :is(.btn, .guide-text-link) span, .home-guide-callout a span { transition: none; } }
@media print { .reader-assistance, .reader-mode-help, .correction-report { display: none; } .reader-toc, .guide-section-intro { position: static; } }

/* The private workspace never contains message data before authentication. */
.moderation-page { max-width: 1100px; }
.moderation-login { max-width: 480px; display: grid; gap: 16px; }
.moderation-login .btn { justify-self: start; }
.moderation-status { min-height: 28px; margin: 0 0 22px; color: var(--coral-dark); }
.moderation-toolbar, .moderation-filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.moderation-toolbar nav { display: flex; flex-wrap: wrap; gap: 12px; }
.moderation-toolbar button { cursor: pointer; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; background: none; font-size: .85rem; }
.moderation-toolbar button[aria-pressed="true"] { border-color: var(--coral-dark); font-weight: 800; }
.moderation-filters { justify-content: flex-start; }
.moderation-filters label { display: flex; align-items: center; gap: 16px; }
.moderation-filters select { min-width: 170px; }
.moderation-item { border-top: 1px solid var(--line); padding: 28px 0; }
.moderation-item-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.moderation-item h2 { margin: 0; overflow-wrap: anywhere; }
.moderation-state { flex-shrink: 0; font-size: .8rem; color: var(--coral-dark); font-weight: 750; }
.moderation-message { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.moderation-actions { display: flex; gap: 16px; margin-top: 24px; }
.moderation-actions button:disabled { opacity: .6; cursor: wait; }
.moderation-note { margin-top: 48px; color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .moderation-item-head { align-items: flex-start; flex-direction: column; gap: 10px; } .moderation-toolbar nav { gap: 16px; } }
