/* ==========================================================================
   Galaxis Modern CSS Override
   Modernisation du design sans toucher au style.css original
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cards - ombres douces et transitions
   -------------------------------------------------------------------------- */
.gx-card {
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gx-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gx-card-image {
	border-radius: 10px 10px 0 0;
}

.gx-card .gx-card-content {
	border-radius: 0 0 10px 10px;
}

.gx-card-content {
	border-radius: 10px;
	border-color: #e8e8e8;
}

/* --------------------------------------------------------------------------
   Typographie - plus moderne et aérée
   -------------------------------------------------------------------------- */
.entry-title {
	margin: 0.6em 0 0.3em;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.entry-title a {
	transition: color 0.2s ease;
}

.entry-title a:hover {
	color: #2563eb !important;
}

.entry-content {
	line-height: 1.8;
	font-size: 1.05em;
}

.entry-content p {
	margin-bottom: 1.4em;
}

/* --------------------------------------------------------------------------
   Meta infos - plus discret et propre
   -------------------------------------------------------------------------- */
.entry-meta {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 1.2em;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.author-avatar .avatar {
	width: 34px;
	height: 34px;
	border: 2px solid #e8e8e8;
}

/* --------------------------------------------------------------------------
   Categories - badges modernes
   -------------------------------------------------------------------------- */
.cat-links a,
.cat-links a:visited,
.cat-links a:active,
.cat-links a:focus,
.cat-links a:hover {
	color: #2563eb;
	background-color: #eff6ff;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: background-color 0.2s ease;
	display: inline-block;
}

.cat-links a:hover {
	background-color: #dbeafe !important;
	color: #1d4ed8 !important;
}

/* --------------------------------------------------------------------------
   Tags - style pilule
   -------------------------------------------------------------------------- */
.entry-footer .tag-links a {
	background-color: #f3f4f6;
	color: #4b5563;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.85em;
	transition: background-color 0.2s ease;
	display: inline-block;
	margin: 2px 0;
}

.entry-footer .tag-links a:hover {
	background-color: #e5e7eb;
	color: #1f2937;
}

/* --------------------------------------------------------------------------
   Boutons et liens - style moderne
   -------------------------------------------------------------------------- */
body .more-link {
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	padding: 8px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9em;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

body .more-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

input[type="submit"],
button[type="submit"] {
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	border: none;
	padding: 10px 24px;
	border-radius: 8px;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   Navigation articles (prev/next) - plus élégante
   -------------------------------------------------------------------------- */
.post-navigation .nav-links a {
	border-radius: 10px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-navigation .nav-links a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.post-navigation .nav-links a .meta-nav {
	color: #2563eb;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

.post-navigation .nav-links a .post-title {
	font-weight: 600;
	color: #1e293b;
}

/* --------------------------------------------------------------------------
   Pagination - style moderne
   -------------------------------------------------------------------------- */
.page-numbers,
.post-page-numbers {
	border-radius: 8px;
	padding: 0.5em 0.7em;
	transition: background-color 0.2s ease;
}

.page-numbers.current,
.post-page-numbers.current {
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Sidebar widgets - style unifié
   -------------------------------------------------------------------------- */
.widget {
	border-radius: 10px;
	transition: box-shadow 0.2s ease;
}

.widget:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.widget-title {
	position: relative;
	padding-bottom: 0.6em;
	margin-bottom: 1em;
}

.widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Back to top - plus rond et moderne
   -------------------------------------------------------------------------- */
.back-to-top {
	border-radius: 50%;
	width: 48px;
	height: 48px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.back-to-top:hover {
	background: linear-gradient(135deg, #1d4ed8, #2563eb);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   Footer - plus moderne
   -------------------------------------------------------------------------- */
.site-footer__text {
	border-top: 1px solid #e5e7eb;
}

.site-footer .copyright {
	font-size: 0.9em;
	color: #6b7280;
}

.site-footer a {
	transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Header sticky - subtil
   -------------------------------------------------------------------------- */
.site-menu-content--sticky {
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Formulaire inputs - modernisation
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-size: 1em;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	outline: none;
}

select {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 14px;
	background-color: #fff;
	transition: border-color 0.2s ease;
}

select:focus {
	border-color: #2563eb;
	outline: none;
}

/* --------------------------------------------------------------------------
   Images - coins arrondis dans le contenu
   -------------------------------------------------------------------------- */
.entry-content img {
	border-radius: 8px;
}

.post-thumbnail figure {
	margin: 0;
	overflow: hidden;
}

.post-thumbnail img {
	transition: transform 0.3s ease;
}

.gx-card:hover .post-thumbnail img {
	transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Breadcrumbs - ajustement au nouveau design
   -------------------------------------------------------------------------- */
.galaxis-breadcrumbs {
	background-color: #f8fafc;
	padding: 10px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Page 404 - design engageant
   -------------------------------------------------------------------------- */
.error-404 .page-title {
	font-size: 2.5em;
	color: #1e293b;
}

.error-404 .page-content > p:first-of-type {
	font-size: 1.1em;
	color: #64748b;
}

.error-404 .page-content a {
	color: #2563eb;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Commentaires - plus modernes
   -------------------------------------------------------------------------- */
.comment-list .comment {
	border-radius: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
	border: 2px solid #e8e8e8;
}

.comment-reply-link {
	font-size: 0.85em;
	color: #2563eb;
	font-weight: 600;
	transition: color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Scroll doux
   -------------------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Selection texte
   -------------------------------------------------------------------------- */
::selection {
	background-color: #dbeafe;
	color: #1e293b;
}

/* --------------------------------------------------------------------------
   Topbar - dégradé moderne au lieu d'aplat
   -------------------------------------------------------------------------- */
.site-topbar {
	background: linear-gradient(135deg, #1e40af, #2563eb);
	border-bottom: none;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
}

.site-topbar a:active,
.site-topbar a:focus,
.site-topbar a:hover,
.site-topbar .social-navigation a:active,
.site-topbar .social-navigation a:focus,
.site-topbar .social-navigation a:hover {
	color: #bfdbfe !important;
}

.social-navigation .menu > li {
	transition: transform 0.2s ease;
}

.social-navigation .menu > li:hover {
	transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   Header / Branding - plus d'espace et clarté
   -------------------------------------------------------------------------- */
.site-menu-content__wrap {
	padding: 0.9rem 0;
}

.site-title {
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-title a,
.site-title a:visited {
	color: #0f172a !important;
	transition: color 0.2s ease;
}

.site-title a:hover {
	color: #2563eb !important;
}

.site-description {
	color: #64748b;
	font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   Navigation desktop - liens avec soulignement animé
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1025px) {
	.main-navigation .menu > li > a {
		position: relative;
		padding-bottom: 4px !important;
		font-weight: 500;
		color: #334155;
		letter-spacing: 0.01em;
	}

	.main-navigation .menu > li > a::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 50%;
		width: 0;
		height: 2px;
		background: linear-gradient(135deg, #2563eb, #3b82f6);
		border-radius: 2px;
		transition: width 0.25s ease, left 0.25s ease;
	}

	.main-navigation .menu > li > a:hover::after,
	.main-navigation .menu .current-menu-item > a::after,
	.main-navigation .menu .current-menu-ancestor > a::after {
		width: 100%;
		left: 0;
	}

	.main-navigation .menu > li > a:hover,
	.main-navigation .menu .current-menu-item > a,
	.main-navigation .menu .current-menu-ancestor > a {
		color: #2563eb;
	}
}

/* --------------------------------------------------------------------------
   Dropdown (sous-menus) - ombre plus douce, coins arrondis
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1025px) {
	.main-navigation .menu > li .sub-menu {
		border-radius: 10px;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
		border: 1px solid #e5e7eb;
		overflow: hidden;
	}

	.main-navigation .menu > li > .sub-menu {
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	}

	.main-navigation .menu > li > .sub-menu::before {
		border-bottom-color: #e5e7eb !important;
	}

	.main-navigation .menu > li .sub-menu > li:not(:last-child) {
		border-bottom: 1px solid #f1f5f9;
	}

	.main-navigation .menu > li .sub-menu > li > a {
		transition: background-color 0.15s ease, color 0.15s ease;
		color: #334155;
	}

	.main-navigation .menu > li .sub-menu > li > a:hover {
		background-color: #f8fafc;
		color: #2563eb;
	}
}

/* --------------------------------------------------------------------------
   Menu mobile - panneau plus moderne
   -------------------------------------------------------------------------- */
.main-navigation > .primary-menu-container {
	border-radius: 12px 0 0 12px;
	box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15) !important;
}

@media screen and (max-width: 1024px) {
	.main-navigation .menu > li:not(:last-child) > a {
		border-bottom-color: #f1f5f9 !important;
	}

	.main-navigation .menu > li > a {
		color: #334155 !important;
		font-weight: 500;
	}

	.main-navigation .menu > li > a:hover {
		color: #2563eb !important;
	}
}

/* --------------------------------------------------------------------------
   Hamburger icon - plus fin et élégant
   -------------------------------------------------------------------------- */
.main-navigation__icon::before,
.main-navigation__icon__middle,
.main-navigation__icon::after {
	border-radius: 2px;
	height: 2px !important;
}

/* --------------------------------------------------------------------------
   Sticky header - effet glassmorphism subtil
   -------------------------------------------------------------------------- */
.site-menu-content--sticky.sticky-menu {
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 1px 15px rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   Footer - design plus structuré
   -------------------------------------------------------------------------- */
.site-footer__text {
	background: linear-gradient(135deg, #0f172a, #1e293b) !important;
	padding: 1.2em 0;
	border-top: none;
}

.site-footer a,
.site-footer a:visited {
	color: #94a3b8 !important;
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: #e2e8f0 !important;
}

.site-footer .copyright {
	color: #64748b;
	font-size: 0.88em;
	letter-spacing: 0.01em;
}

.footer-menu li {
	transition: transform 0.2s ease;
}

.footer-menu li:hover {
	transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Liens globaux - couleur plus accessible
   -------------------------------------------------------------------------- */
a {
	transition: color 0.2s ease;
}

a:hover {
	color: #2563eb;
}

/* --------------------------------------------------------------------------
   Blockquotes - style éditorial
   -------------------------------------------------------------------------- */
.entry-content blockquote {
	border-left: 4px solid #2563eb;
	background-color: #f8fafc;
	padding: 1.2em 1.5em;
	margin: 1.5em 0;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #334155;
}

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

/* --------------------------------------------------------------------------
   Code inline et blocs - style développeur
   -------------------------------------------------------------------------- */
.entry-content code {
	background-color: #f1f5f9;
	color: #be185d;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

.entry-content pre {
	background-color: #0f172a;
	color: #e2e8f0;
	padding: 1.2em 1.5em;
	border-radius: 10px;
	overflow-x: auto;
	font-size: 0.9em;
	line-height: 1.6;
}

.entry-content pre code {
	background-color: transparent;
	color: inherit;
	padding: 0;
}

/* --------------------------------------------------------------------------
   Tables dans le contenu - propres et lisibles
   -------------------------------------------------------------------------- */
.entry-content table {
	border-collapse: collapse;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.entry-content table th {
	background-color: #f8fafc;
	font-weight: 600;
	color: #1e293b;
	text-align: left;
	padding: 12px 16px;
	border-bottom: 2px solid #e2e8f0;
}

.entry-content table td {
	padding: 10px 16px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.entry-content table tr:hover td {
	background-color: #f8fafc;
}

/* --------------------------------------------------------------------------
   Search widget - champ arrondi
   -------------------------------------------------------------------------- */
.search-form .search-field {
	border-radius: 8px 0 0 8px;
	border: 1px solid #d1d5db;
	padding: 10px 14px;
}

.search-form .search-submit {
	border-radius: 0 8px 8px 0;
}

/* --------------------------------------------------------------------------
   Transition douce sur le body (chargement de page)
   -------------------------------------------------------------------------- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Focus accessibility - anneau moderne
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Responsive images - max-width dans le contenu
   -------------------------------------------------------------------------- */
.entry-content img {
	max-width: 100%;
	height: auto;
}

/* --------------------------------------------------------------------------
   Espacement des sections sur single post
   -------------------------------------------------------------------------- */
.single .entry-footer {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid #f1f5f9;
}

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

/* --------------------------------------------------------------------------
   Widget lists - plus lisibles
   -------------------------------------------------------------------------- */
.widget ul {
	list-style: none;
	padding-left: 0;
}

.widget ul li {
	padding: 0.5em 0;
	border-bottom: 1px solid #f1f5f9;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: #334155;
	font-weight: 450;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.widget ul li a:hover {
	color: #2563eb;
	padding-left: 4px;
}
