/* ==========================================================================
   FinMaroc — Feuille de style principale
   Design : moderne, éditorial, financier — optimisé performance
   ========================================================================== */

:root {
	--fm-red: #c8102e;
	--fm-red-dark: #8f0c1e;
	--fm-green: #006233;
	--fm-green-light: #047857;
	--fm-ink: #141414;
	--fm-slate: #4b5563;
	--fm-muted: #141414;
	--fm-bg: #fafafa;
	--fm-card: #ffffff;
	--fm-border: #e5e7eb;
	--fm-up: #047857;
	--fm-down: #c8102e;
	--fm-radius: 16px;
	--fm-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 8px 24px rgba(15, 23, 42, .06);
	--fm-shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);
	--fm-max: 1200px;
	--fm-font: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--fm-font-headings: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

h1, h2, h3, h4,
.section-title, .card-title, .single-title,
.news-flash-label, .site-slogan, .footer-col h3 {
	font-family: var(--fm-font-headings);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--fm-font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--fm-ink);
	background: var(--fm-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fm-red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.screen-reader-text, .skip-link {
	position: absolute !important;
	width: 1px; height: 1px;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
}
.skip-link:focus {
	width: auto; height: auto; clip: auto;
	top: 8px; left: 8px; z-index: 10000;
	background: var(--fm-red); color: #fff;
	padding: 10px 18px; border-radius: 8px;
}

/* ==========================================================================
   BANDEAU « DERNIERS ARTICLES » (haut de page d.accueil)
   ========================================================================== */
.news-flash {
	background: #141414;
	border-bottom: 1px solid #2a2a2a;
}
.news-flash-inner {
	max-width: var(--fm-max);
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: stretch;
}
.news-flash-label {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 12px 18px;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	position: relative;
	z-index: 2;
}
.news-flash-label svg { color: #9ca3af; }
.news-flash-viewport {
	flex: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}
.news-flash-track {
	display: flex;
	gap: 3rem;
	white-space: nowrap;
	width: max-content;
	padding-left: 1.5rem;
	animation: fm-scroll 60s linear infinite;
}
.news-flash:hover .news-flash-track { animation-play-state: paused; }
@keyframes fm-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.news-flash-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .86rem;
	font-weight: 600;
	color: #e5e7eb;
}
.news-flash-item:hover { color: #fff; text-decoration: none; }
.news-flash-item time {
	font-size: .74rem;
	font-weight: 700;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.news-flash-item::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #4b5563;
	flex-shrink: 0;
}

/* Ticker boursier (Bourse de Casablanca) — fond blanc, style pro */
.bourse-ticker {
	background: #fff;
	border-bottom: 1px solid var(--fm-border);
}
.bourse-ticker .news-flash-inner { padding: 0; }
.bourse-ticker .news-flash-label {
	padding: 13px 22px;
	font-size: .74rem;
	color: var(--fm-ink);
	border-right: 1px solid var(--fm-border);
}
.bourse-ticker .news-flash-label svg { color: var(--fm-red); }
.bourse-ticker .news-flash-viewport {
	mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
}
.bourse-ticker .news-flash-track { gap: 0; padding-left: 0; }
.bourse-ticker .news-flash-item { color: var(--fm-ink); }
.bourse-ticker .news-flash-item::before { display: none; }
.bourse-item {
	gap: 9px;
	padding: 0 1.6rem;
	border-right: 1px solid #eceef1;
}
.bourse-item:hover { color: var(--fm-ink); }
.bourse-item:hover .bourse-name { color: var(--fm-red); }
.bourse-name {
	font-weight: 800;
	font-size: .84rem;
	color: var(--fm-ink);
	letter-spacing: .02em;
	transition: color .15s ease;
}
.bourse-price {
	color: #4b5563;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.bourse-price small {
	font-size: .68em;
	font-weight: 600;
	color: #141414;
}
.bourse-change {
	font-size: .78rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.bourse-change.is-up   { color: #15803d; }
.bourse-change.is-down { color: #b91c1c; }
.bourse-change.is-flat { color: #141414; }

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--fm-border);
}
.site-header-inner {
	max-width: var(--fm-max);
	margin: 0 auto;
	padding: 0 20px;
	height: 68px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.site-branding {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
}
.site-slogan {
	margin: 3px 0 0 2px;
	font-size: .71rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #1f2937;
	line-height: 1.2;
	white-space: nowrap;
}
.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--fm-ink);
}
.site-logo:hover { text-decoration: none; }
.site-logo-icon { display: flex; }
.site-logo-text {
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -.02em;
	background: linear-gradient(90deg, var(--fm-red), var(--fm-green));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.custom-logo-link img { max-height: 44px; width: auto; }

.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu { display: flex; gap: 6px; align-items: center; }
.primary-menu a {
	display: block;
	padding: 8px 13px;
	font-size: .93rem;
	font-weight: 700;
	color: var(--fm-ink);
	border-radius: 10px;
	transition: color .15s, background .15s;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--fm-red);
	background: rgba(200, 16, 46, .07);
	text-decoration: none;
}

/* Barre supérieure : date du jour + contact */
.top-bar {
	background: var(--fm-ink);
	color: #e5e7eb;
	font-size: .8rem;
}
.top-bar-inner {
	max-width: var(--fm-max);
	margin: 0 auto;
	padding: 7px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.top-bar-date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 700;
	letter-spacing: .03em;
	white-space: nowrap;
}
.top-bar-date svg { color: #4ade80; flex-shrink: 0; }
.top-bar-contact { color: #d1d5db; font-weight: 600; }
.top-bar-contact:hover { color: #fff; text-decoration: none; }

/* Bouton burger */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 10px;
	border-radius: 10px;
}
.nav-toggle span {
	display: block;
	width: 22px; height: 2.4px;
	background: var(--fm-ink);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-weight: 700;
	font-size: .95rem;
	padding: 13px 26px;
	border-radius: 999px;
	transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-light {
	background: #fff;
	color: var(--fm-red-dark);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.btn-light:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .24); }
.btn-outline {
	color: #fff;
	border: 1.6px solid rgba(255, 255, 255, .55);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-primary {
	background: var(--fm-red);
	color: #fff;
	box-shadow: 0 8px 24px rgba(200, 16, 46, .3);
}
.btn-primary:hover { background: var(--fm-red-dark); }

/* ==========================================================================
   SECTIONS GÉNÉRIQUES
   ========================================================================== */
.section {
	max-width: var(--fm-max);
	margin: 0 auto;
	padding: 52px 20px 8px;
}
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.section-title {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--fm-ink);
	display: flex;
	align-items: center;
	gap: 12px;
}
.section-title::before {
	content: "";
	width: 26px; height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--fm-red), var(--fm-green));
}
.section-link {
	flex-shrink: 0;
	font-size: .9rem;
	font-weight: 700;
	color: var(--fm-red);
}

/* ==========================================================================
   CARTES D'ARTICLES
   ========================================================================== */
.card {
	background: var(--fm-card);
	border: 1px solid var(--fm-border);
	border-radius: var(--fm-radius);
	overflow: hidden;
	box-shadow: var(--fm-shadow);
	transition: transform .2s, box-shadow .2s;
	display: flex;
	flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--fm-shadow-lg); }
.card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #8f0c1e, #006233);
	overflow: hidden;
}
.card-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.card:hover .card-thumb img { transform: scale(1.045); }
.card-badge {
	position: absolute;
	top: 12px; left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .72rem;
	font-weight: 700;
	color: #fff;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -.01em;
}
.card-title a { color: var(--fm-ink); }
.card-title a:hover { color: var(--fm-red); text-decoration: none; }
.card-excerpt { font-size: .92rem; color: var(--fm-slate); }
.card-meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: .8rem;
	color: var(--fm-muted);
}
.card-reading {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 700;
	color: var(--fm-green);
}
.card-reading::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--fm-green);
}

/* Grille « À la une » : 1 grande + 2 petites */
.une-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	grid-template-rows: repeat(2, 1fr);
	gap: 22px;
}
.une-grid .card-featured { grid-row: span 2; }
.une-grid .card-featured .card-thumb { aspect-ratio: 16 / 11.4; }
.une-grid .card-featured .card-title { font-size: 1.35rem; }
.une-grid .card-side { flex-direction: row; }
.une-grid .card-side .card-thumb { width: 42%; flex-shrink: 0; aspect-ratio: auto; }
.une-grid .card-side .card-body { padding: 14px 16px; }
.une-grid .card-side .card-title { font-size: .98rem; }

/* Grille standard : 3 colonnes */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

/* ==========================================================================
   SECTION RASSURANCE
   ========================================================================== */
.section-trust { padding-bottom: 56px; }
.trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.trust-card {
	background: var(--fm-card);
	border: 1px solid var(--fm-border);
	border-radius: var(--fm-radius);
	padding: 26px 22px;
	box-shadow: var(--fm-shadow);
}
.trust-icon {
	display: inline-flex;
	padding: 12px;
	border-radius: 12px;
	color: var(--fm-red);
	background: linear-gradient(135deg, rgba(200, 16, 46, .1), rgba(0, 98, 51, .12));
	margin-bottom: 14px;
}
.trust-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.trust-card p { font-size: .87rem; color: var(--fm-slate); }

/* ==========================================================================
   ARTICLE (single) & PAGES
   ========================================================================== */
.single-article {
	max-width: 780px;
	margin: 0 auto;
	padding: 48px 20px 24px;
}
.single-header { margin-bottom: 28px; }
.single-badge {
	position: static;
	margin-bottom: 16px;
}
.single-title {
	font-size: clamp(1.6rem, 3.6vw, 2.35rem);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -.02em;
	margin-bottom: 14px;
}
.single-excerpt { font-size: 1.08rem; color: var(--fm-slate); margin-bottom: 18px; }
.single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	font-size: .85rem;
	color: var(--fm-muted);
	padding-top: 16px;
	border-top: 1px solid var(--fm-border);
}
.single-author { display: inline-flex; align-items: center; gap: 7px; }
.single-author a { color: var(--fm-slate); font-weight: 600; }
.single-updated { font-style: italic; }
.single-featured {
	border-radius: var(--fm-radius);
	overflow: hidden;
	margin-bottom: 30px;
	box-shadow: var(--fm-shadow);
}

/* Typographie du contenu */
.content-typo { font-size: 1.05rem; color: #1e293b; }
.content-typo p { margin-bottom: 1.3em; }
.content-typo h2 {
	font-size: 1.45rem;
	font-weight: 800;
	margin: 1.8em 0 .7em;
	letter-spacing: -.01em;
}
.content-typo h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6em 0 .6em; }
.content-typo ul, .content-typo ol {
	list-style: disc;
	margin: 0 0 1.3em 1.4em;
}
.content-typo ol { list-style: decimal; }
.content-typo li { margin-bottom: .45em; }
.content-typo blockquote {
	border-left: 4px solid var(--fm-red);
	background: rgba(200, 16, 46, .05);
	padding: 16px 22px;
	border-radius: 0 12px 12px 0;
	margin: 0 0 1.4em;
	font-style: italic;
	color: var(--fm-slate);
}
.content-typo img { border-radius: 12px; }
.content-typo table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.4em;
	font-size: .92rem;
}
.content-typo th, .content-typo td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--fm-border);
	text-align: left;
}
.content-typo th { background: var(--fm-bg); font-weight: 700; }
.content-typo a { text-decoration: underline; text-underline-offset: 3px; }

.single-footer { margin-top: 40px; }
/* Boutons de partage social */
.share-box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 0;
	margin-bottom: 20px;
	border-top: 1px solid var(--fm-border);
	border-bottom: 1px solid var(--fm-border);
}
.share-label { font-size: .88rem; font-weight: 700; color: var(--fm-ink); }
.share-buttons { display: flex; gap: 9px; }
.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	color: #fff;
	transition: transform .15s, opacity .15s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .88; color: #fff; text-decoration: none; }
.share-facebook { background: #1877f2; }
.share-x { background: #141414; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25d366; }

.single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.single-tags a {
	font-size: .8rem;
	font-weight: 600;
	color: var(--fm-slate);
	background: var(--fm-bg);
	border: 1px solid var(--fm-border);
	padding: 6px 14px;
	border-radius: 999px;
}
.single-tags a:hover { color: var(--fm-red); border-color: var(--fm-red); text-decoration: none; }

/* Navigation entre articles */
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.post-navigation a {
	display: block;
	background: var(--fm-card);
	border: 1px solid var(--fm-border);
	border-radius: var(--fm-radius);
	padding: 18px 20px;
	box-shadow: var(--fm-shadow);
}
.post-navigation a:hover { border-color: var(--fm-red); text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.nav-label {
	display: block;
	font-size: .76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--fm-muted);
	margin-bottom: 6px;
}
.nav-title { font-weight: 700; color: var(--fm-ink); font-size: .95rem; }

/* Commentaires */
.comments-area {
	max-width: 780px;
	margin: 24px auto 48px;
	padding: 0 20px;
}
.comments-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.comment-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.comment-list .comment {
	background: var(--fm-card);
	border: 1px solid var(--fm-border);
	border-radius: var(--fm-radius);
	padding: 18px 20px;
}
.comment-list .children { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 6px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .78rem; color: var(--fm-muted); }
.comment-form {
	background: var(--fm-card);
	border: 1px solid var(--fm-border);
	border-radius: var(--fm-radius);
	padding: 24px;
}
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--fm-border);
	border-radius: 10px;
	font: inherit;
	background: var(--fm-bg);
	margin-bottom: 14px;
}
.comment-form input:focus, .comment-form textarea:focus {
	outline: 2px solid rgba(200, 16, 46, .35);
	border-color: var(--fm-red);
}

/* ==========================================================================
   ARCHIVES / RECHERCHE / 404
   ========================================================================== */
.section-archive { padding-top: 44px; padding-bottom: 48px; }
.archive-description { color: var(--fm-slate); max-width: 720px; margin: -8px 0 24px; }
.no-results { text-align: center; padding: 40px 0; }
.no-results h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.no-results p { color: var(--fm-slate); margin-bottom: 22px; }

.section-404 { padding: 64px 20px 72px; }
.error-404 { text-align: center; max-width: 560px; margin: 0 auto; }
.error-code {
	font-size: 5.5rem;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(90deg, var(--fm-red), var(--fm-green));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
}
.error-404 .section-title { justify-content: center; }
.error-404 p { color: var(--fm-slate); margin: 14px 0 22px; }
.error-404 .search-form { margin-bottom: 22px; }
.error-404 .btn { margin-top: 4px; }

/* Formulaire de recherche */
.search-form {
	display: flex;
	max-width: 480px;
	margin: 0 auto 26px;
	border: 1.6px solid var(--fm-border);
	border-radius: 999px;
	overflow: hidden;
	background: var(--fm-card);
}
.search-field {
	flex: 1;
	border: none;
	padding: 12px 20px;
	font: inherit;
	background: transparent;
}
.search-field:focus { outline: none; }
.search-submit {
	display: flex;
	align-items: center;
	padding: 0 20px;
	background: var(--fm-red);
	color: #fff;
	transition: background .15s;
}
.search-submit:hover { background: var(--fm-red-dark); }

/* Pagination */
.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 9px 14px;
	border: 1px solid var(--fm-border);
	border-radius: 10px;
	background: var(--fm-card);
	font-weight: 600;
	font-size: .9rem;
	color: var(--fm-slate);
}
.pagination .page-numbers:hover { border-color: var(--fm-red); color: var(--fm-red); text-decoration: none; }
.pagination .page-numbers.current {
	background: var(--fm-red);
	border-color: var(--fm-red);
	color: #fff;
}

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.site-footer {
	background: #ffffff;
	color: #374151;
	margin-top: 48px;
	border-top: 3px solid var(--fm-red);
}
.site-footer-inner {
	max-width: var(--fm-max);
	margin: 0 auto;
	padding: 56px 20px 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
}
.site-footer .site-logo { color: var(--fm-ink); }
.site-footer .site-logo-text {
	background: linear-gradient(90deg, var(--fm-red), var(--fm-green));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.footer-tagline {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	margin: 14px 0 8px;
	color: #1f2937;
}
.footer-description { font-size: .88rem; margin: 0; color: #4b5563; line-height: 1.7; }
.footer-col h3 {
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111827;
	margin-bottom: 16px;
}
.footer-menu li { margin-bottom: 9px; }
.footer-menu a { color: #374151; font-size: .92rem; font-weight: 600; }
.footer-menu a:hover { color: var(--fm-red); text-decoration: none; }
.footer-contact { margin-top: 14px; font-size: .9rem; }
.footer-contact a { color: var(--fm-green); font-weight: 700; }
.footer-contact a:hover { color: var(--fm-red); text-decoration: none; }
.footer-phone { margin-top: 6px; font-size: .9rem; }
.footer-phone a { color: #1f2937; font-weight: 700; }
.footer-phone a:hover { color: var(--fm-red); text-decoration: none; }
.footer-address { margin-top: 6px; font-size: .86rem; color: #4b5563; }
.footer-media-note { font-size: .8rem; color: #6b7280; margin-top: 12px; }
.footer-bottom {
	border-top: 1px solid var(--fm-border);
	padding: 20px;
	text-align: center;
	font-size: .8rem;
	color: #6b7280;
}

/* Retour en haut */
.back-to-top {
	position: fixed;
	right: 22px; bottom: 22px;
	z-index: 900;
	width: 46px; height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--fm-red);
	color: #fff;
	box-shadow: 0 8px 24px rgba(200, 16, 46, .4);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--fm-red-dark); }

/* ==========================================================================
   WIDGETS (barre latérale)
   ========================================================================== */
.widget {
	background: var(--fm-card);
	border: 1px solid var(--fm-border);
	border-radius: var(--fm-radius);
	padding: 22px;
	margin-bottom: 22px;
	box-shadow: var(--fm-shadow);
}
.widget-title { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--fm-border); font-size: .92rem; }
.widget ul li:last-child { border-bottom: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; order: 3; }
	.main-navigation {
		position: absolute;
		top: 68px;
		left: 0; right: 0;
		background: #fff;
		border-bottom: 1px solid var(--fm-border);
		box-shadow: var(--fm-shadow-lg);
		padding: 12px 20px 18px;
		display: none;
	}
	.main-navigation.is-open { display: block; }
	.primary-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.primary-menu a { padding: 12px 14px; font-size: 1rem; }

	/* Sur mobile, la date laisse la place au menu. */
	.top-bar-contact { display: none; }
	.top-bar-inner { justify-content: center; }
	.site-slogan { font-size: .62rem; }

	.une-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
	.une-grid .card-featured { grid-row: auto; }
	.une-grid .card-featured .card-title { font-size: 1.2rem; }
	.une-grid .card-side { flex-direction: column; }
	.une-grid .card-side .card-thumb { width: 100%; aspect-ratio: 16/10; }

	.cards-grid { grid-template-columns: repeat(2, 1fr); }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
}

@media (max-width: 560px) {
	.cards-grid { grid-template-columns: 1fr; }
	.trust-grid { grid-template-columns: 1fr; }
	.site-footer-inner { grid-template-columns: 1fr; gap: 28px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Animation d'apparition (n'affecte pas le transform du survol) */
.fm-reveal { opacity: 0; transition: opacity .5s ease; }
.fm-reveal.fm-revealed { opacity: 1; }

/* ==========================================================================
   ACCESSIBILITÉ & IMPRESSION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

:focus-visible {
	outline: 2px solid var(--fm-red);
	outline-offset: 2px;
	border-radius: 4px;
}

@media print {
	.site-header, .news-flash, .site-footer, .back-to-top,
	.comments-area, .post-navigation { display: none !important; }
	body { background: #fff; }
}

/* =========================================================================
   PAGE AUTEUR
   ========================================================================= */
.author-box {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--fm-border, #e5e7eb);
	border-left: 4px solid var(--fm-red);
	border-radius: 12px;
	padding: 28px;
	margin-bottom: 40px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.author-box-avatar img {
	border-radius: 50%;
	display: block;
}

.author-box-kicker {
	margin: 0 0 4px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fm-red);
}

.author-box-name {
	margin: 0 0 4px;
	font-size: 1.6rem;
	line-height: 1.2;
}

.author-box-role {
	margin: 0 0 10px;
	font-weight: 600;
	color: var(--fm-green);
}

.author-box-bio {
	margin: 0 0 10px;
	color: var(--fm-muted, #141414);
	line-height: 1.65;
}

.author-box-count {
	margin: 0;
	font-size: .88rem;
	font-weight: 600;
	color: var(--fm-ink, #141414);
}

.author-box-social { margin: 0 0 10px; }
.author-linkedin {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	font-size: .85rem;
	font-weight: 700;
	color: #fff;
	background: #0a66c2;
	border-radius: 999px;
	transition: background .15s, transform .15s;
}
.author-linkedin:hover { background: #084d92; color: #fff; text-decoration: none; transform: translateY(-1px); }

@media (max-width: 640px) {
	.author-box { flex-direction: column; gap: 16px; padding: 20px; }
}

/* ==========================================================================
   SOMMAIRE DES ARTICLES
   ========================================================================== */
.fm-toc {
	background: #fff;
	border: 1px solid var(--fm-border);
	border-radius: 14px;
	padding: 18px 22px 16px;
	margin: 0 0 2rem;
	box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
}
.fm-toc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.fm-toc-title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--fm-font-headings);
	font-size: 1rem;
	font-weight: 800;
	color: #111827;
	letter-spacing: .01em;
}
.fm-toc-title svg { color: var(--fm-red); flex-shrink: 0; }
.fm-toc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 4px 2px;
	font-family: inherit;
	font-size: .8rem;
	font-weight: 700;
	color: var(--fm-muted);
	cursor: pointer;
}
.fm-toc-toggle:hover { color: var(--fm-red); }
.fm-toc-toggle svg { transition: transform .25s ease; }
.fm-toc.is-collapsed .fm-toc-toggle svg { transform: rotate(-90deg); }
.fm-toc-list {
	list-style: none;
	counter-reset: fm-toc;
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	gap: 2px;
}
.fm-toc.is-collapsed .fm-toc-list { display: none; }
.fm-toc-list > li {
	counter-increment: fm-toc;
	display: block;
}
.fm-toc-list > li > a {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 7px 10px;
	border-radius: 8px;
	font-size: .92rem;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.4;
	transition: background .15s ease, color .15s ease;
}
.fm-toc-list > li > a::before {
	content: counter(fm-toc, decimal-leading-zero);
	flex-shrink: 0;
	font-size: .76rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--fm-red);
}
.fm-toc-list > li > a:hover { background: #f6f7f9; color: var(--fm-red); text-decoration: none; }
.fm-toc-list a.is-active { background: #fdf2f3; color: var(--fm-red); }
.fm-toc-sub {
	list-style: none;
	margin: 2px 0 4px;
	padding: 0 0 0 34px;
	display: grid;
	gap: 1px;
}
.fm-toc-sub a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 5px 10px;
	border-radius: 8px;
	font-size: .86rem;
	font-weight: 500;
	color: #4b5563;
	line-height: 1.4;
	transition: background .15s ease, color .15s ease;
}
.fm-toc-sub a::before {
	content: "";
	flex-shrink: 0;
	width: 12px;
	height: 2px;
	background: #d1d5db;
	border-radius: 1px;
	position: relative;
	top: -4px;
}
.fm-toc-sub a:hover { background: #f6f7f9; color: var(--fm-red); text-decoration: none; }
.fm-toc-sub a.is-active { background: #fdf2f3; color: var(--fm-red); }
.content-typo h2, .content-typo h3 { scroll-margin-top: 132px; }
@media (max-width: 640px) {
	.fm-toc { padding: 14px 16px 12px; border-radius: 12px; }
	.content-typo h2, .content-typo h3 { scroll-margin-top: 118px; }
}
