/*
Theme Name: La Mesquire - Le Journal
Theme URI: https://blog.gitelamesquire.fr/
Author: La Mesquire
Description: Theme du blog de gitelamesquire.fr, fidele au site principal (couleurs, police et navigation identiques). L'URL du site principal se regle dans Apparence > Personnaliser > Reglages La Mesquire.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lamesquire
*/

:root {
	--nav-bg: #CEB592;        /* bandeau navigation (releve sur le site) */
	--nav-active: #C37AA0;    /* onglet actif */
	--nav-text: #FFFFFF;
	--title-cream: #FCE5CB;   /* grand titre sur photo */
	--h2-orange: #F7B264;
	--h3-green: #92C57A;
	--text: #666666;
	--meta-pink: #FF00FF;     /* liens mentions legales du pied de page */
	--contact-blue: #3782C8;  /* bloc contact du pied de page */
	--site-title: #5D665D;
	--body-bg: #FCFEFC;
	--font-body: 'Cantarell', sans-serif;
	--font-heading: 'Cantata One', serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--body-bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
}

a { color: var(--nav-active); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ---------- En-tete ---------- */

.site-header { text-align: center; }

.site-header.has-header-image {
	background-size: cover;
	background-position: center;
	padding: 60px 20px 0;
}

.site-branding { padding: 40px 20px 30px; }

.custom-logo-link { display: inline-block; margin-bottom: 10px; }
.custom-logo { max-height: 120px; width: auto; }

.site-title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 44px;
	line-height: 1.25;
	color: var(--site-title);
}
.has-header-image .site-title { color: var(--title-cream); }
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; }

.site-description {
	margin: 8px 0 0;
	font-size: 16px;
	color: var(--site-title);
}
.has-header-image .site-description { color: var(--title-cream); }

/* ---------- Navigation (identique au site) ---------- */

.main-nav { background: var(--nav-bg); }

.main-nav ul {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1170px;
	display: flex;
	flex-wrap: wrap;
	text-align: left;
}

.main-nav li { margin: 0; }

.main-nav a {
	display: block;
	padding: 20px 22px;
	color: var(--nav-text);
	font-size: 14px;
	text-decoration: none;
}

.main-nav a:hover { text-decoration: none; opacity: .85; }

.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a,
.main-nav li.is-blog-current > a {
	background: var(--nav-active);
}

/* ---------- Contenu ---------- */

.site-content { padding: 50px 0; }

.content-area {
	display: grid;
	grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
	gap: 50px;
}

.no-sidebar .content-area { grid-template-columns: minmax(0, 1fr); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: 1.3;
}

.entry-title, h1.page-title { font-size: 34px; margin: 0 0 10px; }
.entry-title, .entry-title a, h1.page-title { color: var(--h2-orange); }
.entry-content h2, .comments-title { color: var(--h2-orange); font-size: 28px; }
.entry-content h3 { color: var(--h3-green); font-size: 24px; }

article.post, article.page { margin-bottom: 55px; }

.entry-meta {
	font-size: 12.5px;
	color: #999;
	margin-bottom: 15px;
}
.entry-meta a { color: #999; }

.post-thumbnail { display: block; margin-bottom: 20px; }
.post-thumbnail img { display: block; width: 100%; }

.more-link { color: var(--nav-active); }

.entry-footer { font-size: 13px; margin-top: 20px; }

/* Pagination */
.navigation.pagination, .post-navigation { margin: 40px 0; font-size: 14px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	padding: 6px 13px;
	background: var(--nav-bg);
	color: #fff;
	border-radius: 3px;
}
.page-numbers.current { background: var(--nav-active); }
.post-navigation .nav-links { justify-content: space-between; }

/* ---------- Barre laterale ---------- */

.widget-area .widget { margin-bottom: 40px; }
.widget-area .widget-title {
	font-family: var(--font-heading);
	font-size: 19px;
	color: var(--h3-green);
	margin: 0 0 12px;
}
.widget-area ul { list-style: none; margin: 0; padding: 0; }
.widget-area li { padding: 4px 0; }
.widget-area a { color: var(--text); }
.widget-area a:hover { color: var(--nav-active); }

/* ---------- Formulaires / recherche ---------- */

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	font-family: var(--font-body);
	font-size: 14px;
	padding: 9px 12px;
	border: 1px solid #d8d2c4;
	background: #fff;
	color: var(--text);
	max-width: 100%;
}

button, input[type="submit"] {
	font-family: var(--font-body);
	font-size: 14px;
	padding: 10px 22px;
	border: none;
	background: var(--nav-active);
	color: #fff;
	cursor: pointer;
	border-radius: 3px;
}
button:hover, input[type="submit"]:hover { opacity: .9; }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }

/* ---------- Commentaires ---------- */

.comments-area { margin-top: 60px; border-top: 1px solid #e8e2d4; padding-top: 35px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { margin-bottom: 28px; }
.comment-list .children { list-style: none; margin: 20px 0 0 35px; padding: 0; }
.comment-author { font-weight: 700; color: var(--site-title); }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: #999; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 13px; }
.comment-form p { margin: 0 0 16px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea { width: 100%; }

/* ---------- Pied de page (fidele au site) ---------- */

.site-footer { margin-top: 40px; border-top: 1px solid #e8e2d4; }

.footer-contact { text-align: center; padding: 45px 20px 30px; }

.footer-contact .footer-heading {
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 24px;
	color: var(--h3-green);
	margin: 0 0 15px;
}

.footer-contact p { margin: 0; }
.footer-contact strong {
	display: block;
	color: var(--contact-blue);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.9;
}
.footer-contact a { color: var(--contact-blue); font-weight: 700; }

.footer-meta {
	text-align: center;
	padding: 20px;
	font-size: 11.2px;
	font-weight: 400;
}
.footer-meta a { color: var(--meta-pink); }
.footer-meta .sep { color: var(--site-title); margin: 0 6px; }

.footer-meta .withdrawal-link {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 18px;
	border: 1px solid var(--meta-pink);
	border-radius: 18px;
	color: var(--meta-pink);
}
.footer-meta .withdrawal-link:hover { text-decoration: none; background: rgba(255, 0, 255, .06); }

.footer-bottom {
	text-align: center;
	padding: 12px 20px 25px;
	font-size: 11.2px;
	color: var(--site-title);
}
.footer-bottom a { color: var(--meta-pink); }

/* ---------- Divers ---------- */

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.error-404 { text-align: center; padding: 40px 0; }
.error-404 .search-form { max-width: 420px; margin: 25px auto 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.content-area { grid-template-columns: minmax(0, 1fr); }
	.site-title { font-size: 32px; }
}

@media (max-width: 600px) {
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 13px 20px; }
	.site-title { font-size: 26px; }
}
