/*
 * CRYOFAST PLUNGE — Blog (archive + single).
 *
 * Hérite des tokens CSS du thème (--navy, --cream, --bsand, --taupe,
 * --warm-gray, --charcoal, --sand2, --stone) déjà définis dans
 * assets/css/base.css. Reproduit pixel-perfect docs/cryofast_blog.html
 * pour l'archive. Le single suit la même charte sans maquette dédiée.
 *
 * Snazzy Digital Agency.
 */

/* ── HERO ───────────────────────────────────────────────────── */
.cf-blog-page .page-hero {
	min-height: 46vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
	padding-top: 62px;
	background: var(--near-black);
}
.cf-blog-page .page-hero .ph-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.cf-blog-page .page-hero .ph-bg img,
.cf-blog-page .page-hero .ph-bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	opacity: .45;
	display: block;
}
.cf-blog-page .page-hero .ph-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26,24,21,.92) 0%, rgba(26,24,21,.25) 60%, transparent 100%);
}
.cf-blog-page .page-hero .ph-content {
	position: relative;
	z-index: 2;
	padding: 0 72px 40px;
	max-width: 640px;
}
.cf-blog-page .page-hero .ph-tag {
	font-size: 10px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.cf-blog-page .page-hero .ph-tag::before {
	content: '';
	width: 14px;
	height: 1px;
	background: rgba(255,255,255,.35);
}
.cf-blog-page .page-hero .ph-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(38px, 4.5vw, 64px);
	font-weight: 300;
	color: #fff;
	line-height: 1;
	letter-spacing: -.5px;
	margin-bottom: 12px;
}
.cf-blog-page .page-hero .ph-title em {
	font-style: italic;
}
.cf-blog-page .page-hero .ph-sub {
	font-size: 14px;
	color: rgba(255,255,255,.55);
	line-height: 1.7;
	font-weight: 300;
	max-width: 480px;
}

/* ── LISTE / SECTION CONTENEUR ──────────────────────────────── */
.cf-blog-list {
	padding: 56px 52px;
}

/* ── PILLS CATÉGORIES ───────────────────────────────────────── */
.cf-blog-page .cat-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 20px 0 0;
}
.cf-blog-page .cat-pill {
	padding: 7px 16px;
	border-radius: 20px;
	border: 1px solid var(--bsand);
	font-size: 11px;
	font-weight: 600;
	color: var(--warm-gray);
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
	background: #fff;
	text-decoration: none;
	font-family: 'Outfit', sans-serif;
	user-select: none;
	white-space: nowrap;
}
.cf-blog-page .cat-pill:hover,
.cf-blog-page .cat-pill.on {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}

/* ── FEATURED ARTICLE ───────────────────────────────────────── */
.cf-blog-page .featured-article-link {
	display: block;
	color: inherit;
	text-decoration: none;
	margin-top: 24px;
}
.cf-blog-page .featured-article {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--bsand);
	background: #fff;
	transition: box-shadow .2s, border-color .2s;
}
.cf-blog-page .featured-article-link:hover .featured-article {
	box-shadow: 0 10px 30px rgba(44,42,39,.08);
	border-color: var(--taupe);
}
.cf-blog-page .fa-img {
	position: relative;
	min-height: 320px;
	overflow: hidden;
	background: var(--sand2);
}
.cf-blog-page .fa-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cf-blog-page .fa-img-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--stone), var(--sand2, #E2DBD1));
}
.cf-blog-page .fa-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--navy);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 3px;
	z-index: 2;
}
.cf-blog-page .fa-content {
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cf-blog-page .fa-cat {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--navy);
	margin-bottom: 10px;
}
.cf-blog-page .fa-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 28px;
	font-weight: 400;
	color: var(--charcoal);
	line-height: 1.15;
	margin: 0 0 12px;
}
.cf-blog-page .fa-excerpt {
	font-size: 13px;
	color: var(--warm-gray);
	line-height: 1.7;
	margin: 0 0 16px;
}
.cf-blog-page .fa-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	color: var(--taupe);
}

/* ── GRILLE D'ARTICLES ──────────────────────────────────────── */
.cf-blog-page .articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 24px;
}
.cf-blog-page .article-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.cf-blog-page .article-card-link[data-cf-blog-card][hidden] {
	display: none;
}
.cf-blog-page .article-card {
	background: #fff;
	border: 1px solid var(--bsand);
	border-radius: 7px;
	overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
	height: 100%;
}
.cf-blog-page .article-card-link:hover .article-card {
	box-shadow: 0 6px 20px rgba(44,42,39,.08);
	border-color: var(--taupe);
}
.cf-blog-page .ac-img {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--sand2);
}
.cf-blog-page .ac-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cf-blog-page .ac-img-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--stone), var(--sand2, #E2DBD1));
}
.cf-blog-page .ac-cat-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(26,24,21,.7);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 3px;
}
.cf-blog-page .ac-body {
	padding: 16px;
}
.cf-blog-page .ac-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--charcoal);
	line-height: 1.35;
	margin-bottom: 8px;
}
.cf-blog-page .ac-excerpt {
	font-size: 11px;
	color: var(--warm-gray);
	line-height: 1.6;
	margin-bottom: 10px;
}
.cf-blog-page .ac-meta {
	font-size: 10px;
	color: var(--taupe);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.cf-blog-pagination {
	display: flex;
	gap: 4px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 32px;
}
.cf-blog-page-item .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--bsand);
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--charcoal);
	background: #fff;
	text-decoration: none;
	transition: background .15s, color .15s, border-color .15s;
}
.cf-blog-page-item .page-numbers:hover,
.cf-blog-page-item .page-numbers.current {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}
.cf-blog-page-item .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.cf-blog-empty {
	margin-top: 24px;
	font-size: 13px;
	color: var(--warm-gray);
}

/* ── TÉMOIGNAGES ────────────────────────────────────────────── */
.cf-blog-testi-section {
	padding: 56px 52px;
}
.cf-blog-page .testi-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 24px;
}
.cf-blog-page .testi {
	background: #fff;
	border: 1px solid var(--bsand);
	border-radius: 7px;
	padding: 22px;
	position: relative;
}
.cf-blog-page .testi-quote {
	font-family: 'Cormorant Garamond', serif;
	font-size: 32px;
	color: var(--bsand);
	line-height: 1;
	margin-bottom: 8px;
}
.cf-blog-page .testi-text {
	font-size: 12px;
	color: var(--charcoal);
	line-height: 1.7;
	font-style: italic;
	margin-bottom: 14px;
}
.cf-blog-page .testi-author {
	display: flex;
	align-items: center;
	gap: 10px;
}
.cf-blog-page .testi-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sand2, #E2DBD1);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--navy);
	flex-shrink: 0;
}
.cf-blog-page .testi-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--charcoal);
}
.cf-blog-page .testi-role {
	font-size: 10px;
	color: var(--taupe);
}
.cf-blog-page .testi-cat {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--taupe);
}

/* ── NEWSLETTER ─────────────────────────────────────────────── */
.cf-blog-newsletter-section {
	padding: 28px 52px 56px;
}
.cf-blog-page .newsletter-band {
	background: var(--charcoal);
	border-radius: 8px;
	padding: 36px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
	margin-top: 24px;
}
.cf-blog-page .nl-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 24px;
	font-weight: 400;
	color: #fff;
	margin-bottom: 6px;
	line-height: 1.2;
}
.cf-blog-page .nl-text {
	font-size: 12px;
	color: rgba(247,244,240,.55);
	line-height: 1.6;
}
.cf-blog-page .nl-form {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
	align-items: flex-start;
	flex-wrap: wrap;
	margin: 0;
	position: relative;
}
.cf-blog-page .nl-input {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 5px;
	padding: 11px 14px;
	color: #fff;
	font-size: 13px;
	font-family: 'Outfit', sans-serif;
	outline: none;
	min-width: 220px;
}
.cf-blog-page .nl-input::placeholder {
	color: rgba(255,255,255,.35);
}
.cf-blog-page .nl-btn {
	background: var(--navy);
	color: #fff;
	padding: 11px 22px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	font-family: 'Outfit', sans-serif;
	white-space: nowrap;
	transition: background .15s, opacity .15s;
}
.cf-blog-page .nl-btn[disabled] {
	opacity: .6;
	cursor: progress;
}
/* Honeypot caché */
.cf-blog-nl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
/* Flash newsletter */
.cf-blog-nl-flash {
	flex-basis: 100%;
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 5px;
	margin-top: 4px;
}
.cf-blog-nl-flash.is-ok {
	background: rgba(27,63,114,.18);
	color: #BFD3F0;
}
.cf-blog-nl-flash.is-err {
	background: rgba(176,42,42,.18);
	color: #F0BFBF;
}

/* ── RESPONSIVE archive ─────────────────────────────────────── */
@media (max-width: 900px) {
	.cf-blog-page .page-hero .ph-content {
		padding-left: 20px;
		padding-right: 20px;
	}
	.cf-blog-page .page-hero .ph-title {
		font-size: 32px;
	}
	.cf-blog-list,
	.cf-blog-testi-section,
	.cf-blog-newsletter-section {
		padding: 36px 20px;
	}
	.cf-blog-page .featured-article {
		grid-template-columns: 1fr;
	}
	.cf-blog-page .fa-img {
		min-height: 240px;
	}
	.cf-blog-page .articles-grid {
		grid-template-columns: 1fr 1fr;
	}
	.cf-blog-page .testi-grid {
		grid-template-columns: 1fr;
	}
	.cf-blog-page .newsletter-band {
		flex-direction: column;
		align-items: flex-start;
		padding: 28px 24px;
	}
	.cf-blog-page .nl-form {
		width: 100%;
	}
	.cf-blog-page .nl-input {
		flex: 1;
		min-width: 0;
	}
}
@media (max-width: 480px) {
	.cf-blog-page .articles-grid {
		grid-template-columns: 1fr;
	}
}

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */
/*
 * Le header du thème est position:fixed top:0 sur --header-height (62px)
 * avec z-index 500. Le single article offsette via padding-top sur le
 * <main>, en lisant la même variable que le thème pour rester aligné si
 * le client change la hauteur du header un jour.
 *
 * IMPORTANT : aucun <header> à l'intérieur du contenu de l'article — le
 * thème cible le tag <header> nu en position:fixed, donc un <header>
 * imbriqué viendrait recouvrir le vrai menu. On utilise <div> partout
 * dans le single.
 */
.cf-blog-single {
	background: var(--cream);
	padding-top: var(--header-height, 62px);
}

/* Bandeau supérieur : « ← Retour au blog ». */
.cf-single-topband {
	background: var(--cream);
	border-bottom: 1px solid var(--bsand);
	padding-top: 28px;
	padding-bottom: 14px;
	position: relative;
	z-index: 1;
}
.cf-single-topband-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}
.cf-single-bc-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--taupe);
	text-decoration: none;
	transition: color .15s;
	font-weight: 600;
}
.cf-single-bc-link:hover {
	color: var(--charcoal);
}

/* En-tête article : pile vertical centré, padding généreux. */
.cf-blog-page .cf-single-header {
	background: var(--cream);
	padding: 48px 24px 32px;
	margin: 0;
}
.cf-single-header-inner {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.cf-single-header-inner > * {
	margin: 0;
}
.cf-single-header-inner > * + * {
	margin-top: 18px;
}
.cf-blog-page .cf-single-cat {
	display: inline-block;
	background: var(--navy);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 3px;
	text-decoration: none;
	transition: background .15s;
	line-height: 1.4;
}
.cf-blog-page .cf-single-cat:hover {
	background: var(--navy-d, #152E55);
}
.cf-blog-page .cf-single-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 400;
	color: var(--charcoal);
	line-height: 1.08;
	letter-spacing: -.5px;
	max-width: 720px;
}
.cf-blog-page .cf-single-title em {
	font-style: italic;
}
.cf-blog-page .cf-single-excerpt {
	font-size: 15px;
	color: var(--warm-gray);
	line-height: 1.7;
	font-weight: 300;
	max-width: 600px;
}
.cf-blog-page .cf-single-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 11px;
	color: var(--taupe);
	flex-wrap: wrap;
	letter-spacing: .3px;
}
.cf-single-meta-sep {
	opacity: .6;
}

.cf-single-cover {
	max-width: 1100px;
	margin: 16px auto 40px;
	padding: 0 24px;
}
.cf-single-cover-img,
.cf-single-cover img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
	max-height: 540px;
	object-fit: cover;
}
.cf-single-cover-caption {
	margin-top: 8px;
	font-size: 11px;
	color: var(--taupe);
	text-align: center;
}

.cf-single-body {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 24px 56px;
}
.cf-single-content {
	font-size: 16px;
	line-height: 1.85;
	color: var(--charcoal);
}
.cf-single-content > * + * {
	margin-top: 18px;
}
.cf-single-content p {
	margin: 0;
}
.cf-single-content h2 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.15;
	margin-top: 38px;
	margin-bottom: 8px;
	color: var(--charcoal);
	letter-spacing: -.3px;
}
.cf-single-content h2 em {
	font-style: italic;
}
.cf-single-content h3 {
	font-family: 'Outfit', sans-serif;
	font-size: 18px;
	font-weight: 700;
	margin-top: 28px;
	margin-bottom: 6px;
	color: var(--charcoal);
	letter-spacing: -.2px;
}
.cf-single-content h4 {
	font-size: 15px;
	font-weight: 700;
	margin-top: 22px;
	margin-bottom: 4px;
	color: var(--charcoal);
	text-transform: uppercase;
	letter-spacing: 1px;
}
.cf-single-content a {
	color: var(--navy);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.cf-single-content a:hover {
	color: var(--navy-d, #152E55);
}
.cf-single-content ul,
.cf-single-content ol {
	padding-left: 22px;
	margin: 0;
}
.cf-single-content li {
	margin-bottom: 6px;
}
.cf-single-content blockquote {
	border-left: 3px solid var(--navy);
	padding: 6px 0 6px 22px;
	margin: 28px 0;
	font-family: 'Cormorant Garamond', serif;
	font-size: 22px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.45;
	color: var(--charcoal);
}
.cf-single-content blockquote p {
	margin: 0;
}
.cf-single-content blockquote cite {
	display: block;
	font-family: 'Outfit', sans-serif;
	font-style: normal;
	font-size: 12px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--taupe);
	margin-top: 10px;
}
.cf-single-content img,
.cf-single-content figure img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}
.cf-single-content figure {
	margin: 28px 0;
}
.cf-single-content figcaption {
	font-size: 11px;
	color: var(--taupe);
	text-align: center;
	margin-top: 6px;
}
.cf-single-content code {
	background: var(--stone);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 13px;
}
.cf-single-content pre {
	background: var(--stone);
	padding: 16px 18px;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.6;
}
.cf-single-content hr {
	border: none;
	border-top: 1px solid var(--bsand);
	margin: 32px auto;
	max-width: 80px;
}

.cf-single-pagelinks {
	margin-top: 28px;
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	color: var(--taupe);
}
.cf-single-pagelinks a {
	color: var(--navy);
	text-decoration: none;
	padding: 4px 10px;
	border: 1px solid var(--bsand);
	border-radius: 4px;
	transition: background .15s, color .15s;
}
.cf-single-pagelinks a:hover {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}

.cf-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 38px;
	padding-top: 18px;
	border-top: 1px solid var(--bsand);
}
.cf-single-tag {
	font-size: 11px;
	color: var(--warm-gray);
	background: var(--stone);
	border-radius: 18px;
	padding: 6px 14px;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.cf-single-tag:hover {
	background: var(--navy);
	color: #fff;
}

.cf-single-related {
	padding: 56px 52px;
}
.cf-single-related .articles-grid {
	margin-top: 18px;
}

@media (max-width: 900px) {
	.cf-single-topband {
		padding-top: 70px;
	}
	.cf-single-topband-inner {
		padding: 0 20px;
	}
	.cf-blog-page .cf-single-header {
		padding: 32px 20px 24px;
	}
	.cf-blog-page .cf-single-title {
		font-size: 30px;
	}
	.cf-single-content {
		font-size: 15px;
		line-height: 1.78;
	}
	.cf-single-content h2 {
		font-size: 24px;
	}
	.cf-single-related {
		padding: 36px 20px;
	}
	.cf-single-cover {
		padding: 0 20px;
		margin: 12px auto 28px;
	}
}
