/*
 * La page « Presse » (/presse), version premium.
 *
 * Chargée par includes/presse-page.php, sur cette page seulement, avec un
 * numéro de version tiré de la date du fichier. Balisage : gabarit-presse.php.
 * Toutes les règles sont préfixées .cjp4 : rien ne déborde sur le reste du site.
 * Les !important répondent aux règles nues du thème (titres, listes, liens).
 */

.cjp4 {
	--v: #8f15ff;
	--vf: #6a0fd1;
	--vc: #c79bff;
	--nuit: #120824;
	--encre: #17121f;
	--gris: #5b5466;
	--filet: #e6dcf7;
	--lilas: #f7f2ff;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--r: 16px;
	color: var(--encre);
	background: #fff;
	overflow-x: clip;
}
.cjp4 *, .cjp4 *::before, .cjp4 *::after { box-sizing: border-box; }
.cjp4 ul, .cjp4 li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.cjp4 li::before, .cjp4 li::marker { content: none !important; }
.cjp4 h1, .cjp4 h2, .cjp4 h3 { text-transform: none !important; text-align: left !important; }
.cjp4 h1::before, .cjp4 h1::after, .cjp4 h2::after, .cjp4 h3::before, .cjp4 h3::after { content: none !important; }
.cjp4 a:focus-visible { outline: 3px solid var(--v); outline-offset: 3px; border-radius: 6px; }
.cjp4-in { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------- Bandeau du haut ----------
   Fond violet profond qui bouge très lentement (20 s), grain papier journal,
   reflet discret, titre en fondu-glissé, trois compteurs, bande des médias.
   La parallaxe (souris et défilement, 10 px au plus) passe par --cjp4-px et
   --cjp4-py, posées par js/presse.js. Rien ne clignote ; tout s'arrête si le
   visiteur demande moins d'animations. */
.cjp4-bandeau {
	--cjp4-px: 0px;
	--cjp4-py: 0px;
	--or: #f2d48a;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 40px 0 0;
	background: #1a0838;
	color: #fff;
	border-bottom: 1px solid rgba(199, 155, 255, .22);
}
.cjp4-bandeau-fond, .cjp4-bandeau-grain, .cjp4-bandeau-reflet { position: absolute; pointer-events: none; z-index: -1; }
.cjp4-bandeau-fond {
	inset: -20px;
	background:
		radial-gradient(50% 80% at 12% 10%, rgba(143, 21, 255, .55) 0%, rgba(143, 21, 255, 0) 70%),
		radial-gradient(45% 70% at 90% 85%, rgba(181, 107, 255, .32) 0%, rgba(181, 107, 255, 0) 70%),
		linear-gradient(120deg, #120824 0%, #2a0a52 35%, #4a0b8f 55%, #2a0a52 75%, #120824 100%);
	background-size: 140% 140%, 140% 140%, 220% 220%;
	animation: cjp4-fond 20s ease-in-out infinite alternate;
	transform: translate3d(var(--cjp4-px), var(--cjp4-py), 0);
}
@keyframes cjp4-fond {
	from { background-position: 0% 0%, 100% 100%, 0% 50%; }
	to { background-position: 30% 20%, 70% 80%, 100% 50%; }
}
.cjp4-bandeau-grain {
	inset: 0;
	opacity: .16;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
	background-size: 160px 160px;
}
.cjp4-bandeau-reflet {
	top: -40%; bottom: -40%; left: 48%; width: 38%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .035) 40%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .035) 60%, rgba(255, 255, 255, 0) 100%);
	filter: blur(12px);
	transform: translate3d(calc(var(--cjp4-px) * -1), 0, 0) rotate(8deg);
}
.cjp4-bandeau-in { position: relative; }

.cjp4 .cjp4-bandeau .cjp4-fil { margin: 0 0 22px !important; font-size: 13px !important; color: rgba(255, 255, 255, .62) !important; }
.cjp4 .cjp4-bandeau .cjp4-fil a { color: #fff !important; text-decoration: none !important; font-weight: 600; }
.cjp4 .cjp4-bandeau .cjp4-fil a:hover { text-decoration: underline !important; }
.cjp4 .cjp4-sur {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 12px !important;
	font-size: 12px !important; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
	color: var(--vc) !important;
}
.cjp4 .cjp4-sur::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--or); }
.cjp4 .cjp4-h1 {
	margin: 0 0 16px !important; padding: 0 !important;
	font-size: clamp(36px, 6vw, 76px) !important; line-height: 1 !important;
	font-weight: 900 !important; letter-spacing: -.035em;
	color: #fff !important;
	text-shadow: 0 10px 40px rgba(18, 8, 36, .45);
}
.cjp4 .cjp4-h1 em {
	display: inline-block; padding-right: .06em;
	font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em;
	background: linear-gradient(100deg, #f7e7b5 0%, var(--or) 35%, #d4a94e 65%, #f7e7b5 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	text-shadow: none;
}
.cjp4 .cjp4-intro { margin: 0 !important; max-width: 54ch; font-size: 17px !important; line-height: 1.55 !important; color: rgba(255, 255, 255, .8) !important; }

.cjp4 .cjp4-compteurs { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 28px 0 0 !important; }
.cjp4-compteur { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cjp4 .cjp4-compteur + .cjp4-compteur { padding-left: 32px !important; margin-left: 32px !important; border-left: 1px solid rgba(255, 255, 255, .16); }
.cjp4-compteur-nb {
	font-size: clamp(30px, 3.6vw, 44px); line-height: 1; font-weight: 900; letter-spacing: -.03em;
	font-variant-numeric: tabular-nums; color: #fff;
}
.cjp4-compteur-lib { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }

.cjp4 .cjp4-bandeau-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 30px 0 0 !important; }
.cjp4 a.cjp4-voir {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
	border-radius: 999px; background: #fff; color: #4a0b8f !important;
	font-size: 15px !important; font-weight: 800; text-decoration: none !important;
	box-shadow: 0 14px 34px -14px rgba(143, 21, 255, .9);
	transition: transform .25s ease, box-shadow .25s ease;
}
.cjp4 a.cjp4-voir span { transition: transform .25s ease; }
.cjp4 a.cjp4-voir:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(199, 155, 255, .95); }
.cjp4 a.cjp4-voir:hover span { transform: translateY(2px); }
.cjp4 .cjp4-bandeau a:focus-visible { outline-color: var(--or); }
.cjp4-verifie { font-size: 13px; color: rgba(255, 255, 255, .58); }

.cjp4-ancres { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 24px 0 0; }
.cjp4 .cjp4-ancres a {
	position: relative; padding: 4px 0;
	font-size: 14px !important; font-weight: 700; color: rgba(255, 255, 255, .86) !important; text-decoration: none !important;
}
.cjp4 .cjp4-ancres a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
	background: var(--or); transform: scaleX(.25); transform-origin: left; transition: transform .25s ease;
}
.cjp4 .cjp4-ancres a:hover { color: #fff !important; }
.cjp4 .cjp4-ancres a:hover::after { transform: scaleX(1); }

/* Bande défilante des médias : deux copies côte à côte, la piste glisse de la moitié. */
.cjp4-defile {
	position: relative;
	margin-top: 34px;
	padding: 15px 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	background: rgba(18, 8, 36, .28);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.cjp4-defile-piste { display: flex; width: max-content; animation: cjp4-defile 70s linear infinite; }
.cjp4-defile:hover .cjp4-defile-piste, .cjp4-defile:focus-within .cjp4-defile-piste { animation-play-state: paused; }
@keyframes cjp4-defile { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.cjp4 .cjp4-defile-liste { display: flex; flex: none; align-items: center; }
.cjp4 .cjp4-defile-media {
	display: flex; align-items: center; flex: none;
	padding: 0 26px !important;
	font-family: var(--serif); font-size: 17px; font-weight: 600; font-variant-caps: all-small-caps; letter-spacing: .09em; white-space: nowrap;
	color: rgba(255, 255, 255, .62);
	transition: color .25s ease;
}
.cjp4 .cjp4-defile-media::after { content: "" !important; width: 5px; height: 5px; margin-left: 52px; border-radius: 50%; background: rgba(242, 212, 138, .5); }
.cjp4 .cjp4-defile-media:hover { color: rgba(255, 255, 255, .92); }
/* Logo posé par js/presse.js seulement s'il est à fond transparent : le filtre le rend blanc, sans bloc autour. */
.cjp4 .cjp4-defile-media img { display: block; height: 22px !important; width: auto !important; max-width: 140px; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; filter: brightness(0) invert(1); opacity: .7; transition: opacity .25s ease; }
.cjp4 .cjp4-defile-media:hover img { opacity: .95; }
.cjp4 .cjp4-defile-media.cjp4-logo-ok .cjp4-defile-nom { display: none; }

/* Apparition au chargement : fondu-glissé, une fois. */
.cjp4-entre { animation: cjp4-entre .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--e, 0) * 110ms + 80ms); }
@keyframes cjp4-entre { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Titres de section ---------- */
.cjp4 .cjp4-h2 {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 8px !important; padding: 0 !important;
	font-size: clamp(21px, 2.2vw, 27px) !important; line-height: 1.2 !important;
	font-weight: 800 !important; letter-spacing: -.015em;
	color: var(--encre) !important;
}
.cjp4 .cjp4-h2::before { content: "" !important; flex: none; width: 26px; height: 3px; border-radius: 3px; background: var(--v); }
.cjp4 .cjp4-h2-clair { color: #fff !important; }
.cjp4 .cjp4-h2-clair::before { background: var(--vc); }
.cjp4 .cjp4-h3 {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 12px !important; padding: 0 0 10px !important;
	border-bottom: 1px solid var(--filet);
	font-size: 12.5px !important; line-height: 1.2 !important; font-weight: 800 !important;
	letter-spacing: .14em; text-transform: uppercase !important;
	color: var(--vf) !important;
}
.cjp4 .cjp4-chapeau { margin: 0 0 18px !important; font-size: 15px !important; line-height: 1.55 !important; color: var(--gris) !important; }

/* ---------- À la une ---------- */
.cjp4-une {
	position: relative;
	padding: 30px 0 32px;
	background:
		radial-gradient(60% 120% at 0% 0%, rgba(143, 21, 255, .45) 0%, rgba(143, 21, 255, 0) 65%),
		radial-gradient(50% 120% at 100% 100%, rgba(181, 107, 255, .28) 0%, rgba(181, 107, 255, 0) 65%),
		linear-gradient(180deg, #1b0b3a 0%, var(--nuit) 100%);
	color: #fff;
}
.cjp4-une-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px !important; }
.cjp4-une-carte {
	display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center;
	padding: 12px !important;
	border: 1px solid rgba(199, 155, 255, .28); border-radius: var(--r);
	background: rgba(255, 255, 255, .05);
	transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cjp4-une-carte:hover {
	border-color: rgba(199, 155, 255, .7); background: rgba(143, 21, 255, .14);
	transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(143, 21, 255, .9);
}
.cjp4-une-image { display: block; border-radius: 12px; overflow: hidden; }
.cjp4-picto { display: block; width: 100%; height: auto; }
.cjp4-une-texte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cjp4-une .cjp4-art-media { color: var(--vc); }
.cjp4-une .cjp4-art-tete time { color: #cfc3e6; }
.cjp4-une-titre {
	font-size: 15px; line-height: 1.3; font-weight: 700; color: #fff;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.cjp4 a.cjp4-une-lire { align-self: flex-start; font-size: 13.5px !important; font-weight: 800; color: #fff !important; text-decoration: none !important; border-bottom: 2px solid var(--v); padding-bottom: 1px; }
.cjp4 a.cjp4-une-lire:hover { border-color: var(--vc); }

/* ---------- Corps : trois colonnes ---------- */
.cjp4-corps-page {
	padding: 36px 0 60px;
	background: linear-gradient(180deg, var(--lilas) 0%, #fff 420px);
	scroll-margin-top: 110px;
}
.cjp4-grille {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 300px);
	grid-template-areas: "gauche centre droite";
	gap: 28px;
	align-items: start;
}
.cjp4-gauche { grid-area: gauche; }
.cjp4-droite { grid-area: droite; }
.cjp4-centre { grid-area: centre; min-width: 0; }
.cjp4-col { min-width: 0; }
/* Une seule piste bornée : sans elle, la description sur une ligne (nowrap)
   élargissait la colonne et les cartes passaient sous les couvertures. */
.cjp4-arts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cjp4-art, .cjp4-art-in, .cjp4-couv, .cjp4-une-carte, .cjp4-autres li, .cjp4-liens li { min-width: 0; max-width: 100%; }

/* Carte d'article compacte */
.cjp4-art-in {
	position: relative;
	display: flex; flex-direction: column; gap: 5px;
	height: 100%; padding: 13px 14px 12px;
	border: 1px solid var(--filet); border-radius: 14px; background: #fff;
	transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.cjp4-art-in::before {
	content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
	background: var(--v); opacity: 0; transition: opacity .22s ease;
}
.cjp4-art-in:hover { border-color: #d3b8fb; box-shadow: 0 14px 30px -20px rgba(106, 15, 209, .55); transform: translateY(-2px); }
.cjp4-art-in:hover::before { opacity: 1; }
.cjp4 .cjp4-art-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 0 !important; }
.cjp4-art-media { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vf); min-width: 0; overflow-wrap: anywhere; }
.cjp4-art-tete time { font-size: 12px; color: #7a7288; white-space: nowrap; }
.cjp4 .cjp4-art-titre {
	margin: 0 !important; padding: 0 !important;
	font-size: 14.5px !important; line-height: 1.32 !important; font-weight: 700 !important; letter-spacing: 0;
	color: var(--encre) !important;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.cjp4 .cjp4-art-desc {
	margin: 0 !important; font-size: 13px !important; line-height: 1.45 !important; color: var(--gris) !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cjp4 a.cjp4-art-lire {
	align-self: flex-start; margin-top: 3px;
	font-size: 13px !important; font-weight: 800; color: var(--vf) !important; text-decoration: none !important;
}
.cjp4 a.cjp4-art-lire::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.cjp4 a.cjp4-art-lire:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.cjp4-art-etat { display: inline-block; align-self: flex-start; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: #f1e8ff; color: var(--vf); font-size: 11.5px; font-weight: 700; }

/* ---------- Centre ---------- */
.cjp4-bloc { margin: 0 0 34px; }
.cjp4-bloc:last-child { margin-bottom: 0; }

/* Couvertures */
.cjp4-couvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.cjp4-couv { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cjp4-couv-papier {
	position: relative;
	display: flex; flex-direction: column;
	aspect-ratio: 3 / 4; margin-bottom: 8px; padding: 12px 12px 10px;
	border-radius: 6px 10px 10px 6px; overflow: hidden;
	background: linear-gradient(160deg, #2a0a52 0%, #5b10b4 55%, #8f15ff 100%);
	color: #fff;
	box-shadow: -4px 0 0 rgba(0, 0, 0, .18) inset, 0 18px 34px -20px rgba(42, 10, 82, .75);
	transition: transform .3s ease, box-shadow .3s ease;
}
.cjp4-couv-papier::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 60%);
	transform: translateX(-120%); transition: transform .7s ease; pointer-events: none;
}
.cjp4-couv:hover .cjp4-couv-papier { transform: translateY(-4px) rotate(-.6deg); box-shadow: -4px 0 0 rgba(0, 0, 0, .18) inset, 0 26px 40px -20px rgba(106, 15, 209, .8); }
.cjp4-couv:hover .cjp4-couv-papier::after { transform: translateX(120%); }
.cjp4-couv-papier img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.cjp4-couv-haut { min-height: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.cjp4-couv-titre {
	margin-top: 4px;
	font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.04; font-weight: 700; letter-spacing: -.01em;
	overflow-wrap: anywhere;
}
.cjp4-couv-motif { width: 58%; height: auto; margin: auto auto 6px; color: rgba(255, 255, 255, .92); }
.cjp4-couv-bas { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: 9.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
/* Quatre déclinaisons de la même charte : violet, blanc, noir, lilas. */
.cjp4-couv-1 .cjp4-couv-papier { background: linear-gradient(165deg, #fff 0%, #f1e8ff 100%); color: var(--encre); box-shadow: -4px 0 0 rgba(106, 15, 209, .12) inset, 0 0 0 1px var(--filet), 0 18px 34px -22px rgba(42, 10, 82, .55); }
.cjp4-couv-1 .cjp4-couv-motif { color: var(--v); }
.cjp4-couv-1 .cjp4-couv-bas { border-color: rgba(106, 15, 209, .25); color: var(--vf); }
.cjp4-couv-2 .cjp4-couv-papier { background: linear-gradient(160deg, #17121f 0%, #241634 60%, #3b1670 100%); }
.cjp4-couv-2 .cjp4-couv-motif { color: var(--vc); }
.cjp4-couv-3 .cjp4-couv-papier { background: linear-gradient(160deg, #c79bff 0%, #a35cff 50%, #6a0fd1 100%); }
.cjp4-couv-nom { font-size: 14px; font-weight: 800; line-height: 1.25; color: var(--encre); overflow-wrap: anywhere; }
.cjp4-couv-meta { font-size: 12.5px; line-height: 1.4; color: var(--gris); }
.cjp4 a.cjp4-couv-lien { align-self: flex-start; margin-top: 2px; font-size: 12.5px !important; font-weight: 800; color: var(--vf) !important; text-decoration: none !important; }
.cjp4 a.cjp4-couv-lien:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* Autres mentions */
.cjp4-autres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cjp4-autres li { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px !important; border: 1px solid var(--filet); border-radius: 14px; background: #fff; }
.cjp4-autres b { font-size: 15px; color: var(--encre); }
.cjp4-autres-note { font-size: 13.5px; line-height: 1.45; color: var(--gris); }
.cjp4 .cjp4-autres a { align-self: flex-start; font-size: 13px !important; font-weight: 800; color: var(--vf) !important; text-decoration: none !important; }

/* Contact presse */
.cjp4-contact {
	padding: 24px 24px 22px;
	border-radius: 20px;
	background:
		radial-gradient(80% 120% at 100% 0%, rgba(199, 155, 255, .35) 0%, rgba(199, 155, 255, 0) 60%),
		linear-gradient(150deg, var(--nuit) 0%, #2a0a52 55%, #5b10b4 100%);
	color: #fff;
	scroll-margin-top: 110px;
}
.cjp4 .cjp4-contact p { margin: 0 0 14px !important; font-size: 15px !important; line-height: 1.55 !important; color: #efe6ff !important; }
.cjp4 .cjp4-contact .cjp4-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 !important; }
.cjp4 a.cjp4-bouton {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
	border-radius: 999px; background: #fff; color: #4a0b8f !important;
	font-size: 14.5px !important; font-weight: 800; text-decoration: none !important;
	transition: box-shadow .25s ease, transform .25s ease;
}
.cjp4 a.cjp4-bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(199, 155, 255, .9); }
.cjp4 a.cjp4-tel { font-size: 15px !important; font-weight: 800; color: #fff !important; text-decoration: none !important; white-space: nowrap; }

/* Prestations */
.cjp4-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cjp4 .cjp4-liens a {
	display: block; height: 100%; padding: 14px 16px;
	border: 1px solid var(--filet); border-radius: 14px; background: #fff;
	color: var(--encre) !important; text-decoration: none !important;
	transition: border-color .22s ease, box-shadow .22s ease;
}
.cjp4 .cjp4-liens a:hover { border-color: #d3b8fb; box-shadow: 0 12px 26px -20px rgba(106, 15, 209, .6); }
.cjp4-liens b { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--vf); }
.cjp4-liens span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--gris); }

/* ---------- Animations (seulement si le script tourne) ---------- */
.cjp4-js .cjp4-anim { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 70ms); }
.cjp4-js .cjp4-anim.cjp4-vu, .cjp4-js.cjp4-tout-vu .cjp4-anim { opacity: 1; transform: none; }
.cjp4-p-flotte { animation: cjp4-flotte 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cjp4-une-carte:nth-child(2) .cjp4-p-flotte { animation-delay: -2s; }
.cjp4-une-carte:nth-child(3) .cjp4-p-flotte { animation-delay: -4s; }
@keyframes cjp4-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
	.cjp4 *, .cjp4 *::before, .cjp4 *::after { animation: none !important; transition: none !important; }
	.cjp4-js .cjp4-anim { opacity: 1; transform: none; }
	.cjp4-une-carte:hover, .cjp4-art-in:hover, .cjp4-couv:hover .cjp4-couv-papier, .cjp4 a.cjp4-bouton:hover, .cjp4 a.cjp4-voir:hover { transform: none; }
	.cjp4-bandeau-fond, .cjp4-bandeau-reflet { transform: none !important; }
	/* Bande des médias immobile : une seule copie, qu'on peut faire glisser au doigt. */
	.cjp4-defile { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.cjp4-defile-liste[aria-hidden="true"] { display: none !important; }
}

/* ---------- Tablette : contenu central en haut, deux colonnes d'articles ---------- */
@media (max-width: 1179px) {
	.cjp4-grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas: "gauche droite" "centre centre";
		gap: 24px;
	}
	.cjp4-centre { margin-top: 12px; }
	.cjp4-couvs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cjp4-liens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cjp4-une-liste { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.cjp4-une-carte { grid-template-columns: 150px minmax(0, 1fr); }
}

/* ---------- Téléphone : une seule colonne ---------- */
@media (max-width: 719px) {
	.cjp4-in { padding: 0 16px; }
	.cjp4-bandeau { padding: 24px 0 0; }
	.cjp4 .cjp4-bandeau .cjp4-fil { margin-bottom: 14px !important; }
	.cjp4 .cjp4-h1 { font-size: clamp(32px, 10vw, 44px) !important; }
	.cjp4 .cjp4-intro { font-size: 15.5px !important; }
	.cjp4 .cjp4-compteurs { margin-top: 20px !important; justify-content: space-between; flex-wrap: nowrap; }
	.cjp4-compteur { flex: 1 1 0; }
	.cjp4 .cjp4-compteur + .cjp4-compteur { padding-left: 14px !important; margin-left: 14px !important; }
	.cjp4-compteur-nb { font-size: 28px; }
	.cjp4-compteur-lib { font-size: 10.5px; letter-spacing: .08em; }
	.cjp4 .cjp4-bandeau-actions { margin-top: 22px !important; }
	.cjp4 a.cjp4-voir { width: 100%; justify-content: center; }
	.cjp4-ancres { gap: 4px 16px; margin-top: 16px; }
	.cjp4 .cjp4-ancres a { font-size: 13.5px !important; }
	.cjp4-defile { margin-top: 24px; padding: 11px 0; }
	.cjp4 .cjp4-defile-media { padding: 0 16px !important; font-size: 15px; }
	.cjp4 .cjp4-defile-media img { height: 18px !important; max-width: 110px; }
	.cjp4 .cjp4-defile-media::after { margin-left: 32px; }
	.cjp4-une { padding: 24px 0 26px; }
	.cjp4-une-carte { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px !important; }
	.cjp4-une-titre { font-size: 14px; }
	.cjp4-corps-page { padding: 26px 0 44px; }
	.cjp4-grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gauche" "droite" "centre"; gap: 22px; }
	.cjp4-couvs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
	.cjp4-couv-titre { font-size: 18px; }
	.cjp4-liens { grid-template-columns: minmax(0, 1fr); }
	.cjp4-contact { padding: 20px 18px; }
	.cjp4 .cjp4-art-desc { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}
