/*
Theme Name:   Conserve
Theme URI:    https://donnart.fr
Description:  Thème enfant GeneratePress inspiré de la démo Conserve : bleu et turquoise, bandeaux en vague, cartes à angles droits. Police Figtree (SIL OFL 1.1, assets/fonts/OFL.txt).
Author:       Philippe Donnart
Template:     generatepress
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  gpc
*/

/* ==========================================================================
   Police Figtree, auto-hébergée (variable : graisses 300 à 900)
   ========================================================================== */

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Jetons de design
   Les couleurs viennent de inc/config.php (var(--accent), var(--base-3)…).
   Ici : typographie, rayons, ombres, espacements.
   ========================================================================== */

:root {
	--gpc-font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--gpc-font-heading: var(--gpc-font-body);
	--gpc-font-size: 17px;
	--gpc-line-height: 1.7;

	--gpc-radius: 0;
	--gpc-radius-sm: 0;
	--gpc-shadow: none;
	--gpc-shadow-hover: none;
	--gpc-gap: 40px;
	--gpc-section-space: 96px;
	--gpc-image-ratio: 4 / 3;
	--gpc-reading-width: 720px;   /* colonne de texte des articles sans barre latérale */
	--gpc-button-shadow: -4px 4px 0 var(--accent-2);

	/* Bandeau de page (inc/hero.php) */
	--gpc-hero-bg: linear-gradient(90deg, var(--accent), var(--accent-2));
	--gpc-hero-color: var(--base-3);
	--gpc-hero-padding: 96px;
	--gpc-hero-shape-height: 70px; /* hauteur de la vague ou du biais */
	--gpc-hero-overlap: 260px;     /* chevauchement de l'image à la une */
	--gpc-hero-frame: 6px;         /* cadre blanc autour de l'image */
}

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

body,
button,
input,
select,
textarea {
	font-family: var(--gpc-font-body);
}

body {
	font-size: var(--gpc-font-size);
	line-height: var(--gpc-line-height);
}

h1, h2, h3, h4, h5, h6,
.main-title,
.gpc-card__title {
	font-family: var(--gpc-font-heading);
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
}

a {
	transition: color .15s ease;
}

/* ==========================================================================
   Header et navigation
   ========================================================================== */

.site-header {
	border-bottom: 1px solid var(--contrast-3);
}

.main-title {
	font-weight: 700;
	letter-spacing: -.01em;
}

.main-navigation .main-nav ul li a {
	font-weight: 500;
}

/* ==========================================================================
   Sections de l'accueil
   ========================================================================== */

.gpc-section + .gpc-section {
	margin-top: var(--gpc-section-space);
}

.gpc-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--contrast);
}

.gpc-section__title {
	margin: 0;
	font-size: 1.5rem;
}

.gpc-section__more {
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

/* Fond blanc et marges quand l'accueil est en conteneurs séparés */
.separate-containers .gpc-section {
	padding: 32px;
	background: var(--base-3);
}

.separate-containers .gpc-section + .gpc-section {
	margin-top: 20px;
}

.separate-containers .gpc-section .gpc-card {
	box-shadow: none;
	border: 1px solid var(--contrast-3);
}

/* ==========================================================================
   Grille
   ========================================================================== */

.gpc-grid {
	--gpc-cols: 3;
	display: grid;
	grid-template-columns: repeat(var(--gpc-cols), minmax(0, 1fr));
	gap: var(--gpc-gap);
}

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

.gpc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--base-3);
	border-radius: var(--gpc-radius);
	box-shadow: var(--gpc-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
}

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

.gpc-card__media {
	display: block;
	aspect-ratio: var(--gpc-image-ratio);
	overflow: hidden;
	background: var(--base);
}

.gpc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gpc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px 20px;
}

.gpc-card__cat {
	align-self: flex-start;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--accent);
}

.gpc-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.gpc-card__title a,
.entry-title a {
	color: var(--contrast);
	text-decoration: none;
}

.gpc-card__title a:hover {
	color: var(--accent);
}

.gpc-card__excerpt {
	margin: 0;
	color: var(--contrast-2);
	font-size: .95rem;
}

.gpc-meta {
	margin-top: auto;
	color: var(--contrast-2);
	font-size: .85rem;
}

.gpc-meta__sep {
	margin: 0 .4em;
}

/* Grande carte (à la une) */
.gpc-card--large .gpc-card__title {
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

/* Carte en ligne (image à gauche) */
.gpc-card--row {
	flex-direction: row;
}

.gpc-card--row .gpc-card__media {
	flex: 0 0 38%;
	aspect-ratio: auto;
}

.gpc-card--row .gpc-card__body {
	padding: 14px 16px;
}

.gpc-card--row .gpc-card__title {
	font-size: 1rem;
}

/* ==========================================================================
   À la une
   ========================================================================== */

.gpc-featured__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: var(--gpc-gap);
}

.gpc-featured__side {
	display: flex;
	flex-direction: column;
	gap: var(--gpc-gap);
}

.gpc-featured__side .gpc-card {
	flex: 1;
}

/* ==========================================================================
   Tuiles de catégories
   ========================================================================== */

.gpc-cat-tile {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--gpc-radius);
	background: var(--accent);
	color: var(--base-3);
	text-decoration: none;
}

.gpc-cat-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.gpc-cat-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .05) 60%);
}

.gpc-cat-tile:hover img {
	transform: scale(1.04);
}

.gpc-cat-tile__label {
	position: absolute;
	right: 18px;
	bottom: 16px;
	left: 18px;
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.gpc-cat-tile__name {
	font-family: var(--gpc-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.gpc-cat-tile__count {
	font-size: .85rem;
	opacity: .85;
}

.gpc-cat-tile,
.gpc-cat-tile:hover,
.gpc-cat-tile:focus {
	color: var(--base-3);
}

/* ==========================================================================
   Catégories, archives, recherche : grille de cartes
   (articles de GeneratePress restylés, voir inc/archive.php)
   ========================================================================== */

.gpc-archive-grid .site-main {
	display: grid;
	grid-template-columns: repeat(var(--gpc-archive-cols, 2), minmax(0, 1fr));
	gap: var(--gpc-gap);
	align-items: stretch;
}

.gpc-cols-2 { --gpc-archive-cols: 2; }
.gpc-cols-3 { --gpc-archive-cols: 3; }
.gpc-cols-4 { --gpc-archive-cols: 4; }

/* Titre de catégorie, pagination, etc. sur toute la largeur */
.gpc-archive-grid .site-main > :not(article) {
	grid-column: 1 / -1;
}

.gpc-archive-grid .site-main > * {
	margin-bottom: 0;
}

.gpc-archive-grid .site-main > article {
	display: flex;
}

.gpc-archive-grid .site-main > article .inside-article {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border-radius: var(--gpc-radius);
	box-shadow: var(--gpc-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
}

.gpc-archive-grid .site-main > article .inside-article:hover {
	box-shadow: var(--gpc-shadow-hover);
	transform: translateY(-2px);
}

/* Image en haut de la carte, quelle que soit sa position dans le HTML */
.gpc-archive-grid .site-main > article .post-image {
	order: -1;
	margin: 0;
	aspect-ratio: var(--gpc-image-ratio);
	overflow: hidden;
	background: var(--base);
}

.gpc-archive-grid .site-main > article .post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gpc-archive-grid .site-main > article .entry-header,
.gpc-archive-grid .site-main > article .entry-summary,
.gpc-archive-grid .site-main > article .entry-content {
	margin: 0;
	padding: 0 20px;
}

.gpc-archive-grid .site-main > article .entry-header {
	padding-top: 18px;
}

.gpc-archive-grid .site-main > article .entry-summary {
	padding-bottom: 20px;
	color: var(--contrast-2);
	font-size: .95rem;
}

.gpc-archive-grid .site-main > article .entry-summary p {
	margin: 10px 0 0;
}

.gpc-archive-grid .site-main > article .entry-title {
	margin-top: 6px;
	font-size: 1.25rem;
	line-height: 1.3;
}

.gpc-archive-grid .site-main > article .entry-title a {
	color: var(--contrast);
}

.gpc-archive-grid .site-main > article .entry-title a:hover {
	color: var(--accent);
}

.gpc-archive-grid .site-main > article .entry-meta {
	font-size: .85rem;
}

/* En-tête de catégorie */
.page-header {
	padding-bottom: 6px;
}

.page-header .page-title {
	margin-bottom: 6px;
}

.taxonomy-description {
	color: var(--contrast-2);
}

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

.single .entry-header .gpc-card__cat {
	display: inline-block;
	margin-bottom: 8px;
}

.single .entry-title {
	font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.single .featured-image img,
.single .post-image img {
	border-radius: var(--gpc-radius);
}

.entry-content > * + h2 {
	margin-top: 1.8em;
}

.entry-content blockquote {
	border-left: 4px solid var(--accent);
	color: var(--contrast-2);
	font-style: normal;
}

/* Bloc auteur */
.gpc-author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin-top: 40px;
	padding: 22px;
	border-radius: var(--gpc-radius);
	background: var(--base-2);
}

.gpc-author-box .avatar {
	flex: 0 0 auto;
	border-radius: 50%;
}

.gpc-author-box__name {
	margin: 0 0 4px;
	font-weight: 700;
}

.gpc-author-box__name a {
	color: var(--contrast);
	text-decoration: none;
}

.gpc-author-box__bio {
	margin: 0;
	color: var(--contrast-2);
	font-size: .95rem;
}

/* Articles liés */
.gpc-related {
	margin-top: 48px;
}

.gpc-related .gpc-card {
	box-shadow: none;
	border: 1px solid var(--contrast-3);
}

/* ==========================================================================
   Barre latérale et footer (widgets)
   ========================================================================== */

.sidebar .widget {
	border-radius: var(--gpc-radius);
}

.sidebar .widget-title,
.footer-widgets .widget-title {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.footer-widgets a,
.site-info a {
	text-decoration: none;
}

/* ==========================================================================
   Badge et en-têtes de section
   ========================================================================== */

.gpc-kicker {
	display: inline-block;
	margin-bottom: 12px;
	padding: 3px 8px;
	background: var(--accent);
	color: var(--base-3);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.gpc-section__heading {
	min-width: 0;
}

.gpc-section__intro {
	margin: 10px 0 0;
	color: var(--contrast-2);
}

.gpc-section__head--center {
	flex-direction: column;
	align-items: center;
	border-bottom: 0;
	text-align: center;
}

.gpc-section__head--center .gpc-section__heading {
	max-width: 640px;
}

/* Sections du thème alignées sur le site quand la page d'accueil est en pleine largeur */
.full-width-content .gpc-section:not(.gpc-page-content) {
	box-sizing: border-box;
	max-width: var(--gpc-container, 1200px);
	margin-right: auto;
	margin-left: auto;
	padding-right: 40px;
	padding-left: 40px;
}

/* ==========================================================================
   Méta avec avatar
   ========================================================================== */

.gpc-meta--avatar {
	display: flex;
	align-items: center;
	gap: 12px;
	line-height: 1.45;
}

.gpc-meta--avatar .gpc-meta__avatar {
	flex: 0 0 auto;
	border-radius: 50%;
}

.gpc-meta--avatar .gpc-meta__text {
	display: flex;
	flex-direction: column;
}

.entry-header .gpc-meta {
	margin-top: 14px;
}

.entry-meta:empty {
	display: none;
}

/* ==========================================================================
   Bouton dans le menu (classe CSS « menu-button » sur l'élément de menu)
   ========================================================================== */

.main-navigation .main-nav ul li.menu-button > a {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	margin-left: 12px;
	padding: 14px 20px;
	background: var(--accent);
	color: var(--base-3);
	font-weight: 600;
}

.main-navigation .main-nav ul li.menu-button > a:hover,
.main-navigation .main-nav ul li.menu-button > a:focus {
	background: var(--accent-2);
	color: var(--base-3);
}

/* ==========================================================================
   Bandeau de page
   ========================================================================== */

.gpc-hero {
	position: relative;
	padding: var(--gpc-hero-padding) 0;
	background: var(--gpc-hero-bg);
	color: var(--gpc-hero-color);
}

.gpc-hero__inner {
	box-sizing: border-box;
	padding-right: 40px;
	padding-left: 40px;
}

.gpc-hero__title {
	margin: 0;
	color: inherit;
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1.15;
}

.gpc-hero__desc {
	max-width: 640px;
	margin-top: 12px;
	opacity: .9;
}

.gpc-hero__desc p:last-child {
	margin-bottom: 0;
}

.gpc-hero__cats {
	margin-top: 14px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.gpc-hero__cats a,
.gpc-hero__cats a:hover {
	color: inherit;
	text-decoration: none;
}

.gpc-hero--single,
.gpc-hero--page {
	text-align: center;
}

.gpc-hero--single .gpc-hero__title,
.gpc-hero--page .gpc-hero__title {
	max-width: 820px;
	margin-right: auto;
	margin-left: auto;
}

/* Formes du bas */
.gpc-hero--wave,
.gpc-hero--slant {
	padding-bottom: calc(var(--gpc-hero-padding) + var(--gpc-hero-shape-height));
}

.gpc-hero--wave {
	--gpc-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v38C1130 60 820 98 560 100 320 102 150 72 0 40z'/%3E%3C/svg%3E");
	-webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--gpc-hero-shape-height) + 1px) no-repeat, var(--gpc-wave) bottom / 100% var(--gpc-hero-shape-height) no-repeat;
	mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--gpc-hero-shape-height) + 1px) no-repeat, var(--gpc-wave) bottom / 100% var(--gpc-hero-shape-height) no-repeat;
}

.gpc-hero--slant {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--gpc-hero-shape-height)));
}

/* Image à la une qui chevauche le bandeau */
.gpc-hero-has-image .gpc-hero {
	padding-bottom: calc(var(--gpc-hero-padding) + var(--gpc-hero-overlap));
}

.gpc-hero__media {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	margin-top: calc(-1 * var(--gpc-hero-overlap));
	padding-right: 40px;
	padding-left: 40px;
}

.gpc-hero__figure {
	box-sizing: border-box;
	max-width: calc(var(--gpc-reading-width) + 2 * var(--gpc-hero-frame));
	margin: 0 auto;
	padding: var(--gpc-hero-frame);
	background: var(--base-3);
}

.gpc-hero__figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* Titres et images de GeneratePress remplacés par le bandeau */
.gpc-hero-archive .site-main > .page-header,
.gpc-hero-has-image .inside-article > .featured-image,
.gpc-hero-has-image .page-header-image-single {
	display: none;
}

/* Colonne de lecture des articles sans barre latérale */
.single.no-sidebar .site-main,
.page.gpc-has-hero.no-sidebar .site-main {
	max-width: var(--gpc-reading-width);
	margin-right: auto;
	margin-left: auto;
}

/* ==========================================================================
   Conserve : composants propres au thème
   ========================================================================== */

/* Titres */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	letter-spacing: -.01em;
}

.main-title {
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.site-header {
	border-bottom: 0;
}

/* Boutons : angles droits et ombre décalée */
.main-navigation .main-nav ul li.menu-button > a,
.button,
.wp-block-button__link,
button,
input[type="submit"] {
	border-radius: 0;
	box-shadow: var(--gpc-button-shadow);
}

.main-navigation .main-nav ul li.menu-button > a:hover,
.main-navigation .main-nav ul li.menu-button > a:focus {
	background: var(--accent);
	box-shadow: -2px 2px 0 var(--accent-2);
}

/* Badge turquoise */
.gpc-kicker {
	background: var(--accent-3);
}

/* Sections de l'accueil */
.gpc-section__title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.gpc-section__head--center {
	margin-bottom: 48px;
}

.gpc-section + .gpc-section {
	margin-top: 0;
}

.gpc-section__head {
	border-bottom: 1px solid var(--contrast-3);
}

.gpc-latest {
	padding-top: var(--gpc-section-space);
	padding-bottom: var(--gpc-section-space);
}

/* Cartes : fond clair, pas d'ombre */
.gpc-card,
.gpc-related .gpc-card {
	border: 0;
	background: var(--base-2);
}

.gpc-card:hover {
	transform: none;
}

.gpc-card__body {
	gap: 14px;
	padding: 24px;
}

.gpc-card__title {
	font-size: 1.2rem;
}

.gpc-card__title a:hover {
	color: var(--accent-2);
}

.gpc-card--row {
	background: transparent;
}

.gpc-card--row .gpc-card__media {
	flex-basis: 42%;
}

.gpc-card--row .gpc-card__body {
	justify-content: center;
	padding: 4px 0 4px 24px;
}

.gpc-card--row .gpc-card__title {
	font-size: 1.1rem;
}

.gpc-meta {
	margin-top: 0;
	color: var(--contrast);
	font-size: .8rem;
}

/* Bandeau : titre très gras, catégories précédées de la vague */
.gpc-hero__title {
	font-weight: 800;
}

.gpc-hero--archive .gpc-hero__title {
	font-size: clamp(2.2rem, 4.5vw, 3rem);
}

.gpc-hero--single .gpc-hero__title {
	max-width: 760px;
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.gpc-hero__cats::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 12px;
	margin-right: 8px;
	vertical-align: -1px;
	background: currentColor;
	-webkit-mask: var(--gpc-icon-waves) center / contain no-repeat;
	mask: var(--gpc-icon-waves) center / contain no-repeat;
}

/* Catégories et page des articles : cartes */
.gpc-archive-grid .site-main {
	gap: 40px 36px;
}

.gpc-archive-grid .site-main > article .inside-article {
	background: var(--base-2);
}

.gpc-archive-grid .site-main > article .inside-article:hover {
	transform: none;
}

.gpc-archive-grid .site-main > article .entry-header {
	padding: 28px 28px 30px;
}

.gpc-archive-grid .site-main > article .entry-title {
	margin: 0 0 18px;
	font-size: 1.25rem;
}

.gpc-archive-grid .site-main > article .entry-title a:hover {
	color: var(--accent-2);
}

.gpc-archive-grid .site-main > article .entry-summary {
	display: none;
}

/* Pagination : carrés pleins */
.paging-navigation {
	margin-top: 24px;
	text-align: center;
}

.paging-navigation .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
}

.paging-navigation .page-numbers {
	display: inline-block;
	min-width: 1.6em;
	padding: 6px 10px;
	background: var(--accent);
	color: var(--base-3);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.paging-navigation .page-numbers.current,
.paging-navigation a.page-numbers:hover {
	background: var(--accent-2);
	color: var(--base-3);
}

.paging-navigation .page-numbers.dots {
	background: transparent;
	color: var(--contrast);
}

/* Barre latérale : blocs bleu nuit */
.sidebar .widget {
	padding: 26px 24px;
	font-size: .9rem;
}

.sidebar .widget-title,
.sidebar .widget h2 {
	color: var(--base-3);
	font-size: 1.05rem;
	letter-spacing: 0;
	text-transform: none;
}

/* Article */
.single .entry-meta {
	color: var(--contrast);
	font-size: .78rem;
}

.single .entry-content h2 {
	font-size: 1.6rem;
}

.single .entry-content h3 {
	font-size: 1.3rem;
}

.single .entry-content h4 {
	font-size: 1.15rem;
}

.entry-content blockquote {
	position: relative;
	margin: 48px 0;
	padding: 28px 32px;
	border: 0;
	background: var(--base-2);
	color: var(--contrast);
	font-weight: 700;
}

.entry-content blockquote::before {
	content: "";
	position: absolute;
	top: -18px;
	left: -14px;
	width: 26px;
	height: 22px;
	background: var(--accent-3);
	-webkit-mask: var(--gpc-icon-waves) center / contain no-repeat;
	mask: var(--gpc-icon-waves) center / contain no-repeat;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 12px;
	font-size: .9rem;
	font-style: normal;
}

:root {
	--gpc-icon-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2 4c2.75-2 5.5-2 8.25 0s5.5 2 8.25 0S24 2 24 2M2 11c2.75-2 5.5-2 8.25 0s5.5 2 8.25 0S24 9 24 9M2 18c2.75-2 5.5-2 8.25 0s5.5 2 8.25 0S24 16 24 16'/%3E%3C/svg%3E");
	--gpc-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.5 2.5 5.5-5.5'/%3E%3C/svg%3E");
}

/* Listes cochées dans les articles */
.single .entry-content > ul:not(.wp-block-social-links) {
	margin-left: 0;
	list-style: none;
}

.single .entry-content > ul:not(.wp-block-social-links) > li {
	position: relative;
	padding-left: 26px;
}

.single .entry-content > ul:not(.wp-block-social-links) > li::before {
	content: "";
	position: absolute;
	top: .35em;
	left: 0;
	width: 16px;
	height: 16px;
	background: var(--accent-2);
	-webkit-mask: var(--gpc-icon-check) center / contain no-repeat;
	mask: var(--gpc-icon-check) center / contain no-repeat;
}

/* Bloc auteur : photo carrée */
.gpc-author-box {
	gap: 26px;
	margin-top: 56px;
	padding: 18px;
	border-radius: 0;
}

.gpc-author-box .avatar {
	width: 120px;
	height: 120px;
	border-radius: 0;
	object-fit: cover;
}

.gpc-author-box__body {
	padding-top: 6px;
}

.gpc-author-box__name {
	font-weight: 600;
}

.gpc-author-box__bio {
	color: var(--contrast);
	font-size: .85rem;
}

.gpc-author-box__social.wp-block-social-links {
	gap: 10px;
	margin-top: 12px;
}

.gpc-author-box__social.is-style-logos-only .wp-social-link {
	color: var(--accent);
}

.gpc-related {
	margin-top: 64px;
}

/* Footer : fond clair avec une vague en haut */
.site-footer {
	position: relative;
	margin-top: 120px;
}

.site-footer::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 60px;
	background: var(--base);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 101V60C300 12 520 0 720 2c300 4 520 30 720 58v41z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 101V60C300 12 520 0 720 2c300 4 520 30 720 58v41z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.footer-widgets {
	font-size: .85rem;
}

.footer-widgets .widget-title {
	font-size: .85rem;
	letter-spacing: 0;
	text-transform: none;
}

.footer-widgets ul li {
	margin-bottom: 4px;
}

.site-info {
	font-size: .8rem;
}

/* Filet aligné sur le contenu (hors marges intérieures) */
.site-info .inside-site-info {
	padding-top: 0;
	border-top: 0;
	background: linear-gradient(var(--contrast-2), var(--contrast-2)) top / 100% 1px no-repeat content-box;
}

.site-info .inside-site-info > * {
	padding-top: 28px;
}

/* Footer : image encadrée de blanc (classe « gpc-framed » sur un bloc Image) */
.gpc-framed img,
.footer-widgets .wp-block-image img {
	padding: 8px;
	background: var(--base-3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.gpc-grid {
		--gpc-cols: 2 !important;
	}

	.gpc-cols-3,
	.gpc-cols-4 {
		--gpc-archive-cols: 2;
	}
}

@media (max-width: 768px) {
	:root {
		--gpc-gap: 20px;
		--gpc-section-space: 40px;
	}

	.gpc-featured__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.separate-containers .gpc-section {
		padding: 20px;
	}

	:root {
		--gpc-hero-padding: 48px;
		--gpc-hero-shape-height: 40px;
		--gpc-hero-overlap: 120px;
	}

	.gpc-hero__inner,
	.gpc-hero__media,
	.full-width-content .gpc-section:not(.gpc-page-content) {
		padding-right: 20px;
		padding-left: 20px;
	}
}

@media (max-width: 600px) {
	.gpc-grid {
		--gpc-cols: 1 !important;
	}

	.gpc-archive-grid .site-main {
		--gpc-archive-cols: 1;
	}

	.gpc-card--row .gpc-card__media {
		flex-basis: 34%;
	}

	.gpc-author-box {
		flex-direction: column;
	}

	.gpc-card--row .gpc-card__body {
		padding-left: 16px;
	}
}
