@media(min-width: 481px) {}

@media(min-width: 768px) {
    /*------------------- NEWS / ACTU ---------------------*/

    #news .wrapper_slider:first-of-type {
        grid-column: span 2;
        grid-row: span 3
    }

    #news .wrapper_slider:first-of-type .content_slider .title {
        min-width: 600px;
        position: relative;
        z-index: 2
    }

    #news .wrapper_slider:first-of-type .title_slider {
        font-size: 45px;
        text-shadow: 0 0 8px #00000054;
        line-height: 1.1;
        margin-bottom: 15px !important;
    }

    #news .wrapper_slider:first-of-type .wrapper_inner_slider {
        display: flex
    }

    #news .wrapper_slider:first-of-type .thumbnail_slider {
        order: 2;
        height: 550px;
        width: 90%;
    }

    #news .wrapper_slider:first-of-type .content_slider {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #news .wrapper_slider:first-of-type .text_slider,
    #news .wrapper_slider:first-of-type .text_slider a {
        max-width: 80%;
        line-height: 1.7;
        font-size: 16px
    }
}

@media(min-width: 1025px) {

    /*-----------------*/
    /* HEADER */
    /*-----------------*/
    #infoadresse {
        order: -1
    }

    #header-coordonnees div br {
        display: none
    }

    #logoCoordonnees {
        grid-row: span 2;
        order: -1;
        margin: -10px 30px;
    }

    #logoCoordonnees img {
        width: 330px;
    }

    #header-coordonnees {
        margin: 20px auto 20px;
    }

    #header-coordonnees>:nth-child(1),
    #header-coordonnees>:nth-child(4) {
        padding: 0 24px 0 0;
        text-align: right
    }

    #header-coordonnees>:nth-child(1) span,
    #header-coordonnees>:nth-child(4) span {
        text-align: right
    }

    #headerSocial .sociblock .share-buttons {
        justify-content: flex-start
    }

    #header-coordonnees>:nth-child(1):before,
    #header-coordonnees>:nth-child(4):before {
        right: 0;
        left: auto
    }
    #navprimary .navigtoogle:not(:last-child)::after
    {
        content : "";
        position: absolute;
        left: 0;
        top: 50%;
        transform:translateY(-50%);
        --size:100%;
        width: var(--size);
        height: 15px;
        border-right: 1px solid var(--white);
        opacity: 0.5;
        pointer-events: none;
    }
    /*-----------------*/
    /* HEADERHOME */
    /*-----------------*/

    #headerHome-title {
        position: relative;
        /* margin-bottom: 40px; */
    }

    .headerHome-img>div {
        overflow: hidden;
    }

    .headerHome-img :is(.headerHome-imgLeft2, .headerHome-imgLeft4) {
        position: absolute;
    }

    .headerHome-img .headerHome-imgLeft1 {
        width: 120%;
        margin-top: 5%;
        position: relative;
        height: 84%;
        margin-left: 3%;
    }

    .headerHome-img .headerHome-imgLeft2 img {
        object-position: 22%;
    }

    .headerHome-img .headerHome-imgLeft3 img {
        object-position: 78%;
    }

    .headerHome-img .headerHome-imgLeft4 img {
        object-position: 30%;
    }

    .headerHome-img .headerHome-imgLeft2 {
        width: 48%;
        height: 31%;
        right: 0%;
        bottom: 3%;
    }

    .headerHome-img .headerHome-imgLeft3 {
        height: 58%;
        width: 73%;
        margin-left: auto;
        top: 10%;
        position: relative;
    }

    .headerHome-img .headerHome-imgLeft4 {
        width: 55%;
        height: 42%;
        left: 3%;
        top: 44%;
    }

    /*-----------------*/
    /* NAVPRIMARY */
    /*-----------------*/
    #header:not(.fixed-header) #navprimary {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        border-bottom: 1px solid rgb(255 255 255 / 40%);
    }

    #navprimary .navigmenu {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .has-child-megamenu .naviglink.lvl-2 span {
        padding-left: 12px;
    }

    .has-child-megamenu .naviglink.lvl-2 span:before {
        content: "";
        --size: 5px;
        width: var(--size);
        height: var(--size);
        position: absolute;
        left: 0;
        border: solid 1px var(--primary-color);
        top: 12px;
        border-radius: 10px;
        transition: 250ms all ease-in-out;
    }

    .has-child-megamenu .naviglink.lvl-2:hover span:before {
        background: var(--primary-color);
    }

    /*-----------------*/
    /* CONTENT */
    /*-----------------*/
    .home #content {
        padding: 150px 15px 100px;
    }

    .home #content .tc_content .wp-block-gallery {
        display: grid;
        grid-template-columns: repeat(14, 1fr);
        grid-auto-rows: 165px;
        gap: 15px;
    }


    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(1) {
        grid-column: 10 / span 4;
        grid-row: 1 / span 3;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(2) {
        grid-column: 6 / span 3;
        grid-row: 3 / span 3;
        position: relative;
        z-index: 4;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(3) {
        grid-column: 1 / span 4;
        grid-row: 4 / span 4;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(4) {
        grid-column: 5 / span 6;
        grid-row: 5 / span 4;
        z-index: 2;
        padding-left: 50px;
        padding-right: 50px;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(5) {
        grid-column: 11 / span 4;
        grid-row: 3 / span 3;
        position: relative;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(6) {
        grid-column: 1 / span 3;
        grid-row: 9 / span 4;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(7) {
        grid-column: 4 / span 3;
        grid-row: 8 / span 3;
        z-index: 3;
        padding-left: 50px;
    }

    .home #content .tc_content .title {
        grid-column: 1 / span 8;
        grid-row: 1/ span 2;
    }

    .home #content .tc_content .text-blockHome {
        grid-column: 8 / span 7;
        grid-row: 9 / span 5;
        padding: 100px 50px;
    }

    .home #content::before,#sections::before
    {
        background: url(../images/backgroundFond1.png);
        background-position: top right;
        background-repeat: no-repeat;
        background-size: 300px;
        animation: 4s floating infinite ease-in-out;
    }
    .home #content::after,#sections::after
    {
        background: url(../images/backgroundFond2.png);
        background-position: left bottom;
        background-repeat: no-repeat;
        background-size: 300px;
        z-index: 2;        
        animation: 4s floating infinite ease-in-out;
    }
    .home #content::after
    {
        background-position: left bottom 100px;
    }
    /*------------------- PRESTATIONS ---------------------*/
    #prestations {
        padding: 130Px 50px;
        z-index: 2;
    }

    .widget_parentpage {
        gap: 0 !important;
    }

    #prestations .prestations-wrapper>*:not(.prestations-title) {
        transition: all 1s;
    }

    #prestations .hiddenChild .prestations-wrapper>*:not(.prestations-title) {
        opacity: 0;
    }

    .bloc_prestations .prestations-wrapper {
        display: grid;
        grid-template-columns: 140Px 2fr 2fr;
        align-items: stretch;
        height: 100%;
    }

    .widget_parentpage {
        display: flex;
        justify-content: center;
        flex-grow: 1;
        flex-shrink: 0;
        flex-basis: auto;
        counter-reset: prestations;
    }

    .prestations-img {
        position: relative;
    }

    .prestations-img::before {
        counter-increment: prestations;
        content: "0"counter(prestations);
        position: absolute;
        top: 0Px;
        right: -70px;
        font-size: 8em;
        font-family: var(--font-alt);
        z-index: 2;
        color: var(--secondary-color);
        border-bottom: 2Px solid var(--secondary-color);
        line-height: 1;
    }

    .bloc_prestations {
        width: 60%;
        transition: all 1s, background 0.4s;
        display: block;
        overflow: hidden;
    }

    .bloc_prestations:not(:first-child) {
        border-left: 1Px solid #ffffff24;
    }

    .prestations-title h3::after {
        content: "+";
        display: inline-block;
        margin-left: 10px;
        font-family: var(--font-alt);
        color: var(--secondary-color);
        transform: scale(0);
        transition: all 0.4s;
    }

    .bloc_prestations.hiddenChild .prestations-title h3::after {
        transform: scale(1);
    }

    .prestations-content {
        padding: 30px;
        margin-bottom: 50px;
    }

    .bloc_prestations.hiddenChild {
        width: 10%;
    }

    .prestations-title {
        position: relative;
        display: flex;
        align-items: flex-end;
        width: 100px;
        cursor: pointer;
    }

    .prestations-img {
        width: 100%;
        display: block;
        height: 100%;
        height: 600Px;
    }

    .prestations-title h3 {
        font-size: 2.5em;
        display: flex;
        transform: rotate(270deg);
        transform-origin: 0 5%;
        white-space: nowrap;
        align-items: center;
        position: relative;
        left: 23px;
        bottom: -49px;
    }

    .prestations-content {
        display: grid;
        align-content: end;
        min-width: 350px;
    }

    /*------------------- NEWS / ACTUS ---------------------*/
    #news .wrapper_slider:first-of-type .content_slider {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #news .wrapper_slider:first-of-type .wrapper_inner_slider {
        display: flex
    }

    #news .wrapper_slider:first-of-type .thumbnail_slider {
        order: 2;
        height: 550px;
        width: 50%;
    }
    /*-----------------*/
    /* SECTIONS */
    /*-----------------*/
	.sectionsbloc.even {padding: 100px 50px 600px;}
	.sectionsbloc.even .section_thumb .blocthumb {
	    height: 110%;
	    z-index: 1;
	    /* box-shadow: 0 0 20px rgb(0 0 0 / 20%); */
	}
	.sectionsbloc.even .section_txt .wrap-text {padding: 70px 50px 70px 0;}
	
	.sectionsbloc.even .specialthumb {
	    position: absolute;
	    left: 0;
	    right: 0;
	    bottom: 0;
	    height: 600px;
	    z-index: 0
	}
	
	.sectionsbloc.odd .section_thumb {
	    display: grid;
	    grid-template-columns: repeat(2,1fr);
	    grid-gap: 0 30px;
	    grid-auto-rows: 800px;
	    position: relative;
	    top: -80px;
	    z-index: 10
	}
	
	.sectionsbloc.odd .section_thumb .blocthumb {
	    position: relative;
	    top: 200px
	}
	
	.sectionsbloc.odd .section_txt {
	    position: relative;
	    z-index: 1;
	    padding-top: 120px;
	}
	.sectionsbloc.odd .section_txt:before,
    .sectionsbloc.odd .section_txt:after{
		top: 120px;
		width: 120%;
		height: calc(100% - 120px);
	}
    #sections
    {
        margin-bottom: 100px;
    }
     /*-----------------*/
    /* FOOTER */
    /*-----------------*/
	body:not(.template-contact-php) #footer:before {
	    background: url(../images/home-bg3.jpg);
	    background-position: center;
	}
	
	body:not(.template-contact-php) #footer:before {
        height: 500px;
        top: 110px;
    }
	
	#footer:after{
		background: var(--white);
		z-index: -2;
		top: 60px;
		height: calc(100% - 60px);
	}
	body.template-contact-php #footer:after{
		top: 0;
		height: 100%;
	}
	
	 .wrapperFooter {
        padding: 50px;
        width: 94%
    }
}

@media(min-width: 1025px) and (max-width:1281px) {
    .prestations-img {
        opacity: 0;
    }
}

@media(min-width: 1281px) {

    /*-----------------*/
    /* CONTENT */
    /*-----------------*/

    .home #content .tc_content .wp-block-gallery {
        grid-auto-rows: 135px;
    }
    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(1) {
        grid-column: 9 / span 3;
        grid-row: 1 / span 3;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(2) {
        grid-column: 6 / span 2;
    }

    /*------------------- PRESTATIONS ---------------------*/
    .prestations-title h3 {
        left: 43px;
    }
    /*-----------------*/
    /* SECTIONS */
    /*-----------------*/
	.sectionsbloc.even {padding: 120px 100px 800px;/* max-width: 1500px; */margin: 0 auto;width: calc(100% - 100px);}
	.sectionsbloc.even .specialthumb{height: 800px;}
	.sectionsbloc.even .section_txt .wrap-text {padding: 100px 100px 100px 0}
	.sectionsbloc .wrap-text {
	    padding: 150px 100px;
	    margin: auto;
	    max-width: 950px
	}
	.sectionsbloc.odd .section_txt{padding-top: 160px;}
	.sectionsbloc.odd .section_txt:before, 
    .sectionsbloc.odd .section_txt:after{
		top: 180px;
		height: calc(100% - 180px);
	}
}

@media(min-width: 1481px) {

    /*-----------------*/
    /* CONTENT */
    /*-----------------*/

    .home #content .tc_content .wp-block-gallery {
        grid-auto-rows: 115px;
    }
    .home #content .tc_content .text-blockHome {
        grid-column: 8 / span 5;
        grid-row: 9 / span 7;
        padding: 50px 20px;
        padding-top: 100px;
    }

    .home #content .tc_content .title {
        grid-column: 3 / span 5;
        grid-row: 1/ span 2;
        height: auto;
        align-items: start;
        display: grid;
        align-content: space-around;
    }
}

@media(min-width: 1681px) {

    .home #content .tc_content .wp-block-gallery {
        grid-auto-rows: 105px;
    }
}

@media(max-width: 1680px) {}

@media(max-width: 1480px) {
    .wrappercontent.medium {
        max-width: 850px;
    }
}

@media(max-width: 1280px) {
    .wrappercontent.medium {
        max-width: 720px;
    }

    /*-----------------*/
    /* HEADERHOME */
    /*-----------------*/
    #headerHome-title {
        font-size: 35px;
    }

    #headerHome-wrapper {
        padding: 80px 20px 60px;
    }

    #headerHome-title .typewrite {
        font-size: 16px;
    }
}

@media(max-width: 1024px) {

    /*-----------------*/
    /* HEADER */
    /*-----------------*/
    #logoCoordonnees {
        order: -1;
    }

    #header-coordonnees>div {
        max-width: 200px;
        width: 100%;
        margin: 8px auto;
    }

    #headerSocial .sociblock .share-buttons {
        justify-content: flex-start;
    }

    /*-----------------*/
    /* NAVPRIMARY */
    /*-----------------*/
    .navigmenu .naviglink {
        font-size: 14px;
    }

    .navigmenu .naviglink.lvl-0:not(.item-logo) span:after {
        bottom: 0;
        height: 2px;
    }

    .has-child-megamenu .naviglink.lvl-2 {
        text-align: center;
    }

    /*-----------------*/
    /* HEADERHOME */
    /*-----------------*/
    #headerHome {
        padding: 0;
    }
    #headerHome-wrapper {
        padding: 0;
        grid-gap: 4px;
    }

    #headerHome-content {
        padding: 90px 30px 120px;
        order: -1;
        position: absolute;
        top: 0;
        left: 50%;
        transform:translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #headerHome-title {
        margin-bottom: 10px;
        font-size: 32px;
        left: 0;
        min-width: auto;
    }

    #headerHome-imgLeft,
    #headerHome-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        grid-gap: 4px;
        padding: 2px;
    }

    #headerHome-diapo {
        position: relative;
        order: -1;
        grid-column: span 2;
        border-radius: 0;
    }

    #headerHome-content,
    #headerHome-diapo {
        min-height: 540px !important;
        height: 70vh !important;
    }

    /*-------------------MDTAC---------------------*/
    .md-tac {
        text-align: center;
    }

    .title.md-tac:not(.no-after):after {
        left: 50%;
        transform: translateX(-50%);
    }

    /*-----------------*/
    /* CONTENT */
    /*-----------------*/
    .home #content .title {
        order: -2;
        margin-bottom: 30px;
        grid-column: span 4;
    }

    .home #content .tc_content .text-blockHome {
        grid-column: span 4;
        order: -1;
        margin-bottom: 50px;
    }

    .home #content .tc_content .wp-block-gallery {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item {
        height: 200px;
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item:nth-of-type(7) {
        grid-column: span 2;
    }

    /*------------------- PRESTATIONS ---------------------*/
    .bloc_prestations h3 {
        margin-top: 0;
    }

    /*-----------------*/
	/* SECTIONS */
	/*-----------------*/
	.sectionsbloc .section_thumb {
	    display: grid;
	    grid-template-columns: 1fr 1fr;
	}
    /*------------------- NEWS / ACTU ---------------------*/
    #news .content-news {
        grid-gap: 0 30px;
    }

    #news:after {
        content: none;
    }

    #news {
        padding: 80px 15px;
        margin: 0;
    }

    #news .title_slider {
        font-size: 24px
    }

    #news .wrapper_slider:first-of-type img {
        filter: brightness(0.8);
    }

    #news .wrapper_slider:first-of-type .text_slider,
    #news .wrapper_slider:first-of-type .text_slider a {
        font-size: 14px
    }

    #news .wrapper_slider:first-of-type .content_slider .title {
        min-width: 170%
    }

    #news .wrapper_slider:first-of-type .title_slider {
        font-size: 35px;
    }

    #news .wrapper_slider:first-of-type .wrapper_inner_slider {
        display: flex;
        flex-direction: column-reverse
    }

    #news .wrapper_slider:first-of-type .content_slider .title {
        min-width: auto
    }

    #news .title_slider,
    #news .wrapper_slider:first-of-type .title_slider {
        font-size: 22px;
    }

    #news .next_slider {
        margin-top: -10px
    }

    #news .wrapper_slider:first-of-type .thumbnail_slider {
        height: 250px;
        margin-top: 30px
    }

    #news .content-news {
        grid-gap: 30px 0;
    }

    #news {
        padding: 70px 15px 60px;
    }

    /*-----------------*/
    /* REASSURANCES */
    /*-----------------*/
    .home #reassurances {
        height: 150px;
        margin-bottom: -40px;
        margin-top: -50px;
    }

    .home #reassurances-container {
        padding: 10px 10px;
        width: calc(100% + 10px);
        max-width: calc(100% + 10px);
        left: -5px;
    }

    .home .picto-container li {
        padding: 0 15px;
    }

    .home #reassurances-containerBis {
        padding: 0 10Px;
        width: calc(100% + 10Px);
        max-width: calc(100% + 10Px);
        height: 50px;
        left: -5px;
        font-size: 13px;
    }

    .home #reassurances-containerBis span {
        padding: 0;
    }

    .home #reassurances-containerBis span:before {
        content: none;
    }
    /*-----------------*/
	/* FOOTER */
	/*-----------------*/
	.wrapperFooter {
        padding: 70px 25px;
        grid-gap: 70px!important;
    }
	#footerLinks {padding: 20px 10px;}
	.imgFooter{
		height: 300px;
		margin: 0 -25px -70px;
	}
	#logoCoordonneesFooter img{width: 160px;}
	#footer{background: var(--white);}

}

@media(max-width: 767px) {
    /*-----------------*/
    /* HEADERHOME */
    /*-----------------*/

    #headerHome-content {
        padding: 40px 15px;
        height: auto !important;
    }

    #headerHome-imgLeft,
    #headerHome-right {
        grid-auto-rows: 140px;
        padding: 0;
    }

    #headerHome-content,
    #headerHome-diapo {
        min-height: 470px !important;
        right: 0;
    }

    #headerHome-title {
        font-size: 22px;
    }

    #headerHome-title .typewrite {
        font-size: 13px;
    }

    /*-----------------*/
    /* HEADER */
    /*-----------------*/
    .horairesTitle {
        font-size: 24px;
    }

    /*-----------------*/
    /* CONTENT */
    /*-----------------*/
    .home #content :is(.title, .tc_content .text-blockHome) {
        grid-column: span 2;
    }

    .home #content .tc_content .wp-block-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .home #content .tc_content .wp-block-gallery figure.gallery-item {
        height: 140px;
    }

    /*------------------- PRESTATIONS ---------------------*/
    .widget_parentpage {
        gap: 0 !important;
    }

    /*-----------------*/
    /* REASSURANCES */
    /*-----------------*/
    .home #reassurances-containerBis span {
        display: none;
    }

    .home .picto-container li p {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .nohome #reassurances .picto-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .nohome #reassurances .picto-container li:before {
        top: 50%;
        transform: translateY(-50%);
        --size: 50px
    }

    .nohome #reassurances .picto-container li svg,
    .nohome #reassurances .picto-container li img {
        --size: 25px
    }

    .nohome #reassurances .picto-container li {
        padding: 19px 35px
    }

    .nohome #reassurances .picto-container {
        max-width: 330px;
        margin: 0 auto
    }
     /*-----------------*/
	/* FOOTER */
	/*-----------------*/
	.wrapperFooter {
		padding: 40px 15px;
		grid-gap: 50px !important;
	}
	#logoCoordonneesFooter {
        margin-bottom: 15px;
        width: 150px;
    }
	.imgFooter{margin: 0 -15px -40px;}
}

@media(max-width: 480px) {}