/* p-blog.css : le blog (/blog/) et ses articles (/blog/<slug>/), repris d'odratta.com le 09/11/2026.
   Chargé seulement par ces pages, après site.css et studio.css. Chaque classe commence par pbl-. */

/* ---------- Héros : le blog et chaque article ---------- */
.pbl-heros h1 { max-width: 18ch; }
.pbl-legende { margin: 14px 0 0; font-size: var(--t-6); color: var(--c-texte-2); }
.pbl-categorie { margin: 0 0 14px; font-size: var(--t-6); font-weight: 600; letter-spacing: 0.01em; color: var(--c-texte-2); }
.pbl-article-titre { max-width: 22ch; }
.pbl-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 22px 0 0; padding: 0; font-size: var(--t-6); color: var(--ardoise); font-variant-numeric: tabular-nums; }
.pbl-meta > span + span::before { content: '·'; margin: 0 10px; color: var(--ardoise-2); }
.heros-produit .pbl-meta { color: var(--c-texte-2); }
.heros-produit .pbl-meta > span + span::before { color: rgb(255 255 255 / 0.6); }
.pbl-chapeau { max-width: 34em; margin: 22px 0 0; font-size: var(--t-4); line-height: 1.55; color: var(--c-texte-2); }

/* ---------- Le blog : l'article à la une ---------- */
.pbl-une { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.pbl-couverture { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-bloc); background: var(--bleu); color: var(--sur-fonce); overflow: hidden; }
.pbl-couverture .pbl-categorie { color: var(--sur-bleu); }
.pbl-couverture h2 { max-width: 20ch; font-size: var(--t-2); }
.pbl-couverture h2 a { color: inherit; text-decoration: none; }
.pbl-couverture h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pbl-couverture h2 a:focus-visible { outline: none; }
.pbl-couverture:has(h2 a:focus-visible) { outline: 3px solid var(--bleu-appui); outline-offset: 3px; }
.pbl-couverture .mark { text-decoration-color: rgb(255 255 255 / 0.75); }
.pbl-adresse { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; margin: auto 0 0; padding: clamp(28px, 4vw, 56px) 0 0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem); letter-spacing: 0; }
.pbl-adresse-morceau { display: grid; gap: 8px; }
.pbl-adresse-texte { padding: 10px 14px; border: 1px solid rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.06); white-space: nowrap; }
.pbl-adresse-morceau:first-child .pbl-adresse-texte { border-radius: var(--r-petit) 0 0 var(--r-petit); }
.pbl-adresse-morceau:last-child .pbl-adresse-texte { border-left: 0; border-radius: 0 var(--r-petit) var(--r-petit) 0; background: #fff; color: var(--bleu-appui); }
.pbl-adresse-etiquette { padding-left: 2px; font-family: var(--police-texte); font-size: 0.8125rem; color: var(--sur-bleu); }
.pbl-couverture-pied { display: flex; align-items: center; justify-content: space-between; margin: clamp(24px, 3vw, 36px) 0 0; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 0.35); font-size: var(--t-6); color: var(--sur-bleu); }
.pbl-couverture-pied .ic { width: 20px; height: 20px; color: #fff; transition: transform 200ms var(--facile); }
.pbl-couverture:hover .pbl-couverture-pied .ic { transform: translateX(4px); }
.pbl-une-texte { display: flex; flex-direction: column; justify-content: center; }
.pbl-une-extrait { margin: 0; font-size: var(--t-4); line-height: 1.55; color: var(--encre); }
.pbl-sommaire { margin: 28px 0 0; padding: 20px 0 0; border-top: var(--trait); }
.pbl-sommaire-titre { margin: 0 0 10px; font-size: var(--t-6); font-weight: 600; color: var(--ardoise-2); }
.pbl-sommaire ol { margin: 0; padding: 0; list-style: none; }
.pbl-sommaire li { display: flex; gap: 10px; padding: 8px 0; border-bottom: var(--trait-fin); font-size: var(--t-5); line-height: 1.4; }
.pbl-num { flex: none; min-width: 1.5em; color: var(--bleu-clair); font-variant-numeric: tabular-nums; }
.pbl-une-texte .pbl-meta { margin-top: 20px; }
.pbl-lire { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 18px; font-weight: 600; color: var(--bleu-clair); text-decoration: underline; text-decoration-color: var(--bord-bleu); text-underline-offset: 4px; }
.pbl-lire:hover { text-decoration-color: currentColor; }
.pbl-lire .ic { width: 18px; height: 18px; transition: transform 200ms var(--facile); }
.pbl-lire:hover .ic { transform: translateX(3px); }

/* ---------- Le blog : les sujets ---------- */
.pbl-sujets-titre { max-width: 22ch; margin-bottom: clamp(32px, 4vw, 48px); }
.pbl-groupes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: var(--trait); }
.pbl-groupe { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 48px); padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: var(--trait-fin); scroll-margin-top: 96px; }
.pbl-groupe-nom { display: flex; align-items: center; gap: 12px; margin: 0; font-size: var(--t-3); }
/* Le pictogramme du thème, seul devant le nom (sans pastille de couleur derrière). */
.pbl-pictogramme { display: inline-grid; flex: none; place-items: center; color: var(--bleu); }
.pbl-pictogramme .ic { width: 22px; height: 22px; }
.pbl-groupe-portee { max-width: 34ch; margin: 12px 0 0; font-size: var(--t-5); line-height: 1.55; color: var(--ardoise); }
.pbl-lignes { margin: 0; padding: 0; list-style: none; }
.pbl-ligne { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: clamp(20px, 2.6vw, 36px); align-items: center; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--filet); border-radius: var(--r-bloc); background: var(--surface); transition: border-color 150ms ease, box-shadow 200ms ease; }
.pbl-ligne:hover { border-color: var(--filet-fort); box-shadow: var(--ombre-2); }
.pbl-ligne h4 { margin: 0; font-size: var(--t-4); }
.pbl-ligne h4 a { color: var(--encre); text-decoration: none; }
.pbl-ligne h4 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pbl-ligne h4 a:hover { color: var(--bleu-clair); }
.pbl-ligne-extrait { margin: 10px 0 0; font-size: var(--t-6); line-height: 1.6; color: var(--ardoise); }
.pbl-ligne .pbl-meta { margin-top: 12px; }
.pbl-ligne-une { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 20px; border: 1px solid var(--bord-bleu); border-radius: var(--r-bloc); background: var(--calque); }
.pbl-ligne-une a { font-family: var(--police-titre); font-size: var(--t-4); font-weight: 600; line-height: 1.3; color: var(--bleu-texte); text-underline-offset: 4px; }
/* « À la une » : un intitulé écrit, pas une pastille. */
.pbl-etiquette { flex: none; color: var(--bleu-texte); font-size: 0.875rem; font-weight: 650; }
.pbl-vignette { position: relative; }
.pbl-vignette .st-navigateur { box-shadow: none; }
.pbl-reperes { position: absolute; inset: 32px 0 0; pointer-events: none; }
.pbl-repere { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--bleu); color: #fff; font-size: 0.75rem; font-weight: 700; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.9); }
.pbl-flux { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pbl-flux li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--filet); border-radius: var(--r-petit); background: var(--gris-fond); font-size: 0.875rem; font-weight: 500; color: var(--encre); }
.pbl-flux li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu); }
.pbl-flux li:last-child { border-color: var(--bord-bleu); background: var(--calque); color: var(--bleu-texte); }
.pbl-services { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0 0; padding: 0; list-style: none; }
.pbl-service { display: inline; font-size: var(--t-6); font-weight: 600; color: var(--encre); text-decoration: underline; text-decoration-color: var(--filet-fort); text-underline-offset: 4px; }
.pbl-service:hover { color: var(--bleu-clair); text-decoration-color: currentColor; }
/* La flèche suit le dernier mot (le lien est en ligne : elle ne part pas seule à la ligne). */
.pbl-service .ic { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; transition: transform 200ms var(--facile); }
.pbl-service:hover .ic { transform: translateX(3px); }

/* ---------- Le blog : la question ---------- */
.pbl-question { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; }
.pbl-question h2 { font-size: var(--t-2); }
.pbl-question-texte p { margin: 0; font-size: var(--t-4); line-height: 1.5; color: var(--ardoise); }
.pbl-question-texte .pbl-pastille { margin-top: 12px; }
/* Le délai de réponse : une ligne avec son horloge, sans pastille. */
.pbl-pastille { display: flex; align-items: center; gap: 8px; color: var(--bleu-texte) !important; font-size: var(--t-6) !important; font-weight: 600; }
.pbl-pastille .ic { flex: none; width: 16px; height: 16px; }

/* ---------- L'article ---------- */
.pbl-corps { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pbl-rail { position: sticky; top: 96px; }
.pbl-rail-titre { margin: 0 0 10px; font-size: var(--t-6); font-weight: 600; color: var(--ardoise-2); }
.pbl-rail ol { margin: 0; padding: 0; list-style: none; border-top: var(--trait); }
.pbl-rail li a { display: flex; gap: 8px; padding: 10px 0; border-bottom: var(--trait-fin); font-size: var(--t-6); line-height: 1.4; color: var(--ardoise); text-decoration: none; }
.pbl-rail li a:hover { color: var(--bleu-clair); }
.pbl-texte { font-size: var(--t-5); line-height: 1.7; color: var(--encre); }
.pbl-texte h2 { margin: clamp(40px, 5vw, 56px) 0 16px; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); scroll-margin-top: 96px; }
.pbl-texte h2:first-child { margin-top: 0; }
.pbl-texte h2 .pbl-num { margin-right: 4px; }
.pbl-texte p { margin: 0 0 18px; }
.pbl-texte > p, .pbl-texte > ul, .pbl-texte > ol, .pbl-texte > .pbl-note { max-width: 34em; }
.pbl-texte a:not([class]) { color: var(--bleu-clair); text-decoration: underline; text-decoration-color: var(--bord-bleu); text-underline-offset: 3px; }
.pbl-texte a:not([class]):hover { text-decoration-color: currentColor; }
.pbl-liste { display: grid; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.pbl-liste li { position: relative; padding-left: 26px; }
.pbl-liste li::before { content: ''; position: absolute; top: 0.62em; left: 4px; width: 9px; height: 9px; border-radius: 2px; background: var(--bleu); }
.pbl-liste strong { color: var(--encre); font-weight: 650; }
.pbl-note { margin: 32px 0 0; padding: 20px 24px; border: 1px solid var(--bord-bleu); border-radius: var(--r-bloc); background: var(--calque); color: var(--bleu-texte); }
.pbl-note p { margin: 0; }
.pbl-figure { margin: 32px 0; }
.pbl-figure figcaption { margin-top: 12px; font-size: var(--t-6); line-height: 1.55; color: var(--ardoise-2); }
.pbl-figure .st-navigateur-vue { aspect-ratio: 16 / 10; }
.pbl-figure-flux { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--filet); border-radius: var(--r-bloc); background: var(--gris-fond); }
.pbl-chaine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pbl-chaine li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-6); font-weight: 600; color: var(--encre); }
.pbl-chaine-etape { padding: 8px 12px; border: 1px solid var(--filet-fort); border-radius: var(--r-petit); background: var(--surface); }
.pbl-chaine li:last-child .pbl-chaine-etape { border-color: var(--bord-bleu); background: var(--calque); color: var(--bleu-texte); }
.pbl-chaine .ic { width: 16px; height: 16px; color: var(--bleu-clair); }
.pbl-figure-flux figcaption { margin-top: 14px; }

/* Invitation en fin d'article */
.pbl-invite { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-bloc); background: var(--bleu); color: var(--sur-fonce); --focus: #fff; }
.pbl-invite h2 { max-width: 18ch; font-size: var(--t-2); }
.pbl-invite .mark { text-decoration-color: rgb(255 255 255 / 0.75); }
.pbl-invite-texte { margin: 16px 0 0; max-width: 40em; font-size: var(--t-4); line-height: 1.55; color: var(--sur-bleu); }
.pbl-invite-actions { display: grid; gap: 18px; justify-items: start; }
.pbl-invite .pbl-services { margin: 0; flex-direction: column; gap: 10px; }
.pbl-invite .pbl-service { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.pbl-invite .pbl-service:hover { color: #fff; text-decoration-color: #fff; }
.pbl-invite .btn { --fond: #fff; --texte: var(--bleu-appui); --fond-survol: var(--sur-bleu); --fond-appui: #cfdcff; border-color: transparent; }

/* À lire ensuite */
.pbl-invite-section { padding: 0 0 var(--e-section); }
.pbl-suite-section { border-top: var(--trait-fin); }
.pbl-suite .pbl-ligne { position: relative; }
.pbl-suite .pbl-categorie { margin-bottom: 8px; color: var(--ardoise-2); }
.pbl-suite h3 { margin: 0; font-size: var(--t-4); }
.pbl-suite .pbl-lire::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-bloc); }
.pbl-suite { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.pbl-suite h2 { font-size: var(--t-2); }
.pbl-suite .pbl-ligne { grid-template-columns: minmax(0, 1fr) auto; }
.pbl-suite .pbl-ligne-fleche { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--filet-fort); color: var(--encre); }
.pbl-suite .pbl-ligne-fleche .ic { width: 18px; height: 18px; transition: transform 200ms var(--facile); }
.pbl-suite .pbl-ligne:hover .pbl-ligne-fleche .ic { transform: translateX(3px); }
.pbl-tous { margin: 18px 0 0; font-weight: 600; }
.pbl-suite-seul { display: flex; justify-content: center; }

@media (max-width: 1023px) {
  .pbl-une, .pbl-groupe, .pbl-suite { grid-template-columns: minmax(0, 1fr); }
  .pbl-question { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .pbl-corps { grid-template-columns: minmax(0, 1fr); }
  .pbl-rail { position: static; }
  .pbl-invite { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 699px) {
  .pbl-ligne { grid-template-columns: minmax(0, 1fr); }
  .pbl-suite .pbl-ligne { grid-template-columns: minmax(0, 1fr); }
  .pbl-suite .pbl-ligne-fleche { display: none; }
  .pbl-adresse-texte { white-space: normal; overflow-wrap: anywhere; }
  .pbl-adresse-morceau { flex: 1 1 100%; }
  .pbl-adresse-morceau:first-child .pbl-adresse-texte { border-radius: var(--r-petit) var(--r-petit) 0 0; }
  .pbl-adresse-morceau:last-child .pbl-adresse-texte { border-left: 1px solid rgb(255 255 255 / 0.4); border-top: 0; border-radius: 0 0 var(--r-petit) var(--r-petit); }
  .pbl-adresse-morceau:first-child { gap: 0; }
  .pbl-adresse-morceau:first-child .pbl-adresse-etiquette { order: 2; padding: 6px 2px 10px; }
  .pbl-invite .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pbl-ligne, .pbl-couverture-pied .ic, .pbl-lire .ic, .pbl-service .ic, .pbl-suite .pbl-ligne-fleche .ic { transition: none; }
  .pbl-couverture:hover .pbl-couverture-pied .ic, .pbl-lire:hover .ic, .pbl-service:hover .ic, .pbl-suite .pbl-ligne:hover .pbl-ligne-fleche .ic { transform: none; }
}
nav.pbl-suite-section { padding: clamp(32px, 4vw, 48px) 0; }
nav.pbl-suite-section .pbl-tous { margin: 0; }
@media (max-width: 599px) { .pbl-meta { column-gap: 16px; } .pbl-meta > span + span::before { content: none; } }
