/*
Theme Name: Point-Théo
Theme URI: https://point-theo.com/
Description: Thème de Point-Théo, enfant de Twenty Twenty-Five. Reprend l'identité visuelle de l'ancien thème Daily Observer sans page builder ni slider : le design est porté par theme.json, cette feuille de style et des gabarits de blocs.
Author: Point-Théo
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: point-theo
*/

/* =========================================================
   Base
   ========================================================= */

:root {
	--pt-nuit: var(--wp--preset--color--nuit, #00212E);
	--pt-menthe: var(--wp--preset--color--menthe, #08F3B1);
	--pt-gris: var(--wp--preset--color--gris, #8A8A8A);
	--pt-bordure: var(--wp--preset--color--bordure, #E6E6E6);
	--pt-titre: var(--wp--preset--color--titre, #191919);
	--pt-sans: var(--wp--preset--font-family--montserrat);
	--pt-titres: var(--wp--preset--font-family--open-sans);
	--pt-serif: var(--wp--preset--font-family--lora);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	height: auto;
}

:where(.wp-site-blocks) > main {
	margin-block-start: 0;
}

/* Liens de titres : couleur du titre, menthe au survol */
.wp-block-post-title a,
.pt-compact-title a {
	color: inherit;
	text-decoration: none;
}
.wp-block-post-title a:hover,
.wp-block-post-title a:focus {
	color: var(--wp--preset--color--menthe-fonce);
	text-decoration: none;
}

/* =========================================================
   En-tête
   ========================================================= */

.pt-header {
	background: var(--pt-nuit);
	color: #fff;
}

.pt-header-top.pt-header-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	max-width: 1000px;
	margin: 0 auto;
	padding: 2.25rem 0 2rem;
}

.pt-header-top > .pt-social {
	justify-self: start;
}

.pt-header-top > .wp-block-search {
	justify-self: end;
}

.pt-logo {
	margin: 0;
	text-align: center;
}

.pt-logo img {
	max-width: min(300px, 60vw);
}

.pt-brand > * {
	margin: 0;
}

.pt-brand .pt-logo ~ .pt-site-title {
	display: none;
}

.pt-site-title {
	margin: 0;
	text-align: center;
	font-family: var(--pt-titres);
	font-size: 2.25rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pt-site-title a {
	color: #fff;
	text-decoration: none;
}

/* Petites icônes sociales de l'en-tête et du pied de page */
.wp-block-social-links.pt-social {
	gap: 0.9rem;
}

.wp-block-social-links.pt-social .wp-social-link {
	background: transparent !important;
	color: #fff !important;
	padding: 0;
}

.wp-block-social-links.pt-social .wp-social-link a {
	padding: 0;
}

.wp-block-social-links.pt-social .wp-social-link svg {
	width: 13px;
	height: 13px;
}

.wp-block-social-links.pt-social .wp-social-link:hover {
	color: var(--pt-menthe) !important;
	transform: none;
}

/* Recherche : bouton loupe seul */
.pt-header .wp-block-search__button {
	background: transparent;
	color: #fff;
	padding: 0.25rem;
	border: 0;
	margin-left: 0;
}

.pt-header .wp-block-search__button:hover {
	color: var(--pt-menthe);
}

.pt-header .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.pt-header .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	background: transparent;
}

.pt-header .wp-block-search__input {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 2px;
	font-family: var(--pt-sans);
	font-size: 0.8125rem;
	padding: 0.4rem 0.6rem;
}

/* Barre de menu */
.pt-header-nav {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding: 0;
}

.pt-mainnav {
	color: #fff;
}

.pt-mainnav .wp-block-navigation__container {
	gap: 0;
}

.pt-mainnav .wp-block-navigation-item__content {
	color: #fff;
	padding: 1.15rem 1.1rem;
	text-decoration: none;
}

.pt-mainnav .wp-block-navigation-item__content:hover,
.pt-mainnav .wp-block-navigation-item__content:focus,
.pt-mainnav .current-menu-item > .wp-block-navigation-item__content,
.pt-mainnav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--pt-menthe);
	text-decoration: none;
}

.pt-mainnav .wp-block-navigation__submenu-icon {
	margin-left: -0.6rem;
	margin-right: 0.6rem;
}

.pt-mainnav .wp-block-navigation__submenu-container {
	background: var(--pt-nuit) !important;
	color: #fff !important;
	border: 0 !important;
	border-top: 2px solid var(--pt-menthe) !important;
	min-width: 230px !important;
	padding: 0.5rem 0;
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.875rem;
}

.pt-mainnav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1.25rem;
}

/* Icônes du menu (remplacent l'extension Menu Icons) */
.pt-mainnav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 0.55rem;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: var(--pt-icon) center / contain no-repeat;
	mask: var(--pt-icon) center / contain no-repeat;
}

.pt-mainnav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:not([href*="all-posts"]):not([href*="/category/"]):not([href*="a-propos"]) {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 1.5 11.5h3V21h6v-6h3v6h6v-9.5h3z'/%3E%3C/svg%3E");
}

.pt-mainnav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[href*="all-posts"],
.pt-mainnav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[href*="/category/articles"] {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h10v2H5v12h12v-8h2v10H3z'/%3E%3Cpath d='M18.6 1.6 22.4 5.4 12.8 15H9v-3.8z'/%3E%3C/svg%3E");
}

.pt-mainnav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[href*="videos"] {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 4h20v16H2zm8 4v8l6-4z'/%3E%3C/svg%3E");
}

.pt-mainnav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[href*="podcasts"] {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 9h4l6-5v16l-6-5H2z'/%3E%3Cpath d='M15 8.5a5 5 0 0 1 0 7M18 5.5a9 9 0 0 1 0 13' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.pt-mainnav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[href*="a-propos"] {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5a10.5 10.5 0 1 1 0 21 10.5 10.5 0 0 1 0-21zM10.6 10v8h2.8v-8zm0-4v2.6h2.8V6z'/%3E%3C/svg%3E");
}

/* Menu mobile */
.pt-mainnav .wp-block-navigation__responsive-container-open {
	color: #fff;
	padding: 1rem 0;
}

.pt-mainnav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--pt-nuit) !important;
	color: #fff !important;
	padding: 1.5rem;
}

.pt-mainnav .is-menu-open .wp-block-navigation-item__content {
	padding: 0.5rem 0;
}

.pt-mainnav .is-menu-open .wp-block-navigation__submenu-container {
	border-top: 0 !important;
	padding-left: 1rem !important;
}

/* Barre de progression de lecture (sans JavaScript, navigateurs récents) */
@supports (animation-timeline: scroll()) {
	body.single-post::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		z-index: 100000;
		width: 100%;
		height: 3px;
		background: var(--pt-menthe);
		transform-origin: 0 50%;
		transform: scaleX(0);
		animation: pt-progress linear both;
		animation-timeline: scroll(root);
	}

	@keyframes pt-progress {
		to {
			transform: scaleX(1);
		}
	}
}

/* =========================================================
   Titres de section
   ========================================================= */

.pt-section-head {
	margin-bottom: 2rem;
}

.pt-section-title.pt-section-title {
	font-family: var(--pt-titres);
	font-weight: 300;
	font-size: clamp(1.75rem, 3.5vw, 2.3rem);
	line-height: 1.2;
	color: var(--pt-titre);
	margin: 0;
	padding-top: 1rem;
	position: relative;
}

.pt-section-title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 30px;
	height: 2px;
	background: var(--pt-menthe);
}

.pt-center .pt-section-title::before,
.pt-section-title.has-text-align-center::before {
	left: 50%;
	transform: translateX(-50%);
}

.pt-section-sub.pt-section-sub {
	font-family: var(--pt-serif);
	font-style: italic;
	font-size: 0.8125rem;
	color: var(--pt-gris);
	margin: 0.35rem 0 0;
}

/* Titre de page centré, avec un trait menthe dessous */
.pt-page-title.pt-page-title {
	font-family: var(--pt-titres);
	font-weight: 600;
	font-size: clamp(1.75rem, 4vw, 2.8rem);
	text-align: center;
	margin: 0 auto;
	padding-bottom: 1.1rem;
	position: relative;
}

.pt-page-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 30px;
	height: 2px;
	transform: translateX(-50%);
	background: var(--pt-menthe);
}

.pt-archive-desc {
	text-align: center;
	color: var(--pt-gris);
	font-style: italic;
	max-width: 640px;
	margin-inline: auto;
}

/* =========================================================
   Cartes d'articles
   ========================================================= */

/* Carte standard : image, titre, extrait, méta */
.pt-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pt-card > * {
	margin-block: 0;
}

.pt-card .wp-block-post-featured-image {
	margin-bottom: 1.15rem;
	overflow: hidden;
}

.pt-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}

.pt-card .wp-block-post-featured-image a:hover img {
	transform: scale(1.04);
}

.pt-card-title.pt-card-title {
	font-family: var(--pt-titres);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 0.7rem;
}

.pt-card-excerpt {
	font-family: var(--pt-serif);
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--wp--preset--color--texte);
}

.pt-card-excerpt p {
	margin: 0;
}

.pt-card-excerpt::after,
.pt-feature-excerpt::after {
	content: "";
	display: block;
	width: 30px;
	height: 1px;
	margin: 0.9rem 0 0.6rem;
	background: #d4d4d4;
}

/* Ligne méta : « Auteur / ◷ date » */
.pt-meta.pt-meta {
	gap: 0.3rem;
	align-items: center;
	font-family: var(--pt-titres);
	font-size: 0.75rem;
	color: var(--pt-gris);
	line-height: 1.5;
	margin-top: auto;
}

.pt-meta > * {
	margin: 0;
}

.pt-meta .wp-block-post-author-name a,
.pt-meta .wp-block-post-date a {
	color: var(--pt-gris);
	text-decoration: none;
}

.pt-meta .wp-block-post-author-name a:hover {
	color: var(--wp--preset--color--menthe-fonce);
}

.pt-meta .wp-block-post-author-name::after {
	content: " /";
	margin-left: 0.1rem;
}

.pt-meta .wp-block-post-date::before {
	content: "";
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 0.3rem;
	vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2.4a7.6 7.6 0 1 0 0 15.2 7.6 7.6 0 0 0 0-15.2zM11 6.5h2v5.1l3.6 2.1-1 1.7L11 12.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2.4a7.6 7.6 0 1 0 0 15.2 7.6 7.6 0 0 0 0-15.2zM11 6.5h2v5.1l3.6 2.1-1 1.7L11 12.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Carte compacte : vignette à gauche, titre à droite */
.pt-compact {
	display: grid !important;
	grid-template-columns: 100px 1fr;
	column-gap: 1.25rem;
	row-gap: 0.6rem;
	align-items: start;
}

.pt-compact > * {
	margin: 0 !important;
}

.pt-compact .wp-block-post-featured-image {
	grid-column: 1;
	grid-row: 1;
}

.pt-compact-title.pt-compact-title {
	grid-column: 2;
	grid-row: 1;
	font-family: var(--pt-titres);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.pt-compact .pt-meta {
	grid-column: 1 / -1;
	grid-row: 2;
}

.pt-compact.pt-compact-noimg {
	grid-template-columns: 1fr;
}

.pt-compact-noimg .pt-compact-title {
	grid-column: 1;
}

/* Rangée compacte sous « Les dernières publications » */
.pt-compact-row {
	border-top: 1px solid var(--pt-bordure);
	border-bottom: 1px solid var(--pt-bordure);
	padding: 1.6rem 0;
}

/* Liste verticale de cartes compactes */
.pt-compact-list .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
}

/* Carte mise en avant (colonne de gauche) */
.pt-feature .wp-block-post-featured-image {
	margin-bottom: 1.15rem;
}

.pt-feature-title.pt-feature-title {
	font-family: var(--pt-titres);
	font-size: 1.1875rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 0.75rem;
}

.pt-feature-excerpt {
	font-family: var(--pt-serif);
	font-size: 0.9375rem;
	line-height: 1.8;
}

.pt-feature-excerpt p {
	margin: 0;
}

.pt-feature .wp-block-post-template > li > * {
	margin-block: 0;
}

/* =========================================================
   Page d'accueil
   ========================================================= */

.pt-home > * + * {
	margin-block-start: 0;
}

.pt-zone {
	padding-block: 4rem;
}

.pt-zone-first {
	padding-top: 3.5rem;
	padding-bottom: 3rem;
}

.pt-two-cols {
	gap: 3.5rem !important;
}

.pt-two-cols > .wp-block-column:last-child {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.pt-two-cols > .wp-block-column:last-child > * {
	margin: 0;
}

.pt-block + .pt-block {
	margin-top: 4.5rem;
}

/* Encadrés de la colonne latérale */
.pt-box {
	border: 1px solid var(--pt-bordure);
	padding: 1.6rem 1.5rem 1.75rem;
	background: #fff;
}

.pt-box > * {
	margin-block: 0;
}

.pt-box > * + * {
	margin-top: 1.1rem;
}

.pt-box-title.pt-box-title {
	display: inline-block;
	font-family: var(--pt-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pt-titre);
	padding-bottom: 0.8rem;
	border-bottom: 2px solid var(--pt-titre);
	margin-bottom: 0.4rem;
}

.pt-box-text {
	font-family: var(--pt-sans);
	font-size: 0.75rem;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--wp--preset--color--texte);
}

.pt-box-text strong {
	color: var(--pt-titre);
}

/* Formulaire Mailchimp (MC4WP) dans les encadrés et le pied de page */
.pt-newsletter input[type="text"],
.pt-newsletter input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	margin-bottom: 0.7rem;
	border: 1px solid var(--pt-bordure);
	background: var(--wp--preset--color--fond-clair);
	font-family: var(--pt-sans);
	font-size: 0.875rem;
	color: var(--wp--preset--color--texte);
	border-radius: 0;
}

.pt-newsletter input[type="submit"],
.pt-newsletter button[type="submit"] {
	display: block;
	margin: 0.6rem auto 0;
	background: var(--pt-menthe);
	color: var(--pt-nuit);
	border: 0;
	border-radius: 28px;
	padding: 0.85rem 2rem;
	font-family: var(--pt-sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.pt-newsletter input[type="submit"]:hover,
.pt-newsletter button[type="submit"]:hover {
	background: #fff;
	color: var(--pt-nuit);
}

.pt-box .pt-newsletter input[type="submit"]:hover,
.pt-box .pt-newsletter button[type="submit"]:hover {
	background: var(--pt-nuit);
	color: #fff;
}

.pt-newsletter label {
	font-size: 0.875rem;
}

/* Gros boutons des réseaux sociaux */
.wp-block-social-links.pt-social-big {
	gap: 0.5rem;
	flex-wrap: nowrap;
}

.wp-block-social-links.pt-social-big .wp-social-link {
	flex: 1;
	border-radius: 2px;
	justify-content: center;
}

.wp-block-social-links.pt-social-big .wp-social-link a {
	width: 100%;
	justify-content: center;
	padding: 0.55rem 0;
}

.wp-block-social-links.pt-social-big .wp-social-link svg {
	width: 22px;
	height: 22px;
}

.wp-block-social-links.pt-social-big .wp-social-link:hover {
	transform: none;
	opacity: 0.85;
}

.wp-block-social-links.pt-social-big .wp-social-link-twitter {
	background-color: #55acee;
}

/* Grille d'auteurs */
.pt-auteurs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem 0.75rem;
	text-align: center;
}

.pt-auteur {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
}

.pt-auteur-photo img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.pt-auteur-photo:hover img {
	transform: scale(1.06);
}

.pt-auteur-nom {
	font-family: var(--pt-serif);
	font-size: 0.8125rem;
	line-height: 1.35;
	color: var(--pt-titre);
	text-decoration: none;
}

.pt-auteur-nb {
	display: none;
}

/* Variante « page » (shortcode [listauthors] de la page L'Équipe) */
.entry-content .pt-auteurs {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 2rem 1.5rem;
}

.entry-content .pt-auteur-photo img {
	width: 110px;
	height: 110px;
}

.entry-content .pt-auteur-nom {
	font-family: var(--pt-titres);
	font-weight: 600;
	font-size: 0.9375rem;
}

.entry-content .pt-auteur-nb {
	display: block;
	font-family: var(--pt-titres);
	font-weight: 400;
	font-size: 0.75rem;
	color: var(--pt-gris);
}

/* Nuage de mots-clés */
.pt-tagcloud.wp-block-tag-cloud {
	font-family: var(--pt-serif);
	line-height: 1.5;
}

.pt-tagcloud.wp-block-tag-cloud a {
	color: var(--pt-titre);
	margin-right: 0.3em;
	text-decoration: none;
}

.pt-tagcloud.wp-block-tag-cloud a:hover {
	color: var(--wp--preset--color--menthe-fonce);
}

/* Bandeau sombre des vidéos */
.pt-videos {
	background: #1e1e1e;
	color: #fff;
}

.pt-videos .pt-section-title {
	color: #fff;
}

.pt-videos .pt-section-sub {
	color: #c7c7c7;
}

.pt-video-card {
	position: relative;
}

.pt-video-card > * {
	margin-block: 0;
}

.pt-video-card .pt-video-thumb {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.pt-video-card .pt-video-thumb img {
	transition: transform 0.4s ease, opacity 0.3s ease;
}

.pt-video-card:hover .pt-video-thumb img {
	transform: scale(1.04);
	opacity: 0.85;
}

/* Bouton lecture au centre de la miniature */
.pt-video-card .pt-video-thumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(0, 33, 46, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 22px no-repeat;
	pointer-events: none;
}

.pt-video-card .pt-video-title.pt-video-title {
	margin: 1rem 0 0.35rem;
	font-family: var(--pt-titres);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
}

.pt-video-card .pt-video-title a {
	color: #fff;
}

.pt-video-card .pt-video-title a:hover {
	color: var(--pt-menthe);
}

.pt-video-card .pt-meta,
.pt-video-card .pt-meta .wp-block-post-date {
	color: #a9b4b8;
}

/* En-tête de « Tous nos articles » avec les catégories */
.pt-split-head {
	align-items: flex-end !important;
}

.pt-cat-links {
	font-family: var(--pt-sans);
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0;
	line-height: 2;
}

.pt-cat-links a {
	color: #a0a0a0;
	text-decoration: none;
	margin-left: 1rem;
	white-space: nowrap;
}

.pt-cat-links a:first-child {
	color: var(--wp--preset--color--menthe-fonce);
}

.pt-cat-links a:hover {
	color: var(--wp--preset--color--menthe-fonce);
}

/* Grilles */
.pt-grid .wp-block-post-template.is-layout-grid {
	gap: 2.5rem 1.6rem;
}

/* =========================================================
   Article seul
   ========================================================= */

.pt-single {
	padding-top: 3.25rem;
	padding-bottom: 4rem;
}

.pt-single .pt-page-title {
	max-width: 1000px;
}

.pt-single-image {
	margin-top: 2.25rem !important;
}

.pt-byline {
	position: relative;
	margin-top: -3rem !important;
	z-index: 2;
	gap: 0.6rem !important;
}

.pt-byline .wp-block-avatar img {
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.pt-byline-line {
	font-family: var(--pt-serif);
	font-size: 0.8125rem;
	color: var(--pt-gris);
	gap: 0.35rem !important;
}

.pt-byline-line > * {
	margin: 0;
}

.pt-byline-line .wp-block-post-author-name {
	font-family: var(--pt-serif);
	font-size: 0.8125rem;
}

.pt-byline-line .wp-block-post-author-name a {
	color: var(--wp--preset--color--menthe-fonce);
}

.pt-byline-line .wp-block-post-date {
	font-family: var(--pt-serif);
	font-size: 0.8125rem;
}

.pt-byline-line .wp-block-post-date::before {
	content: "·";
	margin-right: 0.35rem;
}

/* Corps de l'article : Montserrat léger, comme l'ancien thème */
.pt-article {
	font-family: var(--pt-sans);
	font-size: 1.1875rem;
	font-weight: 300;
	line-height: 1.75;
	color: var(--wp--preset--color--texte);
	margin-top: 2rem !important;
}

.pt-article strong,
.pt-article b {
	font-weight: 600;
}

.pt-article h1,
.pt-article h2 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-top: 2.75rem;
	margin-bottom: 1.25rem;
}

.pt-article h3 {
	font-size: 1.375rem;
	font-weight: 700;
	margin-top: 2.25rem;
}

.pt-article h4,
.pt-article h5,
.pt-article h6 {
	font-size: 1.125rem;
	font-weight: 700;
	margin-top: 2rem;
}

.pt-article a {
	color: var(--wp--preset--color--menthe-fonce);
	text-decoration: underline;
	text-decoration-color: rgba(0, 122, 90, 0.35);
	text-underline-offset: 3px;
}

.pt-article a:hover {
	text-decoration-color: currentColor;
}

.pt-article blockquote {
	border-left: 3px solid var(--pt-menthe);
	margin-left: 0;
	padding-left: 1.5rem;
	font-family: var(--pt-serif);
	font-style: italic;
	font-weight: 400;
}

.pt-article img {
	max-width: 100%;
}

.pt-article .alignleft {
	float: left;
	margin: 0.4rem 1.5rem 1rem 0;
}

.pt-article .alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.5rem;
}

.pt-article .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.pt-article .wp-caption {
	max-width: 100%;
}

.pt-article .wp-caption-text {
	font-size: 0.8125rem;
	color: var(--pt-gris);
	text-align: center;
}

.pt-article iframe {
	max-width: 100%;
}

.pt-article iframe[src*="youtube"],
.pt-article iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Mots-clés en étiquettes */
.pt-tags {
	margin-top: 2.5rem !important;
	font-size: 0;
}

.pt-tags a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--pt-bordure);
	font-family: var(--pt-sans);
	font-size: 0.625rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pt-gris);
	text-decoration: none;
}

.pt-tags a:hover {
	border-color: var(--pt-menthe);
	color: var(--pt-titre);
}

.pt-tags .wp-block-post-terms__separator {
	display: none;
}

/* Encadré auteur */
.pt-author-box {
	background: var(--wp--preset--color--fond-clair);
	padding: 2rem;
	gap: 1.75rem !important;
	margin-top: 2.5rem !important;
	align-items: flex-start !important;
	flex-wrap: nowrap !important;
}

.pt-author-box .wp-block-avatar {
	flex-shrink: 0;
}

.pt-author-box .wp-block-avatar img {
	border-radius: 50%;
}

.pt-author-box-body > * {
	margin: 0;
}

.pt-author-box .pt-author-box-name {
	font-family: var(--pt-titres);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--pt-titre);
}

.pt-author-box .pt-author-box-name a {
	color: inherit;
}

.pt-author-box .wp-block-post-author-biography {
	margin-top: 0.6rem;
	font-family: var(--pt-serif);
	font-size: 0.875rem;
	line-height: 1.7;
}

/* Articles liés et commentaires */
.pt-related {
	margin-top: 4rem !important;
}

.pt-related-title.pt-related-title {
	font-family: var(--pt-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 1.75rem;
}

.pt-comments {
	margin-top: 3.5rem !important;
}

.pt-comments .wp-block-comments-title {
	font-size: 1.25rem;
}

/* =========================================================
   Archives, recherche, pages
   ========================================================= */

.pt-archive {
	padding-top: 3.25rem;
	padding-bottom: 4rem;
}

.pt-list .wp-block-post-template {
	display: flex;
	flex-direction: column;
}

.pt-list .wp-block-post-template > li {
	margin: 0;
	padding: 2.25rem 0;
	border-bottom: 1px solid var(--pt-bordure);
}

.pt-list .wp-block-post-template > li:first-child {
	padding-top: 0.5rem;
}

.pt-row {
	display: grid !important;
	grid-template-columns: 270px 1fr;
	column-gap: 1.9rem;
	align-items: start;
}

.pt-row > * {
	margin: 0 !important;
}

.pt-row > .wp-block-post-featured-image {
	grid-row: 1 / span 3;
}

.pt-row-body {
	grid-column: 2;
}

.pt-row-body > * {
	margin-block: 0;
}

.pt-row-title.pt-row-title {
	font-family: var(--pt-titres);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.35;
	color: var(--pt-titre);
}

.pt-row .pt-meta {
	margin: 0.4rem 0 0.9rem;
}

.pt-row-excerpt {
	font-family: var(--pt-serif);
	font-size: 0.875rem;
	line-height: 1.75;
}

.pt-row-excerpt p {
	margin: 0;
}

.pt-row.pt-row-noimg {
	grid-template-columns: 1fr;
}

.pt-row-noimg .pt-row-body {
	grid-column: 1;
}

.pt-pagination {
	margin-top: 3rem !important;
	font-family: var(--pt-sans);
	font-size: 0.8125rem;
}

.pt-pagination .page-numbers {
	display: inline-block;
	min-width: 2.2rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--pt-bordure);
	text-align: center;
	color: var(--wp--preset--color--texte);
	text-decoration: none;
}

.pt-pagination .page-numbers.current,
.pt-pagination .page-numbers:hover {
	background: var(--pt-nuit);
	border-color: var(--pt-nuit);
	color: #fff;
}

.pt-pagination .wp-block-query-pagination-previous,
.pt-pagination .wp-block-query-pagination-next {
	color: var(--wp--preset--color--texte);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.75rem;
}

/* En-tête de la page auteur */
.pt-author-head {
	gap: 1rem !important;
	text-align: center;
}

.pt-author-head .wp-block-avatar img {
	border-radius: 50%;
}

.pt-author-head .pt-author-bio {
	max-width: 640px;
	margin-inline: auto;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--texte);
}

/* Pages */
.pt-page {
	padding-top: 3.25rem;
	padding-bottom: 4rem;
}

.pt-page .entry-content {
	margin-top: 2.25rem;
}

.pt-search-form .wp-block-search__input {
	border: 1px solid var(--pt-bordure);
	padding: 0.6rem 0.8rem;
	font-family: var(--pt-sans);
}

.pt-search-form .wp-block-search__button {
	margin-left: 0.4rem;
	background: var(--pt-nuit);
	color: #fff;
	border-radius: 0;
	font-family: var(--pt-sans);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pt-404-code.pt-404-code {
	font-family: var(--pt-serif);
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 700;
	line-height: 1;
	color: var(--pt-menthe);
	text-align: center;
	margin: 2rem 0 0;
}

/* =========================================================
   Pied de page
   ========================================================= */

.pt-footer {
	background: var(--pt-nuit);
	color: #abafb1;
	padding-top: 3.5rem;
}

.pt-footer a {
	color: #fff;
}

.pt-footer a:hover {
	color: var(--pt-menthe);
}

.pt-footer-cols {
	gap: 3rem !important;
}

.pt-footer-title.pt-footer-title {
	font-family: var(--pt-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1.5rem;
}

.pt-footer-text {
	font-family: var(--pt-serif);
	font-size: 0.875rem;
	color: #abafb1;
}

.pt-footer .pt-newsletter input[type="text"],
.pt-footer .pt-newsletter input[type="email"] {
	background: #fff;
	border-color: #fff;
}

.pt-footer .pt-newsletter label {
	color: #abafb1;
}

/* Dernières publications du pied de page */
.pt-footer-latest .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.pt-footer-latest .wp-block-post-template > li > * {
	margin: 0;
}

.pt-footer-latest .wp-block-post-date {
	font-size: 0.6875rem;
	color: #8b9599;
	margin-left: 1.1rem;
}

.pt-footer-latest .pt-footer-post-title {
	font-family: var(--pt-titres);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	margin-top: 0.25rem;
	padding-left: 1rem;
	border-left: 2px solid rgba(255, 255, 255, 0.85);
}

.pt-footer-latest .pt-footer-post-title a {
	color: #fff;
}

.pt-footer-latest .pt-footer-post-title a:hover {
	color: var(--pt-menthe);
}

.pt-footer-bottom {
	margin-top: 3.5rem !important;
	padding-block: 1.25rem 1.5rem;
	align-items: flex-end !important;
	gap: 2rem !important;
}

.pt-copyright {
	font-family: var(--pt-titres);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.6;
	color: #abafb1;
	margin: 0;
	flex: 1;
}

.pt-copyright a {
	color: #abafb1;
}

.pt-totop {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: var(--pt-menthe);
	color: var(--pt-nuit) !important;
	text-decoration: none;
}

.pt-totop svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.pt-totop:hover {
	background: #fff;
}

/* =========================================================
   Petits écrans
   ========================================================= */

@media (max-width: 781px) {
	.pt-header-top.pt-header-top {
		padding: 1.5rem 0 1.25rem;
	}

	.pt-header-top > .pt-social {
		display: none;
	}

	.pt-header-top.pt-header-top {
		grid-template-columns: 2.5rem 1fr 2.5rem;
	}

	.pt-header-top > .wp-block-search {
		grid-column: 3;
	}

	.pt-header-top > .pt-logo,
	.pt-header-top > .pt-brand > * {
	margin: 0;
}

.pt-brand .pt-logo ~ .pt-site-title {
	display: none;
}

.pt-site-title {
		grid-column: 2;
	}

	.pt-header-nav {
		justify-content: center;
	}

	.pt-zone {
		padding-block: 3rem;
	}

	.pt-row {
		grid-template-columns: 1fr;
		row-gap: 1rem;
	}

	.pt-row > .wp-block-post-featured-image {
		grid-row: auto;
	}

	.pt-row-body {
		grid-column: 1;
	}

	.pt-split-head {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.pt-cat-links a {
		margin: 0 1rem 0 0;
	}

	.pt-author-box {
		flex-direction: column;
		align-items: center !important;
		text-align: center;
	}

	.pt-article {
		font-size: 1.0625rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

/* Titres des archives un peu plus discrets que celui d'un article */
.pt-archive .pt-page-title.pt-page-title {
	font-size: clamp(1.6rem, 3vw, 2rem);
}

.pt-videos .wp-block-buttons {
	margin-top: 2.5rem;
}

/* =========================================================
   Page « L'équipe »
   ========================================================= */

.pt-equipe-titre.pt-equipe-titre {
	font-family: var(--pt-titres);
	font-weight: 300;
	font-size: 1.75rem;
	margin-top: 3.5rem;
	margin-bottom: 2rem;
	padding-top: 1rem;
	position: relative;
}

.pt-equipe-titre::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 30px;
	height: 2px;
	background: var(--pt-menthe);
}

.pt-membres.pt-membres {
	gap: 2.5rem 2rem;
}

.pt-membre {
	text-align: center;
}

.pt-membre > * {
	margin-block: 0;
}

.pt-membre .wp-block-image img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 50%;
}

.pt-membre-nom.pt-membre-nom {
	font-family: var(--pt-titres);
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 1rem 0 0.6rem;
}

.pt-membre-bio {
	font-family: var(--pt-serif);
	font-size: 0.875rem;
	line-height: 1.7;
	text-align: left;
}

/* =========================================================
   Page « Contact »
   ========================================================= */

.pt-chapo {
	font-size: 1.0625rem;
}

.pt-contact-image {
	margin-block: 2.5rem !important;
}

.pt-contact-cols {
	gap: 3rem !important;
	margin-bottom: 3.5rem !important;
}

.pt-contact-cols .pt-section-sub {
	margin-top: -0.5rem;
}

/* =========================================================
   Correctifs 1.0.3 (recette en production)
   ========================================================= */

/* Formulaire MC4WP : il embarque son propre texte d'accroche, hérité de
   l'ancien thème. Le thème a déjà le sien, on masque celui du formulaire. */
.pt-newsletter .textwidget,
.pt-newsletter .sc_emailer {
	display: none;
}

.pt-newsletter .mc4wp-form p {
	margin: 0;
}

/* Lignes de liste sans image à la une (anciens gabarits) : le texte prend toute la largeur */
.pt-row:not(:has(.wp-block-post-featured-image)) {
	grid-template-columns: 1fr;
}

.pt-row:not(:has(.wp-block-post-featured-image)) .pt-row-body {
	grid-column: 1;
}

.pt-compact:not(:has(.wp-block-post-featured-image)) {
	grid-template-columns: 1fr;
}

.pt-compact:not(:has(.wp-block-post-featured-image)) .pt-compact-title {
	grid-column: 1;
}

/* Encadré « édito » des articles en partenariat (Cahiers de l'École Pastorale…) */
.pt-article .edito {
	background: var(--wp--preset--color--fond-clair);
	border-left: 3px solid var(--pt-menthe);
	padding: 1.75rem 2rem;
	margin: 2.5rem 0;
	font-size: 1rem;
	line-height: 1.7;
}

.pt-article .edito > :first-child {
	margin-top: 0;
}

.pt-article .edito > :last-child {
	margin-bottom: 0;
}

.pt-article .edito img {
	max-width: 180px;
	height: auto;
}

/* Bouton « haut de page » : masqué sur mobile, où il recouvrait le texte */
@media (max-width: 781px) {
	.pt-totop {
		display: none;
	}
}

/* Article sans image à la une (vidéos) : l'auteur ne remonte plus sur le titre */
.pt-single .pt-page-title + .pt-byline {
	margin-top: 2rem !important;
}

/* =========================================================
   Version 1.1
   ========================================================= */

/* « Tous nos articles » en pleine largeur sous la zone à deux colonnes */
.pt-all-full {
	margin-top: 4.5rem;
}

.pt-all-full .pt-cat-links a {
	margin-left: 1.25rem;
}

/* Listes (catégories, auteur, recherche) en grille de cartes */
.pt-list-grid {
	margin-top: 2.5rem;
}

.pt-list-grid .pt-card-excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pt-archive .pt-list-grid .wp-block-query-no-results {
	text-align: center;
	color: var(--pt-gris);
}

/* Pied de page : présentation et liens */
.pt-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--pt-sans);
	font-size: 0.8125rem;
	line-height: 2.1;
}

.pt-footer-links a {
	color: #fff;
	text-decoration: none;
}

.pt-footer-links a::before {
	content: "›";
	color: var(--pt-menthe);
	margin-right: 0.5rem;
}

.pt-footer-links a:hover {
	color: var(--pt-menthe);
}

/* Bandeau d'image en tête des pages */
.pt-page .pt-banner {
	margin-top: 2.25rem !important;
}

/* Nuage de mots-clés : majuscule initiale partout */
.pt-tagcloud.wp-block-tag-cloud a {
	display: inline-block;
	margin: 0 0.55em 0.2em 0;
}

.pt-tagcloud.wp-block-tag-cloud a::first-letter {
	text-transform: uppercase;
}

/* Bandeau cookies (Cookie Notice) et barre d'annonce (My Sticky Bar)
   aux couleurs du site */
#cookie-notice .cn-button {
	background: var(--pt-menthe) !important;
	color: var(--pt-nuit) !important;
	border-radius: 28px !important;
	font-family: var(--pt-sans) !important;
	font-weight: 700 !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.55rem 1.3rem !important;
}

#cookie-notice .cn-text-container {
	font-family: var(--pt-serif);
	font-size: 0.875rem;
}

.mysticky-welcomebar-fixed {
	background: var(--wp--preset--color--nuit-clair, #0B2E3C) !important;
	border-bottom: 2px solid var(--pt-menthe);
}

.mysticky-welcomebar-content p {
	color: #fff !important;
	font-family: var(--pt-serif) !important;
	font-size: 0.9375rem !important;
}

.mysticky-welcomebar-btn a {
	background: var(--pt-menthe) !important;
	color: var(--pt-nuit) !important;
	border-radius: 28px !important;
	font-family: var(--pt-sans) !important;
	font-weight: 700 !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mysticky-welcomebar-close {
	color: #fff !important;
}

/* En-tête mobile sur une seule barre : menu à gauche, logo, recherche */
@media (max-width: 781px) {
	.pt-header {
		position: relative;
	}

	.pt-header-top.pt-header-top {
		grid-template-columns: 44px 1fr 44px;
		padding: 0.85rem 0;
	}

	.pt-header-top .pt-brand {
		grid-column: 2;
		text-align: center;
	}

	.pt-logo img {
		max-width: 190px;
		margin: 0 auto;
	}

	.pt-header-nav.pt-header-nav {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 1.25rem;
		margin: 0 !important;
		padding: 0;
		border: 0;
		display: flex;
		align-items: center;
	}

	.pt-mainnav .wp-block-navigation__responsive-container-open {
		padding: 0;
	}

	.pt-all-full .pt-cat-links a {
		margin: 0 1rem 0 0;
	}
}
