/*
Theme Name: Child theme
Template: hello-elementor
Version: 1.7.1
*/

/* ==== UB Sans (Cairo, variable de 200 à 1000) ==== */
@font-face {
	font-family: 'UB Sans';
	src: url('fonts/ub-sans.woff2') format('woff2');
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

:root {
	--ub-vert: #00ab97;
	--ub-texte: #2d373b;
	/* Grain : points bleu nuit semés, posés sur les dégradés (en-tête, pied, fonds sans WebGL) */
	--ub-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .03 0 0 0 0 .2 0 0 0 0 .32 0 0 0 2.2 -1.05'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
	--ub-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 37'%3E%3Cpath d='M3 1.5 20 18.5 3 35.5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E");
}

/* ==== Titres en balise p : sans la marge des paragraphes du thème ==== */
.elementor-widget-heading p.elementor-heading-title {
	margin: 0;
}

/* ==== Mots de titre ==== */
.ub-vert {
	color: var(--ub-vert);
}
.ub-fin {
	font-weight: 400;
}
.ub-xl {
	white-space: nowrap;
	font-size: 1.2513em;
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.01em;
}
.ub-20 {
	font-size: 1.107em;
	font-weight: 700;
}
@media (max-width: 1024px) {
	br.br-ordi {
		display: none;
	}
}

/* ==== Fonds : grain fixe (classe fond-grain) ==== */
.fond-grain {
	isolation: isolate;
}
.fond-grain::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--ub-grain);
	opacity: 0.55;
	pointer-events: none;
}

/* ==== Fonds : halo animé en WebGL (classe fond-halo, js/site.js ; variantes halo-calme, halo-sombre, halo-contact) ==== */
.fond-halo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.fond-halo:not(.halo-actif) {
	background-image: var(--ub-grain), radial-gradient(ellipse 70% 90% at 28% 38%, rgba(74, 196, 196, 0.55), transparent 70%), linear-gradient(120deg, #00ab97, #2f8d96) !important;
}
.halo-canvas {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	pointer-events: none;
}

/* ==== Fonds : image fixe et lumière verte diffuse qui suit la souris (classe fond-lueur, js/site.js) ====
   Profil du prototype du client (#2eb089, rayon jusqu'au coin le plus éloigné), atténué pour laisser voir le fond */
.fond-lueur {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.ub-lueur {
	--lx: 50%;
	--ly: 48%;
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.6;
	pointer-events: none;
	background: radial-gradient(circle at var(--lx) var(--ly), rgba(46, 176, 137, 1) 0%, rgba(46, 176, 137, 0.96) 11%, rgba(46, 176, 137, 0.68) 24%, rgba(46, 176, 137, 0.32) 40%, rgba(46, 176, 137, 0) 61%);
}
@media (max-width: 767px) {
	.ub-lueur {
		--lx: 58%;
		--ly: 38%;
	}
}

/* ==== En-tête ==== */
.ub-entete.e-con {
	z-index: 50;
}
.ub-menu .elementor-item {
	transition: -webkit-text-stroke-width var(--duree-courte) ease;
}
.ub-menu .elementor-item:is(:hover, :focus-visible, .elementor-item-active) {
	-webkit-text-stroke: 0.7px currentColor;
}
.ub-burger img,
.ub-fermer img {
	cursor: pointer;
}
.ub-menu-panneau .elementor-item {
	transition: opacity var(--duree) ease, transform var(--duree) var(--courbe);
}
.ub-menu-panneau .elementor-item:hover {
	transform: translateX(10px);
}
.ub-liens-blancs a {
	color: #fff;
}
.ub-liens-blancs a:hover {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* ==== Bulles : rectangle et queue de bulle en bas à gauche (classes ub-bulle, ub-bulle-petite, ub-bulle-portrait) ==== */
.ub-bulle,
.ub-bulle-portrait img,
.ub-queue-section {
	--q-poly: polygon(0 0, 100% 0, 100% calc(100% - var(--q-h)), calc(var(--q-x) + var(--q-l)) calc(100% - var(--q-h)), var(--q-x) 100%, var(--q-x) calc(100% - var(--q-h)), 0 calc(100% - var(--q-h)));
}
.ub-bulle {
	--q-h: 54px;
	--q-l: 63px;
	--q-x: 37.8%;
	clip-path: var(--q-poly);
}
.ub-bulle.ub-bulle-petite {
	--q-h: 34.5px;
	--q-l: 40px;
	--q-x: 37.2%;
}
.ub-bulle-portrait {
	clip-path: none;
}
.ub-bulle-portrait img {
	--q-h: 54px;
	--q-l: 63px;
	--q-x: 41.8%;
	width: 100%;
	aspect-ratio: 505 / 558;
	object-fit: cover;
	object-position: 50% 30%;
	clip-path: var(--q-poly);
}

/* ==== 1. Accroche ==== */
.ub-queue-section {
	--q-h: 58px;
	--q-l: 62px;
	--q-x: max(var(--pad-x), calc(50% - 413px));
	z-index: 2;
	margin-bottom: calc(-1 * var(--q-h));
	clip-path: var(--q-poly);
}
.ub-h1 .elementor-heading-title {
	line-height: 1;
	letter-spacing: -0.025em;
}
.ub-h1 .elementor-heading-title > span {
	display: block;
}
.ub-manuscrit {
	overflow: hidden;
	white-space: nowrap;
	text-indent: 110%;
	background: no-repeat left top / contain;
}
.ub-etes-vous {
	width: 1.779em;
	height: 0.48em;
	background-image: url('img/ub-titre-etes-vous.svg');
}
.ub-devenez {
	width: 1.383em;
	height: 0.39em;
	margin: 0.045em 0 0 0.056em;
	background-image: url('img/ub-titre-devenez.svg');
}
.ub-h1-grand {
	margin-top: -0.055em;
	white-space: nowrap;
}
.ub-h1-question {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 400;
	margin-left: 0.3em;
}
.ub-pointilles {
	width: 3.284em;
	height: 0.045em;
	margin: -0.1em 0 0 0.059em;
	background: radial-gradient(circle closest-side, #fff 88%, transparent 100%) left center / 0.1399em 100% repeat-x;
}
.ub-h1-moyen {
	margin: -0.07em 0 0 0.075em;
	font-size: 0.635em;
	white-space: nowrap;
	line-height: 1.05;
}
.ub-filigrane img,
.ub-filigrane-svg {
	display: block;
	width: 100%;
	height: auto;
	opacity: 0.2;
}
.ub-filigrane-svg {
	overflow: visible;
}
/* Menu du panneau : hauteur de l'écran réellement visible. 100vh (réglage Elementor) compte l'écran sans la barre
   de Safari iOS, ce qui faisait passer le bas du panneau (coordonnées) sous la barre */
.ub-entete .e-off-canvas__content {
	height: 100vh !important;
	height: 100dvh !important;
}
.ub-panneau.e-con {
	--min-height: 100vh !important;
	--min-height: 100dvh !important;
}
/* Menu du panneau : logo en filigrane en bas à droite */
.ub-panneau .ub-filigrane-boite-panneau.e-con {
	position: absolute;
	right: var(--pad-x);
	bottom: 40px;
	z-index: 0;
	pointer-events: none;
}
/* Mobile : logo en filigrane plus petit, en haut à droite, derrière le texte */
@media (max-width: 767px) {
	:is(.ub-accroche, .ub-maintenance) .ub-filigrane-boite.e-con {
		position: absolute;
		top: 24px;
		right: var(--pad-x);
		z-index: 0;
		pointer-events: none;
	}
}
@media (max-width: 379px) {
	:is(.ub-accroche, .ub-maintenance) .ub-filigrane-boite.e-con {
		--width: 96px;
		top: 30px;
	}
}
.ub-bouton-contour .elementor-button {
	transition: background-color var(--duree) ease, color var(--duree) ease;
}

/* ==== 2. Nous créons votre image : les trois étapes ==== */
.ub-etape {
	transition: transform var(--duree-longue) var(--courbe);
}
.ub-etape:hover {
	transform: translateY(-6px);
}
.ub-etape-mot img {
	filter: drop-shadow(0 1px 6px rgba(0, 80, 70, 0.25));
}

/* ==== 3. Plus de 20 ans ==== */
.ub-paragraphes p {
	margin-bottom: 1.3em;
}

/* ==== 4. Expertises ==== */
.ub-service-picto img {
	height: 52px;
	width: auto;
}
.ub-service h3 {
	min-height: 3.24em;
}

/* ==== 5. Ils nous ont fait confiance : bande de logos de bord à bord de l'écran ==== */
.ub-confiance .ub-defilant.e-con {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.ub-defilant .defilant-piste {
	align-items: center;
	padding: 0 0 8px;
	/* Elementor donne aux conteneurs une transition sur transform : à l'arrêt, la piste glissait au lieu de se figer */
	transition: none;
}
/* Pas d'arrêt au survol (choix du client) ; l'arrêt au clic et le bouton de pause au clavier restent */
.ub-defilant.defilant:hover:not(:focus-within):not(.est-arrete) .defilant-piste {
	animation-play-state: running;
}
.ub-logo-client img {
	width: 103px;
	height: auto;
}

/* ==== Carrousels (projets, Instagram) : flèches fines hors du carrousel, sous lui en dessous de 1100 px ==== */
.ub-carrousel {
	--ub-fleche-ecart: -44px;
}
.ub-carrousel .elementor-swiper-button {
	width: 22px;
	height: 37px;
	color: var(--ub-texte);
	transition: opacity var(--duree) ease, transform var(--duree) ease;
}
.ub-carrousel .elementor-swiper-button > :is(svg, i) {
	display: none;
}
.ub-carrousel .elementor-swiper-button::before {
	content: "";
	width: 100%;
	height: 100%;
	background: currentColor;
	-webkit-mask: var(--ub-chevron) center / contain no-repeat;
	mask: var(--ub-chevron) center / contain no-repeat;
}
.ub-carrousel .elementor-swiper-button-prev::before {
	transform: scaleX(-1);
}
.ub-carrousel.elementor-element .swiper ~ .elementor-swiper-button-prev {
	left: var(--ub-fleche-ecart);
}
.ub-carrousel.elementor-element .swiper ~ .elementor-swiper-button-next {
	right: var(--ub-fleche-ecart);
}
.ub-carrousel .elementor-swiper-button-prev:hover {
	transform: translate(-4px, -50%);
}
.ub-carrousel .elementor-swiper-button-next:hover {
	transform: translate(4px, -50%);
}
@media (max-width: 1099px) {
	.ub-carrousel.elementor-element {
		margin-bottom: 58px;
	}
	.ub-carrousel.elementor-element .swiper ~ .elementor-swiper-button {
		top: calc(100% + 34px);
		bottom: auto;
		transform: translateY(-50%);
	}
	.ub-carrousel.elementor-element .swiper ~ .elementor-swiper-button-prev {
		left: calc(50% - 46px);
	}
	.ub-carrousel.elementor-element .swiper ~ .elementor-swiper-button-next {
		right: calc(50% - 46px);
	}
	.ub-carrousel.elementor-element .swiper ~ .elementor-swiper-button:hover {
		transform: translateY(-50%);
	}
}
.ub-tuile img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--ub-texte);
	transition: transform var(--duree-longue) var(--courbe), filter var(--duree-longue) ease;
}
.ub-tuile {
	overflow: hidden;
}
.ub-tuile a:hover img {
	transform: scale(1.04);
	filter: saturate(1.1);
}
.ub-insta img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(45, 55, 59, 0.06), 0 6px 18px rgba(45, 55, 59, 0.08);
	transition: transform var(--duree-longue) var(--courbe);
}
.ub-insta a:hover img {
	transform: translateY(-4px);
}
.ub-instagram .swiper,
.ub-projets .swiper {
	padding-block: 6px;
}
.ub-bouton-insta .elementor-button-icon svg {
	width: 15px;
	height: 15px;
}

/* ==== 8. Avis (widget Trustindex) ==== */
.ub-avis-google {
	width: 100%;
}

/* ==== 9. Contact ==== */
.ub-coord-picto img {
	width: 36px;
	height: 36px;
}
.ub-formulaire .elementor-field-group:not(.elementor-field-type-submit) .elementor-field-textual {
	min-height: 56px;
	padding: 0 24px;
	border: 0;
	color: var(--ub-texte);
}
.ub-formulaire textarea.elementor-field-textual {
	height: 202px;
	padding-top: 20px !important;
	resize: vertical;
}
.ub-formulaire .elementor-field-textual::placeholder {
	color: var(--ub-texte);
}
.ub-mention {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
}
.ub-mention a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}
.ub-formulaire .elementor-field-type-submit {
	margin-top: 18px;
}
.ub-formulaire .elementor-field-type-submit .elementor-button {
	min-width: 219px;
	min-height: 34px;
	justify-content: center;
	transition: background-color var(--duree) ease, color var(--duree) ease;
}
.ub-formulaire .elementor-message {
	color: #fff;
}

/* ==== Pages légales ==== */
.ub-texte-legal :is(p, ul) {
	margin-bottom: 0.8em;
}
.ub-texte-legal ul {
	padding-left: 1.2em;
}
.ub-texte-legal li + li {
	margin-top: 0.25em;
}
.ub-texte-legal a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* ==== Pied de page ==== */
.ub-credits {
	margin: 6px 0 0;
	font-size: 12.5px;
	opacity: 0.8;
}
.ub-credits a {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}
.ub-reseaux .elementor-social-icon {
	transition: transform var(--duree) var(--courbe);
}
.ub-reseaux .elementor-social-icon:hover {
	transform: translateY(-3px);
}

/* ==== Fiche réalisation : bouton flottant « Toutes nos réalisations » (includes/ubcreation.php) ====
   Calqué sur le bouton de retour en haut (mu-plugin wyc-back-to-top : 55 px, à 30 px du bas et de la droite),
   posé 12 px à sa gauche ; visible quand il l'est (classe is-visible), toujours visible si le mu-plugin est absent. */
.ub-flottant-real {
	position: fixed;
	right: 97px;
	bottom: 30px;
	z-index: 99998;
	width: 55px;
	height: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ub-vert);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, color 0.25s ease;
}
body:has(.wyc-btt.is-visible) .ub-flottant-real,
body:not(:has(.wyc-btt)) .ub-flottant-real {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.ub-flottant-fond {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: #fff;
	stroke: #dfdfdf;
	stroke-width: 4;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
	transition: fill 0.25s ease;
}
.ub-flottant-icone {
	position: relative;
	width: 42%;
	height: 42%;
}
.ub-flottant-real:hover,
.ub-flottant-real:focus-visible {
	color: #fff;
}
.ub-flottant-real:hover .ub-flottant-fond,
.ub-flottant-real:focus-visible .ub-flottant-fond {
	fill: var(--ub-vert);
}
.ub-flottant-real:focus-visible {
	outline: 2px solid var(--ub-vert);
	outline-offset: 3px;
	border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
	.ub-flottant-real,
	.ub-flottant-fond {
		transition: none;
	}
}

/* ==== Animations GSAP (js/site.js) : textes masqués jusqu'au lancement, sauf mouvement réduit et éditeur ==== */
.ub-anim :is(.ub-a-lettres, .ub-a-mots, .ub-a-lignes, .ub-a-monte, .ub-a-fondu, .ub-a-zoom, .ub-a-trace, .ub-a-accroche, .ub-filigrane) {
	visibility: hidden;
}
.ub-car {
	will-change: transform, opacity;
}
