/* ==========================================================================
   Page Témoignages
   Ouverture « Ils en parlent mieux que moi. » sur le filigrane « Témoignages »,
   puis le mur d'avis Trustindex
   (widget « Grid – with photos ») habillé aux couleurs du site.
   S'appuie sur les variables de style.css (.seance fournit --edge).
   ========================================================================== */

.temoignages {
	--page: #f2f1ef;
	--paper: #fff;
	background: var(--page);
}
.temoignages > section:not(.book-cta) { background: var(--page); }

/* ---------- 1. Ouverture ---------- */
.tm-open {
	position: relative; overflow: hidden;
	padding: calc(var(--nav-h) + clamp(40px, 7vh, 96px)) var(--edge) clamp(36px, 6vh, 64px);
}
.tm-open > .tm-open__word {
	position: absolute; z-index: 0; left: calc(var(--edge) + clamp(3rem, 10vw, 12rem)); top: calc(var(--nav-h) + clamp(4px, 2vh, 24px));
	margin: 0; font-family: var(--f-display); font-size: clamp(4.5rem, 13vw, 13rem); line-height: .9;
	white-space: nowrap; color: rgba(33, 33, 33, .07); pointer-events: none; user-select: none;
}
.tm-open > *:not(.tm-open__word) { position: relative; z-index: 1; }
.tm-open__eyebrow {
	font-family: var(--f-title); font-weight: 400; text-transform: uppercase;
	font-size: clamp(.72rem, .68rem + .2vw, .9rem); letter-spacing: .14em; color: var(--grey-700);
}
.tm-open__title {
	margin-top: .15em; max-width: 14ch;
	font-family: var(--f-display); font-size: clamp(3rem, 1.4rem + 5vw, 6.6rem); line-height: 1; color: var(--grey-900);
}
.tm-open__lead { margin-top: clamp(14px, 2vh, 24px); font-weight: 400; font-size: var(--t-lead); line-height: 1.6; max-width: 44rem; }

/* Note Google */
.tm-score {
	display: flex; align-items: center; flex-wrap: wrap; gap: 14px clamp(20px, 2.6vw, 40px);
	margin-top: clamp(30px, 5vh, 56px); padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.4vw, 34px);
	background: var(--paper); border-left: 3px solid var(--terra);
	width: fit-content; max-width: 100%;
}
.tm-score__num { font-family: var(--f-display); font-size: clamp(2.6rem, 2rem + 2vw, 4rem); line-height: 1; color: var(--grey-900); }
.tm-score__stars { display: flex; gap: 4px; color: var(--terra); }
.tm-score__stars svg { width: 20px; height: 20px; fill: currentColor; }
.tm-score__label { font-family: var(--f-title); font-weight: 400; font-size: var(--t-h6); line-height: 1.2; }
.tm-score__label small { display: block; margin-top: .35em; font-weight: 300; font-size: .62em; letter-spacing: .04em; color: var(--grey-700); }

/* ---------- 2. Mur d'avis ---------- */
.tm-wall { padding: 0 var(--edge) var(--sec-lg); }
.tm-wall__head {
	display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
	padding-bottom: clamp(18px, 3vh, 28px); margin-bottom: clamp(24px, 4vh, 44px);
	border-bottom: 1px solid var(--hair, rgba(33, 33, 33, .15));
}
.tm-wall__title { font-family: var(--f-display); font-size: var(--t-h3); line-height: 1.05; color: var(--grey-900); }
.tm-wall__note { font-size: var(--t-card); color: var(--grey-700); max-width: 30rem; }
.tm-wall__fallback { font-size: var(--t-card); color: var(--grey-700); }
.tm-wall__fallback a { color: inherit; text-underline-offset: .2em; }

/* --- Habillage du widget Trustindex ---------------------------------------
   Le widget injecte ses propres styles : on les surclasse sous .tm-widget.  */
.tm-widget { min-height: 240px; }
.tm-widget .ti-widget,
.tm-widget .ti-widget * { font-family: var(--f-text) !important; }
.tm-widget .ti-widget .ti-widget-container { margin: 0 !important; }

/* En-tête du widget (note « EXCELLENT ») : déjà affichée dans le bandeau */
.tm-widget .ti-widget .ti-header { display: none !important; }

/* Cartes */
.tm-widget .ti-widget .ti-review-item > .ti-inner {
	background: var(--paper) !important; border: 0 !important; border-radius: 0 !important;
	box-shadow: 0 14px 34px -22px rgba(33, 33, 33, .35) !important;
	padding: clamp(20px, 2vw, 30px) !important;
	transition: box-shadow .8s var(--ease), transform .8s var(--ease);
}
.tm-widget .ti-widget .ti-review-item > .ti-inner:hover {
	box-shadow: 0 26px 50px -24px rgba(33, 33, 33, .45) !important; transform: translateY(-4px);
}
.tm-widget .ti-widget .ti-profile-img img { border-radius: 50% !important; filter: grayscale(.35); }
.tm-widget .ti-widget .ti-name {
	font-family: var(--f-title) !important; font-weight: 400 !important;
	font-size: .82rem !important; letter-spacing: .16em !important; text-transform: uppercase; color: var(--grey-900) !important;
}
.tm-widget .ti-widget .ti-date { font-size: .78rem !important; color: var(--grey-700) !important; }
.tm-widget .ti-widget .ti-review-content,
.tm-widget .ti-widget .ti-review-text-container {
	font-size: var(--t-card) !important; line-height: 1.6 !important; color: var(--ink) !important;
}
.tm-widget .ti-widget .ti-read-more,
.tm-widget .ti-widget .ti-read-more * {
	font-family: var(--f-title) !important; font-size: .72rem !important; letter-spacing: .18em !important;
	text-transform: uppercase; color: var(--mahogany) !important;
}
.tm-widget .ti-widget .ti-verified-review,
.tm-widget .ti-widget .ti-verified-by { opacity: .55; }

/* Bouton « Charger plus » → bouton filaire du site */
.tm-widget .ti-widget .ti-load-more-reviews-container { margin-top: clamp(28px, 5vh, 48px) !important; text-align: center; }
.tm-widget .ti-widget .ti-load-more-reviews-button {
	display: inline-flex !important; align-items: center; justify-content: center;
	padding: 1.05em 2.2em !important; background: transparent !important; color: var(--grey-900) !important;
	border: 1px solid var(--grey-900) !important; border-radius: 999px !important; box-shadow: none !important;
	font-family: var(--f-title) !important; font-weight: 400 !important; font-size: var(--t-btn) !important;
	letter-spacing: .2em !important; text-transform: uppercase !important;
	transition: background-color .5s var(--ease), color .5s var(--ease);
}
.tm-widget .ti-widget .ti-load-more-reviews-button:hover { background: var(--grey-900) !important; color: var(--grey-100) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.tm-open > .tm-open__word { left: var(--edge); font-size: 22vw; }
	.tm-score { width: 100%; }
}

/* ---------- 2. Sélection d'avis par thème : un avis en grand, les autres en défilement ---------- */
.temoignages > section.tm-group--light { background: #fff; }
.tm-group { padding: clamp(48px, 8vh, 96px) var(--edge); overflow: hidden; }
.tm-group__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 32px; padding-bottom: clamp(14px, 2.4vh, 22px); border-bottom: 1px solid var(--hair, rgba(33, 33, 33, .15)); }
.tm-group__kick { font-family: var(--f-title); font-weight: 300; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mahogany); }
.tm-group__title { font-family: var(--f-display); font-size: var(--t-h3); line-height: 1.05; color: var(--grey-900); margin-top: .2em; }
.tm-group__link { font-family: var(--f-title); font-size: var(--t-h6); color: var(--ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.tm-group__link:hover { color: var(--mahogany); }
/* Avis mis en avant */
.tm-feature { margin: clamp(36px, 6vh, 72px) auto clamp(32px, 5vh, 60px); }
.tm-feature blockquote { font-size: clamp(1.35rem, .95rem + 1.4vw, 2.3rem); }
/* Défilement */
.tm-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 30px; margin: 0 -2px; }
.tm-track::-webkit-scrollbar { display: none; }
.tm-track:focus-visible { outline: 1px solid var(--mahogany); outline-offset: 2px; }
.tm-track .quote { flex: 0 0 clamp(17rem, 28vw, 25rem); scroll-snap-align: start; }
.tm-group--light .tm-track .quote { background: #f2f1ef; box-shadow: none; }
.tm-track .quote blockquote { font-size: clamp(1rem, .92rem + .3vw, 1.22rem); }
.tm-track .quote blockquote p, .tm-feature blockquote p { font: inherit; }
.tm-track .quote figcaption { letter-spacing: .12em; }
.tm-slider__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tm-slider__hint { font-family: var(--f-title); font-weight: 300; font-size: .82rem; letter-spacing: .06em; color: var(--grey-700); }
.tm-nav { display: flex; gap: 10px; }
.tm-nav[hidden], .tm-slider__hint[hidden] { display: none; }
@media (hover: hover) { .tm-slider__hint { visibility: hidden; } }
@media (max-width: 640px) {
	.tm-track .quote { flex-basis: 84vw; }
	.tm-feature { text-align: left; align-items: flex-start; margin-top: 28px; }
	.tm-feature blockquote { font-size: 1.32rem; }
}
