/* =====================================================================
   Agentique Québec — blogue refait (index + articles), 15 octobre 2026
   Chargé après /assets/css/aq-editorial.css (production, gardé pour la tâche hebdomadaire) et après
   /assets/premium/aq-premium.css. Concept : le blogue est un jeu de plans.
   - Index : le bordereau des feuilles (chaque article = une feuille numérotée avec sa vignette).
   - Article : une feuille de dessin. Texte à gauche, cartouche vertical à droite (vignette qui se dessine pendant
     la lecture, liste des sections, numéro de feuille) ; la feuille se ferme sur le cartouche d'appel.
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Jetons propres au blogue
   --------------------------------------------------------------------- */
body.blogue {
  --feuille: #fdfdfb;
  --feuille-bord: rgba(10, 22, 40, .075);
  --feuille-trait: rgba(10, 22, 40, .13);
  --feuille-max: 1180px;
  --pad-g: clamp(26px, 4.4vw, 78px);   /* marge de reliure, à gauche du texte */
  --pad-d: 26px;
  --pad-haut: 72px;
  --rail: 292px;                        /* largeur du cartouche vertical */
  --rail-ecart: 60px;
  --mesure: 700px;                      /* mesure du texte : ~68 caractères */
  --encre-texte: #2b3a4e;
  --encre-douce: #4a5a70;
}

/* ---------------------------------------------------------------------
   1. Barre : deux liens seulement (comme en production). Ils restent visibles de 701 à 1240 px ;
      le menu mobile ne sert qu'au téléphone.
   --------------------------------------------------------------------- */
.blogue .nav-links { gap: 6px; }
.blogue .nav-links .lien-retour {
  font-weight: 600; color: var(--marine-900);
}
.blogue .nav-links .lien-retour[aria-current="page"] { background: rgba(0, 180, 216, .1); box-shadow: inset 0 -2px 0 var(--cyan-500); }
@media (min-width: 701px) {
  #navbar .nav-links { display: flex !important; }
  #navbar .nav-mobile-controls, #navbar .mobile-menu-btn { display: none !important; }
}
@media (max-width: 700px) {
  #navbar .nav-links { display: none !important; }
  #navbar .nav-mobile-controls { display: flex !important; }
}

/* ---------------------------------------------------------------------
   2. Neutraliser les règles de l'ancienne feuille éditoriale qui visent le gabarit de lecture
   --------------------------------------------------------------------- */
main > article.aq-article, main > article.aq-blog-list { max-width: none; margin: 0; padding: 0; }
.aq-article a.btn, .aq-blog-list a.btn { text-decoration: none; overflow-wrap: normal; }
.aq-article a.btn-primary, .aq-blog-list a.btn-primary { color: #fff; }
.aq-article .calque a.btn-primary { color: var(--panneau-btn-texte); }
.aq-article .calque a.btn-glass { color: var(--panneau-btn2-texte); }
.aq-article a.btn-glass, .aq-blog-list a.btn-glass { color: var(--marine-900); }

/* ---------------------------------------------------------------------
   3. Héro d'un article : la photo du sujet, le panneau de verre avec catégorie, titre et ligne de métadonnées
   --------------------------------------------------------------------- */
.aq-entete--article .aq-entete-cadre { min-height: clamp(460px, 64svh, 680px); }
.aq-entete--blogue .aq-entete-cadre { min-height: clamp(420px, 58svh, 620px); }
.aq-entete--article .aq-entete-panneau { position: relative; max-width: min(900px, 100%); padding-right: clamp(24px, 6.4vw, 120px); }
.aq-article .aq-entete .eyebrow, .aq-blog-list .aq-entete .eyebrow {
  display: inline-flex; margin-bottom: 22px; padding: 8px 15px 8px 11px; border: 0;
  font-size: .74rem; letter-spacing: .12em; line-height: 1.3;
}
.aq-article .aq-entete h1 {
  margin-bottom: 22px; font-size: clamp(2.05rem, 1.2rem + 2.3vw, 3.15rem); line-height: 1.07; letter-spacing: -.033em;
}
.aq-article .aq-entete h1.titre-long { font-size: clamp(1.85rem, 1.15rem + 1.8vw, 2.6rem); line-height: 1.1; }
.aq-article .aq-entete .meta-ligne {
  margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(10, 22, 40, .12);
  font-size: .93rem; line-height: 1.55; color: #2a394d;
}
.aq-article .aq-entete .meta-ligne time { font-weight: 650; color: var(--marine-900); font-variant-numeric: tabular-nums; }
.aq-article .aq-entete .meta-ligne a { color: var(--marine-900); font-weight: 650; text-decoration: none; background: linear-gradient(var(--cyan-500), var(--cyan-500)) left 100% / 100% 1.5px no-repeat; padding-bottom: 1px; }
.aq-article .aq-entete .meta-ligne a:hover { color: var(--cyan-850); }
/* numéro de feuille dans le coin du panneau */
.entete-numero { position: absolute; top: clamp(18px, 2.2vw, 30px); right: clamp(18px, 2.2vw, 30px); width: 96px; }
.blogue .aq-entete-texte { color: #26354a; }

/* ---------------------------------------------------------------------
   4. Numéro de feuille (SVG du cartouche)
   --------------------------------------------------------------------- */
.numero-feuille { display: block; width: 100%; max-width: 200px; height: auto; overflow: visible; }
.cartouche-numero { justify-items: end; }
.numero-feuille .nf-cadre { fill: rgba(255, 255, 255, .7); stroke: rgba(10, 22, 40, .28); stroke-width: 1; }
.numero-feuille .nf-filet { stroke: rgba(10, 22, 40, .2); stroke-width: 1; }
.numero-feuille .nf-code { font: 780 25px/1 var(--font-text); letter-spacing: .01em; fill: var(--marine-900); font-variant-numeric: tabular-nums; }
.numero-feuille--compact .nf-code { font-size: 21px; }
.numero-feuille .nf-petit { font: 650 9.5px/1 var(--font-text); letter-spacing: .1em; fill: var(--cyan-750); font-variant-numeric: tabular-nums; }
.numero-feuille .nf-date { font: 600 10px/1 var(--font-text); letter-spacing: .04em; fill: rgba(10, 22, 40, .62); font-variant-numeric: tabular-nums; }
.calque .numero-feuille .nf-date { fill: rgba(255, 255, 255, .7); }
.calque .numero-feuille .nf-cadre { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .32); }
.calque .numero-feuille .nf-filet { stroke: rgba(255, 255, 255, .22); }
.calque .numero-feuille .nf-code { fill: #fff; }
.calque .numero-feuille .nf-petit { fill: var(--panneau-accent); }

/* ---------------------------------------------------------------------
   5. Vignettes : le dessin propre au sujet (mêmes traits que le plan, plus nets, sur papier blanc)
   --------------------------------------------------------------------- */
.plan.vignette { display: block; width: 100%; height: auto; aspect-ratio: 280 / 180; overflow: visible; --plan-halo: #fff; }
.vignette .k1 { stroke-width: 1px; stroke-opacity: .38; }
.vignette .k2 { stroke-width: 1.25px; stroke-opacity: .6; }
.vignette .k3 { stroke-width: 1.8px; stroke-opacity: .7; }
.vignette .dc { stroke-dasharray: 3.5 3; }
.vignette .ds { stroke-dasharray: 7 4; }
.vignette .cy { stroke: var(--cyan-500); stroke-width: 1.6px; stroke-opacity: .95; }
.vignette .cyd { stroke: var(--cyan-500); stroke-width: 1.2px; stroke-opacity: .85; stroke-dasharray: 3.5 3; }
.vignette .fi { fill: var(--marine-900); fill-opacity: .55; }
.vignette .cyp { fill: var(--cyan-500); fill-opacity: .95; }
.vignette .cyp.cyb { fill-opacity: .13; }
.vignette text { font-size: 7.4px; font-weight: 600; letter-spacing: .05em; fill-opacity: .66; stroke-width: 2.6px; }
.vignette .txs { font-size: 7px; }

/* ---------------------------------------------------------------------
   6. ARTICLE — la feuille de lecture
   --------------------------------------------------------------------- */
.lecture { position: relative; isolation: isolate; padding-top: var(--ecart); }
.lecture.est-decoupee { padding-top: 0; }
.lecture-fond, .lecture-rail { position: absolute; inset: var(--ecart) 0 0 0; pointer-events: none; }
.lecture-fond { z-index: -1; }
.lecture-rail { z-index: 2; }
.lecture-fond > .container, .lecture-rail > .container { height: 100%; }

/* La feuille : papier blanc, cadre intérieur, repères de grille ; deux morceaux (haut dans .lecture, bas dans .lecture-fin) */
.lecture-papier { position: relative; max-width: var(--feuille-max); margin-inline: auto; background: var(--feuille); }
.lecture-fond .lecture-papier {
  height: 100%; border-radius: 30px 30px 0 0;
  box-shadow: inset 1px 1px 0 var(--feuille-bord), inset -1px 0 0 var(--feuille-bord), 0 -18px 50px -46px rgba(10, 22, 40, .5);
}
.lecture-papier::before {
  content: ""; position: absolute; pointer-events: none;
  border: 1px solid var(--feuille-trait);
}
.lecture-fond .lecture-papier::before { inset: 14px 14px 0; border-bottom: 0; border-radius: 19px 19px 0 0; }
/* graduations de la marge de reliure (gauche) et du bord droit */
.lecture-fond .lecture-papier::after {
  content: ""; position: absolute; top: 44px; bottom: 0; left: 14px; right: 14px; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, var(--feuille-trait) 0 1px, transparent 1px 160px) left top / 9px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--feuille-trait) 0 1px, transparent 1px 160px) right top / 9px 100% no-repeat;
}
.feuille-reperes { position: absolute; top: 14px; left: 14px; right: 14px; height: 30px; width: calc(100% - 28px); overflow: visible; }
.feuille-reperes line { stroke: var(--feuille-trait); stroke-width: 1; vector-effect: non-scaling-stroke; }
.feuille-reperes text { font: 650 9px/1 var(--font-text); letter-spacing: .12em; fill: rgba(10, 22, 40, .4); }

/* Texte : colonne à gauche, place réservée au cartouche à droite */
.lecture-section { position: relative; display: flow-root; }
.lecture-corps {
  position: relative; z-index: 1; display: flow-root;
  max-width: var(--feuille-max); margin-inline: auto;
  padding-left: var(--pad-g); padding-right: calc(var(--pad-d) + var(--rail) + var(--rail-ecart));
  font-size: 1.0625rem; line-height: 1.76; color: var(--encre-texte);
}
.lecture > .container > .lecture-corps, .lecture-section:first-of-type .lecture-corps { padding-top: var(--pad-haut); }
.lecture > .container > .lecture-corps, .lecture-section:last-of-type .lecture-corps { padding-bottom: 36px; }
.lecture.est-decoupee .lecture-section:first-of-type { padding-top: var(--ecart); }
.lecture-corps > * { max-width: var(--mesure); }
.lecture-corps > * + * { margin-top: 1.1em; }
.aq-article .lecture-corps p, .aq-article .lecture-corps li { line-height: 1.76; }
.lecture-corps > p:first-child, .lecture-corps > :first-child { margin-top: 0; }
.aq-article .lecture-corps h2 {
  margin: 2.15em 0 0; padding: 0; border: 0;
  font-size: clamp(1.5rem, 1.12rem + 1.05vw, 2.02rem); font-weight: 800; line-height: 1.16; letter-spacing: -.026em;
  color: var(--marine-900); scroll-margin-top: 18px; text-wrap: balance;
}
.lecture-section:first-of-type .lecture-corps > h2:first-child, .lecture-corps > h2:first-child { margin-top: 0; }
.lecture-section + .lecture-section .lecture-corps { padding-top: clamp(54px, 4.4vw, 70px); }
.lecture-section + .lecture-section .lecture-corps > h2:first-child { margin-top: 0; }
.aq-article .lecture-corps h2 + * { margin-top: .75em; }
.aq-article .lecture-corps h3 {
  margin: 1.75em 0 0; font-size: 1.19rem; font-weight: 750; line-height: 1.32; letter-spacing: -.012em; color: var(--marine-900);
}
.aq-article .lecture-corps h3 + p { margin-top: .45em; }
.lecture-corps ul, .lecture-corps ol { margin: 1.1em 0 0; padding-left: 1.3em; }
.lecture-corps li + li { margin-top: .5em; }
.lecture-corps ul > li::marker { color: var(--cyan-500); }
.lecture-corps ol > li::marker { color: var(--cyan-750); font-weight: 750; font-variant-numeric: tabular-nums; }
.lecture-corps strong { color: var(--marine-900); font-weight: 700; }
.lecture-corps em { font-style: italic; }
.aq-article .lecture-corps a:not(.btn) {
  color: var(--cyan-750); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: rgba(0, 111, 139, .45); overflow-wrap: anywhere;
}
.aq-article .lecture-corps a:not(.btn):hover { color: var(--marine-900); text-decoration-color: var(--cyan-500); }

/* Encadré « réponse directe » : verre marine ; la première dérivation du schéma y entre */
.aq-article .lecture-corps .reponse-directe {
  margin: 0 0 1.6em; padding: 24px 28px 26px; border: 0; border-radius: 24px;
  font-size: 1.05rem; line-height: 1.7;
}
.aq-article .lecture-corps .reponse-directe strong { color: #fff; }
.lecture-corps .reponse-directe + * { margin-top: 0; }

/* Citation : le brouillon de relance, présenté comme un courriel */
.lecture-corps blockquote {
  position: relative; margin: 1.4em 0 0; padding: 22px 26px 22px 30px; border: 0; border-radius: 6px 20px 20px 6px;
  background: linear-gradient(180deg, #f2f9fb, #f8fbfc); box-shadow: inset 3px 0 0 var(--cyan-500), inset 0 0 0 1px rgba(0, 122, 153, .14);
}
.lecture-corps blockquote p { margin: 0; color: #24364b; font-size: 1.04rem; line-height: 1.72; }
.lecture-corps blockquote.courriel { padding-top: 46px; }
.lecture-corps blockquote.courriel::before {
  content: ""; position: absolute; left: 30px; top: 18px; width: 22px; height: 15px;
  background: var(--cyan-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Cpath d='M1 1h20v13H1zM1 1l10 7 10-7' fill='none' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 15'%3E%3Cpath d='M1 1h20v13H1zM1 1l10 7 10-7' fill='none' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lecture-corps blockquote.courriel::after {
  content: ""; position: absolute; left: 62px; right: 26px; top: 25px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(0, 122, 153, .35) 0 6px, transparent 6px 10px);
}

/* Note de calcul (calculs hypothétiques) : cartouche de calcul en marge cyan */
.lecture-corps .note-calcul, .lecture-corps .note-calcul-liste {
  position: relative; padding: 20px 24px 20px 26px; border-radius: 18px;
  background:
    linear-gradient(rgba(0, 122, 153, .05) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(0, 122, 153, .05) 1px, transparent 1px) 0 0 / 16px 16px,
    #f8fbfc;
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .09);
  font-variant-numeric: tabular-nums;
}
.lecture-corps .note-calcul-liste { list-style: none; padding-left: 26px; }
.lecture-corps .note-calcul-liste > li { position: relative; padding-left: 22px; }
.lecture-corps .note-calcul-liste > li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--cyan-500); }
.lecture-corps .note-calcul-liste > li + li { margin-top: .9em; padding-top: .9em; border-top: 1px dashed rgba(10, 22, 40, .14); }
.lecture-corps .note-calcul-liste > li + li::before { top: calc(.9em + .72em); }

/* Encadrés « questions fréquentes » */
.lecture-corps .faq-bloc {
  margin-top: 12px; padding: 18px 22px 20px 24px; border: 0; border-radius: 18px;
  background: #f5f8f9; box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .075), inset 3px 0 0 rgba(0, 180, 216, .55);
}
.lecture-corps h2 + .faq-bloc { margin-top: 1em; }
.aq-article .lecture-corps .faq-bloc h3 { margin: 0 0 .35em; font-size: 1.06rem; }
.aq-article .lecture-corps .faq-bloc p { margin: 0; font-size: 1rem; line-height: 1.68; color: var(--encre-douce); }

/* Tableaux */
.lecture-corps .table-scroll { margin: 1.4em 0 0; border: 0; border-radius: 18px; overflow-x: auto; box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .1); background: #fff; }
.lecture-corps .table-scroll:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 3px; }
.lecture-corps table { width: 100%; min-width: 560px; margin: 0; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.lecture-corps thead th {
  padding: 13px 16px; background: linear-gradient(160deg, #10304f, var(--marine-900)); color: #fff; text-align: left; vertical-align: bottom;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: none;
}
.lecture-corps td { padding: 13px 16px; border-bottom: 1px solid rgba(10, 22, 40, .08); vertical-align: top; color: var(--encre-texte); }
.lecture-corps tbody tr:nth-child(even) td { background: rgba(10, 22, 40, .022); }
.lecture-corps tbody tr:last-child td { border-bottom: 0; }
.lecture-corps td:first-child { font-weight: 650; color: var(--marine-900); }

/* Note de source */
.aq-article .lecture-corps .source-note {
  padding: 2px 0 2px 16px; border-left: 2px solid rgba(0, 180, 216, .55);
  font-size: .92rem; line-height: 1.62; color: #4f5f75;
}

/* À lire ensuite : carte reliée à la feuille suivante (vignette + numéro) */
.lecture-corps .article-next {
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 20px; align-items: center;
  margin: 1.2em 0 0; padding: 14px 20px 14px 14px; border: 0; border-radius: 18px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .1), 0 14px 30px -26px rgba(10, 22, 40, .5);
  transition: box-shadow var(--t-moyen) var(--ease-std), transform var(--t-moyen) var(--ease-sortie);
}
.lecture-corps .article-next + .article-next { margin-top: 10px; }
.lecture-corps h2 + .article-next, .lecture-corps .faq-bloc + .article-next { margin-top: 1.8em; }
.lecture-corps .article-next .suite-vignette { grid-row: 1 / span 2; padding: 6px 4px; border-radius: 12px; background: #f6f9fa; box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .07); }
.lecture-corps .article-next strong {
  display: block; margin: 0; align-self: end;
  font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-750);
}
.aq-article .lecture-corps .article-next a {
  display: block; margin: 0; align-self: start; color: var(--marine-900); font-size: 1.06rem; font-weight: 700; line-height: 1.4;
  text-decoration: none; overflow-wrap: normal;
}
.lecture-corps .article-next a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lecture-corps .article-next:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(0, 122, 153, .35), 0 18px 36px -26px rgba(10, 22, 40, .55); }
.lecture-corps .article-next:hover a { color: var(--cyan-850); }
.lecture-corps .article-next:focus-within { box-shadow: 0 0 0 3px var(--cyan-700); }
.lecture-corps .article-next a:focus-visible { outline: none; }

/* Sources et transparence */
.lecture-corps .article-sources { margin-top: 2.4em; padding-top: 1.5em; border-top: 1px dashed rgba(10, 22, 40, .18); color: var(--encre-douce); }
.aq-article .lecture-corps .article-sources h2 { margin-top: 0; font-size: 1.22rem; letter-spacing: -.012em; }
.lecture-section + .lecture-section .lecture-corps > .article-sources:first-child { margin-top: 0; }
.aq-article .lecture-corps .article-sources p { margin-top: .6em; font-size: .96rem; line-height: 1.66; color: var(--encre-douce); }

/* Auteur : fiche de signature, à la fin du texte */
.lecture-corps .aq-author-box {
  display: flex; align-items: flex-start; gap: 20px;
  margin: 2.6em 0 0; padding: 24px 26px; border: 0; border-radius: 22px;
  background: linear-gradient(135deg, #f3f8fa 0%, #fbfcfc 70%); box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .08);
}
.lecture-corps .aq-author-box img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(0, 180, 216, .5); }
.aq-article .lecture-corps .aq-author-box p { margin: 0 0 .5em; font-size: .96rem; line-height: 1.64; color: #3a4a60; }
.aq-article .lecture-corps .aq-author-box .aq-author-name { margin-bottom: .2em; font-size: 1.04rem; font-weight: 750; color: var(--marine-900); }
.aq-article .lecture-corps .aq-author-box a { font-size: .94rem; font-weight: 650; }

/* ---------------------------------------------------------------------
   7. Le cartouche vertical (droite) : vignette, sections, numéro de feuille
   --------------------------------------------------------------------- */
.rail-boite {
  position: relative; max-width: var(--feuille-max); height: 100%; margin-inline: auto;
  display: flex; justify-content: flex-end; align-items: flex-start;
  padding: calc(var(--pad-haut) - 14px) var(--pad-d) 40px 0;
}
.rail-boite::before {
  content: ""; position: absolute; top: 14px; bottom: 0; right: calc(var(--pad-d) + var(--rail) + var(--rail-ecart) / 2);
  width: 4px; border-left: 1px solid var(--feuille-trait); border-right: 1px solid var(--feuille-trait);
}
.cartouche {
  position: sticky; top: calc(var(--nav-h) + 26px);
  width: var(--rail); pointer-events: auto;
  display: grid; gap: 16px;
}
.cartouche-vignette {
  position: relative; padding: 14px 12px 10px; border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6f9fa); box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .1), 0 18px 34px -30px rgba(10, 22, 40, .5);
}
.cartouche-vignette::after {
  /* coins de cadrage du plan clé */
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background:
    linear-gradient(var(--cyan-500), var(--cyan-500)) left top / 10px 1.5px no-repeat,
    linear-gradient(var(--cyan-500), var(--cyan-500)) left top / 1.5px 10px no-repeat,
    linear-gradient(var(--cyan-500), var(--cyan-500)) right bottom / 10px 1.5px no-repeat,
    linear-gradient(var(--cyan-500), var(--cyan-500)) right bottom / 1.5px 10px no-repeat;
  opacity: .7;
}
.cartouche-numero { display: grid; grid-template-columns: minmax(0, 1fr); }

/* Liste des sections (construite par blogue.js) : une colonne montante, un disjoncteur par section */
.sommaire {
  position: relative; max-height: max(160px, calc(100vh - var(--nav-h) - 26px - 236px - 92px - 32px));
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 10px 4px 10px 0;
  -webkit-mask-image: linear-gradient(transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%);
}
.sommaire::-webkit-scrollbar { display: none; }
.sommaire ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; }
.sommaire ol::before, .sommaire ol::after {
  content: ""; position: absolute; left: 6.75px; top: 16.5px; bottom: 16px; width: 1.5px; border-radius: 2px;
}
.sommaire ol::before { background: rgba(10, 22, 40, .16); }
.sommaire ol::after { background: var(--cyan-500); bottom: auto; height: var(--trace, 0px); transition: height .2s linear; }
.sommaire li { position: relative; margin: 0; }
.sommaire li::before {
  content: ""; position: absolute; left: -23.5px; top: 12px; z-index: 1; width: 9px; height: 9px; border-radius: 50%;
  background: var(--feuille); box-shadow: inset 0 0 0 1.5px rgba(10, 22, 40, .36);
  transition: background-color .3s var(--ease-std), box-shadow .3s var(--ease-std);
}
.sommaire li.est-lu::before { background: var(--cyan-500); box-shadow: inset 0 0 0 1.5px var(--cyan-500); }
.sommaire li.est-courant::before { background: var(--cyan-400); box-shadow: inset 0 0 0 1.5px var(--cyan-700), 0 0 0 4px rgba(0, 180, 216, .2); }
.aq-article .sommaire a {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  padding: 6px 8px 6px 4px; border-radius: 10px;
  font-size: .86rem; font-weight: 560; line-height: 1.38; color: #405068; text-decoration: none; overflow-wrap: normal;
  transition: color var(--t-rapide) var(--ease-std), background-color var(--t-rapide) var(--ease-std);
}
.aq-article .sommaire a:hover { color: var(--marine-900); background: rgba(10, 22, 40, .045); }
.aq-article .sommaire a:focus-visible { outline: 2px solid var(--cyan-700); outline-offset: -2px; }
.aq-article .sommaire li.est-courant a { color: var(--marine-900); font-weight: 700; }

/* ---------------------------------------------------------------------
   8. Fin de feuille : le cartouche d'appel (verre marine), la lampe L-1 s'allume dans la marge
   --------------------------------------------------------------------- */
.lecture-fin { position: relative; }
.lecture-fin .lecture-papier {
  padding: 4px var(--pad-d) 30px var(--pad-g); border-radius: 0 0 30px 30px;
  box-shadow: inset 1px 0 0 var(--feuille-bord), inset -1px -1px 0 var(--feuille-bord), 0 40px 70px -50px rgba(10, 22, 40, .55);
}
.lecture-fin .lecture-papier::before { inset: 0 14px 14px; border-top: 0; border-radius: 0 0 19px 19px; }
.cartouche-cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; align-items: stretch;
  border-radius: 26px; overflow: hidden;
}
.cartouche-cta > * { padding: clamp(24px, 2.8vw, 36px); }
.cartouche-cta > * + * { border-left: 1px solid var(--panneau-filet); }
.aq-article .cartouche-cta h2 { margin: 0 0 12px; font-size: clamp(1.45rem, 1.05rem + 1.1vw, 2rem); line-height: 1.14; letter-spacing: -.025em; color: #fff; }
.aq-article .cartouche-cta p { margin: 0; max-width: 54ch; font-size: 1.02rem; line-height: 1.62; color: var(--panneau-texte); }
.cartouche-cta-actions { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.cartouche-cta-actions .btn { white-space: nowrap; }
.cartouche-cta-numero { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cartouche-cta--seul { grid-template-columns: 250px minmax(0, 1fr) 150px; }
.cartouche-cta--seul .cartouche-cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.cartouche-cta-code { display: flex; align-items: center; }
.cartouche-cta-code .numero-feuille { max-width: 200px; }
.cartouche-logo { display: block; width: 88px; padding: 8px 11px; border-radius: 13px; background: #f3f3f3; }
.cartouche-logo img { width: 100%; height: auto; }

/* ---------------------------------------------------------------------
   9. Accents propres à chaque article
   --------------------------------------------------------------------- */
/* SEAO : le parcours en cinq repères (liste ordonnée) et les limites */
.lecture-corps .parcours-reperes { list-style: none; counter-reset: repere; padding-left: 0; }
.lecture-corps .parcours-reperes > li { position: relative; counter-increment: repere; padding: 0 0 0 52px; min-height: 34px; }
.lecture-corps .parcours-reperes > li + li { margin-top: 1em; }
.lecture-corps .parcours-reperes > li::before {
  content: ""; position: absolute; left: 6px; top: 2px; width: 26px; height: 23px;
  background: linear-gradient(180deg, #e6f8fc, #d3f1f8);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.lecture-corps .parcours-reperes > li::after {
  content: counter(repere); position: absolute; left: 6px; top: 9px; width: 26px; text-align: center;
  font-size: .72rem; font-weight: 800; color: var(--cyan-850); font-variant-numeric: tabular-nums;
}
.lecture-corps .parcours-reperes > li:not(:last-child) { background: linear-gradient(rgba(0, 122, 153, .4), rgba(0, 122, 153, .4)) 18.5px 32px / 1.5px calc(100% - 22px) no-repeat; padding-bottom: .2em; }
.lecture-corps .liste-limites { list-style: none; padding-left: 0; }
.lecture-corps .liste-limites > li { position: relative; padding-left: 34px; }
.lecture-corps .liste-limites > li::before {
  content: ""; position: absolute; left: 4px; top: .42em; width: 17px; height: 15px;
  border: 1.5px solid rgba(10, 22, 40, .45); border-bottom-width: 1.5px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%); background: transparent;
}
.lecture-corps .liste-limites > li::after { content: ""; position: absolute; left: 11.5px; top: calc(.42em + 6px); width: 1.5px; height: 5px; background: rgba(10, 22, 40, .55); }

/* Coûts : formule de rentabilité et bordereau de prix */
.lecture-corps .formule {
  padding: 22px 26px; border-radius: 18px; text-align: center;
  background: linear-gradient(160deg, #0f2f4e, var(--marine-900)); color: #e9f4f9;
  font-size: 1.08rem; line-height: 1.6; box-shadow: var(--panneau-ombre);
}
.lecture-corps .formule em { font-style: normal; font-weight: 600; letter-spacing: -.005em; }
.lecture-corps .bordereau-prix th:first-child { width: 22%; }
.lecture-corps .bordereau-prix th:nth-child(2) { width: 27%; }
.lecture-corps .bordereau-prix td:nth-child(2) { font-weight: 700; color: var(--marine-900); font-variant-numeric: tabular-nums; }

/* IA agentique : fiches de scénario (étiquette en colonne) et règle « préparer, proposer, approuver, agir » */
.lecture-corps .fiche-ligne { position: relative; padding-left: 196px; }
.lecture-corps .fiche-ligne > strong:first-child {
  position: absolute; left: 0; top: 0; width: 176px; padding-top: 1px;
  font-size: .82rem; font-weight: 750; line-height: 1.5; letter-spacing: .02em; color: var(--cyan-850);
}
.lecture-corps .fiche-ligne + .fiche-ligne { margin-top: .9em; padding-top: .9em; border-top: 1px dashed rgba(10, 22, 40, .13); }
.lecture-corps .fiche-ligne + .fiche-ligne > strong:first-child { top: .9em; }
.lecture-corps .decision-flow {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin: 1.5em 0 0; padding: 0; counter-reset: none;
}
.lecture-corps .decision-flow span {
  position: relative; display: flex; align-items: center; min-height: 92px; margin: 0 14px 0 0; padding: 16px 16px 16px 18px;
  border: 0; border-radius: 16px; background: linear-gradient(160deg, #10304f, var(--marine-900)); color: #e8f3f8;
  font-size: .93rem; font-weight: 650; line-height: 1.4; box-shadow: var(--panneau-ombre);
}
.lecture-corps .decision-flow span:nth-child(3) { background: linear-gradient(160deg, #0a5f78, #07425a); }
.lecture-corps .decision-flow span:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 12px; height: 12px; margin-top: -6px; z-index: 1;
  background: var(--cyan-500); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.lecture-corps .decision-flow span:last-child { margin-right: 0; }

/* Rapprochement : questions fréquentes regroupées en encadrés (même rendu que les autres articles) */

/* Structuration : six étapes reliées, et dictionnaire de données */
.aq-article .lecture-corps h3.etape { position: relative; padding-left: 44px; }
.lecture-corps h3.etape::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 8px;
  background: #e6f8fc; box-shadow: inset 0 0 0 1.5px rgba(0, 122, 153, .4);
}
.lecture-corps h3.etape::after {
  content: ""; position: absolute; left: 9px; top: calc(.1em + 9px); width: 10px; height: 10px; border-radius: 2px;
  background: var(--cyan-500);
}
.lecture-corps h3.etape + p { padding-left: 44px; }
.lecture-corps .dictionnaire td:nth-child(2) { font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--cyan-850); font-weight: 650; white-space: nowrap; }

/* Confirmations : chaque contrôle de la commande coché comme une liste de livraison */
.lecture-corps .controle { position: relative; padding-left: 40px; }
.lecture-corps .controle::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 6px;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(0, 122, 153, .55);
}
.lecture-corps .controle::after {
  content: ""; position: absolute; left: 5px; top: calc(.3em + 5px); width: 12px; height: 12px; background: var(--cyan-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.4 2.4L10 3.2' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.4 2.4L10 3.2' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lecture-corps .controle-bilan {
  padding: 16px 20px; border-radius: 16px; background: #eef8fb; box-shadow: inset 0 0 0 1px rgba(0, 122, 153, .2);
  color: #1f3348; font-weight: 550;
}

/* ---------------------------------------------------------------------
   10. INDEX — le bordereau des feuilles
   --------------------------------------------------------------------- */
.bordereau { padding-top: var(--ecart); }
.bordereau-feuille {
  position: relative; max-width: var(--feuille-max); margin-inline: auto; padding: 0 0 18px;
  border-radius: 30px; background: var(--feuille);
  box-shadow: inset 0 0 0 1px var(--feuille-bord), 0 40px 80px -56px rgba(10, 22, 40, .5);
}
.bordereau-feuille::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--feuille-trait); border-radius: 19px; pointer-events: none; }
.bordereau-tete { position: relative; height: 58px; }
.aq-blog-list .liste { position: relative; margin: 0; padding: 4px clamp(18px, 2.4vw, 34px) 0; }

.aq-blog-list .carte-article {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 92px clamp(200px, 21vw, 262px) minmax(0, 1fr) 44px;
  grid-template-areas: "num vig date fl" "num vig titre fl" "num vig resume fl";
  column-gap: clamp(18px, 2.4vw, 34px);
  margin: 0; padding: 22px 12px 22px 8px; border: 0; border-radius: 22px;
  background: transparent; text-decoration: none; color: inherit;
  transition: background-color var(--t-moyen) var(--ease-std), box-shadow var(--t-moyen) var(--ease-std);
}
.aq-blog-list .carte-article + .carte-article { margin-top: 2px; }
.aq-blog-list .carte-article + .carte-article::before {
  content: ""; position: absolute; left: 8px; right: 12px; top: -1px; height: 1px; background: rgba(10, 22, 40, .1);
}
.aq-blog-list .carte-article:hover { transform: none; background: rgba(0, 180, 216, .055); box-shadow: inset 0 0 0 1px rgba(0, 122, 153, .16); }
.aq-blog-list .carte-article:hover::before, .aq-blog-list .carte-article:hover + .carte-article::before { opacity: 0; }
.aq-blog-list .carte-article:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 2px; }
.carte-numero { grid-area: num; align-self: start; padding-top: 4px; }
.carte-numero .numero-feuille { width: 84px; }
.carte-vignette {
  grid-area: vig; position: relative; padding: 10px 10px 6px; border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f6f9fa); box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .1);
  transition: box-shadow var(--t-moyen) var(--ease-std);
}
.carte-article:hover .carte-vignette { box-shadow: inset 0 0 0 1px rgba(0, 122, 153, .35), 0 16px 30px -24px rgba(0, 122, 153, .6); }
.carte-article:hover .vignette .k2 { stroke-opacity: .72; }
.aq-blog-list .carte-article .date {
  grid-area: date; align-self: end; margin: 0 0 8px;
  font-size: .9rem; font-weight: 650; letter-spacing: .005em; color: var(--cyan-750);
  font-variant-numeric: tabular-nums;
}
.aq-blog-list .carte-article h2 {
  grid-area: titre; margin: 0; padding: 0; border: 0;
  font-size: clamp(1.25rem, 1rem + .7vw, 1.62rem); font-weight: 780; line-height: 1.2; letter-spacing: -.022em; color: var(--marine-900);
  text-wrap: balance; transition: color var(--t-rapide) var(--ease-std);
}
.aq-blog-list .carte-article p {
  grid-area: resume; align-self: start; margin: 10px 0 0; max-width: 68ch;
  font-size: 1rem; line-height: 1.6; color: var(--encre-douce);
}
.carte-fleche {
  grid-area: fl; justify-self: end; width: 40px; height: 40px; padding: 9px; border-radius: 50%;
  color: var(--marine-900); background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .14);
  transition: transform var(--t-moyen) var(--ease-sortie), background-color var(--t-moyen) var(--ease-std), color var(--t-moyen) var(--ease-std);
}
.carte-article:hover .carte-fleche { transform: translateX(4px); background: var(--marine-900); color: #fff; }
.carte-article:hover h2 { color: #0d2c4a; }
/* carte ajoutée sans vignette ni numéro (tâche hebdomadaire) : une feuille vierge tient la place */
.aq-blog-list .carte-article:not(:has(.carte-vignette))::after {
  content: ""; grid-area: vig; align-self: stretch; min-height: 120px; border-radius: 16px;
  background: repeating-linear-gradient(0deg, rgba(10, 22, 40, .05) 0 1px, transparent 1px 18px), linear-gradient(180deg, #fff, #f6f9fa);
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .1);
}

/* ---------------------------------------------------------------------
   11. Pied de page du blogue (liens de production seulement)
   --------------------------------------------------------------------- */
.blogue .footer-inner--blogue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.blogue .footer-inner--blogue .footer-brand { display: flex; align-items: center; gap: 16px; }
.blogue .footer-inner--blogue .footer-logo { margin: 0; }
.blogue .footer-inner--blogue .logo-text { margin: 0; }
.blogue .footer-bottom--blogue { justify-content: flex-start; font-size: .88rem; line-height: 2; }
.blogue .footer-bottom--blogue a { display: inline-block; padding: 0 2px; color: var(--pied-lien); text-underline-offset: 4px; }
.blogue .footer-bottom--blogue a:hover { color: #fff; }
.pied-cartouche { display: block; width: 220px; height: auto; overflow: visible; }
.pied-cartouche line, .pied-cartouche rect, .pied-cartouche path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.pied-cartouche text { font: 650 9px/1 var(--font-text); letter-spacing: .12em; fill: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.pied-cartouche .pc-code { font-size: 15px; font-weight: 780; fill: #fff; letter-spacing: .04em; }
.pied-cartouche .pc-cyan { stroke: var(--cyan-400); stroke-opacity: .7; }

/* ---------------------------------------------------------------------
   12. Adaptatif
   --------------------------------------------------------------------- */
/* Sous 1200 px : le cartouche quitte la marge droite et devient une bande en tête de feuille */
@media (max-width: 1199px) {
  body.blogue { --rail-ecart: 0px; --bande: 196px; }
  .lecture-corps { padding-right: var(--pad-g); }
  .lecture-corps > * { max-width: 760px; }
  .lecture > .container > .lecture-corps, .lecture-section:first-of-type .lecture-corps { padding-top: calc(var(--pad-haut) + var(--bande)); }
  .lecture-rail { bottom: auto; height: calc(var(--pad-haut) + var(--bande)); }
  .rail-boite { justify-content: flex-start; padding: 42px var(--pad-g) 0; }
  .rail-boite::before { display: none; }
  .cartouche { position: static; width: 100%; grid-template-columns: minmax(0, 260px) 132px; align-items: end; gap: 18px; }
  .cartouche .sommaire { display: none; }
  .cartouche-vignette { max-width: 260px; }
  .cartouche-cta { grid-template-columns: minmax(0, 1fr) auto; }
  .cartouche-cta-numero { display: none; }
  .cartouche-cta--seul { grid-template-columns: minmax(0, 1fr); }
  .cartouche-cta--seul .cartouche-cta-code { display: none; }
}
@media (max-width: 960px) {
  .aq-blog-list .carte-article {
    grid-template-columns: 76px minmax(0, 1fr) 40px;
    grid-template-areas: "num vig fl" "date date date" "titre titre titre" "resume resume resume";
    row-gap: 0; align-items: start;
  }
  .carte-vignette { max-width: 260px; margin-bottom: 18px; }
  .carte-numero .numero-feuille { width: 70px; }
  .carte-fleche { align-self: start; }
  .lecture-corps .fiche-ligne { padding-left: 0; }
  .lecture-corps .fiche-ligne > strong:first-child { position: static; display: block; width: auto; margin-bottom: 2px; }
  .lecture-corps .decision-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .lecture-corps .decision-flow span:nth-child(2)::after { display: none; }
  .lecture-corps .decision-flow span:nth-child(2) { margin-right: 0; }
}
@media (max-width: 760px) {
  .cartouche-cta { grid-template-columns: minmax(0, 1fr); }
  .cartouche-cta > * + * { border-left: 0; border-top: 1px solid var(--panneau-filet); }
  .cartouche-cta-actions .btn { white-space: normal; }
}
@media (max-width: 700px) {
  body.blogue { --pad-g: 20px; --pad-d: 20px; --pad-haut: 52px; --bande: 156px; }
  .lecture-fond .lecture-papier, .bordereau-feuille { border-radius: 24px 24px 0 0; }
  .bordereau-feuille { border-radius: 24px; }
  .lecture-fin .lecture-papier { border-radius: 0 0 24px 24px; }
  .lecture-papier::before, .bordereau-feuille::before { display: none; }
  .lecture-fond .lecture-papier::after { display: none; }
  .feuille-reperes { display: none; }
  .lecture-corps { font-size: 1.02rem; }
  .rail-boite { padding: 26px var(--pad-g) 0; }
  .cartouche { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .cartouche-vignette { padding: 8px 8px 4px; }
  .aq-article .lecture-corps .reponse-directe { padding: 20px 20px 22px; border-radius: 20px; }
  .lecture-corps .aq-author-box { flex-direction: column; padding: 20px; }
  .lecture-corps .article-next { grid-template-columns: 84px minmax(0, 1fr); gap: 2px 14px; }
  .lecture-corps .decision-flow { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .lecture-corps .decision-flow span { min-height: 0; margin-right: 0; }
  .lecture-corps .decision-flow span:not(:last-child)::after { display: block; right: auto; left: 50%; top: auto; bottom: -13px; margin: 0 0 0 -6px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
  .lecture-corps .parcours-reperes > li { padding-left: 46px; }
  .entete-numero { display: none; }
  .aq-entete--article .aq-entete-panneau { padding-right: 20px; }
  .aq-article .aq-entete h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .aq-article .aq-entete h1.titre-long { font-size: clamp(1.55rem, 6.4vw, 1.9rem); }
  .aq-blog-list .liste { padding: 0 8px; }
  .bordereau-tete { height: 18px; }
  .aq-blog-list .carte-article { padding: 18px 8px; grid-template-columns: 64px minmax(0, 1fr) 36px; column-gap: 12px; }
  .carte-numero .numero-feuille { width: 60px; }
  .carte-fleche { width: 36px; height: 36px; padding: 8px; }
  .blogue .footer-bottom--blogue { line-height: 2.2; }
  .pied-cartouche { display: none; }
}
@media (max-width: 420px) {
  .lecture-corps table { min-width: 520px; }
}

/* ---------------------------------------------------------------------
   13. Mouvement réduit
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .sommaire ol::after { transition: none; }
  .aq-blog-list .carte-article:hover .carte-fleche, .lecture-corps .article-next:hover { transform: none; }
}

/* Premier écran mobile des articles (1er novembre 2026) : en-tête moins haut, début du texte plus tôt */
@media (max-width: 700px) {
  .aq-entete--article .aq-entete-cadre { min-height: clamp(420px, 58svh, 500px); }
}
