/* Thème Thelma Sabatier : classes utilitaires (les couleurs, polices et tailles viennent de theme.json). */

:root {
	--ts-rose: var(--wp--preset--color--rose-fonce);
	--ts-sauge: var(--wp--preset--color--sauge-fonce);
	--ts-radius: var(--wp--custom--radius--petit);
	--ts-radius-m: var(--wp--custom--radius--moyen);
}

/* Petit titre au-dessus d'un titre, avec un trait rose */
.ts-kicker {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ts-sauge);
}
.ts-kicker::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 2px;
	margin-right: 10px;
	vertical-align: middle;
	background: var(--ts-rose);
}

/* Surlignage rose clair sous un mot */
.ts-hl {
	background: linear-gradient(transparent 62%, color-mix(in srgb, var(--wp--preset--color--rose-clair) 60%, transparent) 62%);
	padding: 0 0.05em;
}

h1, h2, h3 { text-wrap: balance; }

/* Lien d'action « Découvrir → », « Voir les réalisations → » */
.ts-more,
.ts-more a {
	color: var(--ts-rose);
	font-weight: 600;
	text-decoration: none;
}
.ts-more a:hover { text-decoration: underline; }

/* Garanties cochées */
.ts-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	font-size: 0.8125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ts-checks li::before {
	content: "✓";
	margin-right: 6px;
	font-weight: 700;
	color: var(--wp--preset--color--sauge);
}

/* Cartes de services : étiquette posée sur la carte */
.ts-card { display: flex; flex-direction: column; gap: 0 !important; }
.ts-card > .ts-tag {
	align-self: flex-start;
	margin: 0;
	padding: 5px 10px;
	border-radius: 6px 6px 0 0;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: var(--wp--preset--color--sauge-clair);
	color: var(--ts-sauge);
}
.ts-card__box {
	flex: 1;
	margin: 0 !important;
	padding: 1.15rem;
	border-radius: 0 var(--ts-radius-m) var(--ts-radius-m) var(--ts-radius-m);
	background: var(--wp--preset--color--creme);
}
.ts-card__box h3 { margin: 0 0 0.4rem; font-size: 0.9375rem; }
.ts-card__box p { margin: 0 0 0.75rem; font-size: 0.8125rem; line-height: 1.55; }
.ts-card--star > .ts-tag { background: var(--ts-sauge); color: var(--wp--preset--color--blanc); }
.ts-card--star .ts-card__box { background: var(--ts-sauge); color: var(--wp--preset--color--blanc); }
.ts-card--star .ts-card__box h3 { color: var(--wp--preset--color--blanc); }
.ts-card--star .ts-more,
.ts-card--star .ts-more a { color: #F2C4CE; }

/* Bande d'appel à l'action */
.ts-band { text-align: center; }
.ts-band h2 { color: var(--wp--preset--color--blanc); }

/* Réalisations de l'accueil : rangée courbe qui défile (assets/js/rangee.js, version A choisie le 23/10).
   Sans script ou avec moins d'animations : rangée immobile qu'on fait défiler à la main. */
.ts-rangee {
	position: relative;
	margin-top: 2.25rem !important;
	padding: 34px 0 40px;
	overflow-x: auto;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.ts-rangee.ts-rangee--anime { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; } /* le doigt fait glisser la rangée, la page défile toujours verticalement */
.ts-rangee.ts-rangee--glisse { cursor: grabbing; }
.ts-rangee__piste { position: relative; display: flex; gap: 22px; width: max-content; margin: 0 !important; padding: 0 7vw; will-change: transform; }
.ts-rangee--anime .ts-rangee__piste { padding: 0; }
.ts-rangee__piste > * { margin: 0 !important; }
.ts-rangee__carte {
	position: relative;
	flex: none;
	width: 300px;
	height: 212px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--wp--preset--color--sauge-clair);
	box-shadow: 0 18px 40px -18px rgba(31, 36, 32, 0.45);
	will-change: transform;
}
.ts-rangee__carte a,
.ts-rangee__carte img { display: block; width: 100%; height: 100%; }
.ts-rangee__carte img { object-fit: cover; transition: transform 0.5s ease; }
.ts-rangee__carte:hover img { transform: scale(1.04); }
.ts-rangee__carte figcaption {
	position: absolute;
	left: 10px;
	bottom: 10px;
	max-width: calc(100% - 20px);
	margin: 0;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--wp--preset--color--encre);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}
.ts-pastille .wp-block-button__link {
	padding: 9px 16px;
	border: 1.5px solid var(--wp--preset--color--rose-fonce);
	border-radius: 999px;
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--rose-fonce);
	font-size: 0.875rem;
	box-shadow: none;
}
.ts-pastille .wp-block-button__link:hover { background: var(--wp--preset--color--rose-fonce); color: var(--wp--preset--color--blanc); }
@media (max-width: 700px) {
	.ts-rangee { padding: 24px 0 30px; }
	.ts-rangee__piste { gap: 14px; }
	.ts-rangee__carte { width: 200px; height: 142px; }
}

/* Bandeau « Parlons-en » en invitation d'agenda (version A choisie le 23/10).
   Après une partie blanche : fond crème et carte blanche ; sinon l'inverse, pour que deux parties voisines ne se confondent jamais. */
.ts-invitation { background-color: var(--wp--preset--color--blanc); }
.has-blanc-background-color + .ts-invitation { background-color: var(--wp--preset--color--creme); }
.ts-invitation h2 { color: var(--wp--preset--color--encre); }
.ts-invitation > p { color: #4a514c; }
.ts-invit {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 720px;
	margin: 2rem auto 0 !important;
	padding: 18px 20px;
	border-radius: 22px;
	background: var(--wp--preset--color--creme);
	text-align: left;
	box-shadow: 0 24px 60px -20px rgba(31, 36, 32, 0.28), 0 2px 6px rgba(31, 36, 32, 0.06);
}
.has-blanc-background-color + .ts-invitation .ts-invit { background: var(--wp--preset--color--blanc); }
.ts-invit > * { margin: 0 !important; }
.ts-invit__photo { flex: none; }
.ts-invit__photo img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px var(--wp--preset--color--blanc), 0 0 0 5px var(--wp--preset--color--sauge-clair);
}
.ts-invit__txt { flex: 1; min-width: 0; }
.ts-invit__txt p { margin: 0; }
.ts-invit__app { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--sauge-fonce); }
.ts-invit__ico { margin-right: 6px; }
.ts-invit__titre { margin-top: 4px !important; font-size: 1.125rem; font-weight: 700; color: var(--wp--preset--color--encre); }
.ts-invit__infos { margin-top: 4px !important; font-size: 0.875rem; color: #5b625d; }
.ts-invit .wp-block-buttons { flex: none; }
/* Arrivée comme une notification (classes posées par assets/js/invitation.js) */
.ts-invit--anime { opacity: 0; transform: translateY(-18px) scale(0.94); }
.ts-invit--anime.ts-invit--visible { animation: ts-notif-arrivee 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.15s both; }
@media (max-width: 700px) {
	.ts-invit { flex-wrap: wrap; justify-content: center; text-align: center; }
	.ts-invit__txt { flex-basis: 100%; }
}

/* Photo du site actuel (Thelma dans le grand cercle), entière, qui va jusqu'au bord droit ; cartes flottantes autour */
.ts-arch { position: relative; margin-right: calc(-1 * var(--wp--style--root--padding-right, 40px)); }
.ts-arch__frame { position: relative; margin: 0 !important; }
.ts-arch__frame .wp-block-image { margin: 0; }
.ts-arch__frame img { display: block; width: 100%; height: auto; }
.ts-float {
	position: absolute !important;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 10px 14px;
	border-radius: var(--ts-radius-m);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--custom--ombre--douce);
	font-size: 0.75rem;
	line-height: 1.35;
	white-space: nowrap;
}
.ts-float strong { display: block; font-size: 0.78rem; color: var(--wp--preset--color--encre); }
.ts-float .ts-float__ico {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--blanc);
}
/* Positions en % de la photo, aux places des anciennes icônes du site actuel, jamais sur le visage */
.ts-float--google { left: -40px; top: 0; --ts-notif-delai: 0.4s; --ts-notif-duree: 5.2s; }
.ts-float--google .ts-float__ico { background: var(--wp--preset--color--blanc); border: 1px solid #eee; }
.ts-float--rdv { right: 16px; top: 47%; /* sous le menton */ --ts-notif-delai: 1.1s; --ts-notif-duree: 4.6s; }
.ts-float--rdv .ts-float__ico { background: var(--wp--preset--color--blanc); border: 1px solid #eee; font-size: 18px; }
.ts-float--enligne { left: -40px; top: 62%; --ts-notif-delai: 1.8s; --ts-notif-duree: 5.6s; }
.ts-float--enligne .ts-float__ico { background: var(--ts-sauge); }

/* Les cartes arrivent l'une après l'autre comme des notifications de téléphone, puis flottent doucement */
.ts-arch .ts-float {
	animation:
		ts-notif-arrivee 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) var(--ts-notif-delai, 0.4s) both,
		ts-notif-flotte var(--ts-notif-duree, 5s) ease-in-out calc(var(--ts-notif-delai, 0.4s) + 0.7s) infinite alternate;
}
@keyframes ts-notif-arrivee {
	from { opacity: 0; transform: translateY(-18px) scale(0.92); }
	to { opacity: 1; transform: none; }
}
@keyframes ts-notif-flotte {
	from { translate: 0 0; }
	to { translate: 0 -7px; }
}
@media (prefers-reduced-motion: reduce) {
	.ts-arch .ts-float { animation: none; }
}

/* Réalisation sans image : fond de remplacement */
.ts-card__placeholder {
	aspect-ratio: 16 / 10;
	border-radius: var(--ts-radius-m) var(--ts-radius-m) 0 0;
	background: linear-gradient(135deg, var(--wp--preset--color--sauge-clair), var(--wp--preset--color--creme));
}

/* Tablette : photo plus petite, deux cartes seulement (Google et nouveau message) pour ne pas la couvrir */
@media (min-width: 701px) and (max-width: 1100px) {
	.ts-float--enligne,
	.ts-float--abonnes { display: none !important; }
	.ts-float--google { top: -40px; } /* au-dessus du front */
	.ts-float--rdv { top: 52%; --ts-notif-delai: 1.1s; }
}

/* Petits écrans : la photo passe sous le texte, deux cartes seulement, sous la photo */
@media (max-width: 700px) {
	.ts-arch { margin-right: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
	.ts-arch__frame { width: 100%; }
	.ts-float { position: static !important; white-space: normal; }
	.ts-float--enligne { --ts-notif-delai: 1.1s; }
	.ts-float--rdv,
	.ts-float--abonnes { display: none !important; }
}

/* En-tête */
.ts-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	background: var(--wp--preset--color--creme);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sauge-fonce) 12%, transparent);
}
.ts-header__row { gap: 1.25rem; }
.ts-brand { gap: 0.6rem; }
.ts-brand .wp-block-site-logo img { height: auto; }
.ts-brand__name,
.ts-brand__name a {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ts-sauge);
	text-decoration: none;
}
.ts-nav { font-size: 0.875rem; gap: 1.5rem; }
.ts-nav a { text-decoration: none; }
.ts-nav a:hover { color: var(--ts-rose); }
.ts-header__cta .wp-block-button__link { padding: 0.65rem 1.1rem; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--creme); }

.ts-brand__name { white-space: nowrap; }

@media (max-width: 781px) {
	/* Sur téléphone : bouton court « Réserver » toujours visible, entre le nom et le menu. */
	.ts-header__row { gap: 0.6rem; }
	.ts-header .ts-header__cta { order: 2; margin-left: auto; }
	.ts-header .ts-nav { order: 3; }
	.ts-header__cta .wp-block-button__link { padding: 0.5rem 0.85rem; font-size: 0; line-height: 1; }
	.ts-header__cta .wp-block-button__link::after { content: "Réserver" / ""; font-size: 0.8125rem; }
}
@media (max-width: 360px) {
	.ts-brand__name,
	.ts-brand__name a { font-size: 0.6875rem; letter-spacing: 0.1em; }
}

/* Pied de page */
.ts-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--40);
	font-size: 0.875rem;
}
.ts-footer a { color: var(--wp--preset--color--blanc); text-decoration: none; }
.ts-footer a:hover { color: #F2C4CE; text-decoration: underline; }
.ts-footer__name { margin: 0; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ts-footer__title { margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.ts-footer__links { line-height: 2; }
.ts-footer__legal {
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.75rem;
	opacity: 0.85;
}

/* Sections et en-têtes de page */
.ts-main { padding-top: 0; }
.ts-section { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.ts-page-hero { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--30); }
.ts-page-hero__title, .ts-page-hero h1 { margin-top: 0.5rem; }
.ts-lead { font-size: 1.0625rem; color: #444; }
.ts-hero-inner > .ts-lead { max-width: 640px; }
.ts-band { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.ts-band .wp-block-button__link { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

/* Filtre des réalisations */
.ts-filtre-ligne { gap: 0.5rem; margin-top: 1.25rem; }
.ts-filtre-tout,
.ts-filtre { margin: 0; }
.ts-filtre { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.ts-filtre-tout a,
.ts-filtre a {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--ts-sauge) 30%, transparent);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ts-sauge);
	background: var(--wp--preset--color--blanc);
}
.ts-filtre-tout a:hover,
.ts-filtre a:hover { border-color: var(--ts-rose); color: var(--ts-rose); }

/* Cartes de réalisations */
.ts-real-grid .wp-block-post-template { gap: 1.25rem; }
.ts-real-card {
	height: 100%;
	overflow: hidden;
	border-radius: var(--ts-radius-m);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--custom--ombre--carte);
}
.ts-real-card__img { margin: 0; }
.ts-real-card__img img { width: 100%; object-fit: cover; object-position: top; }
.ts-real-card__body { padding: 0.9rem 1.1rem 1.1rem; }
/* Photos qui défilent au survol (assets/js/defilement.js) */
.ts-defile { position: relative; display: block; }
.ts-defile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}
.ts-defile__img.est-visible { opacity: 1; }
.ts-real-card__type { margin: 0 0 0.25rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ts-real-card__type a { color: var(--ts-rose); text-decoration: none; }
.ts-real-card__title { margin: 0 0 0.35rem; font-size: 1rem; }
.ts-real-card__title a { color: var(--wp--preset--color--encre); text-decoration: none; }
.ts-real-card__excerpt { margin: 0; font-size: 0.8125rem; color: #555; }
.ts-real-card__excerpt .wp-block-post-excerpt__excerpt { margin: 0; }
.ts-real-single__img { margin-top: 1.5rem; border-radius: var(--ts-radius-m); overflow: hidden; }
.ts-real-single__content { padding-bottom: var(--wp--preset--spacing--40); }
.ts-real-single__content .wp-block-image img { border-radius: var(--ts-radius-m); }

/* Page d'accueil */
.ts-main .wp-block-post-content > * { margin-block-start: 0; }
.ts-home-hero { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.ts-hero { gap: 2.25rem; }
.ts-hero__title { margin: 0.75rem 0 0; }
.ts-hero .ts-lead { max-width: 470px; margin: 1rem 0 1.5rem; font-size: 0.9375rem; line-height: 1.7; }
.ts-hero__actions { gap: 0.5rem 0.75rem; }
.ts-hero__actions .wp-block-button:first-child .wp-block-button__link { box-shadow: 0 8px 20px color-mix(in srgb, var(--ts-rose) 25%, transparent); }
.ts-btn-lien .wp-block-button__link,
.ts-btn-lien.is-style-outline .wp-block-button__link {
	padding-left: 0.6rem;
	padding-right: 0.6rem;
	border: 0;
	background: transparent;
	color: var(--ts-rose);
}
.ts-btn-lien .wp-block-button__link:hover { background: transparent; color: var(--ts-sauge); text-decoration: underline; }
.ts-hero .ts-checks { margin-top: 1.4rem; }

.ts-services .ts-cards { gap: 0.9rem; margin-top: 1.5rem; }
.ts-services h2 { margin-top: 0.4rem; }

.ts-etapes__liste { gap: 1.25rem; margin-top: 1.5rem; }
.ts-etape {
	padding: 1.25rem;
	border-radius: var(--ts-radius-m);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--custom--ombre--carte);
}
.ts-etape__num { margin: 0 0 0.25rem; font-size: 0.8125rem; font-weight: 700; color: var(--ts-rose); letter-spacing: 0.08em; }
.ts-etape h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.ts-etape p:last-child { margin: 0; font-size: 0.875rem; line-height: 1.6; color: #444; }

.ts-home-real h2 { margin-bottom: 1.5rem; }
.ts-home-real .ts-more { margin-top: 1.25rem; }

.ts-apropos__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: var(--ts-radius-m); }
.ts-apropos h2 { margin-top: 0.4rem; }

.ts-avis {
	margin: 1rem auto 0;
	padding: 0;
	border: 0;
	text-align: center;
}
.ts-avis p { font-size: 1.0625rem; line-height: 1.7; font-weight: 500; }
.ts-avis cite { display: block; margin-top: 0.75rem; font-size: 0.8125rem; font-style: normal; font-weight: 600; color: var(--ts-sauge); }

.ts-cta-final { text-align: center; padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }

@media (max-width: 781px) {
	.ts-home-hero { padding-top: var(--wp--preset--spacing--40); }
}

/* Pages de services */
.ts-cartes { gap: 1rem; margin-top: 1rem; }
.ts-cartes:first-of-type { margin-top: 1.5rem; }
.ts-carte {
	height: 100%;
	padding: 1.25rem;
	border-radius: var(--ts-radius-m);
	background: var(--wp--preset--color--creme);
}
.has-creme-background-color .ts-carte,
.ts-section:not(.has-background) .ts-carte { background: var(--wp--preset--color--blanc); box-shadow: var(--wp--custom--ombre--carte); }
.ts-carte h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.ts-carte p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: #444; }
.ts-liste-coches { padding: 0; list-style: none; }
.ts-liste-coches li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.ts-liste-coches li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--wp--preset--color--sauge); }
.ts-card--star .ts-liste-coches li::before { color: #C9D6BF; }
.ts-besoins { gap: 2rem; margin-top: 1.5rem; }
.ts-texte-centre { max-width: 680px; margin-left: auto !important; margin-right: auto !important; }
.ts-faq-liste { max-width: 760px; margin: 1.5rem auto 0 !important; }
.ts-faq {
	margin: 0 0 0.75rem;
	padding: 1rem 1.25rem;
	border-radius: var(--ts-radius-m);
	background: var(--wp--preset--color--blanc);
	box-shadow: var(--wp--custom--ombre--carte);
}
.ts-faq summary { cursor: pointer; font-weight: 600; }
.ts-faq summary:hover { color: var(--ts-rose); }
.ts-faq p { margin: 0.6rem 0 0; font-size: 0.9375rem; color: #444; }
.ts-hero-inner h1 { max-width: 820px; }
.ts-page-hero .wp-block-buttons { margin-top: 1.5rem; }

/* Contact et pages légales */
.ts-rdv__cols { gap: 2rem; }
.ts-rdv__carte { padding: 1.75rem; }
.ts-rdv__carte h2 { margin-top: 0.4rem; }
.ts-rdv h3 { margin-top: 0; font-size: 1.0625rem; }
.ts-zone { margin-top: 1.25rem; font-size: 0.875rem; color: #555; }
.ts-legal h1 { margin-bottom: 1.5rem; }
.ts-legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.ts-legal p { color: #333; }
.ts-profil h2 { margin-top: 0.4rem; }
.ts-valeurs .ts-cartes { margin-top: 1.5rem; }
.ts-rdv__carte h2 { margin-bottom: 0.75rem; }

/* Agenda Google dans la page Contact (chargé après un clic, voir inc/contact.php) */
.ts-agenda { margin-top: 1.25rem; }
.ts-agenda__ouvrir { width: 100%; padding: 1rem 1.5rem; font-size: 1.0625rem; cursor: pointer; }
.ts-agenda__cadre { display: block; width: 100%; height: 720px; border: 0; border-radius: 12px; background: var(--wp--preset--color--blanc); }
.ts-agenda__note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: #555; }
.ts-agenda--ouvert .ts-agenda__note { margin-top: 0.5rem; }
/* Agenda ouvert : toute la largeur (Google montre alors plus de jours), les autres moyens de contact passent dessous.
   !important : WordPress impose ses colonnes côte à côte (et leur largeur en style en ligne) au-delà de 782 px. */
.ts-rdv__cols:has(.ts-agenda--ouvert) { flex-wrap: wrap !important; }
.ts-rdv__cols:has(.ts-agenda--ouvert) > .wp-block-column { flex-basis: 100% !important; }
@media (max-width: 700px) {
	.ts-rdv__carte { padding: 1.25rem; }
	.ts-agenda__cadre { height: 1000px; }
}

/* Bouton WhatsApp flottant, sur toutes les pages (couleur officielle de WhatsApp) */
.ts-whatsapp {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}
.ts-whatsapp svg { width: 30px; height: 30px; }
.ts-whatsapp:hover { transform: scale(1.06); }
.ts-whatsapp:focus-visible { outline: 3px solid var(--wp--preset--color--rose-fonce); outline-offset: 3px; }
@media (max-width: 700px) {
	.ts-whatsapp { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	.ts-whatsapp { transition: none; }
}
@media print {
	.ts-whatsapp { display: none; }
}


/* Zones cliquables assez grandes (accessibilité) */
.ts-real-card__type { margin-bottom: 0.35rem; }
.ts-real-card__type a { display: inline-block; padding: 0.35rem 0; }
.ts-real-card__title a { display: inline-block; padding: 0.25rem 0; }

/* Cartes de même hauteur dans une rangée (étapes, atouts, services, projets) */
.ts-etapes__liste > .wp-block-column,
.ts-cartes > .wp-block-column,
.ts-cards > .wp-block-column,
.ts-projets > .wp-block-column { display: flex; flex-direction: column; }
.ts-etapes__liste > .wp-block-column > *,
.ts-cartes > .wp-block-column > *,
.ts-cards > .wp-block-column > *,
.ts-projets > .wp-block-column > * { flex: 1 1 auto; }

/* Cases « Mes projets » de l'accueil */
.ts-projets { gap: 1.25rem; margin-top: 1.5rem; }
.ts-projet-carte {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--ts-radius-m);
	background: var(--wp--preset--color--creme);
	box-shadow: var(--wp--custom--ombre--carte);
}
.ts-projet-carte__img { margin: 0 !important; }
.ts-projet-carte__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.ts-projet-carte__corps { flex: 1; padding: 1rem 1.2rem 1.2rem; }
.ts-projet-carte__corps h3 { margin: 0 0 0.35rem; font-size: 1.0625rem; }
.ts-projet-carte__corps p { margin: 0 0 0.6rem; font-size: 0.875rem; color: #444; }
.ts-projet-carte__corps .ts-more { margin: 0; }
.ts-projet-carte > .ts-projet-carte__corps { margin-top: 0 !important; display: flex; flex-direction: column; }
.ts-projet-carte__corps .ts-more { margin-top: auto !important; }

/* Un mot en écriture attachée, légèrement penché (choix de Thelma : uniquement « rapporte » dans le titre d'accueil) */
.ts-script {
	display: inline-block;
	padding: 0 0 0 0.06em;
	margin-right: -0.12em;
	font-family: var(--wp--preset--font-family--ecriture);
	font-weight: 700;
	font-size: 1.18em;
	line-height: 0.9;
	letter-spacing: 0;
	color: var(--ts-rose);
	transform: rotate(-5deg) translateY(0.04em);
	transform-origin: left bottom;
}

/* Carte « +5 abonnés sur Instagram » (remplace la bulle Instagram seule) */
.ts-float--abonnes { right: 4%; top: 80%; --ts-notif-delai: 2.5s; --ts-notif-duree: 4.9s; }
.ts-float__ico--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* Galeries de photos des projets */
.ts-galerie { gap: 1rem !important; margin-top: 1.5rem; }
.ts-galerie .wp-block-image img { border-radius: var(--ts-radius-m); }
.ts-real-single__content { max-width: 1100px; margin-left: auto; margin-right: auto; }

.ts-note-accord { margin-top: -0.75rem !important; font-size: 0.875rem; color: #555; }

/* Lisibilité sur téléphone : plus d'air entre les parties, titres de partie détachés */
.has-sauge-clair-background-color .ts-carte { background: var(--wp--preset--color--blanc); box-shadow: var(--wp--custom--ombre--carte); }
@media (max-width: 781px) {
	.ts-section, .ts-band, .ts-cta-final { padding-top: 3.5rem; padding-bottom: 3.5rem; }
	.ts-section > .wp-block-heading { margin-bottom: 1.25rem; }
}

/* Téléphone uniquement : cases deux par deux pour moins défiler (la version ordinateur ne change pas) */
@media (max-width: 781px) {
	main :is(.ts-cards, .ts-cartes, .ts-projets, .ts-besoins).wp-block-columns {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem !important;
	}
	main :is(.ts-cards, .ts-cartes, .ts-projets, .ts-besoins).wp-block-columns > .wp-block-column {
		flex-basis: auto !important;
		margin: 0 !important;
		min-width: 0;
	}
	/* Nombre impair de cases : la dernière prend toute la largeur. */
	main :is(.ts-cards, .ts-cartes, .ts-projets, .ts-besoins).wp-block-columns > .wp-block-column:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.ts-carte, .ts-etape { padding: 0.85rem; }
	.ts-carte h3, .ts-etape h3, .ts-projet-carte__corps h3 { font-size: 0.9375rem; line-height: 1.3; }
	.ts-carte p, .ts-etape p:last-child, .ts-projet-carte__corps p { font-size: 0.8125rem; line-height: 1.5; }
	.ts-projet-carte__corps { padding: 0.75rem 0.85rem 0.9rem; }
}
@media (max-width: 600px) {
	main .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem !important; }
	.ts-real-card__body { padding: 0.65rem 0.75rem 0.8rem; }
	.ts-real-card__title { font-size: 0.875rem; line-height: 1.3; }
	.ts-real-card__type { font-size: 0.5625rem; }
	.ts-real-card__excerpt { font-size: 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Étapes racontées : apparition l'une après l'autre au défilement (assets/js/etapes.js) et flèches qui bougent */
.ts-etapes__liste { --progression: 1; }
.ts-etapes--anime .ts-etape { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ts-etapes--anime > .wp-block-column::after { opacity: 0; transition: opacity 0.5s ease; }
.ts-etapes--visible .ts-etape { opacity: 1; transform: none; }
.ts-etapes--visible > .wp-block-column::after { opacity: 1; }
.ts-etapes--visible > .wp-block-column:nth-child(2) .ts-etape { transition-delay: 0.35s; }
.ts-etapes--visible > .wp-block-column:nth-child(3) .ts-etape { transition-delay: 0.7s; }
.ts-etapes--visible > .wp-block-column:nth-child(4) .ts-etape { transition-delay: 1.05s; }
.ts-etapes--visible > .wp-block-column:nth-child(1)::after { transition-delay: 0.25s; }
.ts-etapes--visible > .wp-block-column:nth-child(2)::after { transition-delay: 0.6s; }
.ts-etapes--visible > .wp-block-column:nth-child(3)::after { transition-delay: 0.95s; }
@keyframes ts-fleche-droite { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }
@keyframes ts-fleche-bas { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
@media (min-width: 782px) {
	.ts-etapes__liste.wp-block-columns { gap: 2.5rem; }
	.ts-etapes__liste > .wp-block-column { position: relative; }
	.ts-etapes__liste > .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 50%;
		right: -2rem;
		width: 1.5rem;
		height: 1.5rem;
		margin-top: -0.75rem;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3455D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
		animation: ts-fleche-droite 1.6s ease-in-out infinite;
	}
}
@media (max-width: 781px) {
	/* Téléphone : fil vertical, numéros reliés par une ligne qui se remplit en descendant */
	.ts-etapes__liste.wp-block-columns { display: flex !important; flex-direction: column; gap: 0 !important; position: relative; padding-left: 3.25rem; }
	.ts-etapes__liste > .wp-block-column { position: relative; margin: 0 !important; padding-bottom: 1.4rem; flex-basis: auto !important; }
	.ts-etapes__liste > .wp-block-column:last-child { padding-bottom: 0; }
	.ts-etapes__liste .ts-etape { padding: 0; background: none; box-shadow: none; }
	.ts-etapes__liste .ts-etape h3 { margin-top: 0.4rem; }
	.ts-etapes__liste .ts-etape__num {
		position: absolute;
		left: -3.25rem;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		width: 2.25rem;
		height: 2.25rem;
		margin: 0;
		border: 2px solid var(--ts-rose);
		border-radius: 50%;
		background: var(--wp--preset--color--blanc);
		color: var(--ts-rose);
		transition: background 0.3s ease, color 0.3s ease;
	}
	.ts-etapes__liste:not(.ts-etapes--anime) .ts-etape__num,
	.ts-etapes__liste > .est-atteinte .ts-etape__num { background: var(--ts-rose); color: var(--wp--preset--color--blanc); }
	.ts-etapes__liste::before,
	.ts-etapes__liste::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 1.125rem; width: 2px; }
	.ts-etapes__liste::before { bottom: 1.125rem; background: color-mix(in srgb, var(--ts-rose) 25%, transparent); }
	.ts-etapes__liste::after { height: calc((100% - 2.25rem) * var(--progression)); background: var(--ts-rose); transition: height 0.15s linear; }
	.ts-etapes__liste > .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute;
		left: -2.75rem;
		bottom: 0.1rem;
		z-index: 1;
		width: 1.25rem;
		height: 1.25rem;
		border-radius: 50%;
		background: var(--wp--preset--color--sauge-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3455D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M6 13l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 85%;
		animation: ts-fleche-bas 1.6s ease-in-out infinite;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ts-etapes__liste > .wp-block-column::after { animation: none; }
}

/* Logos en couleur des outils et réseaux dans « Ce que je fais pour vous » */
.ts-logos { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.8rem; }
.ts-logo { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--wp--preset--color--blanc); box-shadow: 0 2px 6px rgba(31, 36, 32, 0.12); }
.ts-logo img { display: block; width: 1.125rem; height: 1.125rem; }
@media (max-width: 781px) {
	.ts-logos { gap: 0.3rem; }
	.ts-logo { width: 1.75rem; height: 1.75rem; }
	.ts-logo img { width: 1rem; height: 1rem; }
}
@media (max-width: 380px) {
	.ts-logos { gap: 0.2rem; }
	.ts-logo { width: 1.55rem; height: 1.55rem; }
	.ts-logo img { width: 0.9rem; height: 0.9rem; }
}

/* Téléphone : la ligne des étapes s'arrête au dernier numéro */
@media (max-width: 781px) {
	.ts-etapes__liste > .wp-block-column:last-child::before {
		content: "";
		position: absolute;
		left: calc(-3.25rem + 1.125rem - 2px);
		top: 2.25rem;
		bottom: -1px;
		z-index: 1;
		width: 4px;
		background: var(--wp--preset--color--sauge-clair);
	}
}
