
/* EduMajid V9.0 — navigation Unité > Discipline > Capsules */
.em-v9-course{margin-top:22px;padding:30px;border:1px solid #dce6ef;border-radius:24px;background:#fff;box-shadow:0 16px 40px rgba(29,54,80,.05)}
.em-v9-course-intro{margin-bottom:30px}.em-v9-course-intro h2{margin:7px 0 8px;color:#1d2d45;font-size:clamp(26px,3vw,36px);line-height:1.1}.em-v9-course-intro p{margin:0;max-width:720px;color:#71839a;font-size:15px;line-height:1.65}
.em-v9-units{display:grid;gap:34px}.em-v9-unit{padding-top:5px}.em-v9-unit+.em-v9-unit{padding-top:34px;border-top:1px solid #e7edf3}.em-v9-unit-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.em-v9-unit-kicker{display:block;margin-bottom:6px;color:#1b79b7;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.em-v9-unit-heading h2{margin:0;color:#1d2d45;font-size:clamp(26px,3.2vw,38px);line-height:1.1}.em-v9-unit-count{flex:0 0 auto;padding:8px 12px;border-radius:999px;background:#eef7fd;color:#34779f;font-size:12px;font-weight:700}
.em-v9-discipline-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.em-v9-discipline-card{min-height:142px;display:grid;grid-template-columns:58px 1fr 36px;align-items:center;gap:18px;padding:24px;border:1px solid #d8e3ed;border-radius:20px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 6px 18px rgba(35,64,92,.035);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.em-v9-discipline-card:hover{transform:translateY(-3px);border-color:#a8ccdf;box-shadow:0 14px 32px rgba(30,86,127,.10)}.em-v9-discipline-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:#eef7fd;font-size:27px}.em-v9-discipline-copy strong{display:block;color:#1f3049;font-size:22px;line-height:1.2}.em-v9-discipline-copy small{display:block;margin-top:9px;color:#8291a4;font-size:14px}.em-v9-discipline-arrow{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f1f7fb;color:#2177ad;font-weight:900}
.em-v9-empty{display:flex;align-items:center;gap:14px;padding:20px;border:1px dashed #cad8e4;border-radius:18px;background:#f8fbfd;color:#708298}.em-v9-empty>span{font-size:28px}.em-v9-empty strong{display:block;color:#243750}.em-v9-empty p{margin:4px 0 0}.em-v9-empty-small{padding:16px}.em-v9-empty-main{margin-top:24px}
.em-v9-discipline-page{min-height:calc(100vh - 110px);padding:44px 20px 70px;background:linear-gradient(180deg,#f0f7fc 0,#f7fafc 35%,#fff 100%)}.em-v9-shell{width:min(1120px,100%);margin:0 auto}.em-v9-back{margin-bottom:18px}.em-v9-back a{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid #d8e4ed;border-radius:999px;background:#fff;color:#2476aa;text-decoration:none;font-size:13px;font-weight:800}.em-v9-discipline-hero{position:relative;padding:32px 36px;margin-bottom:28px;border:1px solid #d9e5ee;border-radius:24px;background:#fff;box-shadow:0 15px 42px rgba(35,68,97,.06)}.em-v9-badge{display:inline-flex;padding:7px 12px;border-radius:999px;background:#eef7fd;color:#2775a6;font-size:12px;font-weight:800}.em-v9-eyebrow{display:block;margin-top:20px;color:#1b79b7;font-size:11px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.em-v9-discipline-hero h1{margin:7px 0 8px;color:#1d2d45;font-size:clamp(34px,5vw,54px);line-height:1.03}.em-v9-discipline-hero p{margin:0;color:#74869b;font-size:16px}.em-v9-total{position:absolute;top:32px;right:36px;padding:9px 13px;border-radius:14px;background:#eef7fd;color:#2576a9;font-size:12px;font-weight:800}html[dir="rtl"] .em-v9-total{right:auto;left:36px}
.em-v9-book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 34px;align-items:start}.em-v9-book-card{min-width:0}.em-v9-book-link{display:grid;grid-template-columns:190px 1fr;gap:24px;align-items:center;padding:22px;border:1px solid #dbe5ee;border-radius:22px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 12px 30px rgba(30,58,86,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.em-v9-book-link:not(.is-disabled):hover{transform:translateY(-4px);border-color:#afd1e4;box-shadow:0 20px 42px rgba(35,93,134,.12)}.em-v9-book-link.is-disabled{opacity:.72}.em-v9-book-cover{position:relative;width:190px;aspect-ratio:3/4;border-radius:9px 16px 16px 9px;overflow:hidden;background:#eaf4fb;box-shadow:8px 10px 20px rgba(22,44,64,.17),inset 5px 0 0 rgba(255,255,255,.36)}html[dir="rtl"] .em-v9-book-cover{border-radius:16px 9px 9px 16px;box-shadow:-8px 10px 20px rgba(22,44,64,.17),inset -5px 0 0 rgba(255,255,255,.36)}.em-v9-book-cover img{display:block;width:100%;height:100%;object-fit:cover}.em-v9-book-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:22px;text-align:center;background:linear-gradient(145deg,#dff1fb,#f8fcff);color:#20486a}.em-v9-book-brand{position:absolute;top:16px;left:18px;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#2a7aae}.em-v9-book-icon{font-size:44px}.em-v9-book-placeholder strong{font-size:18px;line-height:1.3}.em-v9-book-type{position:absolute;left:10px;right:10px;bottom:10px;padding:7px 9px;border-radius:10px;background:rgba(13,43,67,.82);color:#fff;text-align:center;font-size:10px;font-weight:800;backdrop-filter:blur(4px)}.em-v9-book-caption h2{margin:0 0 9px;color:#20314a;font-size:24px;line-height:1.2}.em-v9-book-caption span{color:#6f8297;font-size:13px;font-weight:700}.em-v9-book-card.has-content .em-v9-book-caption span{color:#247aac}
.em-v9-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:34px;padding:18px}.em-v9-pages{display:flex;gap:8px}.em-v9-page-number,.em-v9-page-arrow{width:42px;height:42px;display:grid;place-items:center;border:1px solid #d4e1eb;border-radius:12px;background:#fff;color:#316d94;text-decoration:none;font-size:14px;font-weight:900}.em-v9-page-number.is-current{border-color:#2479b1;background:#2479b1;color:#fff;box-shadow:0 7px 18px rgba(36,121,177,.22)}.em-v9-page-arrow.is-disabled{opacity:.35}
@media(max-width:900px){.em-v9-discipline-grid,.em-v9-book-grid{grid-template-columns:1fr}.em-v9-book-link{grid-template-columns:150px 1fr}.em-v9-book-cover{width:150px}.em-v9-total{position:static;display:inline-flex;margin-top:18px}.em-v9-discipline-hero{padding:26px}}
@media(max-width:560px){.em-v9-course{padding:22px 16px;border-radius:18px}.em-v9-unit-heading{align-items:flex-start;flex-direction:column}.em-v9-discipline-grid{gap:12px}.em-v9-discipline-card{grid-template-columns:48px 1fr 30px;min-height:110px;padding:17px;gap:13px}.em-v9-discipline-icon{width:48px;height:48px}.em-v9-discipline-copy strong{font-size:18px}.em-v9-discipline-page{padding:28px 14px 50px}.em-v9-discipline-hero{padding:22px 18px;border-radius:18px}.em-v9-book-link{grid-template-columns:1fr;padding:17px}.em-v9-book-cover{width:min(250px,82vw);margin:0 auto}.em-v9-book-caption{text-align:center}.em-v9-pagination{gap:8px}.em-v9-page-number,.em-v9-page-arrow{width:38px;height:38px}}

/* EduMajid V9.1 DEV — Matière simplifiée + couverture capsule dominante */

/* Page Matière : même langage visuel que la liste des matières de la page Classe. */
.em-v91-subject-page{background:#fff}
.em-v91-subject-container{width:min(100% - 32px,1400px)}
.em-v91-subject-heading{margin-bottom:22px}
.em-v91-subject-heading h1{font-size:32px}
.em-v91-discipline-list{align-items:stretch}
.em-v91-discipline-card{min-height:230px}
.em-v91-discipline-icon{font-size:32px;line-height:1}

/* Page Capsules : l'image devient le contenu visuel principal. */
.em-v9-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 34px;align-items:stretch}
.em-v9-book-card{height:100%}
.em-v9-book-link{
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:13px;
    padding:24px 20px 16px;
}
.em-v9-book-cover{
    width:min(360px,100%);
    aspect-ratio:3/4;
    flex:0 0 auto;
}
.em-v9-book-cover img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    background:#fff;
}
.em-v9-book-caption{
    width:min(360px,100%);
    text-align:center;
    padding:0 4px;
}
.em-v9-book-caption h2{
    margin:0;
    color:#20314a;
    font-size:14px;
    font-weight:700;
    line-height:1.3;
}
.em-v9-book-caption span,
.em-v9-book-card.has-content .em-v9-book-caption span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:5px;
    color:#71849a;
    font-size:10px;
    font-weight:700;
}
.em-v91-book-meta{white-space:nowrap}

/* Pas d'étiquette superposée : aucun texte de l'image n'est masqué. */
.em-v9-book-type{display:none!important}

@media(max-width:900px){
    .em-v9-book-grid{grid-template-columns:1fr}
    .em-v9-book-cover{width:min(380px,92%)}
    .em-v9-book-caption{width:min(380px,92%)}
}
@media(max-width:600px){
    .em-v91-subject-heading h1{font-size:28px}
    .em-v91-discipline-card{min-height:180px}
    .em-v9-book-link{padding:16px 12px 14px}
    .em-v9-book-cover{width:min(340px,92vw)}
    .em-v9-book-caption{width:min(340px,92vw)}
}
