/* TUUDA Engagement 1.0.0 — couleurs fournies par :root (--te-primary, --te-accent, --te-dark) */
.te-progress{position:fixed;left:0;right:0;top:var(--wp-admin--admin-bar--height,0px);height:3px;z-index:99990;pointer-events:none;background:transparent}
.te-progress span{display:block;height:100%;background:var(--te-accent);transform:scaleX(0);transform-origin:0 50%;transition:transform .1s linear}

.te-top,.te-end,.te-toc,.te-also,.te-sticky{font-family:inherit;box-sizing:border-box}
.te-top *,.te-end *,.te-sticky *{box-sizing:border-box}
.te-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 22px;padding:10px 0;border-bottom:1px solid rgba(0,0,0,.08)}
.te-time{font-size:14px;color:#5B6670;white-space:nowrap}

.te-share{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.te-s{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px;height:38px;padding:0 10px;border-radius:999px;border:0;background:#EEF2F7;color:var(--te-dark)!important;text-decoration:none!important;font-size:14px;font-weight:600;line-height:1;cursor:pointer;transition:transform .15s,background .15s}
.te-s:hover,.te-s:focus-visible{transform:translateY(-1px);background:#e1e8f1}
.te-s svg{width:18px;height:18px;fill:currentColor;flex:0 0 auto}
.te-s-whatsapp{background:#25D366;color:#fff!important}
.te-s-whatsapp:hover{background:#1ebe5b}
.te-s-facebook:hover{background:#1877F2;color:#fff!important}
.te-s-linkedin:hover{background:#0A66C2;color:#fff!important}
.te-s-telegram:hover{background:#229ED9;color:#fff!important}
.te-s-x:hover{background:#111;color:#fff!important}

.te-toc{margin:22px 0;padding:14px 18px;border-left:4px solid var(--te-primary);background:#F5F8FC;border-radius:0 10px 10px 0}
.te-toc summary{cursor:pointer;font-weight:700;color:var(--te-dark);list-style:none}
.te-toc summary::-webkit-details-marker{display:none}
.te-toc summary::after{content:" ▾";font-size:.85em;color:#5B6670}
.te-toc details:not([open]) summary::after{content:" ▸"}
.te-toc ol{margin:10px 0 0 1.2em;padding:0}
.te-toc li{margin:4px 0}
.te-toc a{color:var(--te-primary);text-decoration:none}
.te-toc a:hover{text-decoration:underline}
h2[id]{scroll-margin-top:calc(var(--wp-admin--admin-bar--height,0px) + 90px)}

.te-also{display:flex;flex-direction:column;gap:4px;margin:26px 0;padding:14px 18px;border:1px solid rgba(0,0,0,.08);border-left:4px solid var(--te-accent);border-radius:0 10px 10px 0;background:#fff}
.te-also span{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--te-accent)}
.te-also a{font-weight:700;color:var(--te-dark);text-decoration:none}
.te-also a:hover{color:var(--te-primary);text-decoration:underline}

.te-end{margin:36px 0 10px;display:flex;flex-direction:column;gap:22px}
.te-h{margin:0 0 12px!important;font-weight:700;font-size:18px;color:var(--te-dark)}
.te-muted{color:#5B6670;font-size:14px}

.te-react{padding:18px;border-radius:14px;background:#F5F8FC;text-align:center}
.te-react-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.te-r{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;border:1px solid rgba(0,0,0,.1);background:#fff;color:var(--te-dark);font:inherit;font-weight:600;cursor:pointer;transition:transform .15s,border-color .15s}
.te-r:hover{transform:translateY(-1px);border-color:var(--te-primary)}
.te-r b{font-weight:700;color:#5B6670;min-width:1ch}
.te-r.is-on{background:var(--te-primary);border-color:var(--te-primary);color:#fff}
.te-r.is-on b{color:#fff}
.te-emo{font-size:18px;line-height:1}
.te-react-thanks{margin:10px 0 0!important;color:var(--te-primary);font-weight:600}

.te-author{display:flex;gap:14px;align-items:flex-start;padding:18px;border:1px solid rgba(0,0,0,.08);border-radius:14px}
.te-av{flex:0 0 56px;width:56px;height:56px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:var(--te-primary);color:#fff;font-weight:700;font-size:20px}
.te-author p{margin:0 0 4px!important}
.te-author-name a{font-weight:700;font-size:17px;color:var(--te-dark)!important;text-decoration:none}
.te-author-role{font-size:14px;color:var(--te-primary);font-weight:600}
.te-author-text{font-size:14px;color:#5B6670}

.te-cta{padding:20px;border-radius:14px;background:var(--te-dark);color:#fff}
.te-cta p{margin:0 0 10px!important;color:#fff}
.te-cta-title{font-weight:700;font-size:19px}
.te-cta-btns,.te-banner-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.te-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 18px;border-radius:10px;font-weight:700;font-size:15px;text-decoration:none!important;border:2px solid transparent;cursor:pointer;line-height:1.2}
.te-btn-main{background:var(--te-accent);color:#fff!important}
.te-btn-main:hover{filter:brightness(.92)}
.te-btn-wa{background:#25D366;color:#fff!important}
.te-btn-alt{background:transparent;border-color:currentColor;color:inherit!important}
.te-cta .te-btn-alt{color:#fff!important}
.te-btn-bt{background:#0D6B45;color:#fff!important}

.te-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-radius:14px;border:2px solid #0D6B45;background:#F2FAF6}
.te-banner p{margin:0 0 6px!important}
.te-banner-kicker{display:inline-block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#0D6B45}
.te-banner-title{font-weight:700;font-size:17px;color:#0A4A30}
.te-banner .te-btn-alt{color:#0D6B45!important}

.te-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.te-card{display:flex;flex-direction:column;border-radius:12px;overflow:hidden;border:1px solid rgba(0,0,0,.08);text-decoration:none!important;background:#fff;transition:transform .15s,box-shadow .15s}
.te-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(3,45,107,.12)}
.te-card-img img{display:block;width:100%;height:120px;object-fit:cover}
.te-card-title{display:block;padding:10px 12px;font-weight:700;font-size:15px;line-height:1.35;color:var(--te-dark)}

.te-comments{padding-top:6px;border-top:1px solid rgba(0,0,0,.08)}
.te-notice{padding:12px 14px;border-radius:10px;background:#EAF6EF;color:#0A4A30;font-weight:600}
.te-clist,.te-clist ol{list-style:none;margin:0 0 18px;padding:0}
.te-clist .children{margin-left:28px}
.te-clist li{margin:0 0 12px}
.te-clist .comment-body{padding:14px;border-radius:12px;background:#F5F8FC}
.te-clist .comment-meta,.te-clist .comment-metadata{font-size:13px;color:#5B6670}
.te-clist .avatar{border-radius:50%;vertical-align:middle;margin-right:8px}
.te-clist .reply a{font-size:13px;font-weight:600;color:var(--te-primary)}
.te-comments .comment-respond{margin-top:8px}
.te-comments .comment-reply-title{font-size:17px;font-weight:700;color:var(--te-dark);margin:0 0 8px}
.te-comments form label{display:block;font-weight:600;font-size:14px;margin-bottom:4px}
.te-comments form input[type=text],.te-comments form input[type=email],.te-comments form textarea{width:100%;max-width:100%;padding:10px 12px;border:1px solid #cfd8e3;border-radius:10px;font:inherit;background:#fff}
.te-comments form textarea:focus,.te-comments form input:focus{outline:2px solid var(--te-primary);outline-offset:1px}
.te-comments .te-consent{display:flex;gap:8px;align-items:flex-start}
.te-comments .te-consent label{display:inline;font-weight:400;font-size:13px}
.te-comments .te-consent input{margin-top:3px}
.te-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

.te-sticky{display:none}
.te-toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);opacity:0;padding:10px 16px;border-radius:10px;background:#1D1D1B;color:#fff;font-size:14px;z-index:99999;transition:all .25s}
.te-toast.on{opacity:1;transform:translate(-50%,0)}

@media (max-width:782px){
	.te-related-grid{grid-template-columns:1fr}
	.te-card{flex-direction:row}
	.te-card-img img{width:110px;height:100%;min-height:80px}
	.te-share-top .te-s:not(.te-s-whatsapp):not(.te-s-facebook):not(.te-s-copy):not(.te-s-native){display:none}
	.te-sticky{display:flex;position:fixed;left:10px;right:76px;bottom:12px;z-index:99980;gap:6px;align-items:center;padding:6px;border-radius:999px;background:#fff;box-shadow:0 6px 24px rgba(3,45,107,.22);transform:translateY(140%);transition:transform .25s}
	.te-sticky.on{transform:translateY(0)}
	.te-sticky .te-s{height:40px}
	.te-sticky .te-s-whatsapp{flex:1}
	.te-sticky-react,.te-sticky-com{display:inline-flex;align-items:center;gap:4px;height:40px;padding:0 10px;border-radius:999px;border:0;background:#EEF2F7;color:var(--te-dark)!important;font:inherit;font-size:14px;text-decoration:none!important;cursor:pointer}
	.te-sticky-react.is-on{background:var(--te-primary);color:#fff!important}
}
@media (prefers-reduced-motion:reduce){.te-s,.te-r,.te-card,.te-sticky,.te-progress span{transition:none}}
@media print{.te-progress,.te-top .te-share,.te-end,.te-sticky,.te-toast{display:none!important}}
/* Neutralise les « clearfix » des thèmes (::before/::after) dans les grilles et rangées flex */
.te-related-grid::before,.te-related-grid::after,.te-share::before,.te-share::after,.te-top::before,.te-top::after,.te-react-btns::before,.te-react-btns::after,.te-cta-btns::before,.te-cta-btns::after,.te-banner::before,.te-banner::after,.te-author::before,.te-author::after,.te-sticky::before,.te-sticky::after{content:none!important;display:none!important}
