/* /css/fonts-blog.css */
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Instrument Sans';font-style:normal;font-display:swap;font-weight:400 700;src:url(/fonts/instrument-sans-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Newsreader';font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Newsreader';font-style:normal;font-display:swap;font-weight:200 800;src:url(/fonts/newsreader-latin-opsz-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 800;src:url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 800;src:url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* /css/blog-redesign.css */
/* ==========================================================================
   Hicham Souilmi — blog + article template
   Design tokens. Keep this file as the single source of truth.
   ========================================================================== */

:root {
  /* Palette — built out from the existing #F6F5FB theme colour */
  --paper:        #F6F5FB;
  --card:         #FFFFFF;
  --ink:          #19172F;   /* relevé sur le logo du site */
  --ink-2:        #45415E;
  --muted:        #6E6987;
  --rule:         #E2DFEE;
  --rule-strong:  #C9C4E0;

  /* Ambre du site, relevé sur le bouton « Book a call » existant. */
  --accent:       #DD9D3E;   /* fonds de boutons, accents */
  --accent-deep:  #B77C22;   /* survol */
  --accent-soft:  #FBF0DB;   /* fonds de pastilles */
  --accent-ink:   #7A4E0B;   /* texte ambre lisible sur fond clair */
  --on-accent:    #281E09;   /* texte sur fond ambre */

  --good:         #0E7C6B;   /* teal — "this fixes it" */
  --alert:        #A32B4A;   /* crimson — "this blocks you" */

  /* Type */
  --sans:  "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 10px;
  --radius-lg: 18px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

.wrap {
  width: min(1180px, 100% - (2 * var(--gutter)));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.15em; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .8vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

code, kbd, samp, pre { font-family: var(--mono); font-size: .88em; }

code {
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: .12em .38em;
  border-radius: 4px;
  white-space: nowrap;
}

pre {
  background: #17142B;
  color: #E7E4F7;
  padding: 20px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.65;
  margin: 0 0 1.6em;
  tab-size: 2;
}
pre code { background: none; color: inherit; padding: 0; white-space: pre; }
pre .k { color: #E5B569; }   /* keys */
pre .s { color: #8FD9C4; }   /* strings */
pre .c { color: #7C769B; }   /* comments */

/* --------------------------------------------------------------------------
   Header / nav  (matches the existing site structure)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,245,251,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  letter-spacing: -.01em; margin-right: auto;
}
.brand .mono {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav .lang {
  border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: 3px 11px; font-size: .82rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .93rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
/* Le bouton principal est indigo, pas noir : il se détache du texte et du header.
   Les sélecteurs sont volontairement redondants (a.btn / .site-header .btn) pour
   passer devant les règles du stylesheet existant du site, chargé après celui-ci. */
.btn-primary,
a.btn-primary,
.site-header .btn-primary,
.cta-band .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-primary:hover,
a.btn-primary:hover,
.site-header .btn-primary:hover,
.cta-band .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #FFFFFF;
}
.btn-primary:visited, a.btn-primary:visited { color: var(--on-accent); }

.btn-ghost, a.btn-ghost {
  border-color: var(--rule-strong); color: var(--ink); background: transparent;
}
.btn-ghost:hover, a.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent-ink); background: #FFFFFF;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }

@media (max-width: 900px) {
  .nav .desktop-only { display: none; }
}

/* --------------------------------------------------------------------------
   Blog index — hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: .4em; }
.hero .lede { margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The "answer panel" artifact — the thing this site is actually about */
.answer-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(25,22,39,.45);
  overflow: hidden;
  font-size: .9rem;
}
.answer-panel .ap-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted); font-size: .78rem;
}
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.answer-panel .ap-body { padding: 18px 20px 8px; }
.ap-query {
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
  margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule);
}
.ap-line {
  height: 9px; border-radius: 5px; background: var(--rule);
  margin-bottom: 9px;
}
.ap-line.w90 { width: 90%; } .ap-line.w75 { width: 75%; } .ap-line.w60 { width: 60%; }
.ap-sources { padding: 6px 20px 20px; }
.ap-sources h4 {
  font-size: .72rem; color: var(--muted); font-weight: 600;
  margin: 0 0 10px; letter-spacing: .01em;
}
.ap-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; margin-bottom: 6px;
  border: 1px solid var(--rule); border-radius: 8px;
  font-family: var(--mono); font-size: .76rem;
}
.ap-chip .flag { font-size: .68rem; font-family: var(--sans); color: var(--muted); }
.ap-chip.us { background: var(--accent-soft); border-color: #F0DCB2; color: var(--accent-ink); }
.ap-chip.ca { background: transparent; border-style: dashed; color: var(--muted); opacity: .75; }
.ap-note {
  margin: 12px 0 0; font-size: .78rem; color: var(--muted); font-family: var(--sans);
}

/* --------------------------------------------------------------------------
   Blog index — filters, featured, cards
   -------------------------------------------------------------------------- */

.section { padding: clamp(44px, 6vw, 76px) 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.section-head p { color: var(--muted); margin: .4em 0 0; max-width: 58ch; font-size: .95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--rule-strong); background: transparent;
  color: var(--ink-2); border-radius: 999px;
  padding: 7px 15px; font: 500 .86rem var(--sans); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter:disabled { opacity: .4; cursor: not-allowed; }
.filter .count { color: inherit; opacity: .55; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* Featured article — one article should look deliberate, not empty */
.featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 880px) { .featured { grid-template-columns: 1fr; } }
.featured-art {
  background: #EFEDFA; border-right: 1px solid var(--rule);
  display: grid; place-items: center;
  padding: clamp(18px, 3vw, 32px);
}
.featured-art img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 880px) { .featured-art { border-right: 0; border-bottom: 1px solid var(--rule); } }
.featured-body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; }
.featured-body h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .5em; }
.featured-body h3 a { color: inherit; text-decoration: none; }
.featured-body h3 a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.featured-body p { color: var(--ink-2); }
.featured-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted); margin-bottom: 14px;
}
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-strong); }
.tag {
  background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 5px; padding: 3px 9px; font-weight: 600; font-size: .76rem;
}
.tag-new { background: #DCF2EC; color: var(--good); }

.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-art { aspect-ratio: 16 / 9; background: #FDF7EC; border-bottom: 1px solid var(--rule); }
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .45em; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--accent-ink); }
.card-body p { font-size: .93rem; color: var(--ink-2); margin-bottom: 1em; }
.card-body .card-foot { margin-top: auto; font-size: .88rem; font-weight: 600; }

/* Honest "what's coming" list instead of empty filters */
.pipeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.pipeline li {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 18px 2px; border-bottom: 1px solid var(--rule);
}
.pipeline .pl-title { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); flex: 1 1 320px; }
.pipeline .pl-status { font-size: .78rem; color: var(--muted); font-family: var(--mono); }

/* Proof strip */
.proof {
  display: grid; gap: 2px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.proof div { background: var(--paper); padding: 24px 22px; }
.proof dt { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.proof dd {
  margin: 0; font-family: var(--serif); font-size: 1.7rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Email capture */
.capture {
  background: var(--ink); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px);
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: clamp(28px, 4vw, 52px); align-items: center;
}
@media (max-width: 860px) { .capture { grid-template-columns: 1fr; } }
.capture h2 { color: #fff; }
.capture p { color: #C9C4E4; margin-bottom: 0; }
.capture form { display: flex; flex-direction: column; gap: 10px; }
.capture label { font-size: .85rem; color: #C9C4E4; }
.capture input[type="email"] {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 1px solid #3B3557; background: #221E38; color: #fff;
  font: 400 1rem var(--sans);
}
.capture input::placeholder { color: #7E779E; }
.capture .btn-primary { background: #fff; color: var(--ink); }
.capture .btn-primary:hover { background: var(--accent-soft); color: var(--accent-deep); }
.capture .fine { font-size: .78rem; color: #8C86AC; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band p { margin: .5em 0 0; color: var(--ink-2); max-width: 52ch; }

/* --------------------------------------------------------------------------
   Article template
   -------------------------------------------------------------------------- */

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 60;
}

.crumbs {
  font-size: .82rem; color: var(--muted);
  padding: 20px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.article-head { padding: 22px 0 clamp(30px, 4vw, 46px); }
.article-head h1 { margin-bottom: .35em; max-width: 18ch; }
.article-head .lede { max-width: 40em; margin-bottom: 26px; }

.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.byline img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--rule);
}
.byline .who { font-weight: 600; font-size: .95rem; }
.byline .what { font-size: .84rem; color: var(--muted); }

.article-hero {
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; background: #FDF7EC;
}
figure { margin: 0 0 1.8em; }
figure.wide { margin-block: 2.4em; }
figure img { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Two-column reading layout with sticky contents */
.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(36px, 5vw, 60px) 0;
  align-items: start;
}
@media (max-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr); } }

.toc { position: sticky; top: 92px; font-size: .88rem; }
@media (max-width: 1000px) {
  .toc {
    position: static;
    border: 1px solid var(--rule); border-radius: var(--radius);
    background: var(--card); padding: 18px 20px;
  }
}
.toc h2 { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 2px; }
.toc a {
  display: block; padding: 5px 0 5px 26px; position: relative;
  color: var(--ink-2); text-decoration: none; line-height: 1.35;
  border-left: 2px solid transparent; padding-left: 14px;
}
.toc a::before {
  content: counter(toc); position: absolute; left: -16px;
  font-family: var(--mono); font-size: .7rem; color: var(--rule-strong);
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }

.prose { max-width: var(--measure); font-size: 1.06rem; }
.prose > h2 {
  margin: 2.2em 0 .6em; padding-top: .3em;
  scroll-margin-top: 96px;
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin: 1.9em 0 .5em; scroll-margin-top: 96px; }
.prose > h4 { margin: 1.6em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--rule-strong); }
.prose ol li::marker { color: var(--muted); font-family: var(--mono); font-size: .85em; }
.prose strong { font-weight: 600; }

/* Key-takeaways box — the block generative engines lift wholesale */
.takeaways {
  border: 1px solid var(--accent-soft);
  background: var(--card);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 0 0 2.4em;
}
.takeaways h2 {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  color: var(--accent-ink); margin: 0 0 12px;
}
.takeaways ul { margin: 0; padding-left: 1.1em; }
.takeaways li { margin-bottom: .5em; font-size: .98rem; }
.takeaways li:last-child { margin-bottom: 0; }

/* Callouts */
.note {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); padding: 20px 22px; margin: 0 0 1.8em;
}
.note h4 { margin: 0 0 .4em; }
.note p:last-child { margin-bottom: 0; }
.note.do { border-left: 3px solid var(--good); }
.note.dont { border-left: 3px solid var(--alert); }

blockquote {
  margin: 2em 0; padding: 0 0 0 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.45; color: var(--ink);
}
blockquote p:last-child { margin-bottom: .3em; }
blockquote cite { font: 500 .84rem var(--sans); color: var(--muted); font-style: normal; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.9em; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption {
  text-align: left; font-size: .82rem; color: var(--muted);
  padding-bottom: 10px;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  font-size: .78rem; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--rule-strong);
}
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.yes { color: var(--good); font-weight: 600; }
.no  { color: var(--alert); font-weight: 600; }

/* Inline CTA inside the article */
.inline-cta {
  background: var(--accent-soft);
  border: 1px solid #F0DCB2;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 2.6em 0;
}
.inline-cta h3 { margin-bottom: .4em; }
.inline-cta p { color: var(--ink-2); }
.inline-cta p:last-of-type { margin-bottom: 1.2em; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); margin-top: 1.4em; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.25rem; color: var(--muted); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Sources */
.sources { font-size: .9rem; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .75em; color: var(--ink-2); }
.sources a { word-break: break-word; }

/* Author box */
.author-box {
  display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 22px;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 26px 28px; margin: 2.6em 0 0;
}
@media (max-width: 620px) { .author-box { grid-template-columns: 1fr; } }
.author-box img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.author-box h3 { margin-bottom: .25em; }
.author-box .role { font-size: .86rem; color: var(--muted); margin-bottom: .8em; }
.author-box p { font-size: .95rem; color: var(--ink-2); }
.author-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

.share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2.4em 0 0; font-size: .88rem; color: var(--muted); }
.share a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.share a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Footer (mirrors the existing footer structure)
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(44px, 6vw, 72px) 0 32px;
  font-size: .9rem;
}
.footer-grid {
  display: grid; gap: 34px;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 1fr));
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .blurb { color: var(--muted); max-width: 32ch; margin: 12px 0 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .84rem; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--muted); font-size: .84rem;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* En-tête mobile : une seule ligne, bouton compact, logo seul sous 420 px */
@media (max-width: 560px) {
  .site-header .bar { gap: 12px; min-height: 58px; }
  .brand { white-space: nowrap; }
  .nav { gap: 12px; }
  .site-header .nav .btn-primary { padding: 8px 14px; font-size: .82rem; white-space: nowrap; }
}
@media (max-width: 420px) {
  .brand > span:not(.mono) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* /css/temoins.css */
/* Bannière de consentement (Loi 25) pour les pages du blog.
   Même comportement que css/site.css, avec les jetons de blog-redesign.css. */
.banniere-temoins{position:fixed;left:0;right:0;bottom:0;z-index:140;background:var(--card);border-top:1px solid var(--rule-strong);
  box-shadow:0 -18px 50px -24px rgba(45,35,90,.35);padding:22px 0 calc(22px + env(safe-area-inset-bottom,0px));font-family:var(--sans)}
.bt-inner{max-width:1100px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}
.bt-titre{font-size:16px;font-weight:600;margin:0 0 6px;color:var(--ink)}
.bt-txt{font-size:14px;line-height:1.6;color:var(--muted);max-width:640px;margin:0}
.bt-txt a{color:var(--accent-ink);text-decoration:underline}
.bt-actions{display:flex;gap:10px;flex-shrink:0}
.bt-btn{font:600 14.5px var(--sans);border-radius:9999px;padding:.7rem 1.5rem;border:1px solid var(--rule-strong);background:transparent;color:var(--ink);cursor:pointer;transition:.18s;white-space:nowrap}
.bt-btn:hover{border-color:var(--accent-deep)}
.bt-btn.accepter{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
@media(max-width:760px){.bt-inner{grid-template-columns:1fr}.bt-actions{width:100%}.bt-btn{flex:1}}

/* /css/partage.css */
/* Byline « Par Hicham Souilmi » + bouton de partage (style NYT).
   S'appuie sur les jetons de blog-redesign.css. */
.byline { gap:14px; flex-wrap:nowrap; }
.byline > div { min-width:0; }
.byline > a { flex:none; }
.byline .who a { color:var(--ink); font-weight:600; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:3px; }
.byline .who a:hover { color:var(--accent-ink); }
.byline .partage { margin-left:auto; }

.partage { position:relative; display:inline-block; flex:none; }
.partage-btn { display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 18px; border-radius:999px;
  border:1px solid var(--rule-strong); background:var(--card); color:var(--ink); font:600 .9rem var(--sans); cursor:pointer;
  transition:background .15s, border-color .15s; }
.partage-btn:hover, .partage-btn[aria-expanded="true"] { border-color:var(--accent); background:var(--accent-soft); }
.partage-btn svg { width:20px; height:20px; display:block; }
.partage-menu { position:absolute; z-index:60; right:0; bottom:calc(100% + 12px); width:260px; max-width:calc(100vw - 32px);
  padding:6px 16px; background:var(--card); border:1px solid var(--rule); border-radius:var(--radius); box-shadow:0 14px 34px rgba(25,23,47,.16); }
.partage-menu::after { content:""; position:absolute; right:22px; bottom:-8px; border:8px solid transparent; border-bottom:0; border-top-color:var(--ink); }
.partage-menu[data-pos="below"] { bottom:auto; top:calc(100% + 12px); }
.partage-menu[data-pos="below"]::after { bottom:auto; top:-8px; border-top:0; border-bottom:8px solid var(--ink); }
.partage-item { display:flex; align-items:center; gap:16px; width:100%; padding:9px 0; border:0; border-bottom:1px solid var(--rule);
  background:none; color:var(--ink); font:1rem var(--sans); text-align:left; text-decoration:none; cursor:pointer; }
.partage-menu a.partage-item:last-of-type { border-bottom:0; }
.partage-item:hover { color:var(--ink); }
.partage-item:hover .partage-txt, .partage-item:focus-visible .partage-txt { text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:3px; }
.partage-item:focus-visible { outline:none; }
.partage-item:focus-visible .partage-ico { outline:2px solid var(--accent-deep); outline-offset:2px; }
.partage-ico { flex:none; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--rule-strong); }
.partage-ico svg { width:17px; height:17px; display:block; }
.partage-toast { margin:0; font-size:.82rem; color:var(--good); }
.partage-toast:not(:empty) { padding:6px 0 4px; }

.partage-bas { display:flex; align-items:center; gap:14px; margin:2.4em 0 0; font-size:.88rem; color:var(--muted); }

@media (max-width:620px) {
  .partage-lbl { display:none; }
  .partage-btn { width:44px; padding:0; justify-content:center; }
}

/* /css/article-nyt.css */
/* ==========================================================================
   Articles du blog, version épurée (inspirée du New York Times)
   Une seule colonne de lecture, images plus larges que le texte,
   outils de partage discrets. Chargé après blog-redesign.css et partage.css.
   ========================================================================== */

.nyt {
  --col: 640px;          /* largeur de la colonne de texte */
  --col-wide: 960px;     /* largeur des images d'ouverture et .wide */
  --hair: 1px solid var(--rule);
}

/* Fil d'Ariane masqué à l'écran (il reste dans le balisage BreadcrumbList) */
main > .wrap:has(> .crumbs) { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Colonne unique ------------------------------------------------------------ */
.nyt .article-head,
.nyt .article-body {
  width: min(var(--col), 100% - 40px);
  margin-inline: auto;
}
.nyt .article-body { display:block; padding: 0 0 clamp(40px, 6vw, 64px); }
.nyt .prose { max-width: none; }

/* En-tête ------------------------------------------------------------------- */
.nyt .article-head { padding: clamp(28px, 5vw, 56px) 0 0; }
.nyt .kicker { margin: 0 0 14px; font: 600 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.nyt .kicker a { color: var(--accent-ink); text-decoration: none; }
.nyt .kicker a:hover { text-decoration: underline; }
.nyt .article-head h1 {
  max-width: none; margin: 0 0 .45em;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.85rem); line-height: 1.1; font-weight: 500; letter-spacing: -.02em;
}
.nyt .article-head .lede {
  max-width: none; margin: 0 0 28px;
  font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.5; color: var(--ink-2);
}

/* Barre d'outils : durée à gauche, partage à droite, filet dessous */
.nyt .outils {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 0 0 12px; border-bottom: var(--hair);
}
.nyt .duree { font: .82rem var(--sans); color: var(--muted); }
.nyt .outils .partage-btn { height:36px; padding:0 14px; font-size:.82rem; }
.nyt .outils .partage-btn svg { width:17px; height:17px; }

/* Signature */
.nyt .byline { display:flex; align-items:center; gap:10px; margin: 18px 0 4px; flex-wrap:nowrap; }
.nyt .byline img { width:40px; height:40px; border:0; filter: grayscale(.15); }
.nyt .byline .who { margin:0; font: .92rem var(--sans); color: var(--ink); }
.nyt .byline .who a { font-weight:600; color:var(--ink); text-decoration:underline; text-decoration-thickness:1px; text-decoration-color:var(--ink); text-underline-offset:3px; }
.nyt .byline .who a:hover { color:var(--accent-ink); text-decoration-color:var(--accent); }
.nyt .dates { margin: 0 0 clamp(26px, 4vw, 38px); font: .78rem var(--sans); color: var(--muted); }

/* Images : plus larges que la colonne, sans cadre ------------------------- */
.nyt .article-hero {
  width: min(var(--col-wide), 100%);
  margin: 0 auto clamp(30px, 5vw, 48px);
  border: 0; border-radius: 0; background: transparent;
}
.nyt figure img { border: 0; border-radius: 0; }
.nyt .prose figure.wide {
  width: min(var(--col-wide), 100vw - 32px);
  margin: 2.6em 0; position: relative; left: 50%; transform: translateX(-50%);
}
.nyt figcaption {
  width: min(var(--col), 100%); margin: 8px 0 0;
  font: .76rem/1.45 var(--sans); color: var(--muted);
}

/* Texte courant : serif, confortable --------------------------------------- */
.nyt .prose { font-family: var(--serif); font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); line-height: 1.62; color: var(--ink); }
.nyt .prose p { margin: 0 0 1.05em; }
.nyt .prose > h2 {
  margin: 2.1em 0 .55em; padding: 0;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); letter-spacing: -.01em;
}
.nyt .prose > h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; margin: 1.7em 0 .45em; }
.nyt .prose li { margin-bottom: .45em; }
.nyt .prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
.nyt .prose a:hover { color: var(--accent-ink); }
.nyt .prose sup a { text-decoration: none; color: var(--accent-ink); }

/* Encadrés : sobres, sans cartes ------------------------------------------- */
.nyt .takeaways {
  border: 0; border-top: 2px solid var(--ink); border-bottom: var(--hair); border-radius: 0;
  background: transparent; padding: 16px 0 18px; margin: 0 0 2.2em;
}
.nyt .takeaways h2 { font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.nyt .takeaways li { font-size: 1rem; }

.nyt .note {
  border: 0; border-left: 2px solid var(--rule-strong); border-radius: 0;
  background: transparent; padding: 2px 0 2px 20px; margin: 1.6em 0;
}
.nyt .note.do { border-left-color: var(--good); }
.nyt .note.dont { border-left-color: var(--alert); }
.nyt .note h4 { font-size: .9rem; }

.nyt .inline-cta {
  border: 0; border-top: var(--hair); border-bottom: var(--hair); border-radius: 0;
  background: transparent; padding: 22px 0; margin: 2.4em 0; font-family: var(--sans);
}
.nyt .inline-cta h3 { font-family: var(--serif); font-size: 1.2rem; }
.nyt .inline-cta p { font-size: .98rem; }

.nyt .table-wrap { font-family: var(--sans); margin: 1.6em 0 2em; }
.nyt .faq summary { font-size: 1.08rem; font-weight: 500; }
.nyt .faq .answer { font-size: 1rem; }
.nyt .sources { font-family: var(--sans); font-size: .84rem; }

/* Sommaire repliable --------------------------------------------------------- */
.nyt .sommaire { border-bottom: var(--hair); margin: 0 0 2em; font-family: var(--sans); }
.nyt .sommaire summary {
  list-style: none; cursor: pointer; padding: 12px 28px 12px 0; position: relative;
  font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.nyt .sommaire summary::-webkit-details-marker { display: none; }
.nyt .sommaire summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.nyt .sommaire[open] summary::after { content: "–"; }
.nyt .toc { position: static; border: 0; background: none; padding: 0 0 14px 18px; font-size: .9rem; }

/* Fin d'article : partage puis note sur l'auteur --------------------------- */
.nyt .partage-bas {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin: 2.6em 0 0; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: var(--hair);
  font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.nyt .partage-bas .partage-btn { text-transform: none; letter-spacing: 0; }

.nyt .author-box {
  display:grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; align-items:start;
  background: transparent; border: 0; border-radius: 0; padding: 22px 0 0; margin: 0;
  font-family: var(--sans);
}
.nyt .author-box img { width:56px; height:56px; }
.nyt .author-box h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 .15em; }
.nyt .author-box .role { font-size: .82rem; margin-bottom: .6em; }
.nyt .author-box p { font-size: .9rem; font-style: italic; }
.nyt .author-box .role, .nyt .author-box .author-links { font-style: normal; }
.nyt .author-links { font-size: .82rem; }
@media (max-width:620px) { .nyt .author-box { grid-template-columns: 56px minmax(0,1fr); } }

/* « À lire ensuite » : même colonne, liste à filets ------------------------ */
.nyt + .section { border-top: var(--hair); }
.nyt + .section > .wrap { width: min(960px, 100% - 40px); margin-inline: auto; }
.nyt + .section .section-head h2 { font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.nyt + .section .card-body h3 { font-size: 1.2rem; }
.nyt + .section .card { border: 0; border-radius: 0; background: transparent; box-shadow: none; border-top: 2px solid var(--ink); padding-top: 10px; }
.nyt + .section .card-body { padding: 0; }

/* Mobile -------------------------------------------------------------------- */
@media (max-width: 620px) {
  .nyt .article-head, .nyt .article-body { width: calc(100% - 32px); }
  .nyt .prose figure.wide { width: 100vw; }
  .nyt .prose figure.wide figcaption { padding-inline: 16px; }
}

/* /css/social-latest.css */
/* Bande « Derniers posts » LinkedIn et X, en haut de toutes les pages */
.sl-strip{background:var(--surface-3,#EFEDF9);border-bottom:1px solid var(--line,rgba(26,23,48,.10));font-family:Inter,"Instrument Sans",system-ui,sans-serif}
.sl-strip-in{max-width:80rem;margin:0 auto;padding:.4rem 1rem;display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}
@media (min-width:640px){.sl-strip-in{padding:.4rem 1.5rem}}
@media (min-width:1024px){.sl-strip-in{padding:.4rem 2rem}}
.sl-label{font-size:.75rem;color:var(--muted,rgba(26,23,48,.66));margin-right:.15rem}
.sl-badge{display:inline-flex;align-items:center;gap:.45rem;padding:.28rem .75rem;border-radius:999px;background:var(--surface-2,#fff);border:1px solid var(--line-strong,rgba(26,23,48,.16));color:var(--ink,#1A1730)!important;font-size:.78rem;font-weight:500;line-height:1.2;text-decoration:none!important;white-space:nowrap;transition:border-color .2s,box-shadow .2s,transform .2s}
.sl-badge:hover,.sl-badge:focus-visible{border-color:var(--violet,#6D5CE0);box-shadow:0 3px 10px rgba(109,92,224,.15);transform:translateY(-1px)}
.sl-badge:focus-visible{outline:2px solid var(--violet,#6D5CE0);outline-offset:2px}
.sl-badge svg{width:13px;height:13px;fill:var(--violet,#6D5CE0);flex:none}
.sl-arrow{color:var(--muted,rgba(26,23,48,.66));transition:transform .2s}
.sl-badge:hover .sl-arrow{transform:translateX(2px);color:var(--violet,#6D5CE0)}
.sl-dot{position:relative;width:.45rem;height:.45rem;border-radius:50%;background:var(--signal,#E8991C);flex:none}
.sl-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--signal,#E8991C);animation:sl-pulse 2s ease-out infinite}
@keyframes sl-pulse{0%{transform:scale(1);opacity:.6}100%{transform:scale(2.6);opacity:0}}
@media (max-width:639px){.sl-strip-in{justify-content:center;gap:.4rem;flex-wrap:nowrap}.sl-label{font-size:.72rem;white-space:nowrap}.sl-badge{padding:.26rem .6rem}}
@media (max-width:479px){.sl-arrow{display:none}.sl-badge{gap:.35rem;padding:.26rem .5rem}}
@media (max-width:379px){.sl-label{display:none}}
@media (prefers-reduced-motion:reduce){.sl-dot::after{animation:none}.sl-badge,.sl-arrow{transition:none}}

