/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Thème enfant de Blocksy pour le site Orathen. Toutes les personnalisations PHP/CSS doivent être faites ici afin de survivre aux mises à jour du thème parent.
Author: Orathen
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* =========================================================
   CSS personnalisé du site Orathen
   (Le CSS additionnel migré depuis le Personnalisateur reste
   dans Apparence > Personnaliser > CSS additionnel.)
   ========================================================= */

/* =========================================================
   Page auteur (/author/...) — refonte cohérente
   Objectif : panneau de contenu clair (comme le hero + cartes),
   grille 2 colonnes équilibrée, en-tête soigné, footer en bas.
   Tout est limité à body.author pour ne pas toucher aux autres archives.
   ========================================================= */

/* Pousse le footer en bas même avec peu d'articles (sans toucher au fond,
   qui reste celui du thème sombre). */
body.author .site-main {
	min-height: 76vh;
	padding-bottom: 64px;
}

/* En-tête auteur : centré et aéré, fin liseré doré. */
body.author .hero-section[data-type="type-2"] {
	background-color: transparent;
	--container-padding: 64px 0 28px;
	border-bottom: 1px solid rgba(196, 162, 83, 0.25);
	margin-bottom: 8px;
}

body.author .hero-section .entry-header {
	text-align: center;
}

body.author .ct-author-name {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

body.author .ct-author-name .page-title {
	margin: 0;
	letter-spacing: 0.04em;
}

body.author .entry-meta {
	justify-content: center;
	opacity: 0.85;
}

body.author .author-box-socials {
	justify-content: center;
	margin-top: 4px;
}

/* Grille équilibrée : 2 colonnes (les 2 articles remplissent la rangée),
   centrée et avec une largeur max pour des cartes lisibles. */
body.author .entries[data-layout="grid"] {
	--grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 768px) {
	body.author .entries[data-layout="grid"] {
		--grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------
   Palette « Sang Royal » (option C) — variables globales
   Texte courant : Parchemin doré #D9C9A3
   --------------------------------------------------------- */
body {
	--orathen-card-bg: #211512;
	--orathen-card-border: #5a2a25;
	--orathen-gold: #c9a04a;
	--orathen-accent: #a8413a;
	--orathen-text: #d9c9a3;
	--orathen-muted: #9a8163;
}

/* Cartes des archives (blog, recherche, catégories, étiquettes, auteur…) :
   body[data-prefix] cible toutes les pages d'archive qui affichent des cartes. */

/* Cartes sombres (remplace le blanc qui jurait avec le thème) */
body[data-prefix] .entry-card {
	background-color: var(--orathen-card-bg);
	border: 1px solid var(--orathen-card-border);
	box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8);
}

/* Titre des cartes en or */
body[data-prefix] .entry-card .entry-title,
body[data-prefix] .entry-card .entry-title a {
	color: var(--orathen-gold);
}

body[data-prefix] .entry-card .entry-title a:hover {
	color: #e0b865;
}

/* Extrait : parchemin doré */
body[data-prefix] .entry-card .entry-excerpt,
body[data-prefix] .entry-card .entry-excerpt p {
	color: var(--orathen-text);
}

/* Catégorie : accent bordeaux */
body[data-prefix] .entry-card .meta-categories a {
	color: var(--orathen-accent);
}

/* Méta (auteur, date) : ton discret, plus clair au survol */
body[data-prefix] .entry-card .entry-meta,
body[data-prefix] .entry-card .entry-meta a,
body[data-prefix] .entry-card .entry-meta time {
	color: var(--orathen-muted);
}

body[data-prefix] .entry-card .entry-meta a:hover {
	color: var(--orathen-text);
}

/* En-tête auteur : titre or + méta lisible sur fond sombre */
body.author .hero-section .page-title {
	color: var(--orathen-gold);
}

body.author .hero-section .entry-meta,
body.author .hero-section .entry-meta li {
	color: var(--orathen-text);
}

/* ---------------------------------------------------------
   Zone de commentaires : bouton « Laisser un commentaire »
   et lien « Répondre » accordés à la palette (or, plus de bleu).
   --------------------------------------------------------- */
.comment-form #submit,
.comment-form .submit,
.comment-respond .form-submit .submit {
	background-color: var(--orathen-gold);
	border: 1px solid var(--orathen-gold);
	color: #1a1210;
}

.comment-form #submit:hover,
.comment-form .submit:hover,
.comment-respond .form-submit .submit:hover {
	background-color: #e0b865;
	border-color: #e0b865;
	color: #1a1210;
}

/* Lien « Répondre » dans le fil de commentaires */
.comment-reply-link {
	color: var(--orathen-gold);
}

.comment-reply-link:hover {
	color: #e0b865;
}
