/*
 * Landing pages formations, hubs et catalogue. Propriétés logiques uniquement (RTL).
 */

.tk-landing,
.tk-page {
	--tk-section-pad: clamp(3rem, 7vw, 5.5rem);
}

/* Sections pleine largeur : le conteneur GeneratePress ne limite plus la largeur */
.tk-formation-view .site.grid-container {
	max-width: none;
	padding-inline: 0;
}

.tk-formation-view .site-content {
	display: block;
	padding: 0;
}

.tk-landing.site-main,
.tk-landing.site-main > * {
	margin: 0; /* GeneratePress ajoute 20 px sous chaque enfant de .site-main */
}

.tk-wrap {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.tk-wrap--narrow {
	max-width: 800px;
}

.tk-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	color: var(--mint-dark);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

html[dir="rtl"] .tk-eyebrow {
	letter-spacing: 0;
	font-size: 0.95rem;
}

.tk-muted {
	color: var(--contrast-2);
}

/* ---------- Hero ---------- */

.tk-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 5rem);
	background:
		radial-gradient(60rem 30rem at 100% 0%, rgb(58 183 149 / 16%), transparent 60%),
		radial-gradient(40rem 24rem at 0% 100%, rgb(24 107 144 / 10%), transparent 60%),
		var(--cream);
}

html[dir="rtl"] .tk-hero {
	background:
		radial-gradient(60rem 30rem at 0% 0%, rgb(58 183 149 / 16%), transparent 60%),
		radial-gradient(40rem 24rem at 100% 100%, rgb(24 107 144 / 10%), transparent 60%),
		var(--cream);
}

.tk-hero--compact {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.tk-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.tk-hero__title {
	margin: 0 0 16px;
	font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

html[dir="rtl"] .tk-hero__title {
	line-height: 1.35;
	letter-spacing: 0;
}

.tk-hero__lead {
	max-width: 58ch;
	margin: 0 0 20px;
	color: var(--contrast-2);
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
	line-height: 1.6;
}

.tk-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.tk-badge {
	padding: 6px 12px;
	border: 1px solid rgb(24 107 144 / 22%);
	border-radius: var(--tk-radius-pill);
	background: rgb(255 255 255 / 70%);
	color: var(--accent);
	font-size: 0.875rem;
	font-weight: 600;
}

.tk-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tk-btn--lg {
	min-height: 52px;
	padding-inline: 1.6em;
	font-size: 1.05rem;
}

.tk-hero__note {
	margin: 12px 0 0;
	color: var(--contrast-2);
	font-size: 0.9rem;
}

.tk-hero__aside {
	display: grid;
	gap: 16px;
}

.tk-hero__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--tk-radius) * 1.5);
	box-shadow: var(--tk-shadow);
}

.tk-keyfacts__list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-keyfacts__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tk-keyfacts__list .tk-icon {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 12px;
	background: var(--base);
	color: var(--accent);
}

.tk-keyfacts__label {
	display: block;
	color: var(--contrast-2);
	font-size: 0.8125rem;
}

.tk-keyfacts__list strong {
	font-weight: 600;
}

.tk-keyfacts__urgency {
	margin: 16px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #FFF4E5;
	color: #8A4B00;
	font-size: 0.9rem;
	font-weight: 600;
}

/* ---------- Réassurance ---------- */

.tk-trust {
	border-block: 1px solid var(--contrast-3);
	background: var(--base-3);
}

.tk-trust__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px 28px;
	margin-block: 0;
	padding-block: 22px;
	list-style: none;
}

.tk-trust__item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--contrast-2);
	font-size: 0.95rem;
}

.tk-trust__item .tk-icon {
	flex: none;
	color: var(--mint-dark);
}

.tk-trust__item strong {
	color: var(--contrast);
	font-size: 1.1rem;
}

/* ---------- Sections ---------- */

.tk-section {
	padding-block: var(--tk-section-pad);
}

.tk-section__title {
	margin: 0 0 12px;
	font-size: var(--wp--preset--font-size--x-large);
	text-wrap: balance;
}

.tk-section__title + .tk-grid,
.tk-section__title + .tk-cards,
.tk-section__title + .tk-faq,
.tk-section__title + .tk-checklist {
	margin-block-start: 28px;
}

.tk-section__lead {
	max-width: 62ch;
	color: var(--contrast-2);
	font-size: 1.125rem;
	line-height: 1.6;
}

.tk-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.tk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.tk-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.tk-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 1.125rem;
}

.tk-card__title .tk-icon {
	color: var(--mint-dark);
}

.tk-card p:last-child {
	margin-block-end: 0;
}

.tk-card--soft {
	background: var(--base);
	box-shadow: none;
	border-color: transparent;
}

.tk-checklist,
.tk-plain-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.tk-checklist li + li,
.tk-plain-list li + li {
	margin-block-start: 10px;
}

.tk-checklist .tk-icon {
	flex: none;
	margin-block-start: 3px;
	padding: 2px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--contrast);
}

.tk-benefit__icon {
	display: inline-flex;
	margin-block-end: 12px;
	padding: 10px;
	border-radius: 14px;
	background: var(--base-3);
	color: var(--mint-dark);
	box-shadow: var(--tk-shadow);
}

.tk-benefit__title {
	margin: 0 0 6px;
	font-size: 1.125rem;
}

.tk-benefit p {
	margin: 0;
	color: var(--contrast-2);
}

/* ---------- Programme & niveaux ---------- */

.tk-levels {
	margin-block: 24px 36px;
}

.tk-levels__label {
	margin: 0 0 10px;
	font-weight: 600;
}

.tk-levels__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.tk-level {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 40px;
	border: 1px dashed var(--contrast-3);
	border-radius: 10px;
	color: var(--contrast-2);
	font-weight: 600;
}

.tk-level.is-on {
	border: 0;
	background: var(--accent);
	color: var(--base-3);
}

.tk-modules {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-module {
	display: flex;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--contrast-3);
	border-radius: var(--tk-radius);
}

.tk-module__num {
	flex: none;
	color: var(--mint-dark);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.tk-module__title {
	margin: 0 0 4px;
	font-size: 1.0625rem;
}

.tk-module p {
	margin: 0;
	color: var(--contrast-2);
	font-size: 0.95rem;
}

/* ---------- Prix ---------- */

.tk-price {
	border: 2px solid var(--mint);
}

.tk-price__amount {
	margin: 0 0 6px;
	color: var(--contrast);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

.tk-price .tk-btn {
	margin-block-start: 12px;
}

/* ---------- Témoignages ---------- */

.tk-quote {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.tk-quote__stars {
	margin: 0 0 8px;
	color: #B26A00; /* 4,2:1, décoratif (note lue via aria-label) */
	letter-spacing: 2px;
}

.tk-quote__text {
	flex: 1;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	font-size: 1rem;
	font-style: normal;
}

.tk-quote__author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.95rem;
}

.tk-quote__author .tk-muted {
	display: block;
	font-size: 0.875rem;
}

.tk-quote__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

/* ---------- FAQ ---------- */

.tk-faq {
	display: grid;
	gap: 10px;
}

.tk-faq__item {
	border: 1px solid var(--contrast-3);
	border-radius: var(--tk-radius);
	background: var(--base-3);
}

.tk-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding-block: 14px;
	padding-inline: 20px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.tk-faq__question::-webkit-details-marker {
	display: none;
}

.tk-faq__chevron {
	flex: none;
	color: var(--accent);
	transition: transform .2s var(--tk-ease);
}

.tk-faq__item[open] .tk-faq__chevron {
	transform: rotate(180deg);
}

.tk-faq__answer {
	padding-inline: 20px;
	padding-block: 0 16px;
	color: var(--contrast-2);
}

/* ---------- Formulaire lead ---------- */

.tk-lead {
	background: var(--petrol-dark);
	color: rgb(255 255 255 / 88%);
}

.tk-lead .tk-section__title {
	color: var(--base-3);
}

.tk-lead .tk-section__lead {
	color: rgb(255 255 255 / 82%);
}

.tk-lead .tk-checklist .tk-icon {
	background: var(--mint);
}

.tk-lead__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.tk-lead__form {
	color: var(--contrast);
}

.tk-lead__fallback {
	margin: 0 0 16px;
	font-weight: 600;
}

.tk-lead__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Cartes formation ---------- */

.tk-formation-card {
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform .2s var(--tk-ease), box-shadow .2s var(--tk-ease);
}

.tk-formation-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgb(20 20 20 / 6%), 0 16px 32px rgb(14 64 88 / 12%);
}

.tk-formation-card .tk-eyebrow {
	margin-block-end: 8px;
	font-size: 0.8rem;
}

.tk-formation-card__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.tk-formation-card__title a {
	color: var(--contrast);
	text-decoration: none;
}

/* Toute la carte est cliquable (un seul lien pour les lecteurs d'écran) */
.tk-formation-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--tk-radius);
}

.tk-formation-card__title a:focus-visible {
	box-shadow: none;
}

.tk-formation-card__title a:focus-visible::after {
	box-shadow: var(--tk-focus);
}

.tk-formation-card__summary {
	color: var(--contrast-2);
	font-size: 0.95rem;
}

.tk-facts {
	display: grid;
	gap: 4px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.tk-facts__label {
	color: var(--contrast-2);
}

.tk-formation-card__more {
	display: inline-flex;
	font-size: 1rem;
	align-items: center;
	gap: 6px;
	margin-block-start: auto;
	color: var(--accent);
	font-weight: 600;
}

/* ---------- Barre CTA mobile ---------- */

.tk-sticky-cta {
	display: none;
}

@media (max-width: 768px) {
	.tk-sticky-cta {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 90;
		display: flex;
		gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		border-block-start: 1px solid var(--contrast-3);
		background: rgb(255 255 255 / 96%);
		backdrop-filter: blur(8px);
		transition: transform .25s var(--tk-ease);
	}

	.tk-sticky-cta.is-hidden {
		transform: translateY(110%);
	}

	.tk-sticky-cta .tk-btn--primary {
		flex: 1;
	}

	.tk-btn--icon {
		width: 48px;
		padding: 0;
	}

	/* Espace pour ne pas masquer le bas du footer */
	.tk-formation-view .tk-footer {
		padding-block-end: 72px;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.tk-hero__grid,
	.tk-split,
	.tk-lead__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.tk-hero__ctas .tk-btn {
		width: 100%;
	}

	.tk-modules {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
 * Pages en blocs (accueil, contact, à propos…) : sections pleine largeur
 * ========================================================================= */

.tk-page .inside-article,
.tk-page .entry-content {
	margin: 0;
	padding: 0;
}

.tk-page .entry-content > * {
	margin-block: 0;
}

.tk-page .entry-content > .alignfull {
	padding-inline: 20px;
}

/* Les sections utilisent toute la largeur utile (1200 px) ; .tk-prose reste en colonne de lecture */
.tk-page .tk-section.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.tk-page .tk-hero.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 1200px;
}

.tk-page .tk-prose.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 760px;
}

.tk-page .tk-section > * + *,
.tk-page .tk-hero > * + * {
	margin-block-start: 1rem;
}

.tk-page .tk-section > .wp-block-heading + .wp-block-shortcode,
.tk-page .tk-section > p + .wp-block-shortcode,
.tk-page .tk-section > .wp-block-heading + .wp-block-columns {
	margin-block-start: 1.75rem;
}

.tk-page .wp-block-columns {
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}

.tk-page .tk-hero .wp-block-column > * + * {
	margin-block-start: 1rem;
}

.tk-page .tk-hero .tk-hero__ctas {
	margin-block-start: 1.75rem;
}

.tk-img img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--tk-radius) * 1.5);
	box-shadow: var(--tk-shadow);
}

.tk-img--portrait img {
	aspect-ratio: 4 / 5;
}

.tk-page .wp-block-image {
	margin: 0;
}

.tk-page .tk-checklist li + li {
	margin-block-start: 10px;
}

/* Listes de blocs avec coches (bloc Liste + classe tk-checklist) */
.tk-page ul.wp-block-list.tk-checklist {
	padding: 0;
	list-style: none;
}

.tk-page ul.wp-block-list.tk-checklist > li {
	position: relative;
	padding-inline-start: 32px;
}

.tk-page ul.wp-block-list.tk-checklist > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: .35em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.tk-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.tk-gallery img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--tk-radius);
}

.tk-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.tk-contact__card .tk-btn {
	margin-block-start: 4px;
}

.tk-steps {
	counter-reset: tkstep;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
}

.tk-steps > li {
	counter-increment: tkstep;
	position: relative;
	padding-inline-start: 52px;
	min-height: 40px;
}

.tk-steps > li::before {
	content: counter(tkstep);
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--accent);
	color: var(--base-3);
	font-weight: 700;
}

.tk-subtitle {
	margin-block-start: 2.5rem !important;
	font-size: 1.25rem;
}

/* ---------- Témoignages : une ligne qui défile ---------- */

.tk-marquee {
	position: relative;
	margin-block-start: 28px;
}

.tk-marquee__viewport {
	overflow: hidden;
	padding-block: 8px 16px; /* ombre des cartes */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.tk-marquee__track {
	display: flex;
	width: max-content;
	animation: tk-marquee var(--tk-marquee-duration, 56s) linear infinite;
}

.tk-marquee__group {
	display: flex;
	gap: 20px;
	padding-inline-end: 20px;
}

.tk-marquee .tk-quote {
	flex: none;
	width: 320px;
}

.tk-marquee:hover .tk-marquee__track,
.tk-marquee:focus-within .tk-marquee__track,
.tk-marquee.is-paused .tk-marquee__track {
	animation-play-state: paused;
}

@keyframes tk-marquee {
	to { transform: translateX(-50%); }
}

/* Arabe : défilement dans le sens de lecture */
html[dir="rtl"] .tk-marquee__track {
	animation-name: tk-marquee-rtl;
}

@keyframes tk-marquee-rtl {
	to { transform: translateX(50%); }
}

.tk-marquee__toggle {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin-block-start: 8px;
	padding-inline: 16px;
	border: 1.5px solid var(--contrast-3);
	border-radius: var(--tk-radius-pill);
	background: var(--base-3);
	color: var(--contrast);
	font: inherit;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
}

.tk-marquee__toggle:hover {
	border-color: var(--accent);
	color: var(--accent);
}

@media (max-width: 560px) {
	.tk-marquee .tk-quote {
		width: 280px;
	}
}

/* Animations réduites : pas de défilement automatique, la ligne se fait glisser à la main */
@media (prefers-reduced-motion: reduce) {
	.tk-marquee__viewport {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.tk-marquee__track {
		animation: none;
	}

	.tk-marquee .tk-quote {
		scroll-snap-align: start;
	}

	.tk-marquee__clone,
	.tk-marquee__toggle {
		display: none;
	}
}

/* ==========================================================================
   Touches graphiques (inc/decor.php) — décoratives, légères, compatibles RTL
   ========================================================================== */

/* Filigrane « café + livres » dans les heros (coin bas, côté fin de ligne) */
.tk-hero > * {
	position: relative;
	z-index: 1;
}

.tk-hero::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset-block-end: -10px;
	inset-inline-end: -20px;
	width: min(46vw, 420px);
	aspect-ratio: 1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23186B90' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M58 92h52v30a26 26 0 0 1-26 26 26 26 0 0 1-26-26z'/%3E%3Cpath d='M110 100h8a10 10 0 0 1 0 20h-9'/%3E%3Cpath d='M74 72c-4-6 4-10 0-16M88 72c-4-6 4-10 0-16'/%3E%3Cpath d='M40 160h96M46 170h84'/%3E%3Cpath d='M128 40h36a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8h-20l-10 9v-9h-6a8 8 0 0 1-8-8V48a8 8 0 0 1 8-8z'/%3E%3Cpath d='M138 56h18M138 64h10'/%3E%3Cpath d='M160 120l3 9 9 3-9 3-3 9-3-9-9-3 9-3z' stroke='%233AB795'/%3E%3Cpath d='M30 60l2 6 6 2-6 2-2 6-2-6-6-2 6-2z' stroke='%233AB795'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.1;
	pointer-events: none;
}

/* Heros avec photo : la photo et son cadre suffisent, pas de filigrane (il gênerait les boutons) */
.tk-hero:has(.tk-img)::before,
.tk-hero:has(.tk-hero__image)::before {
	display: none;
}

/* Cadre de la photo du hero : aplat menthe décalé + trame de points */
.tk-hero .tk-img,
.tk-hero__aside {
	position: relative;
	isolation: isolate;
}

.tk-hero .tk-img::before,
.tk-hero__aside::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block-start: 18px;
	inset-inline-start: 18px;
	inset-block-end: -18px;
	inset-inline-end: -18px;
	border-radius: calc(var(--tk-radius) * 1.5);
	background: linear-gradient(135deg, rgb(58 183 149 / 35%), rgb(24 107 144 / 18%));
}

.tk-hero__aside::before {
	inset-block-end: auto;
	aspect-ratio: 4 / 3;
	width: 100%;
	height: auto;
}

.tk-hero .tk-img::after,
.tk-hero__aside::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset-block-start: -22px;
	inset-inline-start: -22px;
	width: 110px;
	height: 110px;
	background: radial-gradient(circle, rgb(24 107 144 / 35%) 1.6px, transparent 2px) 0 0 / 14px 14px;
}

/* Pastilles flottantes sur la photo */
.tk-hero .wp-block-column:has(> .tk-photo-badges) {
	position: relative;
}

.tk-photo-badges {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	margin: 0 !important;
}

.tk-photo-badge {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--tk-radius);
	background: rgb(255 255 255 / 92%);
	backdrop-filter: blur(6px);
	box-shadow: 0 10px 30px rgb(14 64 88 / 18%);
	color: var(--contrast);
	font-size: 0.9rem;
	line-height: 1.3;
	white-space: nowrap;
	animation: tk-float 6s ease-in-out infinite;
}

.tk-photo-badge .tk-icon {
	flex: none;
	width: 34px;
	height: 34px;
	padding: 7px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--base-3);
}

.tk-photo-badge strong {
	color: var(--accent);
}

.tk-photo-badge--1 {
	inset-block-end: 8%;
	inset-inline-start: -18px;
}

.tk-photo-badge--2 {
	inset-block-start: 8%;
	inset-inline-end: -14px;
	animation-delay: -3s;
}

.tk-photo-badge--2 .tk-icon {
	background: var(--accent);
}

@keyframes tk-float {
	50% { transform: translateY(-6px); }
}

@media (max-width: 781px) {
	/* Colonnes empilées : les pastilles restent dans l'image */
	.tk-photo-badge {
		font-size: 0.8rem;
		padding: 8px 10px;
	}

	.tk-photo-badge .tk-icon {
		width: 28px;
		height: 28px;
		padding: 6px;
	}

	.tk-photo-badge--1 { inset-inline-start: 8px; }
	.tk-photo-badge--2 { inset-inline-end: 8px; }
}

/* Petite vague menthe sous les titres de section */
.tk-section__title::after {
	content: "";
	display: block;
	width: 64px;
	height: 10px;
	margin-block-start: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M2 6c6-6 9-6 15 0s9 6 15 0 9-6 15 0 9 6 15 0' fill='none' stroke='%233AB795' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}

.tk-lead .tk-section__title::after {
	margin-inline: auto;
}

/* Illustrations des cartes */
.tk-illus {
	display: block;
	width: 52px;
	height: 52px;
	margin-block-end: 14px;
	padding: 6px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgb(58 183 149 / 16%), rgb(24 107 144 / 8%));
	transition: transform 0.3s var(--tk-ease);
}

.tk-formation-card:hover .tk-illus,
.tk-formation-card:focus-within .tk-illus {
	transform: translateY(-3px) rotate(-4deg);
}

/* Étapes : fil pointillé entre les numéros */
.tk-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-inline-start: 18px;
	inset-block-start: 42px;
	inset-block-end: -12px;
	border-inline-start: 2px dashed rgb(24 107 144 / 30%);
}

.tk-steps > li::before {
	background: linear-gradient(135deg, var(--accent), var(--mint));
	box-shadow: 0 4px 12px rgb(24 107 144 / 25%);
}

/* Bandeau de mots qui défile ([takouine_bandeau]) */
.tk-ribbon {
	overflow: hidden;
	padding-block: 14px;
	background: var(--accent);
	direction: ltr; /* défilement identique en arabe ; chaque mot garde son sens via <bdi> */
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tk-ribbon__track {
	display: flex;
	width: max-content;
	animation: tk-ribbon 40s linear infinite;
}

.tk-ribbon ul {
	display: flex;
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tk-ribbon li {
	display: flex;
	align-items: center;
	margin: 0;
	color: var(--base-3);
	font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
	font-weight: 700;
	white-space: nowrap;
}

.tk-ribbon li.is-alt {
	color: var(--mint);
}

.tk-ribbon [lang="ar"] {
	font-family: var(--wp--preset--font-family--tajawal);
}

.tk-ribbon li::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-inline: 28px;
	border-radius: 50%;
	background: rgb(255 255 255 / 45%);
}

@keyframes tk-ribbon {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.tk-ribbon__track,
	.tk-photo-badge {
		animation: none;
	}

	.tk-illus {
		transition: none;
	}
}
