/* --------------------------------- */
/* ----------- A) SLIDER ----------- */
/* --------------------------------- */
.slider{
    display: flex;
    align-items: center;
    width: 100%;
    height: 70vh;
    position: relative;
	overflow: hidden;
}
.slider__images{
    overflow-x: visible;
    display: flex;
    height: auto;
    flex-wrap: nowrap;
    transition: all 0.5s ease-out;
    transform: translateX(-0vw);
}
.slider__image{
    width: 100vw;
    height: 70vh;
    object-fit: cover;
    flex: none;
}
.slider__text-content{
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
}
.slider__title-box{
    width: 100%;
    margin: 0 auto;
}
.slider__title{
    font-size: 2rem;
    color: var(--secondary-color);
    max-width: 700px;
    display: flex;
    flex-direction: column;
    width: fit-content;
}
.slider__title span{
    background-color: white;
    padding: 10px 25px;
    width: fit-content;
    font-family: 'ABeeZee', sans-serif;
    font-weight: 600;
}
.slider__title span:first-child{
    font-size: 1rem;
    background-color: var(--main-color);
    color: white;
    font-family: 'ABeeZee';
    font-weight: 100;
	padding: 0.5em;
}
.slider__title span:last-child{
    padding-bottom: 10px;
}
.slider__image-container{
    position: relative;
}
.slide-0{
    transform: translateX(0vw);
}
.slide-1{
    transform: translateX(-100vw);
}
.slide-2{
    transform: translateX(-200vw);
}
.slider__control-left{
    height: 100%;
    width: 50%;
    position: absolute;
    z-index: 50;
}
.slider__control-right{
    height: 100%;
    width: 50%;
    position: absolute;
    right: 0;
    z-index: 50;
}
@media (min-width: 960px){
    .slider__title{
        font-size: 3.8rem;
    }
    .slider__title span:last-child{
        padding-bottom: 30px;
        margin-bottom: 0px;
    }
	.slider__title span{
    	background-color: white;
    	padding: 25px 25px;
	}
    .slider{
        height: 75vh;
    }
    .slider__control{
        position: absolute;
        top: 48%;
        z-index: 100;
        padding: 20px;
        background-color: white;
        cursor: pointer;
        width: unset;
        height: unset;
    }
    .slider__control:hover span{
        border: solid 7px var(--secondary-color);
        border-bottom: none;
        border-left: none;
    }
    .slider__control-left{
        left: 0px;
    }
    .slider__control-right{
        right: 0px;
    }
    .slider__control span{
        display: block;
        border: solid 2px var(--secondary-color);
        border-bottom: none;
        border-left: none;
        height: 25px;
        width: 25px;
        position: relative;
        transition: all 0.2s ease-out;
    }
    .slider__control-left span{
        transform: rotate(225deg);
        right: -5px;
    }
    .slider__control-right span{
        transform: rotate(45deg);
        left: -5px; 
    }
    .slider__images{
        overflow: visible;
        height: auto;
    }
    .slider__image{
        width: 100vw;
        height: 83vh;
        object-fit: cover;
        flex: none;
    }
}

@media (min-width: 1200px){
    .slider__title-box{
        width: 1200px;
        margin: 0 auto;
    }
}

/* --------------------------------- */
/* -------- B) ACCES RAPIDE -------- */
/* --------------------------------- */
.home-rapide{
    display: flex;
    flex-direction: column-reverse;
}

.home-demarches{
    position: relative;
}
.home-demarches li:before {
    border: solid 1px var(--secondary-color);
    border-bottom: none;
    border-left: none;
}
.home-clic{
    background-image: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/fond-en-1-clic.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

.home-clic__title{
    color: white;
}
.home-clic__clics{
    display: flex;
    flex-wrap: wrap;
}
.home-clic__clic{
    width: 33.333%;
}
.home-clic__clic figure{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
.home-clic__text{
    text-align: center;
    color: white;
    margin-top: 10px;
    line-height: 1rem;
}
.home-clic__icon {
    width: 75%;
}
.home-demarches, .home-clic{
    padding: 75px 20px;
}
.home-demarches{
    padding-bottom: 0px;
}
@media (min-width: 960px){
    .home-demarche__title{
        font-size: 2.4rem;
    }
    
    .home-clic__title{
        font-size: 2.4rem;
    }
    .home-demarches{
        position: relative;
        right: -40px;
        height: fit-content;
        background-color: white;
        border: solid 1px var(--main-color);
        bottom: -50px;
    }
    .home-demarches:before{
        content: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/fond-raccourci-accueil-maison.svg');
        display: block;
        width: 400px;
        height: 200px;
        object-fit: contain;
        position: absolute;
        bottom: 30px;
        left: -395px;
        z-index: -1;
    }
    .home-demarches .btn{
        position: absolute;
        bottom: -27px;
        right: -50px;
    }
    .home-rapide{
        flex-direction: row;
    }
    .home-demarches, .home-clic{
        width: 50%;
        padding: 30px;
    }
    section.home-demarches li{
        margin: 15px 0px;
    }
    .home-clic{
        position: relative;
        left: -40px;
        top: -200px;
    }
    .home-clic__clic img{
        transition: all 0.2s ease-out;
    }
    .home-clic__clic:hover img{
        transform: rotate(15deg);
    }
}

/* --------------------------------- */
/* ------- C) LES ACTUALITES ------- */
/* --------------------------------- */
.home-une{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}
.home-actus{
    display: flex;
    flex-direction: column;
    margin: 0px auto;
    padding: 10px;
}
.home-actu__main{
    display: flex;
    flex-direction: column;
    padding-bottom: 0px;
}
.home-actu__more{
    display: flex;
    padding-top: 0px;
}
.home-actu{
    position: relative;
    padding: 10px;
}
.home-actu img{
    width: 100%;
    object-fit: cover;
}
.home-actu__category, .home-actu__title, .home-actu__date{
    width: fit-content;  
}  
.home-actu__category{
    color: white;
    background-color: var(--main-color);
    padding: 1px 12px;
}
.home-actu__category > a{
    color: white;
}
.home-actu__title{
    background-color: white;
    padding: 8px 0px;
	font-size: 1.5rem;
	line-height: 1.2em;
}
.home-actu__date{
    color: var(--secondary-color);
    background-color: white;
}
.home-actu--1 .home-actu__content{
    position: absolute;
    bottom: 0px;
}
.home-actu--1 .home-actu__title{
    padding: 8px 12px;
    position: relative;
}
.home-actu--1 .home-actu__category, .home-actu--1 .home-actu__date{
    position: relative;
    padding: 1px 12px;
}
.home-actu__more > .home-actu{
    width: 50%;
}
.home-actu__more > .home-actu img{
    width: 100%;
    height: 150px;
	 /*height: 100%;*/
}

.home-actu__more > .home-actu:first-child{
/*    display: none;
	height: 300px; 
	margin-top: 100px; */
}
home-actu__more > .home-actu:first-child img{
	height: 100%

}
.home-actu__more .home-actu__content{
    margin-top: -3px;
}
@media (min-width: 960px){

    .home-actu__more .home-actu__content{
        margin-top: 0px;
    }
    .home-actu__more > .home-actu{
        width: 100%;
    }
    .home-une{
        background-image: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/fond-actus.svg');
        background-size: cover;
        background-repeat: no-repeat;
        background-position-y: 110px;
        margin-bottom: 125px;
    }
    .home-actu__category{
        position: unset;
    }
    .home-actu__content{
        position: absolute;
        bottom: 0px;
    }
    .home-actu--1 .home-actu__content{
        bottom: 40px;
    }
    .home-actu--1 .home-actu__title{
        max-width: 400px;
    }
    .home-actus__title{
        text-align: right;
        margin-top: 70px;
        margin-right: 15px;
    }
    .home-actus{
        flex-direction: row;
        padding: 0px;
    }
    .home-actu{
        margin: 15px;
        transition: all 0.2s ease-out;
        padding: 0px;
    }
    .home-actu:hover img{
        transform: scale(1.1);
    }
    .home-actu__main{
        width: 64%;
        display: flex;
        flex-direction: column;
        padding-bottom: 20px;
    }
    .home-actu__more{
        width: 36%;
        flex-direction: column;
        padding-top: 20px;
    }
    .home-actu img{
        transition: all 0.2s ease-out;
    }
    .home-actu--1 img{
        height: 500px;
    }
    .home-actu--1 .home-actu__image-container{
        height: 500px;
        width: 100%;
        overflow: hidden;
    }
    
    .home-actu__more .home-actu:nth-child(1) img, .home-actu__more .home-actu:nth-child(2) img{
        height: 307px;
    }
    .home-actu__more .home-actu:nth-child(1) .home-actu__image-container, .home-actu__more .home-actu:nth-child(2) .home-actu__image-container{
        height: 307px;
        width: 100%;
        overflow: hidden;
    }
    .home-actu__title{
        padding: 8px 12px;
    } 
    .home-actu__category, .home-actu__date{
        padding: 1px 12px;
    } 
    .home-une__btn{
        position: relative;
        bottom: -20px;
    }
}

@media (max-width: 960px){
	.home-actu__title{
		font-size: 1.2rem;
	}
	.home-culture__btn-container{
		height: 150px
	}
	.home-mediatheque__title > span{
		font-size: 2rem;
		line-height: 35px !important;
	}
}
/* --------------------------------- */
/* ---------- D) L'AGENDA ---------- */
/* --------------------------------- */

.home-event__date-debut, .home-event__date-fin{
    width: 75px;
    background: var(--secondary-color);
    color: white;
    font-family: 'Dinot-Bold', sans-serif;
    font-size: 2rem;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0px 20px;
	line-height: 2rem;
}
.home-agenda .btn-secondaire{
    margin: 0 auto;
    margin-bottom: 60px;
}
.home-agenda__content{
    margin-bottom: 0px;
}
.home-event__date{
    display: flex;
}
.home-event__date-separateur{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    margin-right: -10px;
    margin-left: -10px;
}
.home-event__date-separateur:after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border: solid 2px var(--main-color);
    /* background-color: var(--secondary-color); */
    transform: rotate(45deg);
    border-bottom: 0px;
    border-left: 0px;
    position: relative;
    left: -4px;
}

.home-event__content{
    position: relative;
    top: -60px;
}
.home-event__title{
    margin: 20px 0px 10px 0px;
}
.home-agenda .btn-plus{
    display: none;
}
.home-event__img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.home-agenda__more-date{
    display: none;
}
.home-agenda{
    padding: 20px;
}    
.home-agenda__conseil-text{
    font-size: 1.2rem;
    line-height: 1.3rem;
    position: relative;
    max-width: 120px;
}
.home-agenda__conseil-text:before{
    content: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/icon-conseil.svg');
    width: 80px;
    display: block;
}
.home-agenda__conseil-text:after{
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border: solid 2px var(--secondary-color);
    border-bottom: none;
    border-left: none;
    transform: rotate(45deg);
    position: absolute;
    right: -20px;
    bottom: 6px;
}
.home-agenda__conseil{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}
@media (min-width: 960px){
    .home-agenda__first-date .home-event__title{
        margin-top: 7px;
    }
    .home-agenda__more-date > .home-event:first-child{
        display: none;
    }
    .home-agenda .btn-secondaire{
        margin-bottom: 160px;
    }
    .home-agenda .btn-plus{
        display: block;
    }
    .home-agenda__conseil{
        padding-left: 40px;
    }
    .home-agenda__conseil-text{
        font-size: 1.6rem;
        line-height: 1.8rem;
        position: relative;
        max-width: 160px;
    }
    .home-agenda__conseil-text:after{
        width: 20px;
        height: 20px;
    }
    .home-agenda__more-date{
        display: block;
    }
    .home-event__date{
        position: relative;
        top: -45px;
        left: 0px;
        justify-content: center;
    }
    .home-agenda__content{
        position: relative;
    }
    .home-agenda__title{
        width: 960px;
        position: absolute;
        top: 0px;
        right: 0px;
        background-color: white;
        padding: 30px;
        z-index: 50;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .home-agenda > section{
        display: flex;
    }
    .home-agenda__first-date{
        width: 35%;
    }
    .home-agenda__more-date{
        width: 50%;
    }
    .home-agenda__conseil{
        width: 15%;
        margin-bottom: 0px;
    }
    .home-event{
        display: flex;
        flex-direction: column;
    }
    .home-event__content{
        top: 0px;
    }
    .home-event__title{
        margin-bottom: 10px;
    }
    .home-event__texts{
        position: relative;
        top: -50px;
    }
    .home-event__img-container{
        height: 450px;
        width: 100%;
        overflow: hidden;
    }
    .home-agenda__first-date .home-event__img-container{
        width: 163%;
        min-width: 635px;
        margin-left: -270px;
    }
    .home-event__img{
        height: 450px;
        width: 100%;
        overflow: hidden;
        transition: all 0.2s ease-out;
    }
    .home-event__img{
        transform: scale(1);
        transition: all 0.2s ease-out;
    }
    .home-event:hover .home-event__img{
        transform: scale(1.07);
    }
    .home-event:hover .btn-plus{
        transform: scale(1.32);
    }
    .home-agenda__first-date .home-event__img-supercontainer{
        position: relative;
        overflow: visible;
    }
    
    .home-agenda__first-date .home-event__img{
        width: 690px;
        right: 0px;
    }
    .home-agenda__first-date .home-event__date{
        width: fit-content;
        height: fit-content;
        margin-left: -100px;
        margin-right: 30px;
        top: 10px;
        justify-content: flex-start;
    }
    
    .home-agenda__first-date .home-event__content{
        width: 80%;
        margin-left: 20%;
        display: flex;
        margin-top: 40px;
    }
    .home-agenda__first-date .home-event__texts{
        top: 0px;
    }
    .home-agenda__more-date{
        display: flex;
    }
    .home-agenda__more-date .home-event{
        width: 270px;
        margin-left: 30px;
    }
    .home-event .btn-plus{
        margin: 20px auto;
    }
    .home-agenda__first-date .btn-plus{
        margin: 20px 0px;
    }
    .home-agenda__title:after {
        content: url(https://mairie-barbezieux.fr/wp-content/uploads/2022/06/quote.svg);
        height: 0px;
        width: 160px;
        display: block;
        position: relative;
        top: -100px;
        right: -30px;
    }
    .home-agenda__conseil-text{
        transition: all 0.2s ease-out;
    }
    .home-agenda__conseil-text:hover{
        color: var(--secondary-color);
    }
}
/* --------------------------------- */
/* ----------- E) CULTURE ---------- */
/* --------------------------------- */

.home-figure__container{
    position: relative;
}
.home-lieux{
    padding: 20px;
}
.home-figure__text{
    position: absolute;
    top: 0px;
    right: 0px;
}
.home-figure__title{
    background-color: white;
    padding: 15px;
    color: var(--secondary-color);
	line-height: 1em;
}
.home-figure__container{
    width: 100%;
    height: 300px;
}
.home-figure__img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-culture__btns{
    display: flex;
    justify-content: center;
    position: relative;
    top: -115px;
}
.home-culture__btn-container{
    width: 50%;
    background-color: var(--secondary-color);
    border-radius: 100px;
    height: 170px;
    width: 170px;
    border: solid 5px white;
    margin: 10px;
}

.home-culture__btn-link{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 25px;
}
.home-culture__btn-img{
    height: 30px;
    margin-bottom: 10px;
}

.home-culture__btn-title{
    text-align: center;
    width: 80%;
    margin: 0 auto;
    color: white;
    line-height: 1.2rem;
	font-size: 1rem;
}
.home-culture__btn-container:last-of-type .home-culture__btn-title > span{
    display: block;
}
.home-culture__btn-container:last-of-type .home-culture__btn-title > span:last-child{
    font-family: "Dinot-Light", sans-serif;
}
.home-culture__btn-container:last-of-type .home-culture__btn-title{
    width: 100%;
}
.home-culture{
    margin-bottom: 90px;
}
.home-mediatheque{
    position: relative;
    margin-top: -80px;
    padding-bottom: 10px;
}
.home-mediatheque__background{
    height: 100%;
    position: absolute;
    width: 100%;
    object-fit: cover;
    z-index: -20;
}
.home-mediatheque__figure{
    position: relative;
}
.home-mediatheque__title-container{
    position: absolute;
    bottom: 2px;
    left: 0px;
}
.home-mediatheque__title{
    background-color: white;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    margin: 0px;
    max-width: 85vw;
}
.home-mediatheque__title > span{
    font-size: 2rem;
	line-height: 23px;
}
.home-mediatheque__content{
    padding: 20px;
    max-width: 800px;
}
.home-mediatheque__content div{
    color: white;
    line-height: 1.5rem;
}
.home-mediatheque__image{
    width:100%;
    height: 500px;
    object-fit: cover;
}
@media (min-width: 960px){
    .home-culture__btn-img{
        height: 50px;
        margin-bottom: 10px;
    }
    .home-mediatheque__title{
        background-color: rgba(0, 0, 0, 0);
		padding: 40px 20px;
        font-size: 2.5rem;
        font-weight: 200;
        padding: 0px;
        position: relative;
    }
    .home-mediatheque__title:after{
        content: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/icon-mediatheque.svg');
        width: 50px;
        height: 50px;
        position: absolute;
        top: -50px;
        right: 100px;
    }
    .home-mediatheque__title > span{
        padding: 10px 20px;
        background-color: white;
        font-weight: 200;
        width: fit-content;
        font-size: 2.5rem;
    }
    .home-mediatheque__title-container{
        left: 30px;
    }
    .home-culture__title{
        text-align: right;
    }
    .home-culture__btn-container{
        margin: 30px;
        transition: all 0.2s ease-out;
    }
    .home-culture__btn-container:hover{
        transform: scale(1.1);
    }
    .home-figure__title {
        font-size: 2.5rem;
        font-family: 'ABeeZee';
        font-weight: 100;
        max-width: 185px;
        text-align: right;
        padding-right: 0px;
    }
    .home-culture{
        display: flex;
        justify-content: flex-end;
        margin-bottom: 100px;
    }
    .home-figure__container{
        height: 500px;
        position: relative;
    }
    .home-figure__container:before{
        content: "";
        display: block;
        height: 200px;
        width: 200px;
        position: absolute;
        top: -50px;
        left: -100px;
        background-image: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/motif-culture.svg');
        background-size: contain;
        background-repeat: no-repeat;
    }
    .home-lieux{
        width: 40%;
        margin-right: 40px;
        padding: 0px;
        max-width: 500px;
    }
    .home-mediatheque{
        width: 60%;
        overflow: visible;
        height: fit-content;
        padding-bottom: 40px;
        margin-top: 0px;
    }
    .home-mediatheque__image{
        max-width: 800px;
        margin-top: -80px;
    }
    .home-mediatheque__content{
        width: 35%;
        margin-left: 40px;
        margin-top: 30px;
        padding: 0px;
    }
    .home-mediatheque__btn{
        margin-top: 30px;
        margin-left: 40px;
    }
    .home-mediatheque__btn:hover{
        background-color: white;
        color: var(--main-color);
    }
    /* .home-mediatheque__btn:hover{
        box-shadow: 7px 7px 0px white;
    } */
}
/* --------------------------------- */
/* ---------- F) KIOSQUE ----------- */
/* --------------------------------- */
.home-kiosque{
    padding: 20px;
}
.home-kiosque__lelan-container{
    display: none;
}
.home-kiosque__btns-publi{
    display: flex;
}
.home-kiosque__btn-publi > img{
    width: 60px;
    margin-right: 15px;
    transition: all 0.2s ease-out;
}
.home-kiosque__date{
    color: var(--secondary-color);
    margin-top: 6px;
    margin-bottom: 20px;
}
@media (min-width: 960px){
    .home-kiosque__lelan-container{
        display: block;
    }
    .home-kiosque__lelan-container{
        background-image: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/kiosque-fond.svg');
        background-size: contain;
        background-repeat: no-repeat; 
     }
    .home-kiosque__title{
        margin-bottom: 40px;
        position: relative;
    }
    .home-kiosque__title:before{
        content: url('https://mairie-barbezieux.fr/wp-content/uploads/2022/06/kiosque-fond-2.svg');
        position: absolute;
        top: -250px;
        left: -270px;
        width: 370px;
        z-index: -50;
    }
    .home-kiosque{
        display: flex;
        padding: 0px;
    }
    .home-kiosque__content{
        width: 60%;
        padding-top: 190px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-left: 20%;
        padding-bottom: 80px;
    }
    .home-kiosque__lelan-container{
        width: 40%;
        height: fit-content;
        padding: 40px 0px 80px 0px;
    }
    .home-kiosque__lelan-container > a:hover > img{
        transform: scale(1.05);
    }
    .home-kiosque__lelan{
        position: relative;
        left: 0px;
        box-shadow: 0px 0px 7px lightgrey;
        transition: all 0.2s ease-out;
        width: 370px;
        height: 500px;
        object-fit: cover;
    }
    .home-kiosque__btn-publi:hover > img{
        transform: rotate(15deg);
    }
    
}