/*
Theme Name: InvestirEnClair
Theme URI: https://investirenclair.example
Author: InvestirEnClair
Author URI: https://investirenclair.example
Description: Thème bloc éditorial pour le média éducatif InvestirEnClair — comprendre où placer son argent, quel que soit le pays. Design magazine financier contemporain, Gutenberg uniquement.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
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: investir-en-clair
Tags: full-site-editing, block-themes, blog, education, custom-colors, custom-menu, editor-style, featured-images, sticky-post, translation-ready, wide-blocks
*/

/* -------------------------------------------------------------------------
   InvestirEnClair — styles front minimaux
   La majorité du design est dans theme.json.
   ------------------------------------------------------------------------- */

:root {
	--iec-bg: #F7F6F3;
	--iec-text: #2C2C2C;
	--iec-accent: #1F4D3A;
	--iec-accent-soft: #E8F0EC;
	--iec-muted: #6B6B6B;
	--iec-border: #E2E0DB;
	--iec-white: #FFFFFF;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Bandeau éducatif discret */
.iec-bandeau-educatif {
	background: var(--iec-accent-soft);
	border-bottom: 1px solid var(--iec-border);
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
	color: var(--iec-accent);
	text-align: center;
}

.iec-bandeau-educatif p {
	margin: 0;
}

/* Header sticky */
.iec-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 246, 243, 0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--iec-border);
}

.iec-logo-text {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--iec-accent);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.iec-logo-text:hover {
	color: var(--iec-text);
}

/* Cartes */
.iec-card {
	background: var(--iec-white);
	border: 1px solid var(--iec-border);
	border-radius: 8px;
	height: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iec-card:hover {
	border-color: var(--iec-accent);
	box-shadow: 0 4px 20px rgba(31, 77, 58, 0.08);
}

/* Trust strip */
.iec-trust-strip {
	border-top: 1px solid var(--iec-border);
	border-bottom: 1px solid var(--iec-border);
	background: var(--iec-white);
}

.iec-trust-item {
	font-size: 0.875rem;
	color: var(--iec-muted);
	letter-spacing: 0.02em;
}

/* Callouts guides pays */
.iec-callout {
	border-left: 3px solid var(--iec-accent);
	background: var(--iec-accent-soft);
	border-radius: 0 6px 6px 0;
}

.iec-callout-warning {
	border-left-color: #8B6914;
	background: #FBF6E9;
}

/* Meta guide */
.iec-guide-meta {
	font-size: 0.875rem;
	color: var(--iec-muted);
	font-style: italic;
}

/* FAQ */
.iec-faq-item {
	border-bottom: 1px solid var(--iec-border);
}

.iec-faq-item:last-child {
	border-bottom: none;
}

/* Newsletter footer — champ email seul */
.iec-newsletter-form input[type="email"] {
	width: 100%;
	max-width: 320px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--iec-border);
	border-radius: 4px;
	background: var(--iec-white);
	font-family: inherit;
	font-size: 0.9375rem;
	color: var(--iec-text);
}

.iec-newsletter-form input[type="email"]:focus {
	outline: 2px solid var(--iec-accent);
	outline-offset: 1px;
}

/* Disclaimer footer */
.iec-disclaimer {
	font-size: 0.75rem;
	line-height: 1.6;
	color: var(--iec-muted);
}

/* Category grid links */
.iec-cat-link {
	display: block;
	padding: 1.5rem;
	background: var(--iec-white);
	border: 1px solid var(--iec-border);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease;
}

.iec-cat-link:hover {
	border-color: var(--iec-accent);
}

.iec-cat-link h3 {
	color: var(--iec-accent);
	margin: 0 0 0.5rem;
}

/* Steps parcours */
.iec-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--iec-accent);
	color: var(--iec-white);
	font-weight: 600;
	font-size: 1rem;
	flex-shrink: 0;
}

/* Séparateurs discrets */
.wp-block-separator {
	border-color: var(--iec-border);
}

/* Navigation */
.wp-block-navigation a {
	font-size: 0.9375rem;
}

/* Bouton principal accent */
.wp-block-button.is-style-fill .wp-block-button__link,
.wp-element-button {
	border-radius: 4px;
}

/* Focus accessible */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--iec-accent);
	outline-offset: 2px;
}

/* 404 */
.iec-404 {
	text-align: center;
	padding: 4rem 1rem;
}

/* Search */
.iec-search-result-meta {
	font-size: 0.8125rem;
	color: var(--iec-muted);
}
