/* Actualités et partenariats : styles autonomes, sans Divi Builder.
   Même langage visuel que la page des newsletters de Lisa Cez. */

#main-content.chact,
.chact-embed {
	--chact-ink: #0e1015;
	--chact-red: #e20512;
	--chact-red-dark: #b8040e;
	--chact-paper: #f4f1ec;
	--chact-grey: #ededed;
	--chact-text: #3d3f44;
	--chact-muted: #b5b5b5;
	--chact-line: rgba(255, 255, 255, .12);
	--chact-title: "Bovino", "Bitter", Georgia, serif;
	--chact-body: "Montserrat", Helvetica, Arial, sans-serif;
	--chact-radius: 14px;

	background: var(--chact-paper);
	color: var(--chact-text);
	font-family: var(--chact-body);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: clip;
}
/* Divi rend #main-content transparent sur les pages construites avec son éditeur. */
#main-content.chact { background-color: var(--chact-paper) !important; }

/* Intégration par code court : pas de fond ni de marges de page. */
.chact-embed { background: transparent !important; padding: 0; overflow: visible; }
.chact .chact-embed__more { margin-top: 28px; text-align: center; }
.chact-embed__more .chact-btn { align-self: center; }

/* Remise à zéro des styles génériques de Divi dans notre périmètre. */
.chact h1, .chact h2, .chact h3, .chact p, .chact ul, .chact li, .chact figure {
	margin: 0;
	padding: 0;
}
.chact ul { list-style: none; }
.chact a { color: inherit; text-decoration: none; }
.chact img { display: block; max-width: 100%; height: auto; }

.chact-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.chact-wrap--text { width: min(760px, 100% - 40px); }

/* ---------- Boutons et liens ---------- */
.chact .chact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 13px 24px;
	border: 2px solid var(--chact-red);
	border-radius: 999px;
	background: var(--chact-red);
	color: #fff;
	font-family: var(--chact-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	transition: background .2s, border-color .2s, transform .2s;
}
.chact .chact-btn:hover,
.chact a:hover > * > .chact-btn,
.chact a:hover > .chact-btn { background: var(--chact-red-dark); border-color: var(--chact-red-dark); }
.chact a:focus-visible { outline: 3px solid var(--chact-red); outline-offset: 3px; }
.chact .chact-link { font-weight: 700; color: var(--chact-ink); border-bottom: 2px solid var(--chact-red); padding-bottom: 2px; }
.chact .chact-link:hover { color: var(--chact-red); }

/* ---------- En-tête ---------- */
.chact-hero {
	position: relative;
	background:
		radial-gradient(circle at 85% 20%, rgba(226, 5, 18, .22), transparent 45%),
		var(--chact-ink);
	color: #fff;
	padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
}
.chact-hero--photo {
	background:
		linear-gradient(90deg, rgba(14, 16, 21, .96) 0%, rgba(14, 16, 21, .82) 45%, rgba(14, 16, 21, .45) 100%),
		var(--chact-hero-img) center / cover no-repeat,
		var(--chact-ink);
}
.chact-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(32px, 6vw, 72px);
	align-items: center;
}
.chact .chact-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--chact-red);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.chact .chact-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.chact .chact-hero__title {
	font-family: var(--chact-title);
	font-weight: 700;
	font-size: clamp(38px, 5.6vw, 72px);
	line-height: 1.04;
	color: #fff;
	max-width: 16ch;
}
.chact .chact-hero__title span { display: block; color: var(--chact-red); }
.chact .chact-hero__title--article { font-size: clamp(30px, 4.2vw, 50px); max-width: none; }
.chact .chact-hero__lead { margin-top: 22px; max-width: 56ch; color: #cfd0d3; font-size: clamp(16px, 1.4vw, 18px); }

.chact-switch {
	display: inline-flex;
	gap: 4px;
	margin-top: 32px;
	padding: 4px;
	border: 1px solid var(--chact-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
}
.chact-switch a {
	padding: 9px 20px;
	border-radius: 999px;
	color: #cfd0d3 !important;
	font-size: 14px;
	font-weight: 700;
	transition: background .2s, color .2s;
}
.chact-switch a:hover { color: #fff !important; }
.chact-switch a.is-active { background: #fff; color: var(--chact-ink) !important; }

/* Mosaïque de photos (page partenariats) */
.chact-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	aspect-ratio: 5 / 4;
}
.chact-mosaic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--chact-radius);
	box-shadow: 0 20px 44px rgba(0, 0, 0, .4);
}
.chact-mosaic img:first-child { grid-row: span 2; }

.chact-hero--article { padding: 40px 0 120px; }
.chact-crumbs { margin-bottom: 22px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.chact-crumbs a { color: var(--chact-red) !important; }
.chact .chact-article__date { margin-top: 16px; color: var(--chact-muted); font-size: 15px; }

/* ---------- À la une ---------- */
.chact-feature { margin-top: -56px; position: relative; }
.chact-feature__card {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	background: #fff;
	border-radius: calc(var(--chact-radius) + 6px);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(14, 16, 21, .12);
	transition: box-shadow .3s, transform .3s;
}
.chact-feature__card:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(14, 16, 21, .18); }
.chact-feature__media { position: relative; min-height: 340px; overflow: hidden; }
.chact-feature__media .chact-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.chact-feature__card:hover .chact-img { transform: scale(1.03); }
.chact-feature__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 4vw, 52px); }
.chact .chact-badge {
	align-self: flex-start;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(226, 5, 18, .09);
	color: var(--chact-red);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.chact-feature__date { font-size: 14px; color: #7a7c81; }
.chact-feature__title { font-family: var(--chact-title); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; color: var(--chact-ink); }
.chact-feature__excerpt { font-size: 16px; }
.chact-feature__body .chact-btn { margin-top: 8px; }

/* ---------- Listes d'articles ---------- */
.chact-list { padding: clamp(56px, 7vw, 96px) 0; }
.chact-section-head { max-width: 640px; margin-bottom: 40px; }
.chact .chact-section-head p { margin-top: 12px; }
.chact .chact-h2 { font-family: var(--chact-title); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; color: var(--chact-ink); }
.chact .chact-h2 span { color: var(--chact-red); }

.chact-year + .chact-year { margin-top: clamp(40px, 5vw, 64px); }
.chact .chact-year__title {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 22px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--chact-ink);
	font-family: var(--chact-title);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.1;
	color: var(--chact-ink);
}
.chact .chact-year__title span { font-family: var(--chact-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8c91; }

.chact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 32px); }
.chact-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--chact-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 26px rgba(14, 16, 21, .07);
	transition: transform .3s, box-shadow .3s;
}
.chact-card__link:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 22px 44px rgba(14, 16, 21, .16); }
.chact-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.chact-card__media .chact-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.chact-card__link:hover .chact-img { transform: scale(1.05); }
.chact-img--empty { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, #262a33, var(--chact-ink)); }
.chact-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.chact-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: #7a7c81; }
.chact-meta__tag { color: var(--chact-red); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.chact-card__title { font-family: var(--chact-title); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--chact-ink); }
.chact-card__excerpt {
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.chact-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--chact-ink); }
.chact-card__link:hover .chact-card__more { color: var(--chact-red); }

.chact .chact-empty { padding: 28px; border: 2px dashed #cfcac2; border-radius: var(--chact-radius); text-align: center; color: #6b6d72; }

/* ---------- Partenaires ---------- */
.chact-partners { margin-top: -56px; position: relative; }
.chact-partners__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: start; }
.chact-partner {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: calc(var(--chact-radius) + 6px);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(14, 16, 21, .12);
}
.chact-partner__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.chact-partner__media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.chact-partner--ffpep .chact-partner__media { aspect-ratio: 16 / 10; }
.chact-partner__logo {
	position: absolute;
	right: 18px;
	bottom: 18px;
	width: 74px;
	border-radius: 10px;
	background: #fff;
	padding: 4px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.chact-partner__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 34px); }
.chact .chact-partner__kind { color: var(--chact-red); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.chact .chact-partner__name { font-family: var(--chact-title); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--chact-ink); }
.chact-values { display: flex; flex-wrap: wrap; gap: 8px; }
.chact .chact-values li { padding: 5px 12px; border-radius: 999px; background: var(--chact-grey); color: var(--chact-ink); font-size: 13px; font-weight: 600; }
.chact-partner .chact-link { align-self: flex-start; margin-top: 4px; }

/* Mise en avant des newsletters de Lisa Cez */
.chact-nl {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 26px;
	align-items: center;
	margin: 0 clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px);
	padding: 26px 28px;
	border-radius: var(--chact-radius);
	background:
		radial-gradient(circle at 100% 0%, rgba(226, 5, 18, .35), transparent 55%),
		var(--chact-ink);
	color: #fff;
	transition: transform .3s;
}
.chact-nl:hover { transform: translateY(-3px); }
.chact-nl__covers { position: relative; height: 150px; }
.chact-nl__covers img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 108px;
	height: 108px;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
	transition: transform .35s ease;
}
.chact-nl__covers img:nth-child(1) { z-index: 3; transform: translate(-50%, -50%) rotate(-3deg); }
.chact-nl__covers img:nth-child(2) { z-index: 2; transform: translate(-95%, -46%) rotate(-12deg); }
.chact-nl__covers img:nth-child(3) { z-index: 1; transform: translate(-5%, -46%) rotate(9deg); }
.chact-nl:hover .chact-nl__covers img:nth-child(2) { transform: translate(-108%, -50%) rotate(-15deg); }
.chact-nl:hover .chact-nl__covers img:nth-child(3) { transform: translate(8%, -50%) rotate(12deg); }
.chact-nl__text { display: flex; flex-direction: column; gap: 8px; }
.chact-nl__kicker { color: var(--chact-red); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.chact .chact-nl__title { color: #fff; font-family: var(--chact-title); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.chact-nl__meta { color: #cfd0d3; font-size: 14px; }
.chact-nl__text .chact-btn { margin-top: 6px; }
.chact-nl--inline { margin: 48px 0 0; }

/* ---------- Article ---------- */
.chact .chact-article__visual { width: min(1000px, 100% - 40px); margin: -88px auto 0; position: relative; }
.chact-article__visual .chact-img { width: 100%; max-height: 640px; object-fit: cover; border-radius: calc(var(--chact-radius) + 4px); box-shadow: 0 26px 60px rgba(14, 16, 21, .2); }
.chact-prose { padding: clamp(36px, 5vw, 56px) 0 0; font-size: 18px; line-height: 1.75; color: #2f3136; }
.chact .chact-prose > * + * { margin-top: 1.1em; }
.chact .chact-prose__lead { font-size: 21px; line-height: 1.6; color: var(--chact-ink); font-weight: 500; }
.chact .chact-prose h2,
.chact .chact-prose h3 { font-family: var(--chact-title); font-weight: 700; color: var(--chact-ink); line-height: 1.2; margin-top: 1.6em; }
.chact .chact-prose h2 { font-size: 30px; }
.chact .chact-prose h3 { font-size: 24px; }
.chact .chact-prose ul { display: grid; gap: .5em; }
.chact .chact-prose li { position: relative; padding-left: 24px; }
.chact .chact-prose li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 2px; background: var(--chact-red); }
.chact .chact-prose a { color: var(--chact-red); text-decoration: underline; text-underline-offset: 3px; }
.chact .chact-prose blockquote { margin: 1.6em 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--chact-red); font-family: var(--chact-title); font-size: 22px; line-height: 1.45; color: var(--chact-ink); }
.chact .chact-prose img { border-radius: var(--chact-radius); }
.chact-article__back { padding: 40px 0 0; }
.chact-list--related { padding-top: clamp(48px, 6vw, 72px); }
.chact-list--related .chact-h2 { margin-bottom: 30px; }

/* ---------- Bandeau final ---------- */
.chact-band { background: var(--chact-ink); color: #fff; padding: 48px 0; }
.chact-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.chact .chact-band p { font-family: var(--chact-title); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; max-width: 32ch; color: #fff; }
.chact-band .chact-btn { align-self: center; }

/* ---------- Tablettes ---------- */
@media (max-width: 980px) {
	.chact-hero__grid { grid-template-columns: 1fr; }
	.chact-mosaic { max-width: 560px; }
	.chact-feature__card { grid-template-columns: 1fr; }
	.chact-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
	.chact-grid { grid-template-columns: repeat(2, 1fr); }
	.chact-partners__grid { grid-template-columns: 1fr; }
}

/* ---------- Téléphones ---------- */
@media (max-width: 720px) {
	.chact-wrap, .chact-wrap--text { width: calc(100% - 32px); }
	.chact-feature, .chact-partners { margin-top: -40px; }
	.chact-grid { grid-template-columns: 1fr; }
	.chact-switch { display: flex; width: 100%; }
	.chact-switch a { flex: 1; text-align: center; }
	.chact-nl { grid-template-columns: 1fr; gap: 14px; padding: 22px; text-align: left; }
	.chact-nl__covers { height: 130px; }
	.chact-nl .chact-btn { align-self: stretch; }
	.chact .chact-article__visual { width: calc(100% - 32px); margin-top: -96px; }
	.chact-prose { font-size: 17px; }
	.chact .chact-prose__lead { font-size: 19px; }
	.chact-band .chact-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.chact * { transition: none !important; }
}

/* ---------- Vidéo et galerie des articles ---------- */
.chact .chact-video { margin: 1.6em 0 0; }
.chact-video video { display: block; width: 100%; border-radius: var(--chact-radius); background: #000; box-shadow: 0 18px 40px rgba(14, 16, 21, .18); }
.chact-video--vertical video { width: min(100%, 400px); margin-inline: auto; }

.chact-gallery { padding-top: clamp(40px, 5vw, 64px); }
.chact-gallery .chact-h2 { margin-bottom: 24px; }
.chact-gallery__grid { columns: 3; column-gap: 12px; }
.chact .chact-gallery__grid li { break-inside: avoid; margin-bottom: 12px; }
.chact-gallery__item { display: block; overflow: hidden; border-radius: 10px; background: #ddd; }
.chact-gallery__item img { width: 100%; height: auto; transition: transform .5s; }
.chact-gallery__item:hover img { transform: scale(1.05); }

.chact-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 12, .94); }
.chact-lightbox::backdrop { background: rgba(8, 9, 12, .94); }
.chact-lightbox img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; border-radius: 6px; }
.chact-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 34px; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.chact-lightbox button:hover { background: var(--chact-red, #e20512); }
.chact-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.chact-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.chact-lightbox__close { right: 16px; top: 16px; font-size: 30px; }

@media (max-width: 720px) {
	.chact-gallery__grid { columns: 2; column-gap: 8px; }
	.chact .chact-gallery__grid li { margin-bottom: 8px; }
	.chact-lightbox img { max-width: calc(100vw - 24px); }
	.chact-lightbox__prev, .chact-lightbox__next { top: auto; bottom: 20px; transform: none; }
}
