/* BIO-SRÔM+ v71 — adaptation tablette et ordinateur.
 * Aucun effet sous 720 px de large : le téléphone reste exactement comme avant.
 *  - dès 720 px  : contenu plus large, accueil en 2 colonnes
 *  - dès 1024 px : la barre du bas devient un menu latéral à gauche (comme sur une appli de bureau), contenu large */
@media (min-width:720px){
  .main-wrap{max-width:780px;padding-left:28px;padding-right:28px}
  /* accueil en grille : les cartes se placent côte à côte au lieu de s'empiler dans une colonne de téléphone */
  .main-wrap > .fu:has(> .dc-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:stretch}
  .main-wrap > .fu:has(> .dc-card) > *{grid-column:1/-1;margin-top:0;margin-bottom:0!important}
  .main-wrap > .fu:has(> .dc-card) > .dc-card,
  .main-wrap > .fu:has(> .dc-card) > .bj-home,
  .main-wrap > .fu:has(> .dc-card) > .cp-card,
  .main-wrap > .fu:has(> .dc-card) > div.fu,
  .main-wrap > .fu:has(> .dc-card) > button.fu:not(.card){grid-column:span 1;height:100%}
  .main-wrap > .fu:has(> .dc-card) > .section-label{margin:14px 0 -4px}
  .main-wrap > .fu:has(> .dc-card) > div.fu > *{height:100%}
}
@media (min-width:720px){
  /* pages « liste de cartes » (matières, activités…) : 2 colonnes au lieu d'une longue colonne étroite */
  .main-wrap:has(> .section-label):has(> button.fu):not(:has(> .fu > .dc-card)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:stretch;max-width:1000px}
  .main-wrap:has(> .section-label):has(> button.fu):not(:has(> .fu > .dc-card)) > *{grid-column:1/-1;margin-bottom:0!important}
  .main-wrap:has(> .section-label):has(> button.fu):not(:has(> .fu > .dc-card)) > button.fu{grid-column:span 1;height:100%}
  .main-wrap:has(> .section-label):has(> button.fu):not(:has(> .fu > .dc-card)) > .section-label{margin:16px 0 -4px}
}
@media (min-width:1024px){
  body:has(.bottom-nav){padding-left:96px}
  .bottom-nav{top:0;right:auto;bottom:0;width:96px;flex-direction:column;align-items:stretch;justify-content:center;gap:8px;padding:12px 8px;border-top:0;border-right:1px solid var(--border)}
  .bnav-item{flex:0 0 auto;padding:14px 2px;border-radius:16px;font-size:11px;transition:background .18s,color .18s}
  .bnav-item:hover{background:var(--overlay-soft,rgba(120,130,150,.12))}
  .bnav-item.active{background:rgba(0,158,125,.12)}
  .main-wrap{max-width:880px;padding-left:40px;padding-right:40px;padding-bottom:48px}
  .main-wrap:has(> .fu > .dc-card){max-width:1180px}
    .main-wrap > .fu:has(> .dc-card){gap:18px 24px}
}
@media (min-width:1500px){
  .main-wrap:has(> .fu > .dc-card){max-width:1320px}
  .main-wrap > .fu:has(> .dc-card){grid-template-columns:repeat(4,minmax(0,1fr))}
  .main-wrap > .fu:has(> .dc-card) > .dc-card,
  .main-wrap > .fu:has(> .dc-card) > .bj-home,
  .main-wrap > .fu:has(> .dc-card) > .cp-card,
  .main-wrap > .fu:has(> .dc-card) > button.fu:not(.card){grid-column:span 2}
  .main-wrap > .fu:has(> .dc-card) > div.fu{grid-column:span 1}
}
