/* LP Toolbox 1.3.1 — carte d'outils des articles (toujours ouverte) */
.lptb{--navy:#1c2746;--navy2:#2a3a66;--gold:#c5882c;--goldsoft:#f6ead3;--cream:#f8f4ec;--line:#f0e7d7;--line2:#e4d9c3;--muted:#64748b;--ink:#1f2937;
  box-sizing:border-box;background:#fff;color:var(--ink);border:1px solid var(--line2);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;
  box-shadow:0 10px 30px -18px rgba(28,39,70,.35);font-family:Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;font-size:14px;line-height:1.4;position:relative}
.lptb *{box-sizing:border-box}
.lptb svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lptb a,.lptb button{font:inherit;text-decoration:none}
.lptb button{cursor:pointer}
.lptb--inline{margin:0 0 22px}
.lptb--col{position:sticky;top:var(--lptb-top,90px)}
.lptb__lab{margin:0;font-family:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}

.lptb__ia{display:flex;align-items:center;gap:12px;background:var(--navy);color:#fff;border-radius:12px;padding:13px 14px;transition:background .15s}
.lptb__ia:hover,.lptb__ia:focus-visible{background:var(--navy2);color:#fff}
.lptb__ico{width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:none}
.lptb__ico svg{width:19px;height:19px;stroke:#fff}
.lptb__txt strong{display:block;font-size:14.5px;font-weight:600}
.lptb__txt span{display:block;font-size:12px;color:#c9d2ee;margin-top:1px}
.lptb__arr{margin-left:auto;color:#c9d2ee}
.lptb__arr svg{width:16px;height:16px}

.lptb__acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px}
.lptb__act{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;color:var(--navy);border:1px solid var(--line2);border-radius:12px;padding:10px 2px 8px;font-size:11px;font-weight:600;white-space:nowrap;min-width:0;letter-spacing:-.01em;transition:border-color .15s,background .15s}
.lptb__act:hover,.lptb__act:focus-visible{border-color:var(--gold);background:var(--cream);color:var(--navy)}
.lptb__act.is-on{background:var(--goldsoft);border-color:var(--gold);color:#7a4f0e}
.lptb__act.is-on svg{fill:currentColor}
.lptb__lock{display:none;position:absolute;top:5px;right:6px;color:#9aa4b8;font-style:normal}
.lptb__lock svg{width:11px;height:11px}
.is-visitor [data-login] .lptb__lock{display:block}

.lptb__share{display:flex;flex-direction:column;gap:2px;border:1px solid var(--line2);border-radius:12px;background:var(--cream);padding:6px}
.lptb__share[hidden]{display:none}
.lptb__share a,.lptb__share button{display:flex;align-items:center;gap:10px;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:8px;font-size:13px;font-weight:600;color:var(--navy);width:100%}
.lptb__share a:hover,.lptb__share button:hover,.lptb__share a:focus-visible,.lptb__share button:focus-visible{background:#fff}
.lptb__share svg{width:16px;height:16px;color:var(--gold)}

.lptb__more{display:flex;flex-direction:column;gap:12px}
.lptb__more>summary{display:none;list-style:none;cursor:pointer;align-items:center;justify-content:center;gap:6px;color:var(--navy);font-weight:700;font-size:12.5px;padding:2px 0}
.lptb__more>summary::-webkit-details-marker{display:none}
.lptb__more>summary svg{width:14px;height:14px;transition:transform .15s}
.lptb__more[open]>summary svg{transform:rotate(180deg)}
.lptb__more[open]{display:flex}
.lptb__more:not([open])>*:not(summary){display:none}

.lptb__guide{display:flex;align-items:center;gap:10px;border:1px solid var(--line2);border-radius:12px;padding:10px 12px;background:var(--cream);color:var(--navy);transition:border-color .15s}
.lptb__guide:hover,.lptb__guide:focus-visible{border-color:var(--gold);color:var(--navy)}
.lptb__guide svg{width:18px;height:18px;color:var(--gold);flex:none}
.lptb__guide strong{display:block;font-size:13px;line-height:1.3}
.lptb__guide span span{display:block;font-size:11.5px;color:var(--muted)}

.lptb__note{display:flex;align-items:center;gap:10px;border:1px dashed var(--line2);border-radius:12px;padding:10px 12px;background:transparent;color:var(--navy);text-align:left;width:100%}
.lptb__note:hover,.lptb__note:focus-visible{border-color:var(--gold);background:var(--cream)}
.lptb__note svg{width:18px;height:18px;color:var(--gold);flex:none}
.lptb__note strong{display:block;font-size:13px}
.lptb__note span span,.lptb__note>span>span{display:block;font-size:11.5px;color:var(--muted)}
.lptb__note em{margin-left:auto;font-style:normal;font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;background:var(--goldsoft);color:#7a4f0e;border-radius:999px;padding:2px 8px}

.lptb__foot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:12px;font-size:12.5px}
.lptb__foot a{display:inline-flex;align-items:center;gap:6px;color:var(--navy);font-weight:600}
.lptb__foot a:hover{color:var(--gold)}
.lptb__foot svg{width:15px;height:15px}

.lptb__login{margin-top:12px;background:var(--cream);border:1px solid var(--line2);border-radius:12px;padding:12px;font-size:12.5px;line-height:1.45;color:var(--ink)}
.lptb__login>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:8px}
.lptb__btn{display:inline-block;background:var(--gold);color:#fff;font-weight:700;border-radius:9px;padding:8px 12px;font-size:13px}
.lptb__btn:hover{background:#b27820;color:#fff}
.lptb__lnk{color:var(--navy);font-weight:600;font-size:12.5px;text-decoration:underline!important}

.lptb__toast{background:var(--navy);color:#fff;border-radius:10px;padding:9px 12px;font-size:12.5px;font-weight:600}
.lptb__toast[hidden]{display:none}

/* Colonne du template : sur petit écran, la carte passe au-dessus de l'article et « Plus d'outils » se replie. */
.lp-post-layout .lp-post-tb-col{min-width:0;align-self:stretch}
@media (max-width:781px){
  .lp-post-layout .lp-post-tb-col{order:-1;flex-basis:100%!important;max-width:100%!important}
  .lptb--col{position:static}
  .lptb__more>summary{display:flex}
}
.lptb--inline .lptb__more>summary{display:none}
@media (max-width:781px){.lptb--inline .lptb__more>summary{display:flex}}
@media (prefers-reduced-motion:reduce){.lptb *{transition:none!important}}
@media print{.lptb{display:none!important}}

.lptb-fallback{max-width:300px;margin:24px auto}
@media (min-width:1360px){.lptb-fallback{position:fixed;right:16px;top:var(--lptb-top,90px);width:300px;margin:0;z-index:50}.lptb-fallback .lptb--col{position:static}}

/* Garde-fous : wpautop peut insérer des <br>/<p> vides dans la grille d'actions. */
.lptb br,.lptb p:empty{display:none!important}
.lptb__acts{grid-template-columns:repeat(4,minmax(0,1fr))}
.lptb__act{height:auto;min-height:0}
.lptb__txt{min-width:0}
.lptb__txt strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}

/* Mise en page de l'article (modèle d'article à 3 colonnes) : zone élargie jusqu'à 1400 px, gouttières réduites.
   Testé sur la page en ligne (viewport 1280 px) : l'article passe d'environ 400 px à environ 750 px. */
body{--lptb-sbw:0px}
body.lp-sidebar-is-collapsed{--lptb-sbw:68px}
body main.wp-block-group:has(.lp-post-panel){max-width:none!important}
body .lp-post-banner,body .lp-post-panel{--lpw:1400px;width:auto!important;max-width:var(--lpw)!important;margin-left:max(var(--lptb-sbw),calc((100% - var(--lpw))/2))!important;margin-right:max(0px,calc((100% - var(--lpw))/2))!important;box-sizing:border-box}
.lp-post-panel .lp-post-layout{gap:28px!important;flex-wrap:nowrap}
.lp-post-panel .lp-post-sb-col{flex:0 0 160px!important;max-width:160px!important}
.lp-post-panel .lp-post-tb-col{flex:0 0 290px!important;max-width:290px!important}
.lp-post-panel .lp-post-layout>.wp-block-column:not(.lp-post-sb-col):not(.lp-post-tb-col){flex:1 1 0!important;min-width:0}
.lp-post-panel .lp-post-card{padding-left:clamp(12px,1.6vw,28px)!important;padding-right:clamp(12px,1.6vw,28px)!important}
body .lp-post-card .wp-block-post-content{max-width:none!important;margin-left:0!important;margin-right:0!important}
.lp-post-card .onglets-container{padding-left:0!important;padding-right:0!important}
.lp-post-card .onglet-content{padding-left:16px!important;padding-right:16px!important}
/* Écrans moyens : le menu thématique passe au-dessus de l'article au lieu de lui prendre 160 px. */
@media (max-width:1360px){
  .lp-post-panel .lp-post-layout{flex-wrap:wrap!important}
  .lp-post-panel .lp-post-sb-col{flex:1 1 100%!important;max-width:100%!important}
  .lp-post-panel .lp-post-sb-col>*{max-width:320px}
}
/* Petits écrans : tout en une colonne, boîte à outils d'abord. */
@media (max-width:1100px){
  .lp-post-panel .lp-post-layout>.wp-block-column{flex:1 1 100%!important;max-width:100%!important}
  .lp-post-panel .lp-post-tb-col{order:-1}
}

/* ===== 1.3.0 : flèches des onglets ===== */
.onglets-btns-wrap{position:relative}
.lptb-arrow{position:absolute;top:22px;z-index:4;width:30px;height:30px;padding:0;border-radius:50%;border:1px solid #e4d9c3;background:#fff;color:#c5882c;
  display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px -4px rgba(28,39,70,.35);transition:background .15s,border-color .15s,color .15s}
.lptb-arrow[hidden]{display:none}
.lptb-arrow:hover,.lptb-arrow:focus-visible{background:#1c2746;border-color:#1c2746;color:#fff}
.lptb-arrow:focus-visible{outline:2px solid #c5882c;outline-offset:2px}
.lptb-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lptb-arrow--r{right:2px}
.lptb-arrow--l{left:2px}

/* ===== 1.3.0 : pastille thématique dans le bandeau (remplace l'étiquette et le bloc de gauche) ===== */
.lptb-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 12px 6px 10px;margin:0;border:1px solid #e4d9c3;border-radius:999px;background:#f8f4ec;color:#1c2746;
  font:600 13px/1.2 Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;cursor:pointer;transition:border-color .15s,background .15s}
.lptb-chip:hover,.lptb-chip:focus-visible{background:#fff;border-color:#c5882c;color:#1c2746}
.lptb-chip:focus-visible{outline:2px solid #c5882c;outline-offset:2px}
.lptb-chip svg{flex:none;width:15px;height:15px;fill:none;stroke:#c5882c;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lptb-chip__t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lptb-chip-on .lp-post-tags>*:not(.lptb-chip){display:none!important}
.lptb-chip-on .lp-post-panel .lp-post-sb-col{display:none!important}
.lptb-chiprow{margin:0 0 14px}
