/* SEG ACADÉMIE — CN-SEG-007 / P3-B — Finalisation visuelle des 53 cartes ECUE.
   Ne modifie aucun droit, donnée, URL, progression ni publication. */
body.seg-boost-dashboard .p12-column > .p12-card:has(#p12Ecues) {
  overflow:visible!important;
}
body.seg-boost-dashboard #p12Ecues.p12-list {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:clamp(12px,1.25vw,20px)!important;
  align-items:stretch!important;
  min-width:0!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card {
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  height:100%!important;
  gap:11px!important;
  border-radius:20px!important;
  border:1px solid #d8e7ed!important;
  background:#fff!important;
  box-shadow:0 6px 20px rgba(6,69,103,.075)!important;
  overflow:hidden!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card > .seg-p3b-ecue-cover {
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:840 / 460!important;
  max-height:210px!important;
  min-height:0!important;
  border-radius:14px!important;
  border:1px solid #d5e8ef!important;
  background:linear-gradient(130deg,#def7f7,#187fa8)!important;
  overflow:hidden!important;
  flex:0 0 auto!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card > .seg-p3b-ecue-cover > img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .r276-name {
  min-height:68px!important;
  padding:2px 2px 4px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  overflow-wrap:anywhere!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .r276-name::before {
  display:none!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .r276-name b {
  font-size:clamp(15px,1.18vw,18px)!important;
  line-height:1.36!important;
  letter-spacing:-.01em!important;
  color:#133f5f!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .r276-meta {
  line-height:1.45!important;
  color:#587a8d!important;
  overflow-wrap:anywhere!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card > div:has(> .p12-bar) {
  margin-top:0!important;
  padding:7px 2px 5px!important;
  min-width:0!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-bar {
  height:8px!important;
  background:#e5eef3!important;
  border-radius:99px!important;
  overflow:hidden!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links {
  margin-top:auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  align-items:stretch!important;
  border-top:1px solid #e5eef3!important;
  padding-top:12px!important;
  min-width:0!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links > .r279-ecue-action {
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  width:100%!important;
  min-height:47px!important;
  padding:9px 9px!important;
  border-radius:12px!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card a[aria-disabled="true"] {
  opacity:.55!important;
  cursor:not-allowed!important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card a:focus-visible,
body.seg-boost-dashboard .r276-semester-tabs button:focus-visible {
  outline:3px solid #d9982d!important;
  outline-offset:3px!important;
}
body.seg-boost-dashboard .r276-ecue-controls {
  min-width:0!important;
  gap:10px!important;
}
body.seg-boost-dashboard .r276-semester-tabs {
  max-width:100%!important;
  flex-wrap:wrap!important;
}
body.seg-boost-dashboard .p12-ecue-more {
  min-height:46px!important;
  border-radius:12px!important;
}
@media(max-width:1199px){
  body.seg-boost-dashboard #p12Ecues.p12-list {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:760px){
  body.seg-boost-dashboard #p12Ecues.p12-list {gap:13px!important;}
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card {
    padding:13px!important;
    border-radius:17px!important;
    gap:10px!important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card > .seg-p3b-ecue-cover {
    aspect-ratio:840 / 460!important;
    max-height:220px!important;
    min-height:0!important;
    border-radius:12px!important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card .r276-name {
    min-height:0!important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card .r276-name b {
    font-size:16px!important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links > .r279-ecue-action {
    min-height:46px!important;
    padding:9px 8px!important;
    font-size:12px!important;
  }
}
@media(max-width:400px){
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card > .seg-p3b-ecue-cover {
    max-height:185px!important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links {
    gap:7px!important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links > .r279-ecue-action {
    padding:8px 6px!important;
    font-size:11.5px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card,
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card:hover {
    transition:none!important;
    transform:none!important;
  }
}
