/* SUPERMATHS V251 — section accueil automatique : statistiques + matières */
.sm251-discovery{width:calc(100% - 64px);max-width:1540px;margin:34px auto 12px;padding:0 0 12px}
.sm251-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;background:#fff;border:1px solid #e6edf2;border-radius:24px;padding:18px;box-shadow:0 14px 36px rgba(20,48,72,.07)}
.sm251-stat{display:flex;align-items:center;gap:14px;padding:14px 16px;min-width:0}
.sm251-stat+.sm251-stat{border-left:1px solid #edf1f4}
.sm251-stat-icon{width:54px;height:54px;flex:0 0 54px;border-radius:18px;display:grid;place-items:center;background:#eafaf9;color:#079da5;font-size:25px}
.sm251-stat:nth-child(2) .sm251-stat-icon,.sm251-stat:nth-child(4) .sm251-stat-icon{background:#fff5dd;color:#e99d00}
.sm251-stat strong{display:block;color:#102a46;font-size:28px;line-height:1.05;letter-spacing:-.02em}
.sm251-stat span{display:block;margin-top:5px;color:#718497;font-size:13px;font-weight:700}
.sm251-subject-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:34px 4px 16px}
.sm251-subject-head small{display:block;color:#08a1a8;font-weight:900;letter-spacing:.12em;font-size:11px;margin-bottom:6px}
.sm251-subject-head h2{margin:0;color:#102a46;font-size:30px;line-height:1.12}
.sm251-subject-head p{margin:0;color:#74879a;font-weight:600}
.sm251-subject-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.sm251-subject{appearance:none;border:1px solid #e2e9ef;background:#fff;border-radius:19px;padding:20px;text-align:left;display:grid;grid-template-columns:56px 1fr auto;gap:15px;align-items:center;cursor:pointer;box-shadow:0 8px 24px rgba(25,55,78,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;width:100%;font:inherit}
.sm251-subject:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(25,55,78,.09);border-color:#b9e7e6}
.sm251-subject-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#e8fbf8,#dff4ff);font-size:25px;color:#079da5;font-weight:900}
.sm251-subject:nth-child(even) .sm251-subject-icon{background:linear-gradient(135deg,#fff7df,#ffedc3);color:#d98c00}
.sm251-subject b{display:block;color:#102a46;font-size:18px;margin-bottom:5px}
.sm251-subject em{display:block;color:#718497;font-size:12px;font-style:normal;font-weight:700}
.sm251-subject-arrow{font-size:26px;color:#102a46;font-weight:300}
.sm251-live{display:inline-flex;align-items:center;gap:6px;color:#15815a!important;font-size:12px!important;white-space:nowrap}
.sm251-live:before{content:"";width:8px;height:8px;border-radius:50%;background:#22c77a;box-shadow:0 0 0 4px #e7f9f0}
@media(max-width:1050px){.sm251-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sm251-stat:nth-child(3){border-left:0}.sm251-stat:nth-child(n+3){border-top:1px solid #edf1f4}.sm251-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:860px){.sm251-discovery{width:calc(100% - 24px);margin:24px 12px 8px}.sm251-subject-head{align-items:flex-start;flex-direction:column;margin-top:26px}.sm251-subject-head h2{font-size:26px}}
@media(max-width:560px){.sm251-discovery{width:calc(100% - 16px);margin-left:8px;margin-right:8px}.sm251-stats{grid-template-columns:1fr;padding:8px;border-radius:18px}.sm251-stat{padding:12px}.sm251-stat+.sm251-stat,.sm251-stat:nth-child(3){border-left:0;border-top:1px solid #edf1f4}.sm251-stat strong{font-size:24px}.sm251-subject-grid{grid-template-columns:1fr}.sm251-subject{padding:16px}.sm251-subject-head p{font-size:13px}}

/* V252 — avatars/illustrations SUPERMATHS plus lisibles */
.sm251-stat-icon{width:72px;height:72px;flex-basis:72px;border-radius:24px;position:relative;overflow:hidden;font-size:32px}
.sm252-avatar{background:linear-gradient(145deg,#e3fbf8,#eaf7ff)!important}
.sm252-head{position:absolute;width:27px;height:30px;border-radius:50% 50% 46% 46%;background:#ffd1ad;left:22px;top:12px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.04)}
.sm252-head:before{content:"";position:absolute;left:-3px;top:-5px;width:33px;height:17px;border-radius:18px 18px 8px 8px;background:#173653;transform:rotate(-5deg)}
.sm252-head:after{content:"••";position:absolute;left:7px;top:10px;color:#173653;font-size:10px;letter-spacing:5px}
.sm252-body{position:absolute;left:13px;bottom:-10px;width:48px;height:38px;border-radius:24px 24px 8px 8px;background:linear-gradient(135deg,#12b8b2,#079da5)}
.sm252-book{position:absolute;right:5px;bottom:6px;width:26px;height:24px;border-radius:7px;background:#fff;color:#079da5!important;font-size:14px!important;font-weight:900;display:grid!important;place-items:center;box-shadow:0 3px 9px rgba(10,90,110,.14)}
.sm252-calendar{background:linear-gradient(145deg,#fff6dd,#fff0c8)!important}
.sm252-calendar:before{content:"";position:absolute;width:43px;height:43px;left:15px;top:17px;border-radius:10px;background:#fff;box-shadow:0 5px 12px rgba(30,60,80,.10)}
.sm252-cal-top{position:absolute;z-index:2;left:15px;top:17px;width:43px;height:12px;border-radius:10px 10px 2px 2px;background:#ff8f3d}
.sm252-cal-grid{position:absolute;z-index:3;right:8px;bottom:8px;width:25px;height:25px;border-radius:50%;background:#16b6ad;color:#fff!important;font-size:15px!important;display:grid!important;place-items:center}
.sm252-books{background:linear-gradient(145deg,#e9fbf8,#e9f3ff)!important;display:flex!important;flex-direction:column;justify-content:center;gap:4px;padding:14px 12px;box-sizing:border-box;transform:none!important}
.sm252-books i{display:block;width:45px;height:10px;border-radius:5px;background:#12b8b2;transform:rotate(-5deg)}
.sm252-books i:nth-child(2){background:#ffb42e;transform:rotate(3deg);width:49px}.sm252-books i:nth-child(3){background:#6d62d9;transform:rotate(-2deg);width:42px}
.sm252-star{background:linear-gradient(145deg,#fff7df,#ffefc8)!important;color:#ffad00!important;font-size:43px!important;text-shadow:0 4px 10px rgba(255,173,0,.18)}
@media(max-width:560px){.sm251-stat-icon{width:76px;height:76px;flex-basis:76px;border-radius:24px}.sm251-stat{gap:18px;padding:15px 12px}.sm251-stat strong{font-size:28px}}
