/* Page Témoignages (template-temoignages.php) : avis Google, témoignages vidéo, capsules conseils. */
.tm-page {
	--tm-bleu: #203468;
	--tm-vert: #76BC21;
	--tm-vert-ink: #3F7410;
	--tm-jaune: #F5A623;
	--tm-ink: #1B2440;
	--tm-muted: #5A6382;
	--tm-ligne: #DDE1EC;
	--tm-doux: #F2F5FA;
	--tm-teinte: #EAF3F8;
	color: var(--tm-ink);
	/* Même décalage que .container-main-content, sous l'en-tête fixe du site. */
	margin-top: 70px;
}
.tm-page .tm-titre-serif,
.tm-page h1,
.tm-page h2,
.tm-page .tm-mot blockquote {
	font-family: "Playfair Display", Georgia, serif !important;
	font-weight: 600;
	color: var(--tm-bleu);
	text-wrap: balance;
}

/* Toutes les sections s'alignent sur la même largeur : une colonne pleine largeur, même si le
   thème centre le contenu de .container (sinon la colonne se réduit à la largeur de son texte). */
.tm-page .container { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }

/* Bannière */
.tm-hero { background: linear-gradient(135deg, var(--tm-teinte) 0%, var(--tm-teinte) 60%, #E5F1DC 100%); padding: 34px 0 32px; }
.tm-hero .container { gap: 14px; }
.tm-fil, .tm-fil a { font-size: 14px; color: var(--tm-muted); margin: 0; }
.tm-fil a { text-decoration: none; }
.tm-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; max-width: 20ch; margin: 0; text-transform: none; }
.tm-chapo { font-size: 18px; max-width: 60ch; margin: 0; }
.tm-note { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.tm-page .tm-badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--tm-ligne); border-radius: 999px; padding: 9px 18px; text-decoration: none; color: var(--tm-ink); }
.tm-page .tm-badge:hover .tm-badge__nombre { text-decoration: underline; }
.tm-badge__note { font-weight: 800; font-size: 18px; }
.tm-etoiles { color: #FB8E28; letter-spacing: 1px; }
.tm-badge__nombre { font-size: 14px; color: var(--tm-muted); }
.tm-page .tm-btn-vert { background: var(--tm-vert); border-color: var(--tm-vert); color: var(--tm-bleu); font-weight: 700; border-radius: 999px; padding: 11px 22px; }
.tm-page .tm-btn-vert:hover { background: #fff; border-color: var(--tm-vert); color: var(--tm-bleu); }
.tm-ancres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tm-page .tm-ancres a { font-weight: 600; font-size: 14px; color: var(--tm-bleu); text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1.5px solid rgba(32, 52, 104, .25); }
.tm-page .tm-ancres a:hover { border-color: var(--tm-bleu); }

/* Sections */
.tm-sec { padding: 52px 0; scroll-margin-top: 90px; }
.tm-sec .container { gap: 22px; }
.tm-sec--teinte { background: var(--tm-doux); }
.tm-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.tm-tete h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; margin: 0; text-transform: none; }
.tm-sous { color: var(--tm-muted); max-width: 60ch; flex-basis: 100%; margin: 0; }
.tm-page .tm-lien { font-weight: 700; color: var(--tm-bleu); text-decoration: none; }
.tm-page .tm-lien:hover { text-decoration: underline; }

/* Filtres et onglets */
.tm-filtres, .tm-onglets { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-filtres button, .tm-onglets button { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--tm-ligne); background: #fff; color: var(--tm-ink); cursor: pointer; }
.tm-filtres button[aria-pressed="true"] { border-color: var(--tm-bleu); color: var(--tm-bleu); background: var(--tm-doux); }
.tm-onglets button[aria-selected="true"] { background: var(--tm-bleu); border-color: var(--tm-bleu); color: #fff; }
.tm-page button:focus-visible, .tm-page a:focus-visible { outline: 3px solid var(--tm-jaune); outline-offset: 2px; }

/* Grilles de vidéos */
.tm-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tm-grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-grille__item[hidden] { display: none !important; }
.tm-vid { background: #fff; border: 1px solid var(--tm-ligne); border-radius: 14px; overflow: hidden; display: grid; align-content: start; height: 100%; }
.tm-vid__jouer { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--tm-bleu); cursor: pointer; overflow: hidden; }
.tm-vid__jouer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-vid__icone { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.tm-vid__icone::after { content: ""; position: absolute; left: 22px; top: 18px; border-left: 16px solid var(--tm-bleu); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.tm-vid__jouer:hover .tm-vid__icone { background: var(--tm-vert); }
.tm-vid__txt { padding: 14px 16px 18px; display: grid; gap: 6px; }
.tm-tag { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tm-vert-ink); }
.tm-tag--court { color: var(--tm-bleu); }
.tm-vid__txt q { font-weight: 600; font-size: 16px; line-height: 1.4; quotes: "« " " »"; }
.tm-vid__txt p { font-weight: 600; font-size: 15px; line-height: 1.4; margin: 0; }
.tm-vid__txt small { color: var(--tm-muted); font-size: 14px; }
.tm-plus { justify-self: center; border-radius: 999px; font-weight: 700; padding: 10px 22px; }

/* Avis Google (widget du plugin) : le carrousel reste dans sa zone, sous l'en-tête de la section. */
.tm-tete { position: relative; z-index: 2; }
.tm-avis { position: relative; z-index: 1; overflow: hidden; min-width: 0; }
.tm-avis .wp-gr { --rev-color: #fff; }

/* Mot de Pierre et encart */
.tm-mot { justify-items: center; text-align: center; }
/* La citation garde sa propre mise en forme : pas le cadre gris et la bordure verte des citations du thème. */
.tm-page .tm-mot blockquote { margin: 0; padding: 0; border: 0; background: none; font-style: normal; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; max-width: 34ch; }
.tm-page .tm-mot blockquote::before, .tm-page .tm-mot blockquote::after { content: none; }
.tm-mot p { color: var(--tm-muted); font-size: 15px; margin: 0; }
.tm-mot p b { color: var(--tm-ink); }
.tm-encart { background: var(--tm-teinte); border-radius: 16px; padding: 24px 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tm-encart p { font-size: 18px; font-weight: 600; color: var(--tm-bleu); max-width: 46ch; margin: 0; }

@media (max-width: 1020px) {
	.tm-grille, .tm-grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.tm-grille, .tm-grille--4 { grid-template-columns: minmax(0, 1fr); }
	.tm-sec { padding: 40px 0; }
}
