/*
Theme Name: GeneratePress Boule
Theme URI: https://bouledoguefrancais.info
Description: Thème enfant GeneratePress chaleureux et ludique pour bouledoguefrancais.info — le carnet des amoureux du bouledogue français. Tons crème et caramel, formes arrondies, typographie pleine de caractère.
Author: Bouledoguefrancais.info
Author URI: https://bouledoguefrancais.info
Template: generatepress
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: generatepress-boule
Tags: blog, custom-colors, custom-menu, featured-images, translation-ready
*/

/* -------------------------------------------------------------------------
   1. Polices locales (Google Fonts auto-hébergées)
   ------------------------------------------------------------------------- */

@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url('assets/fonts/fraunces-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Nunito';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/nunito-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------
   2. Design tokens
   ------------------------------------------------------------------------- */

:root {
	/* Palette « carnet chaleureux » */
	--bf-cream: #fbf6ed;
	--bf-cream-deep: #f3e9d8;
	--bf-card: #fffdf8;
	--bf-ink: #3b2e25;
	--bf-ink-soft: #7a695b;
	--bf-caramel: #c0702f;
	--bf-caramel-dark: #9d5722;
	--bf-caramel-soft: #e9b98c;
	--bf-blush: #f6e3cd;
	--bf-line: #e8dcc8;

	/* Typographie */
	--bf-font-display: 'Fraunces', Georgia, serif;
	--bf-font-body: 'Nunito', -apple-system, 'Segoe UI', sans-serif;

	/* Formes & profondeur */
	--bf-radius-s: 12px;
	--bf-radius: 22px;
	--bf-radius-l: 32px;
	--bf-shadow-s: 0 2px 8px rgba(75, 46, 20, 0.07);
	--bf-shadow: 0 10px 30px -8px rgba(75, 46, 20, 0.14);
	--bf-shadow-l: 0 24px 50px -16px rgba(75, 46, 20, 0.22);

	/* Motif patte (SVG inline) */
	--bf-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23c0702f'%3E%3Cellipse cx='21' cy='17' rx='7' ry='10'/%3E%3Cellipse cx='43' cy='17' rx='7' ry='10'/%3E%3Cellipse cx='8' cy='32' rx='6' ry='8'/%3E%3Cellipse cx='56' cy='32' rx='6' ry='8'/%3E%3Cpath d='M32 28c11 0 19 9 19 17 0 7-7 11-19 11S13 52 13 45c0-8 8-17 19-17z'/%3E%3C/g%3E%3C/svg%3E");
	--bf-paw-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23e3cdaa'%3E%3Cellipse cx='21' cy='17' rx='7' ry='10'/%3E%3Cellipse cx='43' cy='17' rx='7' ry='10'/%3E%3Cellipse cx='8' cy='32' rx='6' ry='8'/%3E%3Cellipse cx='56' cy='32' rx='6' ry='8'/%3E%3Cpath d='M32 28c11 0 19 9 19 17 0 7-7 11-19 11S13 52 13 45c0-8 8-17 19-17z'/%3E%3C/g%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------
   3. Base
   ------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bf-cream);
	/* Texture pointillée très discrète, façon papier */
	background-image: radial-gradient(rgba(120, 86, 50, 0.05) 1px, transparent 1px);
	background-size: 26px 26px;
	color: var(--bf-ink);
	font-family: var(--bf-font-body);
	font-size: 17px;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.main-title {
	font-family: var(--bf-font-display);
	font-weight: 600;
	color: var(--bf-ink);
	letter-spacing: -0.015em;
	line-height: 1.18;
}

a {
	color: var(--bf-caramel);
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--bf-caramel-dark);
}

::selection {
	background: var(--bf-caramel-soft);
	color: var(--bf-ink);
}

:focus-visible {
	outline: 3px solid var(--bf-caramel);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Séparateur « pattes » */
hr,
.entry-content hr {
	border: 0;
	height: 22px;
	margin: 2.6em auto;
	background: var(--bf-paw) center / 22px 22px no-repeat,
		linear-gradient(var(--bf-line), var(--bf-line)) left center / calc(50% - 30px) 2px no-repeat,
		linear-gradient(var(--bf-line), var(--bf-line)) right center / calc(50% - 30px) 2px no-repeat;
}

/* -------------------------------------------------------------------------
   4. Header & navigation
   ------------------------------------------------------------------------- */

/* Titre + slogan sur leur propre ligne, centrés */
.site-header {
	background-color: var(--bf-cream);
}

.site-header .inside-header {
	padding: 26px 32px 18px;
}

.nav-below-header .site-header .inside-header {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.nav-below-header .site-branding {
	margin: 0 auto;
}

.main-title {
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 700;
}

.main-title a {
	color: var(--bf-ink);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Patte devant le titre du site */
.main-title a::before {
	content: '';
	width: 26px;
	height: 26px;
	flex: none;
	background: var(--bf-paw) center / contain no-repeat;
	transform: rotate(-14deg);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.main-title a:hover::before {
	transform: rotate(10deg) scale(1.12);
}

.site-description {
	color: var(--bf-ink-soft);
	font-size: 14px;
}

.main-navigation,
.main-navigation .inside-navigation {
	background-color: transparent;
}

/* Barre de menu sous l'en-tête : centrée et collante au défilement */
.nav-below-header .main-navigation {
	background-color: rgba(251, 246, 237, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid var(--bf-line);
	border-bottom: 1px solid var(--bf-line);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar.nav-below-header .main-navigation {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar.nav-below-header .main-navigation {
		top: 46px;
	}
}

.nav-below-header .main-navigation .inside-navigation {
	justify-content: center;
}

.nav-below-header .main-navigation .main-nav ul li a {
	line-height: 52px;
}

.main-navigation .main-nav ul li a {
	color: var(--bf-ink);
	font-weight: 700;
	font-size: 15px;
	padding-left: 16px;
	padding-right: 16px;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li.sfHover > a {
	background-color: var(--bf-blush);
	color: var(--bf-caramel-dark);
}

.main-navigation ul ul {
	background-color: var(--bf-card);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-s);
	box-shadow: var(--bf-shadow);
	overflow: hidden;
}

.main-navigation ul ul li a {
	border-radius: 0;
	color: var(--bf-ink);
}

.menu-toggle,
.menu-toggle:hover,
.menu-toggle:focus {
	background-color: transparent;
	color: var(--bf-ink);
}

button.menu-toggle:hover,
button.menu-toggle:focus {
	color: var(--bf-caramel);
}

/* -------------------------------------------------------------------------
   5. Héro de la page d'accueil (générée par functions.php)
   ------------------------------------------------------------------------- */

.bf-hero {
	position: relative;
	background:
		radial-gradient(circle at 12% 20%, rgba(233, 185, 140, 0.4), transparent 42%),
		radial-gradient(circle at 88% 10%, rgba(246, 227, 205, 0.85), transparent 50%),
		var(--bf-cream-deep);
	overflow: hidden;
	text-align: center;
	padding: clamp(3.2rem, 8vw, 6rem) 20px clamp(4.4rem, 9vw, 7rem);
}

/* Traces de pattes décoratives */
.bf-hero::before,
.bf-hero::after {
	content: '';
	position: absolute;
	width: 54px;
	height: 54px;
	background: var(--bf-paw-soft) center / contain no-repeat;
	opacity: 0.85;
	pointer-events: none;
}

.bf-hero::before {
	top: 14%;
	left: clamp(2%, 8vw, 12%);
	transform: rotate(-24deg);
}

.bf-hero::after {
	bottom: 22%;
	right: clamp(2%, 8vw, 12%);
	transform: rotate(28deg) scale(0.8);
}

.bf-hero-inner {
	max-width: 760px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.bf-hero-mascot {
	width: clamp(96px, 14vw, 132px);
	height: auto;
	margin: 0 auto 1.2rem;
	display: block;
	filter: drop-shadow(0 12px 22px rgba(75, 46, 20, 0.18));
	animation: bf-float 5s ease-in-out infinite;
}

@keyframes bf-float {
	0%, 100% { transform: translateY(0) rotate(-1.5deg); }
	50% { transform: translateY(-9px) rotate(1.5deg); }
}

.bf-hero-eyebrow {
	display: inline-block;
	background: var(--bf-card);
	border: 1px solid var(--bf-line);
	border-radius: 999px;
	padding: 6px 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bf-caramel-dark);
	margin-bottom: 1.1rem;
	box-shadow: var(--bf-shadow-s);
}

.bf-hero-title {
	font-family: var(--bf-font-display);
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.025em;
	margin: 0 0 1rem;
	color: var(--bf-ink);
}

.bf-hero-title em {
	font-style: italic;
	color: var(--bf-caramel);
}

.bf-hero-tagline {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--bf-ink-soft);
	max-width: 560px;
	margin: 0 auto;
}

/* Vague crème en bas du héro */
.bf-hero-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	width: 100%;
	height: clamp(28px, 5vw, 52px);
	display: block;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
   6. Grille d'articles (blog, archives, recherche)
   ------------------------------------------------------------------------- */

.blog .site-main,
.archive .site-main,
.search-results .site-main {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	align-items: stretch;
}

/* Tout ce qui n'est pas un article (pagination, titres d'archive…) occupe toute la largeur */
.blog .site-main > *:not(article),
.archive .site-main > *:not(article),
.search-results .site-main > *:not(article) {
	grid-column: 1 / -1;
}

.blog .site-main article,
.archive .site-main article,
.search-results .site-main article {
	margin-bottom: 0;
}

/* Carte d'article */
.blog article .inside-article,
.archive article .inside-article,
.search-results article .inside-article {
	background: var(--bf-card);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius);
	box-shadow: var(--bf-shadow-s);
	padding: 0 0 26px;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.blog article:hover .inside-article,
.archive article:hover .inside-article,
.search-results article:hover .inside-article {
	transform: translateY(-6px) rotate(-0.4deg);
	box-shadow: var(--bf-shadow-l);
}

/* Image de la carte */
.blog article .post-image,
.archive article .post-image,
.search-results article .post-image {
	margin: 0 0 20px;
	order: -1;
	overflow: hidden;
}

.blog article .post-image img,
.archive article .post-image img,
.search-results article .post-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.blog article:hover .post-image img,
.archive article:hover .post-image img,
.search-results article:hover .post-image img {
	transform: scale(1.05);
}

/* Contenu de la carte */
.blog article .entry-header,
.archive article .entry-header,
.search-results article .entry-header,
.blog article .entry-summary,
.archive article .entry-summary,
.search-results article .entry-summary {
	padding: 0 26px;
}

.blog article .entry-title,
.archive article .entry-title,
.search-results article .entry-title {
	font-size: 1.35rem;
	margin-bottom: 0.4em;
}

.entry-title a {
	color: var(--bf-ink);
}

.entry-title a:hover {
	color: var(--bf-caramel);
}

.entry-meta {
	color: var(--bf-ink-soft);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.entry-meta a {
	color: var(--bf-ink-soft);
}

.entry-meta a:hover {
	color: var(--bf-caramel);
}

.entry-summary {
	color: var(--bf-ink-soft);
	font-size: 15.5px;
}

/* Pastille catégorie (générée par functions.php) */
.bf-cat-pill {
	display: inline-block;
	background: var(--bf-blush);
	color: var(--bf-caramel-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 14px;
	margin-bottom: 12px;
	transition: background-color 0.2s ease;
}

a.bf-cat-pill:hover {
	background: var(--bf-caramel);
	color: #fff;
}

/* Lien « Lire la suite » */
.bf-read-more {
	margin: auto 0 0;
	padding-top: 14px;
}

.bf-read-more a {
	font-weight: 700;
	font-size: 15px;
	color: var(--bf-caramel);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bf-read-more a .bf-arrow {
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	display: inline-block;
}

.bf-read-more a:hover .bf-arrow {
	transform: translateX(5px);
}

/* Article « à la une » (premier article de la page 1 du blog) */
@media (min-width: 900px) {
	.blog .site-main article.bf-featured {
		grid-column: 1 / -1;
	}

	.blog article.bf-featured .inside-article {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
		align-items: center;
		padding: 0;
		border-radius: var(--bf-radius-l);
	}

	.blog article.bf-featured .post-image {
		order: 0;
		margin: 0;
		height: 100%;
		grid-row: 1 / 4;
	}

	.blog article.bf-featured .post-image img {
		height: 100%;
		aspect-ratio: auto;
		min-height: 360px;
	}

	.blog article.bf-featured .entry-header,
	.blog article.bf-featured .entry-summary {
		padding: 0 48px;
	}

	.blog article.bf-featured .entry-header {
		padding-top: 44px;
	}

	.blog article.bf-featured .entry-title {
		font-size: 2rem;
	}

	.blog article.bf-featured .entry-summary {
		padding-bottom: 14px;
	}

	.blog article.bf-featured .bf-read-more {
		padding: 0 48px 44px;
	}
}

/* -------------------------------------------------------------------------
   7. Articles & pages (vue seule)
   ------------------------------------------------------------------------- */

.single .site-main > article .inside-article,
.page .site-main > article .inside-article,
.error404 .inside-article {
	background: var(--bf-card);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-l);
	box-shadow: var(--bf-shadow-s);
	padding: clamp(28px, 5vw, 60px);
}

.single .entry-title,
.page .entry-title {
	font-size: clamp(1.9rem, 4.5vw, 2.8rem);
	margin-bottom: 0.35em;
}

.page-header-image-single {
	margin-bottom: 2em;
}

.page-header-image-single img,
.page-header-image img {
	border-radius: var(--bf-radius);
	box-shadow: var(--bf-shadow);
}

/* Temps de lecture (généré par functions.php) */
.bf-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--bf-ink-soft);
	font-size: 13px;
	font-weight: 700;
	margin-top: 6px;
}

.bf-reading-time::before {
	content: '';
	width: 15px;
	height: 15px;
	background: var(--bf-paw) center / contain no-repeat;
	transform: rotate(-12deg);
}

/* Contenu riche */
.entry-content {
	font-size: 17.5px;
}

.entry-content h2 {
	margin-top: 1.6em;
	padding-bottom: 0.3em;
	position: relative;
}

.entry-content h2::after {
	content: '';
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--bf-caramel-soft);
	margin-top: 10px;
}

.entry-content blockquote {
	background: var(--bf-blush);
	border-left: 5px solid var(--bf-caramel);
	border-radius: var(--bf-radius-s);
	margin: 1.8em 0;
	padding: 22px 28px 22px 64px;
	font-family: var(--bf-font-display);
	font-style: italic;
	font-size: 1.12em;
	color: var(--bf-ink);
	position: relative;
}

.entry-content blockquote::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 24px;
	width: 26px;
	height: 26px;
	background: var(--bf-paw) center / contain no-repeat;
	transform: rotate(-14deg);
}

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

.entry-content img {
	border-radius: var(--bf-radius-s);
}

.entry-content table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-s);
	overflow: hidden;
	width: 100%;
}

.entry-content table th {
	background: var(--bf-cream-deep);
	font-weight: 700;
}

.entry-content table th,
.entry-content table td {
	border: 0;
	border-bottom: 1px solid var(--bf-line);
	padding: 12px 16px;
}

.entry-content table tr:last-child td {
	border-bottom: 0;
}

.entry-content code {
	background: var(--bf-cream-deep);
	border-radius: 6px;
	padding: 2px 7px;
	font-size: 0.88em;
}

.entry-content pre {
	background: var(--bf-ink);
	color: var(--bf-cream);
	border-radius: var(--bf-radius-s);
	padding: 22px;
}

.entry-content pre code {
	background: none;
	padding: 0;
}

/* Étiquettes et pied d'article */
.entry-meta .cat-links a,
.entry-meta .tags-links a {
	background: var(--bf-blush);
	border-radius: 999px;
	padding: 3px 12px;
	margin-right: 4px;
	font-size: 12.5px;
	display: inline-block;
	margin-bottom: 6px;
}

.entry-meta .cat-links a:hover,
.entry-meta .tags-links a:hover {
	background: var(--bf-caramel);
	color: #fff;
}

/* -------------------------------------------------------------------------
   8. Boutons & formulaires
   ------------------------------------------------------------------------- */

button:not(.menu-toggle):not(.search-modal-close):not(.wp-block-search__button),
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button .wp-block-button__link {
	background: var(--bf-caramel);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: var(--bf-font-body);
	font-weight: 700;
	padding: 12px 28px;
	box-shadow: 0 6px 16px -6px rgba(192, 112, 47, 0.55);
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

button:not(.menu-toggle):not(.search-modal-close):not(.wp-block-search__button):hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button .wp-block-button__link:hover {
	background: var(--bf-caramel-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -6px rgba(157, 87, 34, 0.6);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
	background: var(--bf-card);
	border: 1.5px solid var(--bf-line);
	border-radius: var(--bf-radius-s);
	color: var(--bf-ink);
	padding: 11px 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
	background: #fff;
	border-color: var(--bf-caramel);
	box-shadow: 0 0 0 4px rgba(192, 112, 47, 0.15);
	color: var(--bf-ink);
}

/* -------------------------------------------------------------------------
   9. Pagination & navigation entre articles
   ------------------------------------------------------------------------- */

.paging-navigation {
	text-align: center;
	margin-top: 14px;
}

.paging-navigation .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	margin: 0 3px;
	border-radius: 999px;
	background: var(--bf-card);
	border: 1px solid var(--bf-line);
	color: var(--bf-ink);
	font-weight: 700;
	transition: all 0.2s ease;
}

.paging-navigation .page-numbers:hover {
	border-color: var(--bf-caramel);
	color: var(--bf-caramel);
	transform: translateY(-2px);
}

.paging-navigation .page-numbers.current {
	background: var(--bf-caramel);
	border-color: var(--bf-caramel);
	color: #fff;
}

.post-navigation {
	margin-top: 2em;
}

.post-navigation a {
	font-weight: 700;
}

/* -------------------------------------------------------------------------
   10. Sidebar & widgets
   ------------------------------------------------------------------------- */

.sidebar .widget {
	background: var(--bf-card);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius);
	box-shadow: var(--bf-shadow-s);
	padding: 28px;
	margin-bottom: 28px;
}

.sidebar .widget .widget-title,
.sidebar .widget .wp-block-heading {
	font-family: var(--bf-font-display);
	font-size: 1.15rem;
	margin-bottom: 0.9em;
	padding-bottom: 0.55em;
	border-bottom: 2px dashed var(--bf-line);
}

.sidebar .widget ul li {
	padding: 7px 0 7px 26px;
	position: relative;
	list-style: none;
}

.sidebar .widget ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 13px;
	width: 14px;
	height: 14px;
	background: var(--bf-paw) center / contain no-repeat;
	opacity: 0.7;
	transform: rotate(-12deg);
}

.sidebar .widget a {
	color: var(--bf-ink);
}

.sidebar .widget a:hover {
	color: var(--bf-caramel);
}

/* -------------------------------------------------------------------------
   11. Commentaires
   ------------------------------------------------------------------------- */

.comments-area {
	background: var(--bf-card);
	border: 1px solid var(--bf-line);
	border-radius: var(--bf-radius-l);
	box-shadow: var(--bf-shadow-s);
	padding: clamp(24px, 4vw, 44px);
	margin-top: 2.4em;
}

.comments-title,
.comment-reply-title {
	font-size: 1.4rem;
}

.comment-list .comment .comment-body,
.comment-list .pingback {
	border: 0;
	border-bottom: 1px dashed var(--bf-line);
}

.comment-author .avatar {
	border-radius: 50%;
	border: 3px solid var(--bf-blush);
}

/* -------------------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------------------- */

.site-footer {
	margin-top: clamp(3rem, 7vw, 5rem);
	background: transparent;
}

.footer-widgets {
	background: var(--bf-cream-deep);
	border-top: 1px solid var(--bf-line);
}

.site-info {
	background: var(--bf-ink);
	color: rgba(251, 246, 237, 0.75);
	font-size: 14px;
	position: relative;
}

.site-info .inside-site-info {
	padding: 26px 32px;
}

.site-info a {
	color: var(--bf-caramel-soft);
}

.site-info a:hover {
	color: var(--bf-cream);
}

.bf-footer-credit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.bf-footer-credit::before {
	content: '';
	width: 18px;
	height: 18px;
	flex: none;
	background: var(--bf-paw-soft) center / contain no-repeat;
	transform: rotate(-12deg);
}

/* Bouton retour en haut */
a.generate-back-to-top {
	background: var(--bf-caramel);
	border-radius: 50%;
	box-shadow: var(--bf-shadow);
	color: #fff;
}

a.generate-back-to-top:hover,
a.generate-back-to-top:focus {
	background: var(--bf-caramel-dark);
	color: #fff;
}

/* -------------------------------------------------------------------------
   13. Recherche (modale GeneratePress)
   ------------------------------------------------------------------------- */

.gp-search-modal .gp-modal__container {
	border-radius: var(--bf-radius);
	box-shadow: var(--bf-shadow-l);
}

.gp-search-modal input[type="search"] {
	border-radius: var(--bf-radius-s);
}

/* -------------------------------------------------------------------------
   14. Accessibilité & divers
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.blog .site-main,
	.archive .site-main,
	.search-results .site-main {
		gap: 22px;
	}

	.site-header .inside-header {
		padding: 12px 20px;
	}
}
