/*
Theme Name: Le Geekz Club
Theme URI: https://geekz-club.org
Author: Votre Nom
Author URI: https://example.com
Description: Thème magazine inspiré de Wirenews (Newsup) avec mise en page type journal, section à la une et sidebar.
Version: 1.0.0
Text Domain: geekzclub
*/

/*@import url("css/colors/default.css");*/
/*@import url("css/colors/style.css");*/

/* ========== Similarités avec css/colors/style.css (Wirenews) ==========
 * Règles communes aux deux feuilles :
 * - :root (--headFont: Josefin Sans, --bodyFont: Onest)
 * - .wrapper.boxed (margin, box-shadow #5a5a5a20, max-width 1200px)
 * - .container-fluid (padding 15px)
 * - p a { text-decoration: underline }
 * - a:focus { outline: 1px solid }
 * - Titres h1–h6 + .site-title (font-family, letter-spacing 0)
 * - body { font-family: Onest }
 * - .site-title { font-size: 46px }
 * - textarea { outline: 0 }
 * - .screen-reader-text:focus (bg #f1f1f1, color #21759b, box-shadow rgba(0,0,0,0.6))
 * Valeurs couleur Wirenews importées ci-dessus : #ff001b (accent), #21759b (focus), #f1f1f1.
 * ========== Style par défaut Wirenews (appliqué à Geekz Club) ========== */
:root {
	--headFont: "Josefin Sans", sans-serif;
	--bodyFont: "Onest", sans-serif;
	/* Palette Wirenews (css/colors/style.css) pour cohérence visuelle */
	--wirenews-accent: #ff001b;
	--wirenews-focus: #21759b;
	--wirenews-focus-bg: #f1f1f1;
	--wirenews-shadow: rgba(0, 0, 0, 0.6);
	--wirenews-box-shadow: 0 0 10px 0 #5a5a5a20;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.wrapper.boxed {
	margin: 0 auto;
	box-shadow: var(--wirenews-box-shadow);
	max-width: 1200px;
}

.mgw-container,
.container-fluid {
	padding-right: 15px;
	padding-left: 15px;
}
.mgw-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

p a {
	text-decoration: underline;
}

a {
	color: var(--mgw-link, var(--wirenews-accent));
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
	outline: 1px solid;
}

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

textarea {
	outline: 0;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6,
.site-title,
.mgw-section-title,
.mgw-post-card-title,
.mgw-featured-main-title,
.mgw-featured-item-title,
.mgw-single-title,
.widget-title {
	font-family: var(--headFont);
	letter-spacing: 0;
	color: #374151;
}

body {
	margin: 0;
	font-family: var(--bodyFont);
	line-height: 1.6;
	color: #222;
	background-color: var(--mgw-body-bg, #f5f6fa);
}

.site-title {
	font-size: 46px;
}

.screen-reader-text:focus {
	background-color: var(--wirenews-focus-bg);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px var(--wirenews-shadow);
	clip: auto !important;
	clip-path: none;
	color: var(--wirenews-focus);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ========== Geekz Club – Top bar (équivalent .mg-head-detail) ========== */
.mgw-top-bar {
	background: var(--mgw-header-bg, #111827);
	color: var(--mgw-header-text, #e5e7eb);
	font-size: 14px;
	padding: 5px 0;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: var(--mgw-header-bg, #111827);
}

.mgw-top-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	white-space: nowrap;
	overflow-x: auto;
}

.mgw-top-bar-title {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-right: 12px;
}

.mgw-top-bar-links {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
}

.mgw-top-bar-links a,
.mgw-top-menu > li > a {
	color: var(--mgw-link, var(--mgw-header-text, #e5e7eb));
}

.mgw-top-bar-links a:hover,
.mgw-top-menu > li > a:hover {
	color: var(--mgw-accent, var(--wirenews-accent));
}

.mgw-top-menu {
	display: flex;
	margin: 0 0 0 16px;
	padding: 0;
	list-style: none;
	gap: 10px;
}

/* ========== Geekz Club – Header ========== */
.site-header {
	background: var(--mgw-header-section-bg, #fff);
	border-bottom: 1px solid #e5e7eb;
}

.mgw-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

.site-branding-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-logo img {
	display: block;
	height: auto;
}

.mgw-header-layout-centered .site-branding-inner,
.mgw-header-layout-centered .site-branding,
.mgw-header-layout-text-only .site-branding {
	text-align: center;
}

.mgw-header-layout-centered .site-branding-inner,
.mgw-header-layout-centered,
.mgw-header-layout-text-only {
	flex-direction: column;
	align-items: center;
}

.mgw-header-layout-centered .mgw-header-right,
.mgw-header-layout-text-only .mgw-header-right {
	margin-left: 0;
	margin-top: 12px;
}

.site-branding .site-title {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	/* Effet néon bleu électrique avec pulsation (max 10px) */
	color: #7df9ff;
	text-shadow:
		0 0 2px #00d4ff,
		0 0 5px #00d4ff,
		0 0 10px #00b8ff;
	animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
	0%, 100% {
		text-shadow:
			0 0 2px #00d4ff,
			0 0 5px #00d4ff,
			0 0 10px #00b8ff;
	}
	50% {
		text-shadow:
			0 0 5px #7df9ff,
			0 0 8px #00d4ff,
			0 0 10px #00b8ff;
	}
}

.site-branding .site-title a {
	color: var(--mgw-link, #111827);
}

.site-branding .site-description {
	font-size: 13px;
	color: #6b7280;
	margin: 4px 0 0;
}

.mgw-header-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.mgw-header-search {
	position: relative;
}

.mgw-header-search input[type="search"] {
	padding: 6px 28px 6px 10px;
	border-radius: 0 4px 4px 0;
	border: 1px solid #d1d5db;
	font-size: 13px;
	height: 40px;
	line-height: 25px;
}

.mgw-header-search button {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: none;
	cursor: pointer;
	color: #6b7280;
}

/* ========== Geekz Club – Navigation (équivalent .navbar-wp) ========== */
.mgw-main-nav {
	background: var(--mgw-header-bg, #111827);
}

.mgw-main-nav-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.mgw-main-nav .menu {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mgw-main-nav .menu > li {
	flex: 0 0 auto;
}

.mgw-main-nav .menu > li > a {
	display: block;
	padding: 12px 16px;
	color: var(--mgw-link, var(--mgw-header-text, #e5e7eb));
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mgw-main-nav .menu > li > a:hover,
.mgw-main-nav .menu > li.current-menu-item > a {
	background: var(--mgw-accent, var(--wirenews-accent));
	color: #111;
}

/* ========== Geekz Club – Zone principale ========== */
.mgw-main {
	padding: 24px 0 40px;
	background-color: var(--mgw-main-bg, transparent);
}

.mgw-layout {
	display: grid;
	grid-template-columns: 2.2fr 1fr;
	gap: 24px;
}

.content-area {
	min-width: 0;
}

.sidebar-area {
	min-width: 0;
}

/* ========== Section à la une (équivalent .mg-blog-post.lg / .mg-latest-news-sec) ========== */
.mgw-featured {
	margin-bottom: 24px;
	box-shadow: none;
}

.mgw-section-title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #6b7280;
	margin: 0 0 10px;
	border-bottom: 2px solid var(--mgw-accent, var(--wirenews-accent));
	padding-bottom: 4px;
}

.mgw-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
	gap: 16px;
}

.mgw-featured-main {
	position: relative;
	background: #000;
	color: #111827;
	overflow: hidden;
	border-radius: 4px;
	min-height: 300px;
}

.mgw-featured-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mgw-featured-main-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
}

.mgw-featured-main-content {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
}

.mgw-badge-category {
	display: inline-block;
	background: var(--mgw-accent, var(--wirenews-accent));
	color: #111;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 4px 8px;
	border-radius: 2px;
	margin-bottom: 8px;
}

.mgw-featured-main-title {
	font-size: 26px;
	margin: 0 0 8px;
}

.mgw-post-meta {
	font-size: 12px;
	color: #d1d5db;
}

.mgw-featured-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.mgw-featured-item {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 10px;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
}

.mgw-featured-item-thumb {
	background: #f3f4f6;
}

.mgw-featured-item-body {
	padding: 8px 10px;
}

.mgw-featured-item-title {
	font-size: 22px;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mgw-featured-item-title a {
	color: var(--mgw-link, #111827);
}

.mgw-featured-item-title a:hover {
	color: var(--mgw-accent, var(--wirenews-accent));
}

/* ========== Liste d’articles (équivalent .mg-posts-sec-post / .small-post) ========== */
.mgw-posts-section {
	box-shadow: none;
	margin-bottom: 40px;
	border-radius: 4px;
	padding: 10px 0;
}

.mgw-post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.mgw-post-card {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 16px;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	box-shadow: 0 3px 12px -1px rgba(7,10,25,.2), 0 22px 27px -20px rgba(7,10,25,.2);
}

.mgw-post-card-thumb {
	background: #f3f4f6;
	border-radius: 4px;
}

.mgw-post-card-body {
	padding: 14px 16px;
}

.mgw-post-card-title {
	font-size: 26px;
	margin: 0 0 8px;
}

.mgw-post-card-title a {
	color: var(--mgw-link, #111827);
}

.mgw-post-card-title a:hover {
	color: var(--mgw-accent, var(--wirenews-accent));
}

.mgw-post-excerpt {
	font-size: 14px;
	color: #4b5563;
	margin: 0 0 10px;
}

.mgw-read-more {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ========== Single article ========== */
.mgw-single {
	background: #fff;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
	padding: 18px 20px;
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
}

.mgw-single-header {
	margin-bottom: 16px;
}

.mgw-single-title {
	font-size: 26px;
	margin: 4px 0 8px;
	color: #212121;
}

.mgw-single-thumb {
	margin-bottom: 16px;
	border-radius: 4px;
	box-shadow: 0 3px 12px -1px rgba(7,10,25,.2), 0 22px 27px -20px rgba(7,10,25,.2);
}

.mgw-single-content {
	font-size: 16px;
	color: #111827;
}

.mgw-single-content p {
	margin: 0 0 1em;
}

.mgw-single-footer {
	margin-top: 20px;
	border-top: 1px solid #e5e7eb;
	padding-top: 12px;
}

.mgw-single-tags .mgw-badge-category {
	margin-right: 4px;
	margin-bottom: 4px;
}

/* ========== Widget Twitch ========== */
.widget_twitch .twitch-widget-embed,
.widget_twitch .twitch-widget-offline {
	max-width: 100%;
	overflow: hidden;
	border-radius: 4px;
}
.widget_twitch .twitch-widget-embed iframe,
.widget_twitch .twitch-widget-offline img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}
.widget_twitch .twitch-widget-link,
.widget_twitch .twitch-widget-offline-label,
.widget_twitch .twitch-widget-no-config {
	margin: 8px 0 0;
	font-size: 13px;
}
.widget_twitch .twitch-widget-offline-label {
	opacity: 0.8;
}

/* ========== Sidebar (équivalent .mg-sidebar .mg-widget) ========== */
.sidebar-area .widget {
	background: #fff;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
	padding: 14px 16px;
	margin-bottom: 16px;
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
}

.sidebar-area .widget-title {
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin: 0 0 12px;
	/* couleur partagée avec h1–h6 (voir bloc titres) */
}

/* ========== Pagination ========== */
.mgw-pagination {
	margin-top: 24px;
	text-align: center;
}

.mgw-pagination ul.page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	gap: 4px;
}

.mgw-pagination ul.page-numbers li {
	display: inline-block;
}

.mgw-pagination ul.page-numbers li a,
.mgw-pagination ul.page-numbers li span {
	display: inline-block;
	min-width: 32px;
	padding: 6px 10px;
	border-radius: 4px;
	border: 1px solid #d1d5db;
	font-size: 13px;
	color: var(--mgw-link, #374151);
}

.mgw-pagination ul.page-numbers li .current,
.mgw-pagination ul.page-numbers li a:hover {
	background: var(--mgw-accent, var(--wirenews-accent));
	border-color: var(--mgw-accent, var(--wirenews-accent));
	color: #111;
}

/* ========== Footer ========== */
.site-footer {
	background: var(--mgw-header-bg, #111827);
	color: var(--mgw-header-text, #e5e7eb);
	padding: 24px 0;
	font-size: 13px;
}

.site-footer a {
	color: var(--mgw-link, var(--mgw-header-text, #e5e7eb));
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--mgw-accent, var(--wirenews-accent));
}

.site-footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

/* ========== Réactivité (breakpoints Wirenews) ========== */
@media (min-width: 767px) {
	.mgw-featured-grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
	}
}

@media (max-width: 991.98px) {
	.mgw-layout {
		grid-template-columns: 1fr;
	}

	.mgw-post-card {
		grid-template-columns: 1fr;
	}

	.mgw-featured-grid {
		grid-template-columns: 1fr;
	}

	.mgw-main-nav-inner {
		justify-content: space-between;
	}

	.mgw-featured-main {
		min-height: 395px;
		margin-bottom: 50px;
	}
}

@media (max-width: 767px) {
	.mgw-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.mgw-main-nav .menu > li > a {
		padding: 10px 12px;
		font-size: 13px;
		border-bottom: 1px solid rgba(225,225,225,0.4);
	}

	.mgw-featured-item {
		grid-template-columns: 1fr;
	}

	.mgw-featured-main {
		min-height: 300px;
		margin-bottom: 20px;
	}

	.site-title {
		font-size: 32px;
	}
}

@media (max-width: 576px) {
	.mgw-featured-item {
		grid-template-columns: 1fr;
	}

	.mgw-main-nav-inner {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.content-area {
		margin-bottom: 30px;
	}
}
