/*
Theme Name: Toiture Plein Sud - Blog
Theme URI: https://www.toiturepleinsud.fr/
Author: Oscar SEO
Author URI: https://oscar-seo.ai/
Description: Thème WordPress sur mesure pour le blog de Toiture Plein Sud, couvreur-zingueur à Lambesc (13). Reprend fidèlement la charte graphique du site principal : rouge #F10000, typographie Raleway, header/footer identiques, badges RGE Qualibat et garantie décennale. Inclut un balisage Schema.org complet (RoofingContractor, BlogPosting, BreadcrumbList).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tps-blog
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar
*/

/* =========================================================================
   SOMMAIRE
   1.  Variables & reset
   2.  Typographie
   3.  Utilitaires & conteneurs
   4.  Boutons
   5.  Barre utilitaire (topbar)
   6.  Header & logo
   7.  Navigation
   8.  Bouton devis fixe
   9.  Bandeau de page (hero) & fil d'Ariane
   10. Bandeau réassurance
   11. Grille articles / cartes
   12. Article seul (single)
   13. Sidebar & widgets
   14. Pagination
   15. Commentaires
   16. Formulaire de recherche
   17. Bloc CTA devis
   18. Footer
   19. Page 404 & états vides
   20. Blocs Gutenberg
   21. Accessibilité
   22. Responsive
   ========================================================================= */

/* ========== 1. VARIABLES & RESET ========================================= */

:root {
	/* Charte Toiture Plein Sud */
	--tps-red: #f10000;
	--tps-red-dark: #c40000;
	--tps-red-light: #fff2f2;
	--tps-blue: #0b6b90;
	--tps-black: #000;
	--tps-ink: #282828;
	--tps-ink-soft: #666;
	--tps-muted: #999;
	--tps-line: #dfdfdf;
	--tps-grey: #f4f4f4;
	--tps-grey-dark: #262626;
	--tps-white: #fff;

	/* Typographie */
	--tps-font: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--tps-fs-base: 1rem;
	--tps-lh-base: 1.7;

	/* Structure */
	--tps-wrap: 1200px;
	--tps-wrap-narrow: 820px;
	--tps-gap: 30px;
	--tps-radius: 2px;
	--tps-shadow: 0 2px 14px rgba(0, 0, 0, .08);
	--tps-shadow-hover: 0 6px 26px rgba(0, 0, 0, .14);
	--tps-transition: .25s ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	max-width: 100%;
	background: var(--tps-white);
	color: var(--tps-ink);
	font-family: var(--tps-font);
	font-size: var(--tps-fs-base);
	font-weight: 400;
	line-height: var(--tps-lh-base);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

a {
	color: var(--tps-red);
	text-decoration: none;
	transition: color var(--tps-transition);
}

a:hover,
a:focus {
	color: var(--tps-red-dark);
	text-decoration: underline;
}

/* ========== 2. TYPOGRAPHIE ============================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tps-font);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 .6em;
	color: var(--tps-red);
}

h1 { font-size: 2.125rem; }   /* 34px */
h2 { font-size: 1.75rem; }    /* 28px — identique au site principal */
h3 { font-size: 1.375rem; }   /* 22px — identique au site principal */
h4 { font-size: 1.125rem; color: var(--tps-ink); }
h5 { font-size: 1rem; color: var(--tps-ink); text-transform: uppercase; letter-spacing: .08em; }
h6 { font-size: .875rem; color: var(--tps-ink-soft); text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1.3em; }

ul, ol { margin: 0 0 1.3em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

strong, b { font-weight: 700; }

blockquote {
	margin: 2em 0;
	padding: 1.2em 1.6em;
	border-left: 4px solid var(--tps-red);
	background: var(--tps-grey);
	font-style: italic;
	color: var(--tps-ink);
}

blockquote p:last-child { margin-bottom: 0; }

blockquote cite {
	display: block;
	margin-top: .8em;
	font-style: normal;
	font-size: .875rem;
	color: var(--tps-ink-soft);
}

code, kbd, pre, samp {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: .9em;
}

code {
	background: var(--tps-grey);
	padding: .15em .4em;
	border-radius: var(--tps-radius);
	color: var(--tps-grey-dark);
}

pre {
	background: var(--tps-grey-dark);
	color: #f0f0f0;
	padding: 1.2em;
	overflow-x: auto;
	border-radius: var(--tps-radius);
	line-height: 1.5;
}

pre code { background: none; color: inherit; padding: 0; }

hr {
	border: 0;
	border-top: 1px solid var(--tps-line);
	margin: 2.5em 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	font-size: .9375rem;
}

th, td {
	border: 1px solid var(--tps-line);
	padding: .7em .9em;
	text-align: left;
}

th {
	background: var(--tps-grey);
	font-weight: 700;
	color: var(--tps-ink);
}

/* ========== 3. UTILITAIRES & CONTENEURS ================================= */

.tps-wrap {
	width: 100%;
	max-width: var(--tps-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.tps-wrap--narrow { max-width: var(--tps-wrap-narrow); }

.tps-main { padding: 50px 0 70px; }

.tps-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 50px;
	align-items: start;
}

.tps-layout--full { grid-template-columns: minmax(0, 1fr); }

.tps-section-title {
	position: relative;
	margin-bottom: 1.4em;
	padding-bottom: .5em;
}

.tps-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: var(--tps-red);
}

.tps-eyebrow {
	display: inline-block;
	margin-bottom: .6em;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tps-red);
}

/* ========== 4. BOUTONS ================================================== */

.tps-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-block;
	padding: 13px 26px;
	border: 2px solid var(--tps-red);
	background: var(--tps-red);
	color: var(--tps-white);
	font-family: var(--tps-font);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.2;
	cursor: pointer;
	border-radius: var(--tps-radius);
	transition: background var(--tps-transition), color var(--tps-transition), border-color var(--tps-transition);
}

.tps-btn:hover,
.tps-btn:focus,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--tps-white);
	color: var(--tps-red);
	border-color: var(--tps-red);
	text-decoration: none;
}

.tps-btn--ghost {
	background: transparent;
	color: var(--tps-red);
}

.tps-btn--ghost:hover { background: var(--tps-red); color: var(--tps-white); }

.tps-btn--light {
	background: var(--tps-white);
	color: var(--tps-red);
	border-color: var(--tps-white);
}

.tps-btn--light:hover { background: transparent; color: var(--tps-white); border-color: var(--tps-white); }

.tps-btn--sm { padding: 9px 18px; font-size: .75rem; }

/* Champs de formulaire */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--tps-line);
	background: var(--tps-white);
	color: var(--tps-ink);
	font-family: var(--tps-font);
	font-size: .9375rem;
	border-radius: var(--tps-radius);
	transition: border-color var(--tps-transition);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--tps-red);
}

label {
	display: block;
	margin-bottom: .35em;
	font-size: .8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tps-ink);
}

/* ========== 5. BARRE UTILITAIRE (TOPBAR) ================================ */

.tps-topbar {
	background: var(--tps-ink);
	color: var(--tps-white);
	font-size: .8125rem;
	letter-spacing: .03em;
}

.tps-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 40px;
	flex-wrap: wrap;
}

.tps-topbar__contact {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.tps-topbar a {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	color: var(--tps-white);
}

.tps-topbar a:hover { color: var(--tps-red); text-decoration: none; }

.tps-topbar__icon {
	width: 14px;
	height: 14px;
	fill: var(--tps-red);
	flex: 0 0 auto;
}

.tps-topbar__back {
	font-weight: 700;
	text-transform: uppercase;
	font-size: .75rem;
	letter-spacing: .1em;
}

/* ========== 6. HEADER & LOGO =========================================== */

.tps-header {
	position: relative;
	z-index: 3;
	width: 100%;
	background: var(--tps-white);
	border-bottom: 1px solid var(--tps-line);
}

.tps-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.tps-branding {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.tps-logo {
	display: block;
	width: 160px;
	max-width: 100%;
	flex: 0 0 auto;
}

.tps-logo img {
	width: 100%;
	height: auto;
}

.tps-logo--text {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--tps-ink);
	letter-spacing: .02em;
	width: auto;
}

.tps-logo--text span { color: var(--tps-red); display: block; }

.tps-branding__baseline {
	margin: 0;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--tps-ink-soft);
	line-height: 1.3;
	border-left: 3px solid var(--tps-red);
	padding-left: 14px;
}

.tps-header__aside {
	display: flex;
	align-items: center;
	gap: 22px;
}

.tps-badges {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tps-badge img { max-height: 54px; width: auto; }

.tps-badge--text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6px 12px;
	border: 1px solid var(--tps-line);
	border-radius: var(--tps-radius);
	text-align: center;
	line-height: 1.2;
}

.tps-badge--text strong {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tps-red);
}

.tps-badge--text span { font-size: .6875rem; color: var(--tps-ink-soft); }

.tps-header__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--tps-ink);
	white-space: nowrap;
}

.tps-header__phone:hover { color: var(--tps-red); text-decoration: none; }

.tps-header__phone svg { width: 22px; height: 22px; fill: var(--tps-red); }

/* ========== 7. NAVIGATION ============================================== */

.tps-nav-bar {
	background: var(--tps-white);
	border-bottom: 3px solid var(--tps-red);
}

.tps-nav {
	position: relative;
	z-index: 4;
}

.tps-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tps-nav > ul {
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	flex-wrap: wrap;
}

.tps-nav > ul > li {
	position: relative;
	margin: 0;
}

.tps-nav > ul > li > a {
	display: block;
	padding: 13px 11px;
	font-size: .9375rem;   /* 15px — identique au site principal */
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--tps-black);
	text-align: center;
	background: transparent;
}

.tps-nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 11px;
	right: 11px;
	bottom: 6px;
	height: 2px;
	background: var(--tps-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--tps-transition);
}

.tps-nav > ul > li:hover > a::after,
.tps-nav > ul > li:focus-within > a::after,
.tps-nav > ul > li.current-menu-item > a::after,
.tps-nav > ul > li.current_page_item > a::after {
	transform: scaleX(1);
}

.tps-nav > ul > li > a:hover,
.tps-nav > ul > li.current-menu-item > a {
	color: var(--tps-black);
	text-decoration: none;
}

/* Sous-menus — fond rouge, texte blanc (identique au site principal) */
.tps-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--tps-red);
	box-shadow: var(--tps-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--tps-transition), transform var(--tps-transition), visibility var(--tps-transition);
	z-index: 20;
}

.tps-nav li:hover > ul,
.tps-nav li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tps-nav ul ul li { margin: 0; }

.tps-nav ul ul a {
	display: block;
	padding: 11px 18px;
	font-size: .875rem;    /* 14px — identique au site principal */
	font-weight: 600;
	color: var(--tps-white);
	text-transform: none;
	letter-spacing: .02em;
	border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.tps-nav ul ul li:last-child > a { border-bottom: 0; }

.tps-nav ul ul a:hover {
	background: rgba(0, 0, 0, .18);
	color: var(--tps-white);
	text-decoration: none;
}

.tps-nav ul ul ul { top: 0; left: 100%; }

/* Burger mobile */
.tps-nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 20px;
	border: 0;
	background: var(--tps-red);
	color: var(--tps-white);
	font-family: var(--tps-font);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0;
}

.tps-nav-toggle:hover { background: var(--tps-red-dark); color: var(--tps-white); border-color: var(--tps-red-dark); }

.tps-nav-toggle__bars {
	position: relative;
	width: 20px;
	height: 2px;
	background: currentColor;
	flex: 0 0 auto;
}

.tps-nav-toggle__bars::before,
.tps-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.tps-nav-toggle__bars::before { top: -6px; }
.tps-nav-toggle__bars::after { top: 6px; }

/* ========== 8. BOUTON DEVIS FIXE ======================================= */

.tps-devis {
	position: fixed;
	top: 140px;
	right: -200px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 180px;
	padding: 12px 18px;
	background: var(--tps-white);
	border: 1px solid var(--tps-red);
	border-right: 0;
	color: var(--tps-black);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-align: center;
	box-shadow: var(--tps-shadow);
	transition: right .35s ease, background var(--tps-transition), color var(--tps-transition);
}

body.tps-scrolled .tps-devis { right: 0; }

.tps-devis:hover {
	background: var(--tps-red);
	color: var(--tps-white);
	text-decoration: none;
}

.tps-devis small {
	display: block;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: none;
	color: var(--tps-ink-soft);
}

.tps-devis:hover small { color: var(--tps-white); }

/* ========== 9. BANDEAU DE PAGE & FIL D'ARIANE ========================== */

.tps-hero {
	position: relative;
	padding: 52px 0;
	background: var(--tps-ink);
	color: var(--tps-white);
	overflow: hidden;
}

.tps-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--tps-hero-image, none);
	background-size: cover;
	background-position: center;
	opacity: .28;
}

.tps-hero::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 4px;
	background: var(--tps-red);
}

.tps-hero__inner { position: relative; z-index: 2; }

.tps-hero__title {
	margin: 0 0 .35em;
	color: var(--tps-white);
	font-size: 2.25rem;
	line-height: 1.2;
}

.tps-hero__subtitle {
	margin: 0;
	max-width: 720px;
	color: rgba(255, 255, 255, .8);
	font-size: 1.0625rem;
}

.tps-breadcrumb {
	padding: 0;
	margin: 0 0 14px;
	font-size: .75rem;   /* 10-12px — comme le site principal */
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .65);
}

.tps-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tps-breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }

.tps-breadcrumb li + li::before {
	content: "›";
	color: var(--tps-red);
	font-size: .9375rem;
	line-height: 1;
}

.tps-breadcrumb a { color: rgba(255, 255, 255, .8); }
.tps-breadcrumb a:hover { color: var(--tps-red); text-decoration: none; }
.tps-breadcrumb [aria-current="page"] { color: var(--tps-white); font-weight: 700; }

/* ========== 10. BANDEAU RÉASSURANCE ==================================== */

.tps-trust {
	background: var(--tps-grey);
	border-bottom: 1px solid var(--tps-line);
	padding: 26px 0;
}

.tps-trust__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--tps-gap);
}

.tps-trust__item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tps-trust__icon {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	fill: var(--tps-red);
}

.tps-trust__label {
	margin: 0;
	font-size: .9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--tps-ink);
	line-height: 1.25;
}

.tps-trust__label small {
	display: block;
	font-size: .8125rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tps-ink-soft);
}

/* ========== 11. GRILLE ARTICLES / CARTES =============================== */

.tps-posts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tps-gap);
}

.tps-layout--full .tps-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tps-card {
	display: flex;
	flex-direction: column;
	background: var(--tps-white);
	border: 1px solid var(--tps-line);
	border-radius: var(--tps-radius);
	overflow: hidden;
	transition: box-shadow var(--tps-transition), transform var(--tps-transition);
}

.tps-card:hover {
	box-shadow: var(--tps-shadow-hover);
	transform: translateY(-3px);
}

.tps-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tps-grey);
}

.tps-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.tps-card:hover .tps-card__media img { transform: scale(1.05); }

.tps-card__cat {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 6px 14px;
	background: var(--tps-red);
	color: var(--tps-white);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	z-index: 2;
}

.tps-card__cat:hover { background: var(--tps-red-dark); color: var(--tps-white); text-decoration: none; }

.tps-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px;
}

.tps-card__title {
	font-size: 1.1875rem;
	line-height: 1.3;
	margin: 0 0 .5em;
}

.tps-card__title a { color: var(--tps-red); }
.tps-card__title a:hover { color: var(--tps-red-dark); text-decoration: none; }

.tps-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: .9em;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tps-muted);
}

.tps-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tps-card__meta svg { width: 13px; height: 13px; fill: var(--tps-red); }

.tps-card__excerpt {
	flex: 1 1 auto;
	margin: 0 0 1.2em;
	font-size: .9375rem;
	color: var(--tps-ink-soft);
}

.tps-card__more {
	align-self: flex-start;
	font-size: .8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tps-red);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tps-card__more:hover { text-decoration: none; gap: 14px; }
.tps-card__more::after { content: "→"; transition: transform var(--tps-transition); }

/* Article à la une (premier de la liste) */
.tps-card--featured {
	grid-column: 1 / -1;
	flex-direction: row;
}

.tps-card--featured .tps-card__media { flex: 0 0 48%; aspect-ratio: auto; }
.tps-card--featured .tps-card__body { padding: 32px; justify-content: center; }
.tps-card--featured .tps-card__title { font-size: 1.625rem; }
.tps-card--featured .tps-card__excerpt { font-size: 1rem; }

/* ========== 12. ARTICLE SEUL (SINGLE) ================================== */

.tps-article { max-width: 100%; }

.tps-article__thumb {
	margin: 0 0 30px;
	border-radius: var(--tps-radius);
	overflow: hidden;
}

.tps-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding-bottom: 18px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--tps-line);
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tps-muted);
}

.tps-article__meta span { display: inline-flex; align-items: center; gap: 7px; }
.tps-article__meta svg { width: 14px; height: 14px; fill: var(--tps-red); }
.tps-article__meta a { color: var(--tps-ink-soft); }
.tps-article__meta a:hover { color: var(--tps-red); text-decoration: none; }

.tps-content { font-size: 1.0625rem; }

.tps-content > *:first-child { margin-top: 0; }

.tps-content h2 { margin-top: 1.8em; font-size: 1.625rem; }
.tps-content h3 { margin-top: 1.6em; font-size: 1.3125rem; }
.tps-content h4 { margin-top: 1.5em; }

.tps-content ul { list-style: none; padding-left: 0; }

.tps-content ul > li {
	position: relative;
	padding-left: 26px;
}

.tps-content ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .62em;
	width: 8px;
	height: 8px;
	background: var(--tps-red);
	transform: rotate(45deg);
}

.tps-content ol { padding-left: 1.4em; }
.tps-content ol > li::marker { color: var(--tps-red); font-weight: 700; }

.tps-content img { border-radius: var(--tps-radius); }

.tps-content figcaption {
	margin-top: .6em;
	font-size: .8125rem;
	color: var(--tps-muted);
	text-align: center;
}

.tps-article__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 36px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--tps-line);
}

.tps-article__tags .tps-label {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tps-ink);
}

.tps-tag {
	display: inline-block;
	padding: 5px 12px;
	background: var(--tps-grey);
	border: 1px solid var(--tps-line);
	border-radius: var(--tps-radius);
	font-size: .75rem;
	color: var(--tps-ink-soft);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.tps-tag:hover { background: var(--tps-red); border-color: var(--tps-red); color: var(--tps-white); text-decoration: none; }

.tps-author-box {
	display: flex;
	gap: 20px;
	margin-top: 36px;
	padding: 24px;
	background: var(--tps-grey);
	border-left: 4px solid var(--tps-red);
}

.tps-author-box img { border-radius: 50%; flex: 0 0 auto; }
.tps-author-box h3 { font-size: 1.0625rem; margin-bottom: .3em; }
.tps-author-box p { margin: 0; font-size: .9375rem; color: var(--tps-ink-soft); }

.tps-post-nav {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--tps-gap);
	margin-top: 40px;
}

.tps-post-nav__link {
	display: block;
	padding: 20px;
	border: 1px solid var(--tps-line);
	border-radius: var(--tps-radius);
	transition: border-color var(--tps-transition), box-shadow var(--tps-transition);
}

.tps-post-nav__link:hover { border-color: var(--tps-red); box-shadow: var(--tps-shadow); text-decoration: none; }
.tps-post-nav__link--next { text-align: right; }

.tps-post-nav__label {
	display: block;
	margin-bottom: .4em;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tps-red);
}

.tps-post-nav__title { font-size: .9375rem; font-weight: 600; color: var(--tps-ink); line-height: 1.4; }

.tps-related { margin-top: 56px; }
.tps-related .tps-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ========== 13. SIDEBAR & WIDGETS ====================================== */

.tps-sidebar { position: sticky; top: 20px; }

.tps-widget {
	margin-bottom: 30px;
	padding: 24px;
	background: var(--tps-white);
	border: 1px solid var(--tps-line);
	border-top: 3px solid var(--tps-red);
	border-radius: var(--tps-radius);
}

.tps-widget:last-child { margin-bottom: 0; }

.tps-widget__title {
	margin: 0 0 1em;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tps-ink);
}

.tps-widget ul { list-style: none; margin: 0; padding: 0; }

.tps-widget li {
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px dashed var(--tps-line);
	font-size: .9375rem;
}

.tps-widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.tps-widget li a { color: var(--tps-ink); }
.tps-widget li a:hover { color: var(--tps-red); text-decoration: none; padding-left: 4px; }
.tps-widget li a { transition: color var(--tps-transition), padding-left var(--tps-transition); }

.tps-widget .wp-block-tag-cloud a,
.tps-widget .tagcloud a {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 5px 11px;
	background: var(--tps-grey);
	border: 1px solid var(--tps-line);
	font-size: .75rem !important;
	color: var(--tps-ink-soft);
	border-radius: var(--tps-radius);
}

.tps-widget .tagcloud a:hover { background: var(--tps-red); border-color: var(--tps-red); color: var(--tps-white); text-decoration: none; }

/* Widget contact mis en avant */
.tps-widget--contact {
	background: var(--tps-ink);
	border-color: var(--tps-ink);
	color: var(--tps-white);
	text-align: center;
}

.tps-widget--contact .tps-widget__title { color: var(--tps-white); }
.tps-widget--contact p { color: rgba(255, 255, 255, .75); font-size: .9375rem; }

.tps-widget--contact .tps-widget__phone {
	display: block;
	margin: .4em 0 .8em;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tps-white);
}

.tps-widget--contact .tps-widget__phone:hover { color: var(--tps-red); text-decoration: none; }

/* ========== 14. PAGINATION ============================================= */

.tps-pagination { margin-top: 44px; }

.tps-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.tps-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--tps-line);
	background: var(--tps-white);
	color: var(--tps-ink);
	font-size: .875rem;
	font-weight: 700;
	border-radius: var(--tps-radius);
	transition: all var(--tps-transition);
}

.tps-pagination .page-numbers:hover,
.tps-pagination .page-numbers.current {
	background: var(--tps-red);
	border-color: var(--tps-red);
	color: var(--tps-white);
	text-decoration: none;
}

.tps-pagination .page-numbers.dots { border-color: transparent; background: none; }
.tps-pagination .page-numbers.dots:hover { background: none; color: var(--tps-ink); }

/* ========== 15. COMMENTAIRES =========================================== */

.tps-comments {
	margin-top: 56px;
	padding-top: 36px;
	border-top: 3px solid var(--tps-red);
}

.tps-comments__title { font-size: 1.375rem; margin-bottom: 1.2em; }

.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 20px 0 0; padding-left: 36px; }

.comment-body {
	padding: 22px;
	margin-bottom: 20px;
	background: var(--tps-grey);
	border-left: 3px solid var(--tps-red);
	border-radius: var(--tps-radius);
}

.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: .6em; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--tps-ink); }
.comment-author .says { display: none; }

.comment-meta { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tps-muted); margin-bottom: .8em; }
.comment-meta a { color: var(--tps-muted); }

.reply a {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.comment-respond { padding: 28px; background: var(--tps-grey); border-radius: var(--tps-radius); }
.comment-reply-title { font-size: 1.25rem; margin-bottom: .8em; }
.comment-form p { margin-bottom: 1em; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form .comment-form-cookies-consent input { width: auto; margin-top: 4px; }
.comment-form .comment-form-cookies-consent label { text-transform: none; font-weight: 400; font-size: .875rem; letter-spacing: 0; }
.comment-notes, .form-submit { margin-bottom: 0; }
.comment-notes { font-size: .8125rem; color: var(--tps-ink-soft); }

/* ========== 16. FORMULAIRE DE RECHERCHE ================================ */

.tps-search-form { display: flex; gap: 0; }

.tps-search-form input[type="search"] {
	border-right: 0;
	border-radius: var(--tps-radius) 0 0 var(--tps-radius);
}

.tps-search-form button {
	flex: 0 0 auto;
	padding: 11px 18px;
	border-radius: 0 var(--tps-radius) var(--tps-radius) 0;
}

.tps-search-form button svg { width: 16px; height: 16px; fill: currentColor; }

/* ========== 17. BLOC CTA DEVIS ========================================= */

.tps-cta {
	position: relative;
	margin: 50px 0 0;
	padding: 38px 34px;
	background: var(--tps-ink);
	color: var(--tps-white);
	border-radius: var(--tps-radius);
	overflow: hidden;
}

.tps-cta::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 5px;
	height: 100%;
	background: var(--tps-red);
}

.tps-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.tps-cta__title { margin: 0 0 .3em; color: var(--tps-white); font-size: 1.5rem; }
.tps-cta__text { margin: 0; color: rgba(255, 255, 255, .78); font-size: .9375rem; max-width: 560px; }

.tps-cta__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.tps-cta__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--tps-white);
	white-space: nowrap;
}

.tps-cta__phone:hover { color: var(--tps-red); text-decoration: none; }
.tps-cta__phone svg { width: 22px; height: 22px; fill: var(--tps-red); }

/* ========== 18. FOOTER ================================================= */

.tps-footer {
	background: var(--tps-ink);
	color: rgba(255, 255, 255, .72);
	font-size: .875rem;
	margin-top: 0;
}

.tps-footer__top { border-top: 4px solid var(--tps-red); padding: 52px 0 38px; }

.tps-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px;
}

.tps-footer__col-title {
	margin: 0 0 1.1em;
	font-size: .9375rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--tps-red);
}

.tps-footer ul { list-style: none; margin: 0; padding: 0; }
.tps-footer li { margin: 0 0 9px; }
.tps-footer a { color: rgba(255, 255, 255, .72); }
.tps-footer a:hover { color: var(--tps-red); text-decoration: none; }

.tps-footer__nap { font-style: normal; line-height: 1.8; }
.tps-footer__nap strong { display: block; color: var(--tps-white); font-size: 1rem; margin-bottom: .4em; letter-spacing: .04em; }

.tps-footer__line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.tps-footer__line svg { width: 15px; height: 15px; fill: var(--tps-red); flex: 0 0 auto; margin-top: 5px; }

.tps-footer__social { display: flex; gap: 10px; margin-top: 18px; }

.tps-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--tps-radius);
	transition: all var(--tps-transition);
}

.tps-footer__social a:hover { background: var(--tps-red); border-color: var(--tps-red); }
.tps-footer__social svg { width: 16px; height: 16px; fill: currentColor; color: var(--tps-white); }

.tps-footer__badges { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.tps-footer__badges img { max-height: 48px; width: auto; background: var(--tps-white); padding: 4px; border-radius: var(--tps-radius); }

.tps-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 18px 0;
	font-size: .8125rem;
}

.tps-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.tps-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.tps-footer__copy { margin: 0; color: rgba(255, 255, 255, .55); }

/* ========== 19. PAGE 404 & ÉTATS VIDES ================================= */

.tps-404 { text-align: center; padding: 30px 0 10px; }
.tps-404__code { font-size: 7rem; font-weight: 700; line-height: 1; color: var(--tps-red); margin: 0; }
.tps-404__title { margin: .2em 0 .5em; }
.tps-404__text { max-width: 560px; margin: 0 auto 2em; color: var(--tps-ink-soft); }
.tps-404 .tps-search-form { max-width: 420px; margin: 0 auto 2em; }

.tps-none {
	padding: 40px;
	background: var(--tps-grey);
	border-left: 4px solid var(--tps-red);
	border-radius: var(--tps-radius);
}

.tps-none h2 { font-size: 1.375rem; }
.tps-none p:last-child { margin-bottom: 0; }

/* ========== 20. BLOCS GUTENBERG ======================================== */

.tps-content .alignleft { float: left; margin: .4em 1.8em 1.2em 0; }
.tps-content .alignright { float: right; margin: .4em 0 1.2em 1.8em; }
.tps-content .aligncenter { margin-left: auto; margin-right: auto; }

.tps-content .alignwide { width: calc(100% + 80px); max-width: none; margin-left: -40px; margin-right: -40px; }
.tps-content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.wp-block-image { margin-bottom: 1.6em; }
.wp-block-separator { border-top: 1px solid var(--tps-line); border-bottom: 0; max-width: 100px; margin: 2.4em auto; }
.wp-block-separator.is-style-wide { max-width: 100%; }
.wp-block-pullquote { border-top: 3px solid var(--tps-red); border-bottom: 3px solid var(--tps-red); padding: 1.6em 0; }
.wp-block-table td, .wp-block-table th { border-color: var(--tps-line); }
.wp-block-button__link { border-radius: var(--tps-radius) !important; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--tps-red); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8125rem; color: var(--tps-muted); text-align: center; margin-top: .5em; }
.sticky .tps-card { border-color: var(--tps-red); }

/* ========== 21. ACCESSIBILITÉ ========================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--tps-red);
	color: var(--tps-white);
	font-weight: 700;
}

.skip-link:focus { left: 0; text-decoration: none; }

:focus-visible { outline: 3px solid var(--tps-red); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ========== 22. RESPONSIVE ============================================= */

@media (max-width: 1100px) {
	.tps-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
	.tps-nav > ul > li > a { padding: 13px 8px; font-size: .8125rem; letter-spacing: .04em; }
	.tps-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 960px) {
	.tps-layout { grid-template-columns: minmax(0, 1fr); }
	.tps-sidebar { position: static; }
	.tps-header__aside .tps-badges { display: none; }
	.tps-related .tps-posts,
	.tps-layout--full .tps-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tps-devis { display: none; }
}

@media (max-width: 782px) {
	.tps-header__inner {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 14px;
	}
	.tps-branding { flex-direction: column; gap: 8px; width: 100%; }
	.tps-branding__baseline { border-left: 0; border-top: 2px solid var(--tps-red); padding: 8px 0 0; }
	.tps-header__aside { flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
	.tps-header__phone { font-size: 1.125rem; }
	.tps-nav-bar > .tps-wrap { padding: 0; }
	.tps-nav-toggle { display: flex; justify-content: center; }
	.tps-nav > ul {
		display: none;
		flex-direction: column;
		background: var(--tps-white);
		border-bottom: 1px solid var(--tps-line);
	}
	.tps-nav.is-open > ul { display: flex; }
	.tps-nav > ul > li { border-bottom: 1px solid var(--tps-line); }
	.tps-nav > ul > li > a { text-align: left; padding: 14px 20px; }
	.tps-nav > ul > li > a::after { display: none; }
	.tps-nav ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		box-shadow: none;
	}
	.tps-hero { padding: 34px 0; }
	.tps-hero__title { font-size: 1.75rem; }
	.tps-posts,
	.tps-related .tps-posts,
	.tps-layout--full .tps-posts { grid-template-columns: minmax(0, 1fr); }
	.tps-card--featured { flex-direction: column; }
	.tps-card--featured .tps-card__media { flex: none; aspect-ratio: 16 / 10; }
	.tps-card--featured .tps-card__body { padding: 22px; }
	.tps-card--featured .tps-card__title { font-size: 1.375rem; }
	.tps-trust__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.tps-post-nav { grid-template-columns: minmax(0, 1fr); }
	.tps-post-nav__link--next { text-align: left; }
	.tps-content .alignwide { width: 100%; margin-left: 0; margin-right: 0; }
	.tps-topbar__inner { justify-content: center; font-size: .75rem; }
	.tps-cta { padding: 28px 22px; }
	.tps-main { padding: 34px 0 50px; }
}

@media (max-width: 560px) {
	.tps-topbar__inner { flex-direction: column; gap: 4px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
	.tps-topbar__contact { flex-direction: column; gap: 6px; }
	/* L’adresse reste disponible dans le pied de page. */
	.tps-topbar a.tps-topbar__address { display: none; }
	.tps-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.tps-404__code { font-size: 4.5rem; }
	.tps-author-box { flex-direction: column; text-align: center; align-items: center; }
	.comment-list ol.children { padding-left: 16px; }
	.tps-content .alignleft, .tps-content .alignright { float: none; margin: 0 0 1.2em; }
}

/* ========== IMPRESSION ================================================= */

@media print {
	.tps-topbar, .tps-nav-bar, .tps-devis, .tps-sidebar, .tps-footer__top,
	.tps-cta, .tps-comments, .tps-trust, .tps-post-nav, .tps-related { display: none !important; }
	body { color: #000; font-size: 11pt; }
	a { color: #000; text-decoration: underline; }
	.tps-layout { display: block; }
}
