/* Import des styles de la librairie Leaflet */
@import "../../../../../../modules/carte/assets/js/leaflet/leaflet.css";

/* > Section sportive > module accueil ------------- */
.sportsection-module {
    overflow: hidden;
}
.sportsection-module .mb-5 { margin-bottom: 1rem !important; }
.sportsection-slider {
    padding: 0;
}
.sportsection-slider_item {
    width: 100%;
    height: auto;
    color: var(--bs-white);    
    position: relative;
}
.sportsection-slider_wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sportsection-slider_item__fig {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}
.sportsection-slider_item__fig img {
    display: block;
    width: 100%;
    transition: opacity .3s, transform .5s;
}
.sportsection-slider_item__fig::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 50%;
    transition: height .5s;
}
a:hover .sportsection-slider_item__fig img {
    opacity: .6;
    transform: scale(1.1);
}
a:hover .sportsection-slider_item__fig::after { height: 100%; }

.bg-secondary .sportsection-slider_item__fig::after {
    background: linear-gradient(0deg, rgba(var(--bs-secondary-rgb),1) 0%, rgba(var(--bs-secondary-rgb),0) 100%);
}
.bg-danger .sportsection-slider_item__fig::after {
    background: linear-gradient(0deg, rgba(var(--bs-danger-rgb),1) 0%, rgba(var(--bs-danger-rgb),0) 100%);
}
.bg-primary .sportsection-slider_item__fig::after {
    background: linear-gradient(0deg, rgba(var(--bs-primary-rgb),1) 0%, rgba(var(--bs-primary-rgb),0) 100%);
}
/*
.sportsection-slider .sportsection-slider_item:nth-child(3n+2) { background-color: var(--bs-danger); }
.sportsection-slider .sportsection-slider_item:nth-child(3n+2) .sportsection-slider_item__fig::after { 
    background: linear-gradient(0deg, rgba(var(--bs-danger-rgb),1) 0%, rgba(var(--bs-danger-rgb),0) 100%);
}
.sportsection-slider .sportsection-slider_item:nth-child(3n+3) { background-color: var(--bs-primary); }
.sportsection-slider .sportsection-slider_item:nth-child(3n+3) .sportsection-slider_item__fig::after { 
    background: linear-gradient(0deg, rgba(var(--bs-primary-rgb),1) 0%, rgba(var(--bs-primary-rgb),0) 100%);
}
*/
.sportsection-slider_item__content {
    margin-top: -62%;
    position: relative;
    padding: 10%;
    padding-bottom: 60px;
    z-index: 2;
    flex: 1 1 auto;
    text-align: center;
}
.sportsection-slider-icon {
    display: block;
    width: 50%;
    max-width: 120px;
    margin: 0 auto 1rem;
}
.sportsection-slider-icon img {
    display: block;
    width: 100%;
}
.sportsection-slider_item__content h3 {
    color: var(--bs-white);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.25rem;
    margin: 0;
}
.sportsection-slider .swiper-nav {
    position: absolute;
    top: calc(50% - 30px);
    z-index: 2;
    width: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-white);
    transition: background-color .3s;
}
.sportsection-slider .swiper-nav svg {
    display: block;
    width: 50%;
    fill: var(--bs-danger);
    transition: fill .3s;
}
.sportsection-slider .swiper-nav:hover { background-color: var(--bs-secondary); }
.sportsection-slider .swiper-nav:hover svg { fill: var(--bs-white); }
.sportsection-slider .swiper-prev {
    left: 0;
    padding-right: 10px;
    border-radius: 0 30px 30px 0;
}
.sportsection-slider .swiper-next {
    right: 0;
    padding-left: 10px;
    border-radius: 30px 0 0 30px;
}
.sportsection-slider_item .btn-website {
    flex: 0 0 auto;
    font-size: .875em;
    font-weight: 400;
    z-index: 2;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -80px;
}
.sportsection-slider_item .btn {
    color: #fff;
    min-width: 120px;
    padding: .5rem 1rem;
    font-weight: 400;
    font-size: .875em;
    border: #fff 1px solid;
    text-transform: uppercase;
    transition: color .3s, background-color .3s;
}
.sportsection-slider_item .btn:hover {
    background-color: #fff;
}
.bg-danger.sportsection-slider_item .btn:hover { color: var(--bs-danger); }
.bg-primary.sportsection-slider_item .btn:hover { color: var(--bs-primary); }
.bg-secondary.sportsection-slider_item .btn:hover { color: var(--bs-secondary); }

@media screen and (min-width: 480px) {
    .sportsection-slider_item { width: 50%; }
}
@media screen and (min-width: 960px) {
    .sportsection-module { margin-bottom: 1.25rem; }
    .sportsection-slider .swiper-nav {
        width: 60px;
        height: 120px;
        top: calc(50% - 60px);
    }
    .sportsection-slider .swiper-prev { 
        padding-right: 20px;
        border-radius: 0 60px 60px 0; 
    }
    .sportsection-slider .swiper-next { 
        padding-left: 20px;
        border-radius: 60px 0 0 60px; 
    }
    .sportsection-slider-icon {
        max-width: 80px;
    }
    .sportsection-slider_item__content { padding-bottom: 60px; }
    .sportsection-slider_item .btn-website { 
        height: 60px;
        font-weight: 400;
        font-size: .875em;
        margin-top: -60px;
    }
    .sportsection-slider_item .btn { padding: .25rem .75rem; }
    .sportsection-slider .swiper-nav {
        width: 40px;
        height: 80px;
        top: calc(50% - 40px);
    }
    .sportsection-slider .swiper-prev { padding-right: 15px; }
    .sportsection-slider .swiper-next { padding-left: 15px; }
}
@media screen and (min-width: 640px) {
    .sportsection-slider_item { width: 33.33%; }
}
@media screen and (min-width: 980px) {
    .sportsection-slider_item { width: 25%; }
}
@media screen and (min-width: 1200px) {
    .sportsection-slider_item__content { padding-bottom: 80px; }
    .sportsection-slider_item__content h3 { font-size: 1.25rem; }
    /*.sportsection-slider_item__content { margin-top: -42%; }*/
}
@media screen and (min-width: 1440px) {
    .sportsection-slider_item { width: 20%; }
}
@media screen and (min-width: 1600px) {
    .sportsection-slider_item { width: 16.66%; }
}  

/* > Section sportive > fiche ------------- */
@media screen and (min-width: 1320px) {
    .section-infos-tx,
    .section-infos-links,
    .section-infos figure.col-md-6 {
        /*height: 33vw;
        max-height: 480px;*/
        width: 33.33% !important;
    }
}
.section-infos-item {
    flex: 50%;
    padding: 1rem;
}
.section-infos-item-icon {
    display: block;
    max-width: 44px;
    max-height: 44px;
    margin: 0 auto .5rem;
}
.section-infos-item-icon svg {
    display: block;
    width: 100%;
}
.section-infos-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
}
.section-infos-item p { margin-bottom: 0; }
.section-infos-item.bg-primary,
.section-infos-item.bg-primary h3,
.section-infos-item.bg-primary p { color: #fff; }
.section-infos-item.bg-danger,
.section-infos-item.bg-danger h3,
.section-infos-item.bg-danger p { color: #fff; }
a.section-infos-item {
    transition: background-color .3s;
}
a.section-infos-item.bg-danger:hover { background-color: var(--bs-primary) !important; }

@media screen and (max-width: 1280px) {
    .section-infos-reprise { margin-right: .5rem; }
    .section-infos-inscription { margin-left: .5rem; }
}
@media screen and (max-width: 740px) {
    .section-infos-tx {
        flex-wrap: wrap;
    }
    .section-infos-adress,
    .section-infos-contact {
        flex: 100%;
    }
}
@media screen and (max-width: 480px) {
    .section-infos-links {
        flex-wrap: wrap;
    }
    .section-infos-reprise,
    .section-infos-inscription { 
        margin-left: 0; 
        margin-right: 0;
        flex: 100%;
    }
}

/* slider */
.sportsection-slide-2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.sportsection-slide-3 {
    max-width: 1080px;   
    margin-left: auto;
    margin-right: auto;
}
.sportsection-slide-4 {
    max-width: 1540px;   
    margin-left: auto;
    margin-right: auto;
}
@media screen and (min-width: 480px) {
    .sportsection-slide-2 .sportsection-slider_item,
    .sportsection-slide-3 .sportsection-slider_item,
    .sportsection-slide-4 .sportsection-slider_item { width: 50%; }
    .sportsection-slide-2 .swiper-nav { display: none; }
}
@media screen and (min-width: 960px) {
    .sportsection-slide-3 .sportsection-slider_item,
    .sportsection-slide-4 .sportsection-slider_item { width: 33.33%; }
    .sportsection-slide-3 .swiper-nav { display: none; }
}
@media screen and (min-width: 1440px) {
    .sportsection-slide-3 .sportsection-slider_item { width: 33.33%; }
    .sportsection-slide-4 .sportsection-slider_item { width: 25%; }
}
@media screen and (min-width: 1441px) {
    .sportsection-slide-4 .swiper-nav { display: none; }
}
@media screen and (min-width: 1920px) {
    .sportsection-slide-3 .sportsection-slider_item { width: 33.33%; }
    .sportsection-slide-4 .sportsection-slider_item { width: 25%; }
    .sportsection-slide-5 .swiper-nav { display: none; }
}  