/*
Theme Name: Mes ETF
Theme URI: https://www.mesetf.fr
Author: Dinergie
Author URI: https://www.dinergie.com
Description: Theme bloc sur-mesure pour mesetf.fr — analyse et comparaison d'ETF. Charte orange.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mesetf
*/

/* ------------------------------------------------------------------ base */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	text-underline-offset: 0.18em;
}

:where(.entry-content) a:not(.wp-element-button) {
	color: var(--wp--preset--color--primary-dark);
	text-decoration-thickness: 1px;
}

:where(.entry-content) a:not(.wp-element-button):hover {
	text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------- en-tete */

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: saturate(180%) blur(8px);
	background-color: rgba(255, 255, 255, 0.92);
}

.site-header .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.site-header .wp-block-site-title a::first-letter {
	color: var(--wp--preset--color--primary);
}

.site-header .wp-block-navigation a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast);
}

.site-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--primary-dark);
}

/* ----------------------------------------------------------------- hero */

.etf-hero {
	background:
		radial-gradient(1100px 420px at 12% -10%, rgba(245, 158, 11, 0.16), transparent 60%),
		radial-gradient(900px 380px at 92% 0%, rgba(217, 90, 11, 0.13), transparent 62%),
		var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.etf-hero h1 {
	letter-spacing: -0.022em;
	text-wrap: balance;
}

.etf-kicker {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary-dark);
	background: rgba(217, 90, 11, 0.1);
	border: 1px solid rgba(217, 90, 11, 0.22);
	border-radius: 999px;
	padding: 0.38rem 0.85rem;
}

/* ---------------------------------------------------------------- cartes */

.etf-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.6rem 1.5rem;
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.etf-card:hover {
	transform: translateY(-3px);
	border-color: rgba(217, 90, 11, 0.42);
	box-shadow: 0 14px 34px -18px rgba(18, 33, 61, 0.42);
}

.etf-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.16rem;
	line-height: 1.3;
}

.etf-card h3 a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.etf-card:hover h3 a {
	color: var(--wp--preset--color--primary-dark);
}

.etf-card p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.96rem;
	line-height: 1.6;
}

.etf-card .etf-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 9px;
	margin-bottom: 0.9rem;
	font-weight: 800;
	font-size: 0.95rem;
	color: #fff;
	background: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
}

/* --------------------------------------------------------------- articles */

.etf-loop .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
}

.etf-loop .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary-dark);
}

.etf-loop .wp-block-post {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: 1.7rem;
}

.etf-loop .wp-block-post:last-child {
	border-bottom: 0;
}

/* ----------------------------------------------------------------- pied */

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ------------------------------------------------------------ avis / note */

.etf-note {
	border-left: 3px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--surface);
	padding: 1rem 1.2rem;
	border-radius: 0 10px 10px 0;
	font-size: 0.94rem;
	color: var(--wp--preset--color--muted);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 781px) {
	.etf-card {
		padding: 1.3rem 1.2rem;
	}
}
