/* DTSFrance V81 — carrousel mobile lisible : une grande carte à la fois. */
.app-activity-carousel{display:none}
@media (max-width:700px) and (display-mode:standalone),
       (max-width:700px) and (display-mode:fullscreen){
  .home-modern .live-showcase,
  .home-modern .professional-showcase{display:none!important}
  .app-activity-carousel,
  .app-activity-carousel *{box-sizing:border-box}
  .app-activity-carousel{display:block;width:100%;padding:18px 20px 10px;background:#f4f6fb;overflow:hidden}
  .app-activity-carousel__viewport{width:100%;overflow:hidden;touch-action:pan-y;border-radius:22px}
  .app-activity-carousel__track{display:flex;width:100%;transition:transform .62s cubic-bezier(.22,.75,.25,1);will-change:transform}
  .app-activity-carousel__slide{flex:0 0 100%;min-width:100%;padding:2px}
  .app-activity-card{display:grid;grid-template-rows:auto 190px auto;width:100%;min-height:390px;overflow:hidden;border:1px solid #e1e5ee;border-radius:22px;background:#fff;box-shadow:0 14px 34px rgba(19,31,61,.12);color:#17213b;text-decoration:none}
  .app-activity-card__label{display:flex;align-items:center;gap:9px;min-height:52px;padding:14px 18px 12px;font-size:1rem;font-weight:850;line-height:1.1;background:#fff}
  .app-activity-card__label i{font-style:normal;color:#e4001b;font-size:1.18rem}
  .app-activity-card__media{position:relative;display:flex;height:190px;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(145deg,#202b50,#313d66)}
  .app-activity-card__media img:not(.app-activity-card__logo){width:100%;height:100%;object-fit:cover}
  .app-activity-card__logo{width:46%;max-width:170px;max-height:92px;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(0,0,0,.2))}
  .app-activity-card__copy{display:flex;flex-direction:column;align-items:flex-start;padding:18px 20px 20px}
  .app-activity-card__copy strong{display:block;margin:0 0 7px;font-size:1.28rem;line-height:1.18;color:#17213b}
  .app-activity-card__copy span{display:block;margin-bottom:8px;color:#df001d;font-size:1rem;font-weight:800;line-height:1.2}
  .app-activity-card__copy small{display:block;color:#747b89;font-size:.92rem;line-height:1.3}
  .app-activity-card__link{display:inline-flex;margin-top:16px;color:#17213b;font-size:.98rem;font-weight:850}
  .app-activity-carousel__dots{display:flex;justify-content:center;align-items:center;gap:8px;padding:13px 0 1px}
  .app-activity-carousel__dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#b9bfcc;transition:width .25s ease,background .25s ease}
  .app-activity-carousel__dots button.is-active{width:28px;border-radius:999px;background:#e4001b}
}
@media (max-width:380px) and (display-mode:standalone),
       (max-width:380px) and (display-mode:fullscreen){
  .app-activity-carousel{padding-inline:14px}
  .app-activity-card{grid-template-rows:auto 165px auto;min-height:355px}
  .app-activity-card__media{height:165px}
  .app-activity-card__copy strong{font-size:1.15rem}
}


/* DTS V113 — carte département compacte dans la PWA, sans déplacer le reste de l'accueil. */
@media (max-width:700px) and (display-mode:standalone),
       (max-width:700px) and (display-mode:fullscreen){
  .app-department-card{grid-template-rows:auto 190px auto;min-height:390px}
  .app-department-search-panel{height:190px;padding:18px;background:linear-gradient(145deg,#f8faff,#eef2f7)}
  .app-department-search-box{display:flex;width:100%;max-width:290px;flex-direction:column;gap:10px;align-items:stretch}
  .app-department-search-box>small{color:#6e7686;font-size:.86rem;font-weight:700;text-align:center}
  .app-department-search-box select{width:100%;min-width:0;padding:10px 12px;border:1px solid #d8deea;border-radius:12px;background:#fff;color:#17213b;font-size:.92rem;font-weight:750}
  .app-department-search-box .department-status{align-self:center;margin-top:2px}
  .app-department-copy-compact{padding:15px 18px 16px}
  .app-department-copy-compact strong{margin-bottom:5px!important;font-size:1.06rem!important}
  .app-department-copy-compact small{font-size:.82rem!important}
  .app-department-mini-legend{display:flex!important;flex-wrap:wrap;gap:7px 12px;margin-top:11px;color:#6e7686!important;font-size:.72rem!important}
  .app-department-mini-legend>span{display:inline-flex!important;align-items:center;gap:5px;margin:0!important;color:#6e7686!important;font-weight:650!important}
  .app-department-mini-legend i{display:inline-block;width:8px;height:8px;border-radius:50%}
  .app-department-mini-legend i.is-available{background:#20a957}
  .app-department-mini-legend i.is-limited{background:#f39a18}
  .app-department-mini-legend i.is-full{background:#e31c36}
}
@media (max-width:380px) and (display-mode:standalone),
       (max-width:380px) and (display-mode:fullscreen){
  .app-department-card{grid-template-rows:auto 165px auto;min-height:355px}
  .app-department-search-panel{height:165px;padding:14px}
  .app-department-search-box{gap:8px}
  .app-department-copy-compact{padding:13px 16px 14px}
}

/* DTS V114 — sélecteur département PWA resserré, sans carte. */
body.pwa-active .app-department-search-panel{
  height:112px!important;
  padding:10px 12px!important;
}
body.pwa-active .app-department-search-box{
  max-width:220px!important;
  gap:6px!important;
}
body.pwa-active .app-department-search-box>small{
  font-size:.72rem!important;
  line-height:1!important;
}
body.pwa-active .app-department-search-box select{
  min-height:38px!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  font-size:.78rem!important;
}
body.pwa-active .app-department-search-box .department-status{
  margin-top:0!important;
  padding:4px 7px!important;
  font-size:.62rem!important;
}
body.pwa-active .app-department-copy-compact{
  padding:10px 12px 11px!important;
}
body.pwa-active .app-department-copy-compact strong{
  margin-bottom:3px!important;
  font-size:.88rem!important;
}
body.pwa-active .app-department-copy-compact small{
  font-size:.7rem!important;
  line-height:1.22!important;
}
body.pwa-active .app-department-mini-legend{
  gap:4px 7px!important;
  margin-top:6px!important;
  font-size:.6rem!important;
}
body.pwa-active .app-department-mini-legend i{width:7px!important;height:7px!important}

/* DTS V115: correctif principal PWA intégré dans index.php pour contourner le cache applicatif. */

/* DTS V118 — cache refresh; cartes PWA compactées dans index.php. */
