/*
Theme Name: RI Distribution – Blog
Theme URI: https://www.ridistribution.com
Author: Oscar
Description: Thème de blog reprenant à l'identique l'en-tête, le pied de page, les couleurs et la typographie de ridistribution.com, afin que le blog soit perçu comme une rubrique du site principal. Tous les liens du menu (sauf l'onglet du blog) renvoient vers le site de base, dont l'adresse se règle en un seul endroit (functions.php).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: ridistribution-blog
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================================
   1. Variables – couleurs et police relevées sur ridistribution.com
   ========================================================================= */
:root {
	--ridist-red: #e30414;          /* barre supérieure, soulignement du menu, survol des liens du pied de page */
	--ridist-blue: #2f6eb8;         /* survol des liens du menu et des boutons */
	--ridist-text: #333333;         /* texte courant */
	--ridist-menu-text: #000000;    /* intitulés du menu principal */
	--ridist-dark: #222222;         /* bandeau bas du pied de page */
	--ridist-border: #eeeeee;       /* filets et bordures de champs */
	--ridist-input-text: #666666;   /* texte des champs */
	--ridist-muted: #999999;
	--ridist-hover-bg: #f9f9f9;     /* survol du menu mobile */
	--ridist-white: #ffffff;
	--ridist-font: Lato, "helvetica neue", helvetica, arial, sans-serif;
	--ridist-container: 1140px;
}

/* =========================================================================
   2. Base
   ========================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--ridist-white);
	color: var(--ridist-text);
	font-family: var(--ridist-font);
	font-size: 14px;
	line-height: 21px;
	font-weight: 400;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--ridist-text);
	text-decoration: underline;
	transition: color 0.3s, background-color 0.3s;
}

a:hover,
a:focus {
	color: var(--ridist-blue);
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ridist-text);
}

h1 { font-size: 18px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
h4 { font-size: 15px; }
h5, h6 { font-size: 14px; }

p {
	margin: 0 0 15px;
}

ul, ol {
	margin: 0 0 15px;
	padding-left: 20px;
}

blockquote {
	margin: 0 0 15px;
	padding: 5px 0 5px 20px;
	border-left: 3px solid var(--ridist-red);
	font-style: italic;
}

hr {
	border: 0;
	border-top: 1px solid var(--ridist-border);
	margin: 30px 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 15px;
}

th, td {
	padding: 8px 10px;
	border: 1px solid var(--ridist-border);
	text-align: left;
}

th {
	font-weight: 700;
}

code, kbd, pre, samp {
	font-family: Menlo, Consolas, monospace;
	font-size: 13px;
}

pre {
	padding: 15px;
	overflow: auto;
	background: var(--ridist-hover-bg);
	border: 1px solid var(--ridist-border);
}

figure {
	margin: 0 0 15px;
}

embed, iframe, object, video {
	max-width: 100%;
}

.container {
	width: 100%;
	max-width: var(--ridist-container);
	margin: 0 auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* Icônes SVG inline */
.ridist-icon {
	display: inline-block;
	height: 1em;
	width: auto;
	vertical-align: -0.125em;
	overflow: visible;
}

/* 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;
}

.screen-reader-text:focus {
	background: var(--ridist-white);
	clip: auto !important;
	clip-path: none;
	color: var(--ridist-text);
	display: block;
	font-size: 14px;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* =========================================================================
   3. Formulaires et boutons (règles génériques du site de base)
   ========================================================================= */
button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: var(--ridist-text);
	transition: 0.5s;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--ridist-border);
	border-radius: 2px;
	background: var(--ridist-white);
	color: var(--ridist-input-text);
	outline: none;
}

textarea {
	height: auto;
	min-height: 150px;
	padding: 10px;
	line-height: 21px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--ridist-text);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn {
	display: inline-block;
	height: 40px;
	padding: 0 30px;
	border: 0;
	border-radius: 2px;
	background-color: var(--ridist-text);
	color: var(--ridist-white) !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: 0.5s;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
input[type="submit"]:focus,
.btn:hover,
.btn:focus {
	background-color: var(--ridist-blue);
	color: var(--ridist-white) !important;
}

/* Champ de recherche (même dessin que celui du site : fond blanc, loupe à droite) */
.search-form {
	margin: 0;
}

.search-form__field {
	position: relative;
	margin: 0;
	height: 40px;
	overflow: hidden;
	background: var(--ridist-white);
	border: 1px solid var(--ridist-border);
	border-radius: 2px;
}

.search-form .search-field {
	width: 100%;
	height: 100%;
	padding: 0 40px 0 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.search-form__icon {
	position: absolute;
	top: 50%;
	right: 0;
	width: 30px;
	height: 18px;
	margin-top: -9px;
	color: var(--ridist-text);
	pointer-events: none;
}

.search-form .search-submit {
	position: absolute;
	top: 0;
	right: 0;
	width: 30px;
	height: 100%;
	padding: 0;
	border-radius: 0;
	background: var(--ridist-text);
	opacity: 0;
}

.search-form .search-submit:hover,
.search-form .search-submit:focus {
	opacity: 0.5;
}

/* =========================================================================
   4. En-tête
   ========================================================================= */
.site-header {
	position: relative;
	z-index: 1000;
	background: var(--ridist-white);
}

/* 4a. Barre rouge supérieure */
.topbar {
	background: var(--ridist-red);
	color: var(--ridist-white);
}

.topbar__inner {
	display: flex;
	align-items: center;
	min-height: 60px;
}

.topbar__links {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 900;
	line-height: 34px;
}

.topbar__links li {
	margin: 13px 5px;
}

.topbar__links a {
	color: var(--ridist-white);
	text-decoration: none;
	white-space: nowrap;
}

.topbar__links a:hover,
.topbar__links a:focus {
	color: var(--ridist-text);
}

.topbar__links .ridist-icon {
	font-size: 22px;
	vertical-align: middle;
}

/* 5e icône (Facebook) : filet blanc de séparation, comme sur le site */
.topbar__links li:nth-child(5) {
	padding-right: 30px;
	border-right: 1px solid var(--ridist-white);
}

.topbar__links li:nth-child(5) ~ li {
	margin-left: 20px;
}

.topbar__links li:nth-child(5) ~ li .ridist-icon {
	margin-right: 5px;
}

.topbar__phone .ridist-icon {
	transform: rotate(90deg);
}

.topbar__search {
	flex: 0 0 auto;
	width: 330px;
	margin-left: 15px;
	padding-right: 35px;
	border-right: 1px solid var(--ridist-white);
}

.topbar__search .search-form__field {
	height: 30px;
	border: 0;
}

.topbar__search .search-field {
	font-size: 14px;
}

/* Icônes compte / panier (pictos du site, affichés en noir via invert comme sur le site) */
.account-links {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.account-links li {
	margin-left: 10px;
}

.account-links a {
	display: block;
	line-height: 0;
}

.account-links img {
	width: 23px;
	height: auto;
	filter: invert(1);
	transition: opacity 0.3s;
}

.account-links a:hover img,
.account-links a:focus img {
	opacity: 0.6;
}

.account-links--top {
	flex: 0 0 auto;
	margin-left: 25px;
}

.account-links--mobile {
	display: none;
}

/* 4b. Barre blanche : logo + menu */
.mainbar {
	background: var(--ridist-white);
}

.mainbar__inner {
	display: flex;
	align-items: center;
	min-height: 100px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.site-branding {
	flex: 0 1 auto;
	max-width: 260px;
	margin-right: 30px;
}

.site-logo {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
}

.site-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 46px;
	height: auto;
}

/* Sans logo : titre en texte, largeur bornée, retour à la ligne autorisé */
.site-logo--text {
	line-height: 1.2;
}

.site-title-text {
	display: block;
	max-width: 260px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ridist-text);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.menu-toggle,
.menu-close {
	display: none;
	padding: 0;
	border: 0;
	background: none !important;
	color: #191919 !important;
	height: auto;
	line-height: 1;
	text-transform: none;
	font-weight: 400;
	cursor: pointer;
}

.main-navigation {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
}

.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation li {
	position: relative;
	margin: 0;
}

.main-navigation a {
	position: relative;
	display: block;
	margin: 0 6px;
	padding: 6px 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	text-decoration: none;
	color: var(--ridist-menu-text);
	white-space: nowrap;
}

.main-navigation a span,
.main-navigation a {
	transition: color 0.3s;
}

.main-navigation a span {
	color: var(--ridist-menu-text);
}

/* Soulignement rouge de 3 px qui s'ouvre depuis le centre au survol (identique au site) */
.main-navigation a::before {
	content: "";
	position: absolute;
	top: 100%;
	right: 50%;
	left: 50%;
	height: 3px;
	background: var(--ridist-red);
	opacity: 0;
	transition: 0.5s;
}

.main-navigation li:hover > a::before,
.main-navigation a:focus::before,
.main-navigation .current-menu-item > a::before,
.main-navigation .current_page_item > a::before {
	right: 0;
	left: 0;
	opacity: 1;
}

.main-navigation a:hover span,
.main-navigation a:focus span,
.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--ridist-blue);
}

/* Recherche mobile (masquée sur grand écran) */
.mobile-search {
	display: none;
}

/* En-tête fixé au défilement, comme sur le site (grands écrans uniquement) */
@media (min-width: 1025px) {
	.site-header {
		position: sticky;
		top: 0;
	}
	.admin-bar .site-header {
		top: 32px;
	}
}

/* Tablette : barre rouge conservée, champ de recherche plus court */
@media (max-width: 1024px) {
	.topbar__search {
		width: 220px;
		padding-right: 15px;
	}
	.topbar__links li:nth-child(5) {
		padding-right: 15px;
	}
	.topbar__links li:nth-child(5) ~ li {
		margin-left: 10px;
	}
	.main-navigation a {
		margin: 0 5px;
		font-size: 14px;
	}
}

@media (max-width: 900px) {
	.topbar__mail {
		display: none;
	}
}

/* Mobile : hamburger, logo centré, recherche pleine largeur, menu plein écran */
@media (max-width: 768px) {
	.topbar {
		display: none;
	}

	.mainbar__inner {
		position: relative;
		justify-content: center;
		min-height: 65px;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.site-branding {
		max-width: 155px;
		margin: 0 70px;
	}

	.site-title-text {
		max-width: 155px;
		font-size: 15px;
		text-align: center;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		position: absolute;
		top: 50%;
		left: 15px;
		transform: translateY(-50%);
		font-size: 12px;
		text-transform: uppercase;
	}

	.menu-toggle .ridist-icon {
		font-size: 30px;
	}

	.menu-toggle span {
		display: none;
		margin-left: 8px;
	}

	.account-links--mobile {
		display: flex;
		position: absolute;
		top: 50%;
		right: 15px;
		transform: translateY(-50%);
	}

	.mobile-search {
		display: block;
		padding: 0 0 5px;
		border-bottom: 1px solid var(--ridist-border);
	}

	.mobile-search .search-form__field {
		height: 40px;
		border: 0;
		border-radius: 0;
	}

	.mobile-search .search-field {
		padding-left: 15px;
		font-size: 16px;
	}

	.mobile-search .search-form__icon {
		right: 10px;
		height: 22px;
		margin-top: -11px;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10000;
		overflow: auto;
		background: var(--ridist-white);
		text-align: left;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 0.3s, visibility 0.3s;
	}

	.menu-open .main-navigation {
		transform: none;
		visibility: visible;
	}

	.menu-open {
		overflow: hidden;
	}

	.menu-close {
		display: flex;
		align-items: center;
		padding: 15px;
		color: var(--ridist-text) !important;
		font-size: 12px;
		text-transform: uppercase;
	}

	.menu-close .ridist-icon {
		font-size: 20px;
	}

	.menu-close span {
		display: none;
	}

	.main-navigation .menu {
		display: block;
	}

	.main-navigation li {
		display: block;
		width: 100%;
		border-bottom: 1px solid var(--ridist-border);
	}

	.main-navigation a {
		margin: 0;
		padding: 0 25px;
		font-size: 14px;
		line-height: 45px;
		text-transform: uppercase;
		white-space: normal;
	}

	.main-navigation a span {
		font-size: 16px;
		color: var(--ridist-text);
	}

	.main-navigation a::before {
		display: none;
	}

	.main-navigation a:hover,
	.main-navigation a:focus {
		padding-left: 35px;
		background: var(--ridist-hover-bg);
	}

	.main-navigation .current-menu-item > a,
	.main-navigation .current_page_item > a {
		box-shadow: inset 3px 0 0 var(--ridist-red);
	}
}

@media (min-width: 480px) and (max-width: 768px) {
	.menu-toggle span {
		display: inline;
	}
}

/* =========================================================================
   5. Contenu
   ========================================================================= */
.site-content__inner {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding-top: 25px;
	padding-bottom: 50px;
}

.site-main {
	flex: 1 1 auto;
	min-width: 0;
}

.widget-area {
	flex: 0 0 300px;
	max-width: 300px;
}

.no-sidebar .site-main {
	width: 100%;
}

/* Titres de page/section : même dessin que les titres du site (majuscules,
   centré, court filet de 65 × 3 px) */
.page-title {
	margin: 0 0 15px;
	font-size: 18px;
	line-height: 27px;
	font-weight: 700;
	text-transform: uppercase;
	text-align: center;
}

.page-title::after {
	content: "";
	display: block;
	width: 65px;
	height: 3px;
	margin: 7px auto 18px;
	background: var(--ridist-text);
}

.page-title span {
	text-transform: none;
}

.page-header {
	margin-bottom: 25px;
}

.archive-description {
	max-width: 700px;
	margin: -5px auto 20px;
	text-align: center;
}

/* Liste d'articles */
.posts-list {
	margin-bottom: 30px;
}

.entry--excerpt {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--ridist-border);
}

.entry--excerpt:last-child {
	border-bottom: 0;
}

.entry--excerpt .entry-thumbnail {
	flex: 0 0 300px;
	max-width: 300px;
	line-height: 0;
}

.entry--excerpt .entry-thumbnail img {
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.06);
}

.entry-body {
	flex: 1 1 auto;
	min-width: 0;
}

.entry-title {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.3;
}

.entry-title a {
	color: var(--ridist-text);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--ridist-blue);
}

.entry-meta {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--ridist-input-text);
}

.entry-meta a {
	color: var(--ridist-input-text);
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--ridist-blue);
}

.entry-summary p:last-child {
	margin-bottom: 10px;
}

.more-link {
	font-weight: 700;
	text-decoration: none;
}

/* Article seul / page */
.entry--single .entry-header,
.entry--page .entry-header {
	margin-bottom: 25px;
	text-align: center;
}

.entry--single .page-title,
.entry--page .page-title {
	margin-bottom: 0;
}

.entry--single .page-title::after,
.entry--page .page-title::after {
	margin-bottom: 12px;
}

.entry-thumbnail--single {
	margin: 0 0 25px;
	text-align: center;
	line-height: 0;
}

.entry-thumbnail--single img {
	border-radius: 8px;
}

.no-sidebar .entry--single,
.no-sidebar .entry--page,
.no-sidebar .comments-area,
.no-sidebar .post-navigation {
	max-width: 810px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2 { font-size: 18px; margin-top: 25px; }
.entry-content h3 { font-size: 16px; margin-top: 20px; }
.entry-content h4 { font-size: 15px; margin-top: 15px; }

.entry-content a:not(.btn) {
	color: var(--ridist-text);
}

.entry-content a:not(.btn):hover,
.entry-content a:not(.btn):focus {
	color: var(--ridist-blue);
}

.entry--single .entry-footer {
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid var(--ridist-border);
	font-size: 13px;
	color: var(--ridist-input-text);
}

.entry--single .entry-footer a {
	color: var(--ridist-text);
	text-decoration: none;
}

.entry--single .entry-footer a:hover {
	color: var(--ridist-blue);
}

.page-links {
	clear: both;
	margin: 15px 0;
	font-weight: 700;
}

/* Éléments WordPress */
.alignleft { float: left; margin: 5px 25px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 25px; }
.aligncenter { display: block; clear: both; margin: 5px auto 15px; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; margin-bottom: 15px; }
.wp-caption img { display: block; }
.wp-caption-text,
.wp-block-image figcaption,
figcaption {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 18px;
	color: var(--ridist-input-text);
	text-align: center;
}
.gallery { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 15px; }
.gallery-item { flex: 1 1 200px; margin: 0; text-align: center; }
.sticky .entry-title::after { content: ""; }
.wp-block-quote,
.wp-block-pullquote { border-color: var(--ridist-red); }
.wp-block-button__link { border-radius: 2px; }

.post-password-form input[type="password"] {
	width: auto;
	display: inline-block;
	margin-right: 5px;
}

/* Pagination des listes */
.pagination {
	margin: 10px 0 0;
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--ridist-border);
	border-radius: 2px;
	line-height: 38px;
	font-weight: 700;
	text-decoration: none;
	color: var(--ridist-text);
}

.pagination .page-numbers.current {
	background: var(--ridist-text);
	border-color: var(--ridist-text);
	color: var(--ridist-white);
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus {
	background: var(--ridist-blue);
	border-color: var(--ridist-blue);
	color: var(--ridist-white);
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* Navigation article précédent / suivant */
.post-navigation {
	margin: 30px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--ridist-border);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1 1 50%;
	min-width: 0;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	text-decoration: none;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--ridist-input-text);
}

.post-navigation .nav-title {
	font-weight: 700;
}

.post-navigation a:hover .nav-title {
	color: var(--ridist-blue);
}

/* 404 / aucun résultat */
.error-404 .page-content,
.no-results .page-content {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}

.error-404 .search-form,
.no-results .search-form {
	margin: 20px 0;
}

.error-404__links .btn {
	margin: 5px;
}

/* =========================================================================
   6. Commentaires
   ========================================================================= */
.comments-area {
	margin-top: 40px;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 20px;
	font-size: 18px;
	text-transform: uppercase;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 40px;
}

.comment-body {
	position: relative;
	padding: 15px 0;
	border-bottom: 1px solid var(--ridist-border);
}

.comment-author .avatar {
	float: left;
	margin: 0 15px 0 0;
	border-radius: 50%;
}

.comment-author .fn {
	font-weight: 700;
	font-style: normal;
}

.comment-metadata {
	font-size: 12px;
	color: var(--ridist-input-text);
	margin-bottom: 10px;
}

.comment-metadata a {
	color: var(--ridist-input-text);
	text-decoration: none;
}

.comment-content {
	clear: both;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-awaiting-moderation {
	font-style: italic;
	color: var(--ridist-input-text);
}

.reply {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.reply a {
	text-decoration: none;
}

.comment-respond {
	margin-top: 30px;
}

.comment-form p {
	margin-bottom: 15px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
	margin-left: 5px;
}

.comment-form-cookies-consent input {
	width: auto;
	height: auto;
	vertical-align: middle;
}

.comment-notes,
.logged-in-as {
	font-size: 13px;
	color: var(--ridist-input-text);
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
	font-weight: 700;
}

.comment-navigation a {
	text-decoration: none;
}

/* =========================================================================
   7. Barre latérale
   ========================================================================= */
.widget {
	margin-bottom: 30px;
}

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

.widget-title {
	margin: 0 0 15px;
	font-size: 15px;
	text-transform: uppercase;
}

.widget-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 7px;
	background: var(--ridist-text);
}

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

.widget ul ul {
	margin-left: 15px;
}

.widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--ridist-border);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	text-decoration: none;
}

.widget select {
	width: 100%;
}

.widget .wp-block-heading,
.widget .wp-block-search__label {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

.wp-block-search__button {
	height: 40px;
	padding: 0 20px;
}

.wp-block-search__input {
	height: 40px;
	border: 1px solid var(--ridist-border);
	border-radius: 2px;
	padding: 0 10px;
}

.tagcloud a {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 2px 8px;
	border: 1px solid var(--ridist-border);
	border-radius: 2px;
	font-size: 12px !important;
}

@media (max-width: 1024px) {
	.site-content__inner {
		flex-direction: column;
		gap: 30px;
	}
	.widget-area {
		flex: 1 1 auto;
		width: 100%;
		max-width: none;
	}
}

@media (max-width: 640px) {
	.entry--excerpt {
		flex-direction: column;
		gap: 15px;
	}
	.entry--excerpt .entry-thumbnail {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
	}
	.comment-list .children {
		margin-left: 15px;
	}
	.post-navigation .nav-links {
		flex-direction: column;
	}
	.post-navigation .nav-next {
		text-align: left;
	}
	.alignleft,
	.alignright {
		float: none;
		margin: 5px auto 15px;
		display: block;
	}
}

/* =========================================================================
   8. Pied de page (repris du site de base)
   ========================================================================= */
.site-footer {
	background: var(--ridist-white);
	font-size: 16px;
	line-height: 24px;
	text-align: center;
}

.site-footer a {
	text-decoration: none;
	color: var(--ridist-text);
}

.site-footer .footer-main a:hover,
.site-footer .footer-main a:focus {
	color: var(--ridist-red);
}

.footer-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 30px 15px;
}

.footer-main b {
	display: block;
	margin-bottom: 10px;
}

.footer-main p {
	margin: 0;
}

.footer-menu ul {
	margin: 5px 0 0;
	padding: 0;
	list-style: none;
}

.footer-logos img {
	display: inline-block;
	margin: 8px;
	vertical-align: middle;
}

.footer-logos .site-logo {
	display: inline-block;
	line-height: 0;
}

.footer-logos .site-logo img {
	max-height: 46px;
	width: auto;
}

.footer-logos .site-logo--text {
	margin: 8px;
	line-height: 1.2;
}

.footer-last {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 5px 15px;
	background: var(--ridist-dark);
	color: var(--ridist-white);
	font-size: 14px;
	line-height: 21px;
}

.footer-last p {
	margin: 5px 0;
}

.footer-last a {
	color: var(--ridist-white);
}

.footer-last a:hover,
.footer-last a:focus {
	color: var(--ridist-red);
}

.social-list {
	display: flex;
	align-items: center;
	margin: 5px 0;
	padding: 0;
	list-style: none;
}

.social-list a {
	display: inline-block;
	margin-left: 10px;
	font-size: 16px;
	line-height: 24px;
}

.social-list li:first-child a {
	margin-left: 0;
}

@media (min-width: 769px) {
	.footer-main {
		flex-direction: row;
		align-items: flex-start;
	}
	.footer-menu {
		text-align: right;
	}
	.footer-logos {
		margin: 0 100px;
	}
	.footer-infos {
		text-align: left;
	}
	.footer-last {
		flex-direction: row;
	}
	.footer-last p,
	.footer-last .social-list {
		margin: 0;
	}
	.social-list li:first-child a {
		margin-left: 10px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.footer-logos {
		margin: 0 40px;
	}
}

@media (min-width: 1200px) {
	.footer-last {
		padding: 5px calc(50% - 600px);
	}
}

/* Bouton « haut de page » (carré sombre en bas à droite, comme sur le site) */
.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--ridist-dark);
	color: var(--ridist-white);
	font-size: 16px;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
	background: var(--ridist-blue);
	color: var(--ridist-white);
}

/* Impression */
@media print {
	.topbar,
	.mobile-search,
	.menu-toggle,
	.back-to-top,
	.widget-area,
	.comment-respond {
		display: none !important;
	}
	.site-header {
		position: static;
	}
}
