/*-------------------------------- ÉTUDES DE CAS : LISTE (ecl-*) --------------------------------*/
.ecl-page { padding-bottom: 70px; }
.ecl-hero { text-align: center; padding: 34px 16px 34px; margin-top: calc(-1 * var(--main-offset, 103px)); padding-top: calc(var(--main-offset, 103px) + 34px); }
.ecl-kicker { display: inline-block; margin-bottom: 14px; padding: 7px 16px; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b45309; background: rgba(217,119,6,.12); }
.ecl-title { margin: 0; font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.035em; color: var(--title-color); }
.ecl-sub { margin: 12px auto 0; max-width: 60ch; font-size: .98rem; line-height: 1.6; color: var(--text-muted-input); }
.ecl-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ecl-filter { padding: 7px 15px; border-radius: 99px; border: 1px solid var(--border-color); background: var(--card-color); color: var(--text-color); font-size: .82rem; font-weight: 700; text-decoration: none; }
.ecl-filter:hover { color: var(--title-color); border-color: rgba(var(--rgb-underline-color), .45); }
.ecl-filter.active { background: var(--title-color); border-color: var(--title-color); color: var(--bg-body); }

.ecl-main { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 34px; }
.ecl-card { background: var(--card-color); border: 1px solid var(--border-color); border-radius: 20px; padding: 20px; }
.ecl-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ecl-sec-h h2 { margin: 0; font-size: 1.15rem; font-weight: 900; color: var(--title-color); }
.ecl-sec-h small { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--text-muted-input); }
.ecl-sec-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(217,119,6,.12); color: #b45309; }

.ecl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ecl-case { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; animation: ecl-up .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
.ecl-case:hover { transform: translateY(-4px); border-color: rgba(217,119,6,.45); box-shadow: 0 22px 44px -30px rgba(0,0,0,.55); color: inherit; }
.ecl-case-top { display: flex; gap: 6px; flex-wrap: wrap; }
.ecl-tag { padding: 3px 10px; border-radius: 99px; font-size: .7rem; font-weight: 800; background: var(--title-color); color: var(--bg-body); }
.ecl-tag-soft { background: var(--bg-input); color: var(--text-muted-input); }
.ecl-case h3 { margin: 6px 0 0; font-size: 1.08rem; font-weight: 900; color: var(--title-color); letter-spacing: -.01em; }
.ecl-case p { margin: 0; font-size: .84rem; color: var(--text-muted-input); }
.ecl-progress { height: 6px; border-radius: 99px; background: var(--bg-input); overflow: hidden; margin-top: 8px; }
.ecl-progress span { display: block; height: 100%; background: #16a34a; border-radius: 99px; }
.ecl-progress-label { font-size: .74rem; color: var(--text-muted-input); }
.ecl-case-go { margin-top: auto; padding-top: 10px; font-size: .82rem; font-weight: 800; color: var(--title-color); }
.ecl-case-go i { transition: transform .18s ease; }
.ecl-case:hover .ecl-case-go i { transform: translateX(4px); }

.ecl-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ecl-method-card h3 { margin: 0 0 6px; font-size: .98rem; font-weight: 900; color: var(--title-color); }
.ecl-weak { margin: 0 0 12px; font-size: .82rem; color: #b91c1c; }
.ecl-bar-row { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 10px; margin-bottom: 7px; }
.ecl-bar-label { font-size: .78rem; font-weight: 700; color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecl-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg-input); }
.ecl-bar i, .ecl-legend span::before { display: block; }
.ecl-bar .ok, .ecl-legend .ok::before { background: #16a34a; }
.ecl-bar .partial, .ecl-legend .partial::before { background: #f59e0b; }
.ecl-bar .ko, .ecl-legend .ko::before { background: #ef4444; }
.ecl-legend { display: flex; gap: 12px; margin-top: 10px; font-size: .72rem; color: var(--text-muted-input); }
.ecl-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ecl-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }

.ecl-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 50px 16px; text-align: center; color: var(--text-muted-input); }
.ecl-empty strong { color: var(--title-color); font-size: 1.05rem; }
.ecl-empty-ico { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 20px; display: grid; place-items: center; background: rgba(217,119,6,.12); color: #b45309; font-size: 1.5rem; }

@keyframes ecl-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .ecl-bar-row { grid-template-columns: 1fr; gap: 3px; } .ecl-method-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ecl-case { animation: none; } }

/* Pagination (12 cas par page) */
.ecl-count { margin: 0 0 12px; font-size: .82rem; font-weight: 700; color: var(--text-muted-input); }
.ecl-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.ecl-page-btn { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); background: var(--card-color); color: var(--title-color); font-size: .86rem; font-weight: 800; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ecl-page-btn:hover { border-color: rgba(217,119,6,.5); color: var(--title-color); transform: translateY(-1px); }
.ecl-page-btn.active { background: var(--title-color); border-color: var(--title-color); color: var(--bg-body); }
.ecl-page-ellipsis { border-color: transparent; background: none; }
