/* =============================================================================
   Mon Équipe Marketing — main.css v2
   Sobre · papier crème · accent rouge brique · Fraunces + DM Sans
   ============================================================================= */

/* ---------- Tokens ------------------------------------------------------- */
:root {
	/* Surfaces — papier chaud */
	--mem-bg: #F5F1E8;
	--mem-bg-2: #EFEADC;
	--mem-surface: #FBF8F1;
	--mem-border: #E1D9C5;
	--mem-border-strong: #C9BFA5;

	/* Texte */
	--mem-text: #1F1D18;
	--mem-text-soft: #5A554B;
	--mem-text-muted: #8C8678;

	/* Accent unique */
	--mem-red: #8C2A2A;
	--mem-red-deep: #6B1F1F;

	/* Typo */
	--mem-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
	--mem-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--mem-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

	/* Layout */
	--mem-container: 1180px;
	--mem-container-narrow: 720px;
	--mem-radius: 2px;

	/* Motion */
	--mem-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--mem-bg);
	color: var(--mem-text);
	font-family: var(--mem-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--mem-text);
	text-decoration: none;
	transition: color 0.2s var(--mem-ease);
}
a:hover { color: var(--mem-red); }

::selection { background: var(--mem-red); color: var(--mem-bg); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus {
	left: 1rem; top: 1rem;
	background: var(--mem-text); color: var(--mem-bg);
	padding: 0.5rem 1rem;
}

/* ---------- Typography --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mem-serif);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: var(--mem-text);
	margin: 0 0 0.5em;
	font-variation-settings: 'opsz' 144;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; }

.kicker {
	font-family: var(--mem-mono);
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--mem-red);
	display: inline-block;
}

blockquote {
	border-left: 2px solid var(--mem-red);
	padding: 0.4em 0 0.4em 1.4em;
	margin: 1.8em 0;
	font-family: var(--mem-serif);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--mem-text);
	font-variation-settings: 'opsz' 144;
}

code, pre { font-family: var(--mem-mono); font-size: 0.92em; }
code { background: var(--mem-bg-2); padding: 0.12em 0.4em; border-radius: var(--mem-radius); color: var(--mem-red-deep); }
pre {
	background: var(--mem-surface);
	border: 1px solid var(--mem-border);
	padding: 1.1rem;
	overflow-x: auto;
}

/* ---------- Layout helpers ---------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--mem-container);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.container-narrow {
	max-width: var(--mem-container-narrow);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

@media (min-width: 768px) {
	.section { padding: 5rem 0; }
}

/* ---------- Buttons (rares, sobres) ------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--mem-sans);
	font-size: 0.92rem;
	font-weight: 500;
	padding: 0.7em 1.3em;
	border: 1px solid var(--mem-text);
	background: transparent;
	color: var(--mem-text);
	cursor: pointer;
	transition: all 0.2s var(--mem-ease);
	text-decoration: none;
	line-height: 1;
}

.btn:hover {
	background: var(--mem-text);
	color: var(--mem-bg);
}

.btn-primary {
	background: var(--mem-text);
	color: var(--mem-bg);
}
.btn-primary:hover {
	background: var(--mem-red);
	border-color: var(--mem-red);
	color: var(--mem-bg);
}

/* ---------- Header (minuscule, sans CTA) -------------------------------- */
.site-header {
	border-bottom: 1px solid var(--mem-border);
	background: var(--mem-bg);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.25rem 1.5rem;
	max-width: var(--mem-container);
	margin: 0 auto;
}

.site-brand {
	font-family: var(--mem-serif);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--mem-text);
	letter-spacing: -0.01em;
	font-variation-settings: 'opsz' 144;
}
.site-brand:hover { color: var(--mem-red); }
.site-brand img { max-height: 36px; width: auto; }

.site-nav { display: none; }
.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.75rem;
	align-items: center;
}
.site-nav a {
	font-family: var(--mem-sans);
	font-size: 0.9rem;
	color: var(--mem-text-soft);
	font-weight: 500;
}
.site-nav a:hover { color: var(--mem-red); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: var(--mem-red);
}

@media (min-width: 760px) { .site-nav { display: block; } }

.menu-toggle {
	background: transparent;
	border: 1px solid var(--mem-border-strong);
	color: var(--mem-text);
	width: 40px; height: 40px;
	border-radius: var(--mem-radius);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
@media (min-width: 760px) { .menu-toggle { display: none; } }

.mobile-menu {
	display: none;
	border-top: 1px solid var(--mem-border);
	padding: 1.25rem 1.5rem;
	background: var(--mem-bg-2);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { padding: 0.4rem 0; }
.mobile-menu a { font-size: 1rem; color: var(--mem-text); }

/* ---------- Intro band (court, sobre) ----------------------------------- */
.intro {
	padding: 2.5rem 0 1.5rem;
	border-bottom: 1px solid var(--mem-border);
}
.intro-kicker {
	font-family: var(--mem-mono);
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--mem-red);
	margin-bottom: 0.75rem;
}
.intro h1 {
	font-size: clamp(1.6rem, 2.8vw, 2.1rem);
	max-width: 26ch;
	margin: 0 0 0.5rem;
	letter-spacing: -0.015em;
	line-height: 1.2;
}
.intro p {
	max-width: 60ch;
	color: var(--mem-text-soft);
	margin: 0;
	font-size: 1rem;
}

/* ---------- 6-article grid (le coeur de la home) ------------------------ */
.posts {
	padding: 3rem 0;
	border-bottom: 1px solid var(--mem-border);
}

.posts-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}
.posts-heading h2 {
	font-size: clamp(1.3rem, 2vw, 1.6rem);
	margin: 0;
}
.posts-heading .all-link {
	font-family: var(--mem-mono);
	font-size: 0.75rem;
	color: var(--mem-red);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.posts-heading .all-link:hover { color: var(--mem-red-deep); text-decoration: underline; }

.cards {
	display: grid;
	gap: 2.5rem 2rem;
	grid-template-columns: 1fr;
}
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
	display: flex;
	flex-direction: column;
}

.card-image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--mem-bg-2);
	border: 1px solid var(--mem-border);
	margin-bottom: 1rem;
}
.card-image img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--mem-ease);
}
.card:hover .card-image img { transform: scale(1.02); }

.card-image-placeholder {
	width: 100%; height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mem-bg-2);
	font-family: var(--mem-serif);
	font-size: 2.5rem;
	color: var(--mem-border-strong);
	font-style: italic;
	font-variation-settings: 'opsz' 144;
}

.card-cat {
	font-family: var(--mem-mono);
	font-size: 0.68rem;
	color: var(--mem-red);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: 0.5rem;
	display: inline-block;
	font-weight: 500;
}

.card-title {
	font-family: var(--mem-serif);
	font-size: 1.2rem;
	line-height: 1.25;
	margin: 0 0 0.5rem;
	font-weight: 600;
	font-variation-settings: 'opsz' 144;
}
.card-title a { color: var(--mem-text); }
.card-title a:hover { color: var(--mem-red); }

.card-excerpt {
	color: var(--mem-text-soft);
	font-size: 0.92rem;
	line-height: 1.55;
	margin-bottom: 0.85rem;
}

.card-meta {
	margin-top: auto;
	font-family: var(--mem-mono);
	font-size: 0.7rem;
	color: var(--mem-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ---------- Newsletter (sobre) ------------------------------------------ */
.newsletter {
	padding: 4rem 0;
	background: var(--mem-bg-2);
	border-bottom: 1px solid var(--mem-border);
}

.newsletter-inner {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	padding: 0 1.5rem;
}

.newsletter h2 {
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	margin-bottom: 0.75rem;
}

.newsletter p {
	color: var(--mem-text-soft);
	max-width: 50ch;
	margin: 0 auto 1.75rem;
	font-size: 0.98rem;
}

.newsletter-form {
	display: flex;
	gap: 0.5rem;
	max-width: 460px;
	margin: 0 auto;
	flex-direction: column;
}
@media (min-width: 540px) { .newsletter-form { flex-direction: row; } }

.newsletter-form input[type="email"] {
	flex: 1;
	padding: 0.85em 1em;
	background: var(--mem-bg);
	border: 1px solid var(--mem-border-strong);
	border-radius: var(--mem-radius);
	color: var(--mem-text);
	font-family: var(--mem-sans);
	font-size: 0.95rem;
	transition: border-color 0.2s var(--mem-ease);
}
.newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: var(--mem-red);
}
.newsletter-form input[type="email"]::placeholder { color: var(--mem-text-muted); }

.newsletter-fineprint {
	font-size: 0.75rem;
	color: var(--mem-text-muted);
	margin-top: 1rem;
	font-family: var(--mem-mono);
	letter-spacing: 0.04em;
}

/* ---------- Topics (categories strip) ----------------------------------- */
.topics {
	padding: 3.5rem 0;
	border-bottom: 1px solid var(--mem-border);
}
.topics-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin-top: 2rem;
}
@media (min-width: 640px) { .topics-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .topics-grid { grid-template-columns: 1fr 1fr 1fr; } }

.topic {
	display: block;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--mem-border);
	background: var(--mem-surface);
	transition: all 0.2s var(--mem-ease);
}
.topic:hover {
	border-color: var(--mem-red);
	background: var(--mem-bg);
}
.topic-num {
	font-family: var(--mem-mono);
	font-size: 0.7rem;
	color: var(--mem-red);
	letter-spacing: 0.14em;
	font-weight: 500;
}
.topic-name {
	font-family: var(--mem-serif);
	font-size: 1.2rem;
	margin: 0.4rem 0;
	color: var(--mem-text);
	font-variation-settings: 'opsz' 144;
	font-weight: 600;
}
.topic:hover .topic-name { color: var(--mem-red); }
.topic-desc { color: var(--mem-text-soft); font-size: 0.88rem; margin: 0; }

/* ---------- Single post ------------------------------------------------- */
.entry-header {
	padding: 3rem 0 2rem;
	border-bottom: 1px solid var(--mem-border);
	margin-bottom: 2.5rem;
}
.entry-meta-top {
	font-family: var(--mem-mono);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mem-red);
	margin-bottom: 1rem;
	font-weight: 500;
}
.entry-title {
	font-size: clamp(1.9rem, 4vw, 3rem);
	max-width: 22ch;
	letter-spacing: -0.018em;
	line-height: 1.15;
	margin-bottom: 0.75rem;
}
.entry-subtitle {
	font-family: var(--mem-serif);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	font-style: italic;
	font-weight: 400;
	color: var(--mem-text-soft);
	max-width: 56ch;
	margin-bottom: 1.5rem;
	font-variation-settings: 'opsz' 144;
}
.entry-meta {
	display: flex;
	gap: 1.25rem;
	font-family: var(--mem-mono);
	font-size: 0.72rem;
	color: var(--mem-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	flex-wrap: wrap;
}
.entry-meta strong { color: var(--mem-text); font-weight: 500; }

.entry-thumbnail {
	margin: 0 0 2.5rem;
	border: 1px solid var(--mem-border);
}

.entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--mem-text);
}
.entry-content > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 2.2em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.8em; font-size: 1.3rem; }
.entry-content a { color: var(--mem-red); border-bottom: 1px solid rgba(140, 42, 42, 0.3); }
.entry-content a:hover { color: var(--mem-red-deep); border-color: var(--mem-red-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img,
.entry-content .wp-block-image,
.entry-content .alignwide,
.entry-content .alignfull {
	max-width: 1000px;
	margin: 2.2em auto;
}
.entry-content .alignfull { max-width: 100%; }

.entry-footer {
	max-width: 680px;
	margin: 3rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mem-border);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-family: var(--mem-mono);
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--mem-text-muted);
}
.entry-footer a { color: var(--mem-red); }

/* ---------- Pagination -------------------------------------------------- */
.pagination {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	padding: 3rem 0;
	flex-wrap: wrap;
}
.pagination a, .pagination span {
	font-family: var(--mem-mono);
	min-width: 38px;
	height: 38px;
	padding: 0 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--mem-border-strong);
	background: var(--mem-surface);
	font-size: 0.82rem;
	color: var(--mem-text);
	transition: all 0.2s var(--mem-ease);
}
.pagination a:hover { border-color: var(--mem-red); color: var(--mem-red); }
.pagination .current { background: var(--mem-text); color: var(--mem-bg); border-color: var(--mem-text); }

/* ---------- Comments ---------------------------------------------------- */
.comments {
	max-width: 680px;
	margin: 3rem auto 0;
	padding-top: 2.5rem;
	border-top: 1px solid var(--mem-border);
}
.comments h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.comment-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--mem-border); }
.comment-author { font-weight: 500; color: var(--mem-text); }
.comment-meta { font-family: var(--mem-mono); font-size: 0.72rem; color: var(--mem-text-muted); margin-bottom: 0.4rem; }

.comment-form { display: grid; gap: 0.85rem; }
.comment-form input,
.comment-form textarea {
	padding: 0.75em 0.9em;
	background: var(--mem-surface);
	border: 1px solid var(--mem-border-strong);
	color: var(--mem-text);
	font-family: var(--mem-sans);
	font-size: 0.95rem;
}
.comment-form textarea { resize: vertical; min-height: 130px; }

/* ---------- Search & 404 ------------------------------------------------ */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 460px;
}
.search-form input[type="search"] {
	flex: 1;
	padding: 0.75em 0.9em;
	background: var(--mem-surface);
	border: 1px solid var(--mem-border-strong);
	color: var(--mem-text);
	font-family: var(--mem-sans);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--mem-red); }
.search-form button {
	padding: 0.75em 1.3em;
	background: var(--mem-text);
	color: var(--mem-bg);
	border: none;
	font-family: var(--mem-sans);
	font-weight: 500;
	cursor: pointer;
}

.error-404 { text-align: center; padding: 6rem 0; }
.error-404 .big { font-family: var(--mem-serif); font-size: 8rem; line-height: 1; color: var(--mem-red); margin: 0; font-variation-settings: 'opsz' 144; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
	background: var(--mem-bg);
	border-top: 1px solid var(--mem-border);
	padding: 4rem 0 1.5rem;
	color: var(--mem-text-soft);
	font-size: 0.92rem;
}

.footer-grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
	margin-bottom: 3rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}
.footer-brand p { color: var(--mem-text-muted); max-width: 36ch; font-size: 0.9rem; }

.site-footer .widget-title,
.site-footer h4 {
	font-family: var(--mem-mono);
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--mem-red);
	margin-bottom: 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--mem-text-soft); font-size: 0.9rem; }
.site-footer a:hover { color: var(--mem-red); }

.footer-bottom {
	padding-top: 1.5rem;
	border-top: 1px solid var(--mem-border);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-family: var(--mem-mono);
	font-size: 0.72rem;
	color: var(--mem-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ---------- WordPress alignments / utility ------------------------------ */
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.85rem; color: var(--mem-text-muted); text-align: center; margin-top: 0.5em; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
}

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
