/* ==========================================================================
   Un temps pour soi – effets « Respiration »
   Règle d'or : sans JavaScript, ou si le visiteur a demandé à réduire les
   animations, TOUT est visible et statique. Les états « cachés avant
   animation » n'existent que sous html.utp-anim (ajouté par effets.js).
   Classes à ajouter dans Elementor : onglet Avancé > Classes CSS.
   ========================================================================== */

/* ---------- Mot-clé en italique doré dans un titre : <em>pour soi</em> ---------- */
.elementor-heading-title em { font-style: italic; color: var(--utp-secondary); font-weight: inherit; }

/* ---------- utp-hero-respire : fond qui respire + formes floues + grain ---------- */
.utp-hero-respire { position: relative; overflow: hidden; isolation: isolate; min-height: min(92vh, 860px); justify-content: center; }
/* Formes floues : un seul pseudo-élément (::before) pour laisser ::after à utp-vague. */
.utp-hero-respire::before {
	content: ""; position: absolute; z-index: -1; inset: -20%; pointer-events: none; filter: blur(40px);
	background:
		radial-gradient(28vw 28vw at 18% 22%, rgba(206,228,221,.9), transparent 70%),
		radial-gradient(24vw 24vw at 82% 78%, rgba(227,199,122,.45), transparent 70%),
		radial-gradient(18vw 18vw at 70% 18%, rgba(255,255,255,.8), transparent 70%);
}
.utp-anim .utp-hero-respire::before { animation: utpDerive 24s ease-in-out infinite alternate; }
.utp-anim .utp-hero-respire { background-size: 140% 140% !important; animation: utpRespire 16s ease-in-out infinite; }
@keyframes utpRespire { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
@keyframes utpDerive { from { transform: translate(0, 0) rotate(0deg) scale(1); } to { transform: translate(4vw, 3vw) rotate(8deg) scale(1.1); } }
.utp-grain { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- utp-lotus : le lotus se dessine, puis le cœur bat doucement ---------- */
.utp-lotus { display: flex; justify-content: center; }
.utp-lotus svg { width: min(220px, 50vw); height: auto; overflow: visible; filter: drop-shadow(0 10px 24px rgba(184,149,63,.25)); }
.utp-anim .utp-lotus .p { stroke-dasharray: 1; stroke-dashoffset: 1; animation: utpTrace 1.6s cubic-bezier(.6,.05,.3,1) forwards; }
.utp-anim .utp-lotus .p1 { animation-delay: .1s; }
.utp-anim .utp-lotus .p2 { animation-delay: .45s; }
.utp-anim .utp-lotus .p3 { animation-delay: .8s; }
.utp-anim .utp-lotus .p4 { animation-delay: 1.1s; }
.utp-anim .utp-lotus .coeur { opacity: 0; transform-origin: 100px 32px; animation: utpCoeurIn .7s 2s ease-out forwards, utpBat 4s 2.8s ease-in-out infinite; }
@keyframes utpTrace { to { stroke-dashoffset: 0; } }
@keyframes utpCoeurIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes utpBat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }

/* ---------- utp-titre-mots : le titre apparaît mot à mot, le flou se dissipe ---------- */
.utp-anim .utp-titre-mots .utp-mot { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.35em);
	animation: utpMot 1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + var(--d, 300ms)); }
@keyframes utpMot { to { opacity: 1; filter: blur(0); transform: none; } }

/* ---------- utp-respirez : invitation à défiler ---------- */
.utp-respirez { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--utp-primary); }
.utp-respirez::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--utp-secondary); }
.utp-anim .utp-respirez::after { animation: utpSouffle 5s ease-in-out infinite; }
@keyframes utpSouffle { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.5); opacity: 1; } }

/* ---------- utp-reveal / utp-cascade : apparition au défilement ---------- */
.utp-anim .utp-reveal:not(.is-visible),
.utp-anim .utp-cascade:not(.is-visible) > .e-con-inner > *,
.utp-anim .utp-cascade:not(.is-visible) > :not(.e-con-inner) { opacity: 0; transform: translateY(28px); }
.utp-anim .utp-reveal,
.utp-anim .utp-cascade > .e-con-inner > *,
.utp-anim .utp-cascade > :not(.e-con-inner) { transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- utp-masque : l'image se dévoile dans un masque arrondi ---------- */
.utp-masque img { border-radius: 200px 200px 24px 24px; }
.utp-anim .utp-masque img { clip-path: inset(100% 0 0 0 round 200px 200px 24px 24px); transition: clip-path 1.4s cubic-bezier(.7,0,.2,1); }
.utp-anim .utp-masque.is-visible img { clip-path: inset(0 0 0 0 round 200px 200px 24px 24px); }

/* ---------- utp-parallax : léger décalage au défilement (géré par JS) ---------- */
.utp-parallax img { will-change: transform; transform: translateY(var(--utp-py, 0)) scale(1.08); }

/* ---------- utp-tilt : carte inclinée en 3D + reflet doré ---------- */
.utp-tilt { transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; position: relative; overflow: hidden; }
.utp-tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
	background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(227,199,122,.28), transparent 45%); }
.utp-tilt:hover::after { opacity: 1; }
.utp-tilt:hover { box-shadow: 0 30px 50px -20px rgba(46,107,94,.35) !important; }

/* ---------- utp-magnet : bouton magnétique + dégradé qui glisse ---------- */
.utp-magnet .elementor-button { background-image: linear-gradient(110deg, var(--utp-accent) 0%, var(--utp-primary) 50%, var(--utp-accent) 100%) !important;
	background-size: 200% 100% !important; transition: background-position .6s ease, transform .3s cubic-bezier(.2,.8,.2,1) !important; }
.utp-magnet .elementor-button:hover { background-position: 100% 0 !important; }
.utp-magnet.utp-magnet--contour .elementor-button { background-image: none !important; }

/* ---------- utp-marquee : bandeau de mots qui défile ---------- */
.utp-marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid rgba(184,149,63,.25); background: var(--utp-creme); }
.utp-marquee__piste { display: flex; width: max-content; gap: 48px; font-family: var(--utp-font-titre); font-size: clamp(28px, 4vw, 52px); font-style: italic; color: var(--utp-primary); white-space: nowrap; }
.utp-marquee__piste span::after { content: "✿"; font-style: normal; font-size: .5em; color: var(--utp-secondary); margin-left: 48px; vertical-align: middle; }
.utp-anim .utp-marquee__piste { animation: utpDefile 40s linear infinite; }
.utp-marquee:hover .utp-marquee__piste { animation-play-state: paused; }
@keyframes utpDefile { to { transform: translateX(-50%); } }

/* ---------- utp-vague : séparateur ondulé en bas d'une section ---------- */
.utp-vague { position: relative; }
.utp-vague::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; pointer-events: none; background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40C240 80 480 0 720 30S1200 70 1440 20V70H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40C240 80 480 0 720 30S1200 70 1440 20V70H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.utp-vague--creme::after { background: var(--utp-creme); }

/* ---------- Curseur doré (ordinateur uniquement) ---------- */
.utp-curseur { position: fixed; left: 0; top: 0; z-index: 10000; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
	border: 1.5px solid var(--utp-secondary); pointer-events: none; transition: width .3s, height .3s, margin .3s, background .3s; mix-blend-mode: multiply; }
.utp-curseur.is-lien { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(227,199,122,.25); }

/* ---------- Transition entre les pages ---------- */
.utp-voile { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; background: var(--utp-creme);
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.utp-voile svg { width: 90px; transform: scale(.8); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.utp-voile.is-actif { opacity: 1; visibility: visible; }
.utp-voile.is-actif svg { transform: scale(1); }

/* ---------- Désactivations : écrans tactiles et mouvement réduit ---------- */
@media (hover: none), (pointer: coarse) {
	.utp-tilt { transform: none !important; }
	.utp-curseur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.utp-marquee__piste { flex-wrap: wrap; width: auto; justify-content: center; }
	.utp-parallax img { transform: none; }
	.utp-voile { display: none; }
}

/* ==========================================================================
   En-tête photo plein écran (utp-hero-photo)
   La photo se change dans Elementor : sélectionner la section > Style >
   Arrière-plan > Image. Le voile sombre garantit la lisibilité du texte blanc.
   ========================================================================== */
.utp-hero-photo { position: relative; isolation: isolate; overflow: hidden; }
/* Voile transparent : vert profond à gauche (texte lisible), la photo respire à droite. */
.utp-hero-photo::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(18,44,38,.55) 0%, rgba(18,44,38,0) 28%),
		linear-gradient(90deg, rgba(18,44,38,.88) 0%, rgba(30,70,61,.62) 38%, rgba(46,107,94,.12) 72%, rgba(46,107,94,0) 100%),
		linear-gradient(0deg, rgba(18,44,38,.55) 0%, rgba(18,44,38,0) 40%);
}
.utp-hero-photo--centre::before {
	background:
		linear-gradient(180deg, rgba(18,44,38,.55) 0%, rgba(18,44,38,0) 30%),
		radial-gradient(ellipse 70% 60% at 50% 55%, rgba(18,44,38,.62) 0%, rgba(18,44,38,.35) 70%, rgba(18,44,38,.5) 100%);
}
/* Reflet doré très léger, comme une lumière de fin d'après-midi. */
.utp-hero-photo > .e-con-inner::before {
	content: ""; position: absolute; inset: -40% -20% auto auto; width: 60vw; height: 60vw; pointer-events: none; z-index: -1;
	background: radial-gradient(circle, rgba(235,214,155,.22), transparent 60%);
}
/* La photo « respire » : zoom très lent sur une copie du fond (la section garde sa photo, modifiable dans Elementor). */
.utp-hero-photo::after {
	content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; pointer-events: none;
}
.utp-anim .utp-hero-photo::after { animation: utpZoomPhoto 22s ease-in-out infinite alternate; }
@keyframes utpZoomPhoto { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
@media (max-width: 767px) {
	.utp-hero-photo::before {
		background: linear-gradient(180deg, rgba(18,44,38,.5) 0%, rgba(18,44,38,.25) 35%, rgba(18,44,38,.7) 70%, rgba(18,44,38,.9) 100%);
	}
}
.utp-hero-photo > .e-con-inner, .utp-hero-photo > .elementor-widget { position: relative; z-index: 1; }
.utp-hero-photo .elementor-shape { z-index: 1; }
.utp-hero-photo .utp-surtitre .elementor-heading-title { color: #EBD69B !important; }
.utp-hero-photo .elementor-heading-title { text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.utp-hero-photo h1.elementor-heading-title { max-width: 16ch; }
.utp-hero-photo--centre .elementor-heading-title { max-width: none; }
.utp-hero-intro { max-width: 640px; font-size: 1.1em; }
.utp-hero-photo .utp-magnet--contour .elementor-button { color: #fff !important; border-color: rgba(255,255,255,.75) !important; }
.utp-hero-photo .utp-magnet--contour .elementor-button:hover { background: rgba(255,255,255,.12) !important; }
.utp-hero-photo .utp-respirez { color: #fff; margin-top: 18px; }
.utp-hero-photo .utp-respirez::after { border-color: #EBD69B; }
.utp-hero-photo .utp-lotus svg { width: min(170px, 40vw); filter: drop-shadow(0 6px 24px rgba(0,0,0,.35)); }
.utp-hero-photo .utp-lotus path:not(.coeur) { stroke: #EBD69B; }
.utp-hero-photo .utp-lotus .coeur { fill: #EBD69B; }

/* Menu transparent par-dessus la photo, puis verre dépoli au défilement */
body.utp-a-hero .utp-header { position: fixed; left: 0; right: 0; }
body.utp-a-hero .utp-header:not(.is-compact) .utp-topbar { background: transparent; }
body.utp-a-hero .utp-header:not(.is-compact) .utp-mainbar {
	background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: rgba(255,255,255,.18);
}
body.utp-a-hero .utp-header:not(.is-compact) .utp-brand__nom,
body.utp-a-hero .utp-header:not(.is-compact) .utp-menu > li > a { color: #fff; }
body.utp-a-hero .utp-header:not(.is-compact) .utp-brand__tagline { color: #EBD69B; }
body.utp-a-hero .utp-header:not(.is-compact) .utp-sous-menu-toggle { color: #EBD69B; }
body.utp-a-hero .utp-header:not(.is-compact) .utp-burger { background: rgba(255,255,255,.9); }
body.utp-a-hero .utp-header .utp-brand__logo { filter: drop-shadow(0 2px 10px rgba(0,0,0,.2)); }
html.utp-menu-ouvert body.utp-a-hero .utp-header .utp-mainbar { background: #FBF7EC; }
html.utp-menu-ouvert body.utp-a-hero .utp-header .utp-brand__nom { color: var(--utp-primary); }
.utp-hero-photo .elementor-heading-title em { color: #EBD69B; }
.utp-hero-photo:not(.utp-hero-photo--centre) .utp-respirez { align-items: flex-start; }
.utp-hero-photo:not(.utp-hero-photo--centre) .utp-lotus { justify-content: flex-start; }
.utp-hero-photo:not(.utp-hero-photo--centre) .utp-lotus svg { width: min(120px, 30vw); }
.utp-anim .utp-titre-mots.utp-mots-fin .utp-mot { animation: none; opacity: 1; filter: none; transform: none; }
