/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* VARIABLES COLORS CSS 
    --e-global-color-primary: #183D6A; bleu foncé 
    --e-global-color-secondary: #00AE8B; vert 
    --e-global-color-text: #183D6A; bleu foncé 
    --e-global-color-accent: #00AE8B; vert 
    --e-global-color-901ed75: #FFFFFF; blanc
    --e-global-color-42eae19: #F7F8FA; blanc cassé
    --e-global-color-b78a62e: #F2F3F7; gris
    --e-global-color-87ad998: #E0E7F9; bleu gris
    --e-global-color-f9217af: #8FB8D6; bleu clair texte
    --e-global-color-3fbd565: #DFEBFB; bleu clair background
*/

/* --- Règles générales --- */
html{
	overflow-x: hidden;
}

h2 span{
	color: transparent;
  	-webkit-text-stroke: 1.5px var(--e-global-color-f9217af);
  	text-stroke: 1.5px var(--e-global-color-f9217af);
}

.stroke-font h5{
	transform: rotate(270deg);
}

/* --- Burger menu --- */
.none,
#menu.none{
	display: none;
}

#menu {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  height: auto;
}
#menu.show {
  opacity: 1;
  visibility: visible;
  display: block;
}

#burger-toggle{
	display: flex;
	align-items: flex-start;
}

#burger-toggle svg,
#burger-toggle .label:hover{
	cursor: pointer;
}

#burger-toggle .label{
	margin-left: 5px;
}

/* Burger lines */
.menu-toggle .line {
  transition: transform .3s ease, opacity .2s ease;
  transform-box: view-box;
  transform-origin: 12px 12px;
}

/* État ouvert avec croix */
.menu-toggle.open .line1 {
  transform: translateY(3px) rotate(45deg);
}
.menu-toggle.open .line2 {
  opacity: 0;
}
.menu-toggle.open .line3 {
  transform: translateY(-4px) rotate(-45deg);
}

#conteneur-menu.menu-open{
  width: 250px;
}

#conteneur-menu.menu-open #burger-toggle{
	margin-left: -50%;
}

/* --- Bloc précision micro mécanique --- */
.elementor-element-b00fd81 .post-inner h2{
	background: var(--e-global-color-3fbd565);
	border-radius: 50px;
	z-index: 100;
	position: relative;
}

/* --- Bloc Domaine d'intervention --- */
.elementor-element-aa25cfa .ht-post .post-content{
	top: 10px;
}

.elementor-element-aa25cfa .ht-post .post-content h4.htmega-post-g-title{
	background: var(--e-global-color-primary);
	border-radius: 30px;
	width: 80%;
	padding: 5px 30px;
	margin: 0 auto;
	text-align: center;
}

.elementor-element-aa25cfa .ht-post .post-content .htmega-post-g-read-more{
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	display: none;
}

.elementor-element-aa25cfa .ht-post .post-content:hover .htmega-post-g-read-more{
	display: inline-block;
}

.elementor-element-aa25cfa .ht-post{
	filter: grayscale(70%);
	transition: filter 0.3s ease;
}

.elementor-element-aa25cfa .ht-post:hover{
	filter: unset;
}


/* Responsive */
@media (max-width: 991px){
  #bloc-scrolled{ grid-template-columns: 1fr; }
  .col-left{ position: static; order: -1; } /* au-dessus */
  .col-right.steps-scroll{ height: auto; max-height: none; overflow: visible; scroll-snap-type: none; }
}


/* --- Page Assemblage et micro assemblage --- */
#bloc-scrolled{
  display: grid;
  grid-template-columns: 1fr 2fr; 
  gap: clamp(16px, 3vw, 40px);
  min-height: 100vh;
}

/* Colonne gauche sticky */
.col-left{
  position: sticky;
  top: 24px;
  align-self: start;
  height: fit-content;
}

/* Colonne droite scrollable avec snap */
.col-right.steps-scroll{
  height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;  
  -webkit-overflow-scrolling: touch; /* iOS momentum */
  scrollbar-width: thin;             /* Firefox */
  scroll-snap-type: y mandatory;
  scroll-padding-top: 24px;
}

/* Masquage doux de la scrollbar (Chrome/Edge) */
.col-right.steps-scroll::-webkit-scrollbar { width: 6px; }
.col-right.steps-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 4px; }

/* Chaque step occupe l’écran et s’aligne au début */
.steps-scroll .step{
  min-height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding-block: 32px;
}

/* --- Archive --- */
.archive.category main#content{
	margin: 50px auto;
}

.category.elementor-kit-4 article.post .article-content h2.entry-title{
	font-size: 20px; 
	line-height: 24px;
	margin-top: 0;
}

.category.elementor-kit-4 article.post .article-content h2.entry-title a{
	color: var( --e-global-color-primary );
}

.category.elementor-kit-4 article.post .article-content p{
	margin-bottom: 15px;
}

/* --- Single post --- */
.single-hero{
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: 40vh;
	max-height: 40vh;
	display:flex;
	align-items: center;
	justify-content: center;
}

.single-hero::before{
	background-image: linear-gradient(180deg, var( --e-global-color-primary ) 0%, var( --e-global-color-1f4bc43 ) 100%);
	content: '';
	display: block;
	position: absolute;
	opacity: 0.8;
	top: 0;
	left: 0;
	width: 100%;
	height: 40vh;
}

.single-hero h1.single-hero__h1{
	max-width: 80%;
	margin: 0 auto;
}

.single-hero__breadcrumb a{
	text-decoration: underline;
}

.single-post footer{
	z-index: 101;
	position: relative;
}



@media screen and (min-width: 1725px){
	
	/* Section ils nous font confiance */
	.elementor-element.elementor-element-26f6eda h2{
		white-space: nowrap;
	}
	
	.elementor-element.elementor-element-26f6eda h2 br{
		display: none;
	}
	
	.elementor-element.elementor-element-b569378::before{
		background-position: center !important;
	}
}

@media screen and (min-width: 1025px){
	#conteneur-menu{
		position: fixed;
		z-index: 1001;
	}
}

@media screen and (max-width: 1024px){
	table{
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
}

@media screen and (max-width: 991px){
	header nav .elementor-element-f36df87{
		margin-top: -38px;
	}
	
	/* --- Single post --- */
	.single-hero{
		min-height: 60vh;
		max-height: 60vh;
	}

	.single-hero::before{
		height: 60vh;
	}
}


.effect-underline{
	display: inline-block;
	position: relative;
}

.effect-underline::after {
 	content: "";
  	position: absolute;
  	left: 0;
  	bottom: 0;
  	width: 100%;
  	height: 2px;
  	background: linear-gradient(90deg, var(--e-global-color-primary), var(--e-global-color-secondary));
  	border-radius: 2px;
  	transform-origin: left;
}

