/* Variables globales*/
:root {
    /*Couleurs*/
    --cl-dark-blue: #244B84;
    --cl-light-blue: #0E5FD6;
    --cl-pink: #C34B80;
    --cl-white: #fff;
    --cl-black: #000;
    --cl-grey: #dde5ed;

    --fw-ligth: 200;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fw-heavy: 800;
}

.filson {
    font-family: "filson-pro", sans-serif;
    font-style: normal;
}


/* --------------------------- HOME --------------------------- */

/************Banniere************/
.banniere {
    min-height: calc(100vh - 187px);
    position: relative;
}

.date_lieu_salon {
    position: absolute;
    bottom: 0;
    left: 50%;
    background-color: var(--cl-light-blue);
    padding: 1rem;
    translate: -50%;
}

.salon_title_wrapper {
    transform: translateY(-40%);
}

.title_salon {
    font-size: 400%;
    font-weight: var(--fw-bold);
    display: inline;
    background: linear-gradient(rgba(0, 0, 0, 0) 75%, var(--cl-light-blue) 25%);
    margin-bottom: 20px;
}

.intro_salon {
    font-size: 150%;
    font-weight: var(--fw-regular);
    line-height: 1.1;
    margin-top: 2rem;
}

.date_salon {
    font-size: 280%;
    font-weight: var(--fw-heavy);
    line-height:1;
}


.lieu_salon {
    font-size: 150%;
    font-weight: var(--fw-bold);
    margin:0;
    line-height:1.2;
}


/************LIEU************/
.section_lieu.wp-block-group {
    padding: 0 !important;
}

.lieu.wp-block-columns,
.lieu figure.wp-block-image {
    margin: 0;
}

.lieu_right .wp-block-image{position:relative; height:100%;}
.lieu_right .wp-block-image img{height:100%; width:100%; object-fit:cover}

.lieu h2 {
    color: var(--cl-white);
    font-size: 250%;
    font-weight: 900;
    max-width: 100%;
    text-align: right;
    text-transform: uppercase;
    line-height: 1.3;
    translate: 30%;
    word-break: break-word;
    margin-left: auto;
    padding-top: 30px;
    position:relative;
    z-index:1;
}

.lieu h2 span {
    background: linear-gradient(rgba(0, 0, 0, 0) 75%, var(--cl-light-blue) 25%);
}

.lieu_left p {
    /* max-width: 50%; */
    margin-left: auto;
    padding-bottom: 30px;
}

/************ARGUMENTS COMMERCIAUX************/
.arguments_commeciaux_title {
    padding-block: 60px;
    display: grid;
    justify-content: center;
}

.home-grid .wp-block-columns {
    gap: 1em;
    margin-bottom: 1em !important;
}

.home-grid .wp-block-column {
    position: relative;
}

.home-grid .wp-block-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.home-grid .wp-block-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-grid p {
    position: absolute;
    margin: 0;
    font-size: 180%;
    padding: 30px;
    font-weight: 300;
    color: #fff;
    background-color: rgba(14, 95, 214, 0.8);
    z-index: 1;
}

.home-grid .square {
    aspect-ratio: 1;
}

.home-grid .square.top img{
    object-position:top;
}


.home-grid .rectangle {
    position: relative;
    aspect-ratio: 4.5;
}
.home-grid .rectangle .wp-block-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}
    
.home-grid .rectangle .wp-block-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-grid .square.overlay-bottom p {
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: right;
}

.home-grid .overlay-top p {
    top: 0;
    left: 0;
    width: 100%;
}

.home-grid .overlay-full p {
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: flex-end;
    text-align: right;
}

.home-grid .overlay-left p {
    top: 0;
    left: 0;
    height: 100%;
    width: 47%;
}

/************ACTUS************/
#actus_container {
    background-color: var(--cl-light-blue);
    color: var(--cl-white);
    position: relative;
}

#actus_container::after {
    position: absolute;
    content: url("../images/picto_actus.svg");
    display: block;
    bottom: 0;
    right: 20%;
}

.actus-home-container {
    display: flex;
    gap: 2em;
}

.actus-home__visuel {
    flex-basis: calc(48% - 1em);
}

.actus-home__visuel img {
    max-width: 100%;
    height: auto;
}

.actus-home__content {
    flex-basis: calc(52% - 1em);
    font-weight: 100;
}

.actus-home__title {
    font-size: 180%;
    margin-bottom: 15px;
}

.actus-home__link {
    display: block;
    width: max-content;
    background: var(--cl-pink);
    border: 1px solid var(--cl-pink);
    padding: 10px 15px;
    color: var(--cl-white);
    border-radius: 5px;
    margin-top: 30px;
    text-decoration: none;
    font-weight: 400;
}

.actus-home__link:after {
    content: url(../images/picto_right_arrow.svg);
    display: inline-block;
    margin-left: 10px;
    height: 18px;
    width: 18px;
    vertical-align: middle;
}

.actus-home__link:hover {
    background: var(--cl-white);
    color: var(--cl-pink);
}


.actus-indicators-wrapper {
    display: flex;
    justify-content: center;
}

.carousel-indicators [data-bs-target] {
    height: 15px;
    width: 15px;
    border-radius: 50%;
}

.carousel-indicators [data-bs-target].active,
.carousel-indicators [data-bs-target]:hover {
    height: 15px;
    width: 15px;
    border-radius: 50%;
}


/* --------------------------- HOME RESPONSIVE --------------------------- */


@media all and (max-width: 1800px) {
    .lieu h2 {
        font-size: 300% !important;
    }
}

@media all and (max-width: 1650px) {
    .lieu h2 {
        font-size: 250%;
    }

    .lieu_left p {
        max-width: 60%;
    }
}

@media all and (max-width: 1400px) {
    .salon_title_wrapper{transform:translateY(-20%);}
    .title_salon{font-size:250%;}
    .date_salon{font-size:180%;}
    .lieu_salon{font-size:130%;}
    
    /* Grid */
    .home-grid p{font-size:130%;}

    .lieu h2 {
        font-size: 220%;
    }

    .lieu_left p {
        max-width: 70%;
    }
}


@media all and (max-width:1200px) {

    /* Grid */
    .home-grid .square{aspect-ratio:1.2;}
    .home-grid p{font-size:120%;}
	
    .title_salon {
        font-size: 300%;
    }

    .intro_salon {
        font-size: 120%;
    }

    .date_salon {
        font-size: 200%;
    }

    .lieu_salon {
        font-size: 150%;
    }

    .lieu h2 {
        font-size: 200%;
        max-width: 90%;
    }

    .lieu_left p {
        max-width: 80%;
    }

}


@media all and (min-width:1000px) and (max-height:600px){
    .title_salon{font-size:200%;}
    .intro_salon{font-size:130%; margin-bottom:110px;}
    .date_lieu_salon{font-size:90%;}
    .date_salon{font-size:150%; margin-bottom:5px;}
    .lieu_salon{font-size:120%;}

    #quick-access-menu{top:30%;}
}

@media all and (min-width:1000px) and (max-height:550px){
    .intro_salon{margin-bottom:80px;}
}


@media all and (min-width:1000px) and (max-height:500px){
    .intro_salon{margin-bottom:30px;}
}



@media all and (max-width:991px) {
    
    /* Grid */
    .home-grid p{padding:15px;}


    .title_salon {
        font-size: 250%;
    }

    .intro_salon {
        font-size: 100%;
    }

    .date_salon {
        font-size: 150%;
    }

    .lieu_salon {
        font-size: 100%;
    }

    .wp-image-222 {
        width: 80% !important;
        margin-inline: auto;
        display: inherit;
    }

    .actus-title-container {
        max-width: 80%;
        margin-inline: auto;
    }

    .actus-home__title {
        font-size: 120%;
    }

    .lieu {
        flex-wrap: wrap !important;
    }

    .lieu_left,
    .lieu_right {
        flex-basis: 100% !important;
    }
    
    .lieu_right .wp-block-image{max-height:400px;}

    .lieu h2 {
        font-size: 180%;
        max-width: 100%;
        translate: 0;
        text-align: center;
        max-width: 80%;
        margin-inline: auto;
    }

    .lieu_left p {
        max-width: 90%;
        text-align: center;
        padding-bottom: 0;
        margin-top: 2rem;
        margin-inline: auto;
    }

    #actus_container::after {
        right: 10%;
    }

}


@media all and (max-width:781px) {
    /* Grid */
    .home-grid .wp-block-column{max-width:450px; margin:0 auto;}
    .home-grid .square{aspect-ratio:2;}
    .home-grid .wp-block-column:not(.square){aspect-ratio:2.5;}
    .home-grid .rectangle{max-width:450px; margin:0 auto; aspect-ratio:2.5;}
    .home-grid .rectangle.overlay-left p{width:50%;}
}

@media all and (max-width:767px) {
    /* Bannière */
	.banniere{min-height:inherit;}
	.banniere .wp-block-cover__inner-container{padding:30px 0 120px;}
	.salon_title_wrapper{transform:translateY(0);}

    /* Actus */
    .actus-container{padding:0 15px;}
    .actus-home-container {
        display: flex;
        flex-wrap: wrap;
    }

    .actus-home-container>* {
        flex-basis: 100%;
    }


    .home-grid .wp-block-image,
    .home-grid .wp-block-image img {
        position: initial;
    }

    .home-grid .rectangle.overlay-left p {
        width: 52%;
    }
}

@media all and (max-width:650px) {
    .partenaires-container {
        flex: 1 1 40%;
    }

    .contact_infos_logo {
        max-width: 100%;
        object-fit: contain;
        padding-inline: 1rem;
    }
}

@media all and (max-width:575px) {
    /* Bannière */
	.banniere .wp-block-cover__inner-container{padding:20px 0 130px;}

    .title_salon {
        font-size: 150%;
    }

    .date_salon {
        font-size: 120%;
    }

    .lieu_salon {
        font-size: 100%;
    }

    .home-grid .rectangle.overlay-left p {
        width: 100%;
    }

    .home-grid p {
        font-size: 120%;
    }

    #actus_container::after {
        display: none;
    }

    .partenaires-container {
        flex: 1 1 80%;
        margin-bottom: 20px;
    }

    .footer_legals_list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer_legals_list li:last-of-type {
        margin-left: 0;
    }

    .date_lieu_salon{width:80%;}

}

@media all and (max-width:500px) {
    .home-grid .wp-block-column{max-width:95%;}
    .home-grid .rectangle{max-width:95%;}
    .home-grid p{font-size:90%;}
}

@media all and (max-width:350px) {
    .banniere {
        min-height: 65vh;
        padding:0 !important;
    }

    .title_salon {
        font-size: 120%;
    }

    .intro_salon {
        font-size: 90%;
    }


    .date_salon {
        font-size: 100%;
    }

    .lieu_salon {
        font-size: 80%;
    }

}