/**
 * Theme Name: Horizon EV
 * Description: Blocksy Child theme
 * Author: Studio CAD
 * Template: blocksy
 * Text Domain: blocksy
 */

body, h1, h2, h3, h4, h5, h6, label, figcaption, blockquote, blockquote p, .menu a, .site-title, .entry-meta, .mobile-menu, .widget-title, .ct-post-title, .ct-breadcrumbs, .ct-header-text, .site-description, .page-description, .ct-footer-copyright, .ct-widget>*:not(.widget-title){
	/*color: var(--theme-palette-color-1);*/
}

.btn-gutenberg:hover .wp-block-button {
	background-color: var(--theme-palette-color-1, #61B15C) !important;
	filter: brightness(.9) contrast(1.2);
}

.img-gutenberg {
	width: 100% !important;
	height: 386px !important;
}

.img-gutenberg img {
	height: 386px !important;
	object-fit: cover;
}


@media (max-width: 781px){
	.reverse-gutenberg {
	display: flex !important;
    flex-direction: column-reverse !important;
	}
	
}

/* Couleur pour la date */
.timeline-color-change .stk-block-timeline__date.in-view {
    color: var(--theme-palette-color-1, #61B15C) !important;
}

/* Couleur pour le texte */
.timeline-color-change .timeline-color-change-p .stk-block-text__text.in-view {
    color: var(--theme-palette-color-4, #372416) !important;
}




/* --- 🟢 CARROUSEL FLEXIBLE (FLÈCHES) --- */
.flexy-arrow-prev, .flexy-arrow-next {
    border-radius: 0 !important;
    background-color: #F5F5F090 !important;
    height: 80px !important;
    width: 80px !important;
    top: 20% !important;
}

.flexy-arrow-prev {
    border-radius: 0 5px 5px 0 !important;
    left: 0 !important;
}

.flexy-arrow-next {
    border-radius: 5px 0 0 5px !important;
    right: 0 !important;
}

.flexy-arrow-prev svg, .flexy-arrow-next svg {
    height: 32px !important;
    width: 32px !important;
}

/* --- 🟢 ARTICLES LIÉS (SINGLE POST) --- */
.single-post .ct-related-posts-items .post {
    background-color: var(--theme-palette-color-5);
    border-radius: 24px;
    overflow: hidden;
}

.single-post .ct-related-posts-items .related-entry-title {
    padding: 32px;
}

/* --- 🟢 TITRES DE COLONNES (OFFRES ET BLOG) --- */
.offres-column-titre,
.blog-column-titre, .realisations-column-titre {
    display: none;
}

.single-offre .offres-column-titre {
    display: block !important;
}

.single-post .blog-column-titre {
    display: block !important;
}

.single-realisation .realisations-column-titre {
	display: block !important;
}

/* --- 🟢 IMAGE MISE EN AVANT AVEC TITRE (SIMPLE) --- */
.featured-image-title-simple-container {
    display: flex;
    align-items: center;
}

.featured-image-simple-container {
    flex: 0 0 55%;
    padding-right: 40px;
}

.featured-image-simple-container img {
    object-fit: cover;
    aspect-ratio: 4 / 1;
    max-width: 100%;
    height: 360px;
    display: block;
    border-radius: 30px;
}

.title-simple-container {
    flex: 0 0 45%;
}

.title-simple-container h1 {
    margin: 0;
    font-weight: 700;
}

/* --- 🟢 BOUTONS ET PAGINATION (OFFRES, ACTUS, ARTICLES) --- */
.offres-card .entry-button, 
.offres-card .ct-load-more, 
.card-actu .entry-button, 
.card-actu .ct-load-more, 
.article-button, .realisations-cards .ct-load-more {
    font-size: 18px;
    font-weight: 400;
    text-decoration: underline;
}

.card-actu .ct-pagination {
    padding: 16px 0 !important;
    border-top: 1px solid #D2D1D1;
    border-bottom: 1px solid #D2D1D1;
}

.realisations-cards .ct-pagination {
    padding-bottom: 32px !important;
    border-bottom: 1px solid #D2D1D1;
}

.offres-card .entry-button:hover, 
.card-actu .entry-button:hover, 
.btn-link:hover {
    color: var(--theme-palette-color-1, #61B15C);
}

.offres-card .ct-pagination {
    border-bottom: 1px solid #D2D1D1;
    padding-bottom: 24px;
}

/* --- 🟢 COLONNE GAUCHE (OFFRES) --- */
.offres-column-left {
    max-height: 800px;
}

/* --- 🟢 MARGE SUPÉRIEURE (SINGLE OFFRE ET SINGLE POST) --- */
.single-offre .site-main, 
.single-post .site-main, .single-realisation .site-main {
    margin-top: 120px;
}

/* --- 🟢 LISTE À PUCES (ANCRES) --- */
ul.liste-ancres {
    list-style-type: none;
    padding-left: 0;
}

ul.liste-ancres li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 24px;
}

ul.liste-ancres li::before {
    content: "•";
    font-size: 48px;
    line-height: 0.8em;
    position: absolute;
    left: 0;
    color: #CCCCB9;
}

ul.liste-ancres li a {
    text-decoration: none;
    color: inherit;
}

ul.liste-ancres a.active, 
ul.liste-ancres li.active-puce::before {
    color: var(--theme-palette-color-1, #61B15C);
    font-weight: bold;
}

/* --- 🟢 SECTION HÉROÏQUE (PAGE) --- */
.hero-section .entry-header {
    align-items: center;
}

.hero-section .entry-header .ct-breadcrumbs {
    padding-left: 8em;
	padding-bottom: 4em !important;
    align-self: flex-start;
    text-align: left;
}

.page-title {
    max-width: 640px;
}

/* --- 🟢 FORME DE L'IMAGE DE COUVERTURE (PAGE UNIQUE) --- */
[data-prefix="single_page"] .hero-section[data-type="type-2"] > figure .ct-media-container {
    clip-path: ellipse(170% 600px at left top);
    border-bottom-left-radius: 30% 80px;
}

/* --- 🟢 FORME DE L'IMAGE DE COUVERTURE (ACCUEIL) --- */
.image-cover-home img {
    clip-path: ellipse(160% 400px at left top);
    border-bottom-left-radius: 50% 64px;
}


.container-rollover .content-rollover {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  visibility: hidden;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.container-rollover:hover .content-rollover {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}


/* --- 🟢 FORMULAIRE DE CONTACT --- */
.contact-form {
    margin: 0 !important;
}

.contact-form h4 {
    margin-bottom: 8px !important;
}

.contact-form .wpforms-field {
    padding: 6px 0 !important;
}

#wpforms-1060-field_16-container, 
#wpforms-1060-field_5-container, 
#wpforms-1148-field_16-container, 
#wpforms-1148-field_20-container {
    margin-bottom: 16px !important;
}

.contact-form .wpforms-uploader {
    border: none !important;
}

.contact-form .wpforms-field-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form .wpforms-field-file-upload .wpforms-field-description {
    text-align: center;
}

.contact-form .wpforms-submit-container {
    display: flex;
    justify-content: center;
}

.contact-form-btn {
    padding-top: 8px !important;
    padding-right: 32px !important;
    padding-bottom: 8px !important;
    padding-left: 32px !important;
    font-weight: 400 !important;
}

/* --- 🟢 TEXTE ÉTAPE --- */
.etape-text strong {
    font-size: 76px;
    line-height: 1em;
}



.sub-menu li::before {
	padding: 0px 4px 0px 16px;
}



/* --- 🟢 PIED DE PAGE --- */
.ct-footer [data-row="middle"] {
    padding: 64px 0 32px 0;
}

/* --- 🟢 CONTENEUR VALEURS (ACCUEIL) --- */
.valeurs-container {
    height: 160px;
    max-height: 160px;
    width: 160px;
    max-width: 160px;
}

.stk-link {
    text-decoration: underline;
}

.link-remove-underline .stk-link {
    text-decoration: none;
}

.column-valeurs-home .stk-row {
    display: flex;
    justify-content: center;
}

/* --- 🟢 TEXTE AVEC IMAGE DE FOND (ACCUEIL) --- */
.texte-image p, .texte-image .stk--count-up-active {
    background: url(https://horizon-ev.wpground.fr/wp-content/uploads/2025/04/bg-fill-feuillage.jpg) no-repeat center !important;
    background-size: cover !important;
    -webkit-background-clip: text;
    background-clip: text !important;
    color: transparent !important;
}

/* --- 🟢 CONTENEUR RÉALISATIONS --- */
.realisations-container p {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
}

.realisations-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px !important;
    margin-bottom: 20px;
}

.realisations-list {
    flex-basis: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.realisations-list li {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: #333;
}

.realisations-list p {
	display: flex;
    align-items: center;
}

.realisations-list li::before {
    content: "•";
    color: #333;
    font-size: 18px;
    margin-right: 6px;
    margin-left: 6px;
}

.realisations-list li:nth-child(2)::before {
    content: none !important;
}

.realisations-list li:nth-child(2) {
	margin-left: 8px;
}

.realisation-button {
    flex-basis: auto;
    background-color: var(--theme-palette-color-2, #BBF141);
    color: var(--theme-palette-color-4, #372416);
    padding: 4px 32px !important;
    border-radius: 320px !important;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
    text-align: center;
}

.realisation-button:hover {
    background-color: var(--theme-palette-color-1, #61B15C) !important;
	color: var(--theme-palette-color-8, #ffffff) !important;
}


/* --- 🟢 CARROUSEL SWIPER --- */
.swiper-container {
    overflow: visible;
    padding-bottom: 40px;
}


.swiper-slide {
    width: 100%;
    height: 260px !important;
    border-radius: 16px;
    flex-shrink: 0;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.swiper-wrapper {
    gap: 16px;
    display: flex;
}

.swiper-button-prev,
.swiper-button-next {
	padding: 40px;
    color: #333;
    background: #F5F5F0;
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
	background: var(--theme-palette-color-2, #BBF141);
	color: var(--theme-palette-color-4, #372416);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 32px !important;
    font-weight: bold;
    color: #333;
}

.swiper-pagination {
    position: absolute;
    bottom: 0px !important;
}

.swiper-pagination-bullet {
    background: #DDDDCA !important;
    width: 15px !important;
    height: 15px !important;
    transition: 0.3s;
	opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--theme-palette-color-4) !important;
}

/* --- 📱 MEDIA QUERY : CARROUSEL SWIPER --- */
@media (max-width: 768px) {
    .swiper-slide {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        height: 180px !important;
    }
}

/* --- 📱 MEDIA QUERY : CARROUSEL ACCUEIL (ESPACEMENT) --- */
@media (min-width: 1400px) and (max-width: 1600px) {
    .carousel-home {
        padding-left: 8em !important;
    }

    .carousel-home .stk-block-carousel__dots {
        padding-right: 8em !important;
    }
}

@media (min-width: 1290px) and (max-width: 1400px) {
    .carousel-home {
        padding-left: 6em !important;
    }

    .carousel-home .stk-block-carousel__dots {
        padding-right: 6em !important;
    }
}

@media (min-width: 1000px) and (max-width: 1290px) {
    .carousel-home {
        padding-left: 4em !important;
    }

    .carousel-home .stk-block-carousel__dots {
        padding-right: 4em !important;
    }
}

/* --- 📱 MEDIA QUERY : CARROUSEL ACCUEIL (POINTS ET FLÈCHES) + IMAGE COVER HOME --- */
@media (min-width: 1024px) {
    .carousel-home .stk-block-carousel__dots {
        padding-right: 12em;
    }

    .carousel-home .stk-block-carousel__button__next {
        right: 9.1% !important;
        position: absolute !important;
    }

    .image-cover-home img {
        clip-path: ellipse(200% 400px at left top);
        border-bottom-left-radius: 40% 40px;
    }
}

/* --- 📱 MEDIA QUERY : IMAGE COVER HOME --- */
@media (max-width: 1024px) {
    .image-cover-home img {
        clip-path: ellipse(200% 320px at left top);
        border-bottom-left-radius: 40% 40px;
    }
}

@media (max-width: 768px) {
    .image-cover-home img {
        clip-path: ellipse(200% 240px at left top);
        border-bottom-left-radius: 40% 40px;
    }

    [data-prefix="single_page"] .hero-section[data-type="type-2"] > figure .ct-media-container {
        clip-path: ellipse(180% 100% at 40% top);
    }

    .hero-section .entry-header .ct-breadcrumbs {
        padding-left: 0;
        padding-bottom: 24px;
    }
}

/* --- 📱 MEDIA QUERY : CONTENEUR RÉALISATIONS --- */
@media (max-width: 768px) {
    .realisations-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .realisation-button {
        width: 100%;
        text-align: center;
    }
	
	.featured-image-title-simple-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .featured-image-simple-container,
    .title-simple-container {
        flex: 0 0 100%;
    }

    .featured-image-simple-container {
        padding-right: 0;
        margin-bottom: 10px;
    }
}

@media (min-width: 1000px) and (max-width: 1440px){
	
	[data-column="middle"] .header-menu-1, [data-column="end"] .ct-header-cta, [data-column="end"] .ct-header-cta, [data-column="end"] .ct-header-socials {
		display: none;
	}

}

@media (min-width: 1441px) {
	
	[data-column="end"] .ct-header-trigger {
		display: none;
	}
	
	/* --- 🟢 MENU (POINTS DE SÉPARATION) --- */
.menu li + .menu-item::before, .sub-menu li::before {
    content: "•";
    margin: 0px 4px;
    font-size: 1.5em;
    color: #D1D1D2;
}

}







@media (min-width: 689.99px) and (max-width: 1024px){
	
	.hide-for-tablet{
		display: none;
	}
}

@media (min-width: 689.99px) and (max-width: 960px){
	
	
}

@media (max-width: 768px){

.etape-text strong {
    font-size: 48px;
    line-height: 1em;
}
	
	
}





@media (min-width: 768px) and (max-width: 1024px){

	
}

@media (max-width: 689.98px){
	.hide-for-mobile{
		display: none;
	}
	
	  .container-rollover .content-rollover {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
	
}






@media only screen and (max-width: 999px) {
    .stk-block-timeline.stk-block-timeline__ios-polyfill {
        --fixed-bg: linear-gradient(to bottom, var(--line-accent-bg-color, #000) 0, var(--line-accent-bg-color-2, #000) var(--line-accent-bg-location, 50%), var(--line-bg-color, #eee) var(--line-accent-bg-location, 50%)) !important;
    }
}











/* Mobile en mode paysage */
@media screen and (max-height: 767px) and (orientation: landscape) {
	.stk-d131a7a {
		height: 100vh !important;
	}	
	
}
