/* =========================================================
   FLP · Titres Animés — Francis L. Paysagiste  [CSS v1.0.0]
   Palette : vert #597c31 · rouge #c61e1d · vert clair #8ab661
   Design retravaille + responsive renforce + resistant au theme Garda.
   ========================================================= */
.flp-ta {
	--flp-accent: #597c31;
	--flp-red: #c61e1d;
	--flp-font: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	display: flex;
	flex-direction: column;
}
.flp-ta * { box-sizing: border-box; }

/* ---------- Sur-titre : 3 styles ---------- */
.flp-ta .flp-ta-eyebrow {
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 13px;
	font-weight: 700;
	color: var(--flp-red);
	margin-bottom: 14px;
	font-family: var(--flp-font);
	line-height: 1.3;
}
.flp-ta .flp-ta-eyebrow.is-line { display: inline-flex; align-items: center; gap: 10px; }
.flp-ta .flp-ta-eyebrow.is-line::before { content: ''; width: 32px; height: 2px; background: var(--flp-red); flex: 0 0 auto; }
.flp-ta .flp-ta-eyebrow.is-badge { display: inline-block; background: rgba(198,30,29,.1); padding: 7px 16px; border-radius: 30px; letter-spacing: 2px; }
.flp-ta .flp-ta-eyebrow.is-simple { display: inline-block; }

/* ---------- Titre ---------- */
/* Police forcee + capitalize du theme Garda neutralise (leçon Hero Slider). */
.flp-ta .flp-ta-title {
	margin: 0 0 16px;
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #1f2d16;
	font-family: var(--flp-font) !important;
	text-transform: none; /* neutralise Garda par defaut, mais surchargeable via le controle typo Elementor */
}
.flp-ta .flp-ta-subtitle {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 620px;
	color: #5a6b57;
	font-family: var(--flp-font);
}
/* Centre : le sous-titre se centre aussi */
.flp-ta[style*="center"] .flp-ta-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Effets du mot accent (independants de l'animation) ---------- */
.flp-ta .flp-ta-hl { color: var(--flp-accent); position: relative; }
.flp-ta .flp-ta-hl.fx-underline { display: inline-block; }
.flp-ta .flp-ta-hl.fx-underline::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -.06em; height: .12em;
	background: var(--flp-red); border-radius: 4px; transform: scaleX(0); transform-origin: left;
	animation: flpUnderlineFx .7s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
.flp-ta .flp-ta-hl.fx-marker {
	--flp-marker: #c61e1d;
	background-image: linear-gradient(120deg, var(--flp-marker), var(--flp-marker));
	background-repeat: no-repeat; background-position: 0 78%; background-size: 0% .42em;
	animation: flpMarkerFx .8s .3s ease forwards; padding: 0 .05em;
}
.flp-ta .flp-ta-hl.fx-gradient {
	--flp-g1: #8ab661; --flp-g2: #597c31;
	background: linear-gradient(90deg, var(--flp-g1), var(--flp-g2));
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
@keyframes flpUnderlineFx { to { transform: scaleX(1); } }
@keyframes flpMarkerFx { to { background-size: 100% .42em; } }

/* ---------- ANIMATIONS ---------- */
/* reveal par mots */
.flp-ta--reveal .flp-ta-word { display: inline-block; opacity: 0; transform: translateY(.6em); }
.flp-ta--reveal.is-in .flp-ta-word { animation: flpWord var(--flp-ta-dur,.7s) cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--flp-ta-i) * var(--flp-ta-stagger,.08s)); }
@keyframes flpWord { to { opacity: 1; transform: none; } }

/* fade-up */
.flp-ta--fade-up .flp-ta-title { opacity: 0; transform: translateY(28px); }
.flp-ta--fade-up.is-in .flp-ta-title { animation: flpFade var(--flp-ta-dur,.7s) cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes flpFade { to { opacity: 1; transform: none; } }

/* slide-in lateral */
.flp-ta--slide-in .flp-ta-title { opacity: 0; transform: translateX(-40px); }
.flp-ta--slide-in.is-in .flp-ta-title { animation: flpSlide var(--flp-ta-dur,.7s) cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes flpSlide { to { opacity: 1; transform: none; } }

/* zoom */
.flp-ta--zoom .flp-ta-title { opacity: 0; transform: scale(.7); }
.flp-ta--zoom.is-in .flp-ta-title { animation: flpZoom var(--flp-ta-dur,.7s) cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes flpZoom { to { opacity: 1; transform: none; } }

/* degrade anime (sur le mot accent) */
.flp-ta--gradient .flp-ta-hl { background: linear-gradient(90deg,#597c31,#8ab661,#597c31); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.flp-ta--gradient.loop-on .flp-ta-hl { animation: flpGrad 4s linear infinite; }
@keyframes flpGrad { to { background-position: 200% center; } }

/* machine a ecrire */
.flp-ta-tw { color: inherit; }
.flp-ta-cursor { display: inline-block; margin-left: 2px; font-weight: 300; color: var(--flp-accent); animation: flpBlink 1s steps(1) infinite; }
@keyframes flpBlink { 50% { opacity: 0; } }

/* soulignement (animation dediee) */
.flp-ta--underline .flp-ta-hl { position: relative; display: inline-block; }
.flp-ta--underline .flp-ta-hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: .32em; background: var(--flp-accent); opacity: .32; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1) .2s; border-radius: 3px; }
.flp-ta--underline.uline-line .flp-ta-hl::after { height: 3px; opacity: 1; bottom: -1px; }
.flp-ta--underline.uline-double .flp-ta-hl::after { height: 6px; opacity: 1; bottom: -3px; background: none; border-top: 2px solid var(--flp-accent); border-bottom: 2px solid var(--flp-accent); border-radius: 0; }
.flp-ta--underline.is-in .flp-ta-hl::after { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.flp-ta-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
}
@media (max-width: 768px) {
	.flp-ta-title { font-size: clamp(1.5rem, 7vw, 2rem) !important; line-height: 1.18; }
	.flp-ta-subtitle { font-size: 1rem; }
	.flp-ta-eyebrow { letter-spacing: 2px; font-size: 12px; }
}
@media (max-width: 480px) {
	.flp-ta-title { font-size: clamp(1.3rem, 8vw, 1.7rem) !important; }
	.flp-ta-subtitle { font-size: .95rem; }
	.flp-ta-eyebrow.is-line::before { width: 22px; }
}

/* Accessibilite : respecte prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.flp-ta-word,
	.flp-ta-title { opacity: 1 !important; transform: none !important; animation: none !important; }
	.flp-ta-hl.fx-underline::after, .flp-ta-hl.fx-marker { animation: none !important; }
	.flp-ta-hl.fx-underline::after { transform: scaleX(1); }
	.flp-ta-hl.fx-marker { background-size: 100% .42em; }
	.flp-ta--underline .flp-ta-hl::after { transform: scaleX(1); transition: none; }
	.flp-ta--gradient.loop-on .flp-ta-hl { animation: none; }
	.flp-ta-cursor { animation: none; }
}
