/* Section 8 courses (accueil) : cartes de meme taille + etat d'attente de l'entree */
body.page-id-199 #coursebckg .courses-grid-pc-AB{display:grid;grid-template-columns:repeat(4,minmax(0,260px));grid-auto-rows:1fr;justify-content:center;gap:30px}
body.page-id-199 #coursebckg .courses-grid-mobile-AB{display:grid;grid-template-columns:repeat(2,minmax(0,260px));grid-auto-rows:1fr;justify-content:center;gap:16px}
body.page-id-199 #coursebckg .courses-grid-item-AB{max-width:none!important;width:auto;min-width:0}
body.page-id-199 #coursebckg .tdvn-card-link-AB{height:100%}
body.page-id-199 #coursebckg .tdvn-card-AB{height:100%;display:flex;flex-direction:column}
body.page-id-199 #coursebckg .tdvn-media-AB{flex:none;aspect-ratio:3/2}
body.page-id-199 #coursebckg .tdvn-media-AB img{width:100%;height:100%;object-fit:cover}
body.page-id-199 #coursebckg .tdvn-bottom-AB{flex:1 1 auto;background:#222737}
body.page-id-199 #coursebckg .tdvn-bottom-left-AB,body.page-id-199 #coursebckg .tdvn-bottom-right-AB{min-width:0;justify-content:center}
body.page-id-199 #coursebckg .tvn-attend{opacity:0}
body.page-id-199 #coursebckg .tvn-mot{display:inline-block;white-space:pre}
@media(max-width:767px){body.page-id-199 #coursebckg .courses-grid-mobile-AB{grid-template-columns:repeat(2,minmax(0,200px))}}

/* Section 2 Defis */
/* mobile : le decalage top:125px des cartes les faisait deborder ; meme place, mais dans le bloc */
@media(max-width:768px){body.page-id-199 .defis-wrapper-AB{padding-top:165px;padding-bottom:50px}body.page-id-199 .defis-wrapper-AB .defi-carte-AB{top:0}}

/* Section 2 Defis, mobile : mini carrousel. (classe posee par defis.js) */
@media(max-width:768px){
html.tvn-defis body.page-id-199 .defis-wrapper-AB{display:block;padding:150px 0 26px}
html.tvn-defis .tvn-piste{display:flex;align-items:stretch;gap:18px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:26px calc((100% - min(276px,100% - 56px))/2) 50px}
html.tvn-defis .tvn-piste::-webkit-scrollbar{display:none}
html.tvn-defis body.page-id-199 .tvn-piste .defi-carte-AB{box-sizing:border-box;flex:0 0 min(276px,100%);width:min(276px,100%);max-width:none;height:auto;min-height:330px;top:0;scroll-snap-align:center;scroll-snap-stop:always;transform:rotate(-2deg)!important;padding:18px 18px 46px;justify-content:flex-start}
html.tvn-defis body.page-id-199 .tvn-piste .defi-carte-droite-AB{transform:rotate(2deg)!important}
html.tvn-defis .tvn-piste .defi-picto-AB{margin:0 auto 12px!important;height:128px;width:auto!important;object-fit:contain}
html.tvn-defis .tvn-piste .defi-soustitre-AB{font-size:17px;letter-spacing:.02em;line-height:1.1;white-space:nowrap;margin:0 0 16px}
html.tvn-defis .tvn-piste .bloc_course_defi{flex:1;justify-content:center;gap:4px}
html.tvn-defis .tvn-piste .total_km_defi{margin-top:0}
html.tvn-defis .tvn-dots{display:flex;justify-content:center}
html.tvn-defis .tvn-dots button{width:44px;height:44px;padding:0;border:0;background:none;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:none}
html.tvn-defis .tvn-dots i{width:12px;height:12px;border-radius:8px;background:#222737;opacity:.3;transition:width .25s,opacity .25s}
html.tvn-defis .tvn-dots [aria-current=true] i{width:30px;opacity:1}
html.tvn-defis .tvn-dots button:focus-visible{outline:2px solid #222737;outline-offset:-6px;border-radius:12px}
}
@media(min-width:769px){.tvn-piste{display:contents}.tvn-dots{display:none}}

/* Programme : etat d'attente de l'entree */
body.page-id-199 .progr .tvn-attend{opacity:0}
