/* ============================================================
   modus. — blog.css
   /blogue (FR · Québec) and /blog (EN · Canada).
   Two single-language sections, not a translation pair — the
   posts differ by market, so a post page never carries both
   languages in its body. Only the chrome does.
   Depends on base.css tokens.
   ============================================================ */

/* ============ HEAD (shared by both indexes and posts) ============ */
.blog-head{padding:180px 0 84px;overflow:hidden}
.blog-head .wrap{position:relative;z-index:2}
#blog-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:0}
.blog-veil{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(22,40,60,.35) 0%,rgba(22,40,60,.72) 55%,var(--navy) 100%);
}

.crumb{font-family:var(--mono);font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--slate);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:30px}
.crumb a{transition:color .25s}
.crumb a:hover{color:var(--green-on-navy)}
.crumb .sep{opacity:.45}
/* resources.css has carried this since the guides shipped; blog.css never got
   it, so the four blog pages served an 18px-tall breadcrumb link on touch.
   A breadcrumb is navigation, not prose — the WCAG 2.5.8 inline-text
   exemption does not cover it. */
@media(pointer:coarse){
  .crumb a{display:inline-flex;align-items:center;min-height:44px}
  /* The FR/EN control on the blog. Both live in their own box, standalone —
     not links inside a sentence — so the 2.5.8 prose exemption does not apply.
     22px on the section indexes, 27px on the articles. */
  .other-lang a,.lang-note a{display:inline-flex;align-items:center;min-height:44px}
}

.blog-head h1{
  font-size:clamp(34px,5.4vw,62px);line-height:1.03;max-width:19ch;
}
.blog-head .lead{max-width:56ch}

.blog-count{font-family:var(--mono);font-size:12.5px;letter-spacing:.08em;color:var(--slate);margin-top:34px}

/* ============ PHOTO HEAD (the two section indexes only) ============
   Same treatment as the course hero: a full-bleed photograph instead of the
   dot field, scrimmed to carry text contrast and hand the section off to the
   navy below. The ARTICLE pages keep the composing-dots canvas — a photograph
   under every post headline would flatten the difference between the section
   front page and a piece of writing. The modifier is what separates them, so
   .blog-head itself is untouched.

   This photograph is brighter than the course hero (mean luminance is higher
   and the subject is lit), so the vertical ramp starts heavier than the course
   one does — otherwise the breadcrumb and the h1 sit on lit paper. */
.blog-head--photo{
  min-height:min(72vh,640px);
  display:flex;align-items:flex-end;
  padding:190px 0 88px;
}
.blog-head--photo .blog-head-img{
  position:absolute;inset:0;z-index:0;
  width:100%;height:100%;    /* replaced element: needs both, see rule 4 */
  object-fit:cover;object-position:62% 44%;
}
.blog-head--photo .blog-veil{
  background:
    linear-gradient(180deg,
      rgba(22,40,60,.46) 0%,
      rgba(22,40,60,.38) 32%,
      rgba(22,40,60,.80) 74%,
      var(--navy) 100%),
    linear-gradient(90deg,
      rgba(16,29,44,.62) 0%,
      rgba(16,29,44,.24) 54%,
      rgba(16,29,44,0) 100%);
}

@media(max-width:720px){
  /* The side wash is sized to the VIEWPORT, not to the photo, so on a narrow
     screen its dark half covers most of the visible frame and the picture
     reads as a black rectangle. Drop it here, as the course hero does. */
  .blog-head--photo{padding:150px 0 60px;min-height:min(60vh,480px)}
  .blog-head--photo .blog-head-img{object-position:72% 44%}
  .blog-head--photo .blog-veil{
    background:linear-gradient(180deg,
      rgba(22,40,60,.40) 0%,
      rgba(22,40,60,.34) 30%,
      rgba(22,40,60,.74) 72%,
      var(--navy) 100%);
  }
}

/* the one-line pointer at the other language's blog. Not a translation
   offer — a different section for a different market, and it says so. */
.other-lang{
  margin-top:40px;padding:18px 22px;border:1px solid rgba(255,255,255,.14);border-radius:12px;
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;max-width:640px;
  background:rgba(255,255,255,.03);
}
.other-lang p{font-size:14.5px;color:rgba(248,249,247,.72);margin:0}
.other-lang a{font-weight:700;font-size:14.5px;color:var(--green-on-navy);white-space:nowrap}
/* #langNote sits on a mint panel (#e4f1eb), not on paper. --green-ink was
   validated at 4.70:1 against --paper (#F8F9F7) and measures 4.27:1 here —
   17px/700 is below the 18.66px large-text cutoff, so 4.5:1 applies and it
   fails. Same defect class as the old --green-on-navy problem: a green
   validated on one surface, reused on another. #136A4E clears it at 5.65:1
   on the mint, and still clears on paper (6.22:1) and white (6.56:1) if this
   panel is ever restyled. */
#langNote a{color:#136A4E}
.other-lang a:hover{text-decoration:underline}

/* ============ INDEX — the post list ============ */
.posts{border-top:1px solid rgba(22,40,60,.14)}
.post-row{
  display:grid;grid-template-columns:92px 1fr 210px;gap:34px;align-items:start;
  padding:40px 0;border-bottom:1px solid rgba(22,40,60,.14);
}
.post-n{font-family:var(--mono);font-size:13px;color:var(--slate-ink);padding-top:7px;letter-spacing:.06em}
.post-row h2{font-size:clamp(23px,2.5vw,32px);line-height:1.15;max-width:24ch;letter-spacing:-.025em}
.post-row h2 a{transition:color .25s}
.post-row h2 a:hover{color:var(--green-ink)}
.post-row p{margin-top:14px;color:var(--muted);max-width:62ch;font-size:16.5px}
.post-meta{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--slate-ink);
  display:flex;flex-direction:column;gap:9px;padding-top:9px;text-align:right;
}
.post-meta .tag{color:var(--green-ink);font-weight:500}
.post-cta{margin-top:22px}

.upcoming{
  display:grid;grid-template-columns:92px 1fr;gap:34px;padding:40px 0 0;
}
.upcoming h3{font-size:19px;letter-spacing:-.02em}
.upcoming p{color:var(--muted);margin-top:10px;max-width:60ch;font-size:16px}
.upcoming ul{margin-top:16px;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.upcoming li{color:var(--muted);font-size:15.5px;padding-left:20px;position:relative}
.upcoming li::before{content:"";position:absolute;left:0;top:.62em;width:8px;height:1.5px;background:var(--green)}

@media(max-width:860px){
  .post-row{grid-template-columns:1fr;gap:0}
  .post-n{padding-top:0;margin-bottom:10px}
  .post-meta{text-align:left;flex-direction:row;flex-wrap:wrap;gap:6px 20px;padding-top:22px}
  .upcoming{grid-template-columns:1fr;gap:0}
  .upcoming .post-n{margin-bottom:14px}
}

/* ============ ARTICLE ============ */
.article-sec{padding:84px 0 96px}
.article{max-width:720px;margin:0 auto}

.article-meta{
  font-family:var(--mono);font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--slate-ink);
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
  padding-bottom:28px;margin-bottom:40px;border-bottom:1px solid rgba(22,40,60,.14);
}
.article-meta .dotsep{opacity:.4}
.article-meta .tag{color:var(--green-ink);font-weight:500}

/* long-form body. 17.5px/1.68 on a 720px measure ≈ 72ch — the readable band. */
.article-body{font-size:17.5px;line-height:1.68;color:var(--navy)}
.article-body > * + *{margin-top:26px}
.article-body p{color:#22333f}
.article-body strong{font-weight:700;color:var(--navy)}

.article-body h2{
  font-size:clamp(25px,3vw,33px);line-height:1.18;letter-spacing:-.025em;max-width:22ch;
  margin-top:58px;padding-top:6px;
}
.article-body h2 + p{margin-top:18px}
.article-body h3{font-size:20px;letter-spacing:-.02em;margin-top:40px}

.article-body a{
  color:var(--green-ink);font-weight:500;
  border-bottom:1px solid rgba(23,127,94,.34);transition:border-color .2s,color .2s;
}
.article-body a:hover{border-bottom-color:var(--green-ink)}

.article-body ul,.article-body ol{padding-left:0;list-style:none;display:flex;flex-direction:column;gap:13px}
.article-body li{position:relative;padding-left:26px;color:#22333f}
.article-body ul > li::before{content:"";position:absolute;left:0;top:.72em;width:11px;height:1.5px;background:var(--green)}
.article-body ol{counter-reset:n}
.article-body ol > li{counter-increment:n}
.article-body ol > li::before{
  content:counter(n);position:absolute;left:0;top:0;
  font-family:var(--mono);font-size:13px;color:var(--green-ink);font-weight:500;
}

/* tables — navy header band, per the house visual standard */
.article-table{width:100%;border-collapse:collapse;font-size:15.5px;margin-top:30px}
.article-table th{
  background:var(--navy);color:var(--paper);text-align:left;font-weight:700;font-size:13px;
  letter-spacing:.05em;text-transform:uppercase;padding:13px 16px;
}
.article-table th:first-child{border-radius:8px 0 0 0}
.article-table th:last-child{border-radius:0 8px 0 0}
.article-table td{padding:13px 16px;border-bottom:1px solid rgba(22,40,60,.13);color:#22333f;vertical-align:top}
.article-table tr:last-child td{border-bottom:0}
.article-table tbody tr:nth-child(even){background:rgba(22,40,60,.028)}
.article-table strong{color:var(--navy)}
.table-scroll{overflow-x:auto;margin-top:30px}
.table-scroll .article-table{margin-top:0;min-width:520px}

/* the copy-this-block callout (standing instructions, prompts) */
.callout{
  background:var(--navy);color:var(--paper);border-radius:14px;padding:26px 30px;
  font-size:16px;line-height:1.62;margin-top:30px;
}
.callout p{color:rgba(248,249,247,.86)}
.callout .callout-k{
  font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-on-navy);display:block;margin-bottom:14px;
}

/* the single pulled-out line per article */
.pull{
  border-left:2px solid var(--green);padding:4px 0 4px 26px;margin-top:36px;
  font-size:clamp(19px,2.2vw,23px);line-height:1.42;font-weight:700;letter-spacing:-.02em;color:var(--navy);
  max-width:26ch;
}

.article-body hr{border:0;border-top:1px solid rgba(22,40,60,.16);margin-top:54px}

/* sign-off + sources */
.signoff{font-size:15.5px;color:var(--muted);font-style:normal;margin-top:30px}
.sources{margin-top:54px;padding-top:30px;border-top:1px solid rgba(22,40,60,.16)}
.sources h2{font-size:15px!important;font-family:var(--mono);letter-spacing:.12em;text-transform:uppercase;
  color:var(--slate-ink);margin-top:0!important;font-weight:500;max-width:none}
.sources ol{margin-top:20px;gap:14px}
.sources li{font-size:14.5px;line-height:1.55;color:var(--muted)}
.sources li::before{top:.5em}

/* language mismatch notice — the chrome flipped, the article can't */
.lang-note{
  background:rgba(29,158,117,.09);border:1px solid rgba(23,127,94,.3);border-radius:12px;
  padding:16px 20px;margin-bottom:36px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;
}
.lang-note p{font-size:14.5px;color:var(--muted);margin:0}
.lang-note a{font-weight:700;color:var(--green-ink);white-space:nowrap;border-bottom:1px solid rgba(23,127,94,.34)}
.lang-note[hidden]{display:none}

@media(max-width:560px){
  .blog-head{padding:150px 0 64px}
  .article-sec{padding:64px 0 76px}
  .article-body{font-size:17px}
  .callout{padding:22px 20px}
  .pull{padding-left:20px}
}

/* ============ NEXT STEP band (reused shape from /ressources) ============ */

/* base.css styles .btn-ghost for navy sections: paper-coloured text on a
   transparent background. Dropped onto a .paper section that is paper text
   on paper — contrast ratio 1.00, an invisible button. resources.css carries
   this same override for /ressources; the blog pages don't load that file,
   so it has to be repeated here. Caught by the contrast sweep, not by eye. */
.paper .btn-ghost{border-color:rgba(22,40,60,.22);color:var(--navy)}
.paper .btn-ghost::before{background:var(--navy)}
.paper .btn-ghost:hover{color:var(--paper)}

.next-band{border-top:1px solid rgba(22,40,60,.14)}
.next-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:start}
.next-actions{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.next-note{font-family:var(--mono);font-size:12.5px;line-height:1.85;color:var(--slate-ink);margin-top:8px}
@media(max-width:860px){.next-grid{grid-template-columns:1fr;gap:34px}}

@media(prefers-reduced-motion:reduce){
  #blog-canvas{display:none}
}

/* The standing notice, when the header EN/FR control points at it instead of
   navigating away (see js/app/blog-main.js). A brief ring rather than a
   colour change, so nothing in the panel has to shift or restyle. */
.lang-note{transition:box-shadow .35s var(--ease)}
.lang-note.is-flagged{animation:noteFlag 1.9s var(--ease) 1}
@keyframes noteFlag{
  0%   {box-shadow:0 0 0 0 rgba(29,158,117,.55)}
  18%  {box-shadow:0 0 0 5px rgba(29,158,117,.38)}
  100% {box-shadow:0 0 0 0 rgba(29,158,117,0)}
}
.lang-note:focus{outline:none}
.lang-note:focus-visible{outline:2px solid var(--green-ink);outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  .lang-note.is-flagged{animation:none;box-shadow:0 0 0 3px rgba(29,158,117,.45)}
}

/* ---------------------------------------------------------------- embeds
   YouTube players inside an article. Two deliberate choices:

   1. youtube-nocookie.com, not youtube.com. The privacy-enhanced host does
      not write tracking cookies until the visitor presses play, which keeps
      an embedded video from quietly becoming a third tracker on a site whose
      consent banner promises nothing loads before the visitor chooses.
   2. loading="lazy" — an article can carry several players and none of them
      should cost anything until the reader scrolls to it.

   The wrapper is the classic padding-top ratio box rather than aspect-ratio
   so the reserved space is correct in older Safari too; the iframe fills it
   absolutely. Caption sits under the frame in the same register as
   .article-meta. */
.video-embed{margin:2.6rem 0}
.video-embed .frame{
  position:relative;width:100%;padding-top:56.25%;
  background:var(--navy);border-radius:14px;overflow:hidden;
  box-shadow:0 18px 40px -28px rgba(22,40,60,.55)
}
.video-embed iframe{
  position:absolute;inset:0;width:100%;height:100%;border:0;display:block
}
.video-embed figcaption{
  margin-top:.85rem;font-family:var(--mono);font-size:.76rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--slate-ink)
}
.video-embed figcaption .who{color:var(--green-ink)}
@media(max-width:640px){
  .video-embed{margin:2rem 0}
  .video-embed .frame{border-radius:10px}
}

/* ============ ARTICLE COMPONENTS (added 2026-10-17, ChatGPT posts) ============
   Built for the "10 tâches / 10 jobs" posts and reusable by any post:
   - .tldr          the answer-first block under the headline (AEO: the one
                    paragraph an answer engine lifts whole)
   - .article-fig   an editorial photo inside the article. The article HEAD
                    keeps the dot canvas (see PHOTO HEAD above); photos live in
                    the body, where they break up long reading.
   - .prompt-card   a copy-ready consigne / prompt. The Copy button is added by
                    js/app/prompt-copy.js, so with JS off there is no dead button.
   - .test-flow     a small decision diagram in HTML, not an image: it scales,
                    reads aloud, and keeps the ◆ human-decision moment visible
                    (website/CLAUDE.md rule 7).
   - .source-quote  a quotation from a named external source, with its cite. */
.article-body .tldr{
  background:rgba(29,158,117,.08);border-left:3px solid var(--green);
  border-radius:0 12px 12px 0;padding:18px 22px;font-size:17px;line-height:1.62;
}
.article-fig{margin:44px 0 0}
.article-fig img{width:100%;height:auto;display:block;border-radius:14px;
  box-shadow:0 18px 40px -28px rgba(22,40,60,.55);background:var(--light)}
.article-fig figcaption{margin-top:12px;font-size:14px;line-height:1.5;color:var(--slate-ink)}

.article-body .prompt-card{
  position:relative;background:var(--navy);border-radius:14px;
  padding:22px 26px 24px;margin-top:18px;
}
.prompt-card .prompt-k{
  display:block;font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--green-on-navy);margin-bottom:12px;padding-right:96px;
}
.article-body .prompt-card .prompt-text{color:rgba(248,249,247,.92);font-size:16px;line-height:1.62;margin:0}
.prompt-copy{
  position:absolute;top:14px;right:14px;
  font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--paper);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.22);
  border-radius:999px;padding:6px 14px;min-height:32px;cursor:pointer;transition:background .2s,border-color .2s;
}
.prompt-copy:hover,.prompt-copy:focus-visible{background:rgba(255,255,255,.14);border-color:var(--green-on-navy)}
.prompt-copy.is-done{border-color:var(--green-on-navy);color:var(--green-on-navy)}
@media(pointer:coarse){.prompt-copy{min-height:44px;padding:10px 16px}.prompt-card .prompt-k{padding-right:110px}}

.test-flow{margin:44px 0 0;padding:26px;border:1px solid rgba(22,40,60,.14);border-radius:16px;background:#fff}
.test-flow .tf-q{
  font-weight:700;font-size:18px;line-height:1.35;letter-spacing:-.015em;color:var(--navy);
  padding-bottom:18px;border-bottom:1px dashed rgba(22,40,60,.22);
}
.test-flow .tf-branches{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.test-flow .tf-branch{border-radius:12px;padding:16px 18px;background:rgba(22,40,60,.04)}
.test-flow .tf-yes{background:rgba(29,158,117,.08)}
.test-flow .tf-tag{display:inline-block;font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;
  text-transform:uppercase;font-weight:500;color:var(--slate-ink);margin-bottom:10px}
.test-flow .tf-yes .tf-tag{color:var(--green-ink)}
.test-flow .tf-step{font-size:15.5px;line-height:1.45;color:#22333f;padding:7px 0 7px 18px;position:relative}
.test-flow .tf-step::before{content:"";position:absolute;left:0;top:15px;width:8px;height:1.5px;background:var(--slate-ink)}
.test-flow .tf-yes .tf-step::before{background:var(--green)}
.test-flow .tf-human{font-weight:700;color:var(--navy)}
.test-flow .tf-human::before{display:none}
.test-flow .tf-human{padding-left:0}
.test-flow figcaption{margin-top:16px;font-size:14px;color:var(--slate-ink)}
@media(max-width:560px){.test-flow{padding:20px}.test-flow .tf-branches{grid-template-columns:1fr}}

.source-quote{margin:36px 0 0;padding:24px 28px;border-radius:14px;background:rgba(22,40,60,.045);border-left:3px solid var(--navy)}
.source-quote blockquote{margin:0;font-size:clamp(19px,2.1vw,22px);line-height:1.4;font-weight:700;letter-spacing:-.015em;color:var(--navy)}
.source-quote figcaption{margin-top:12px;font-size:14px;color:var(--slate-ink)}
.source-quote figcaption a{color:var(--green-ink);border-bottom:1px solid rgba(23,127,94,.34)}
