/* =========================================================
   Colouring Sheets — page styles
   Les titres héritent des familles déjà utilisées sur le site
   (Sour Gummy / Londrina Solid / Oswald) — aucune nouvelle
   police n'est chargée pour rester cohérent avec les autres pages.
   ========================================================= */

.cs-page {
	--pf-purple: #4A2A82;
	--pf-purple-deep: #3A1F6B;
	--pf-purple-soft: #E8E1F4;
	--pf-bg: #F4F1FA;
	--pf-orange: #F39200;
	--pf-orange-dark: #C26F00;
	--pf-red: #E63946;
	--pf-yellow: #FFD43B;
	--pf-green: #56A752;
	--pf-text: #3A1F6B;

	background: var(--pf-bg);
	color: var(--pf-text);
	-webkit-font-smoothing: antialiased;
	font-family: "Oswald", sans-serif;
	overflow-x: hidden;
	overflow-x: clip;
}
.cs-section,
.cs-how-section {
	overflow-x: hidden;
	overflow-x: clip;
}
.cs-page *,
.cs-page *::before,
.cs-page *::after { box-sizing: border-box; }

.cs-page h1,
.cs-page h2,
.cs-page h3,
.cs-page h4 {
	/* On conserve la même typo "titre" que sur les autres pages du site. */
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	color: var(--pf-purple);
	margin: 0;
	letter-spacing: -0.01em;
	line-height: 1.05;
}
.cs-page h2 { font-weight: 800; }
.cs-page a { color: inherit; }

/* ============ HERO ============ */
.cs-hero {
	position: relative;
	background: linear-gradient(180deg, #6B3FB5 0%, #8B52C4 32%, #B373CC 62%, #E5A8CE 92%, #F0BCD4 100%);
	color: #fff;
	overflow: hidden;
	padding: 96px 28px 160px;
	min-height: 640px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cs-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 12% 22%, #fff 1.4px, transparent 2px),
		radial-gradient(circle at 88% 18%, #fff 1.6px, transparent 2px),
		radial-gradient(circle at 22% 78%, #fff 1.2px, transparent 2px),
		radial-gradient(circle at 78% 72%, #fff 1.8px, transparent 2px),
		radial-gradient(circle at 50% 42%, #fff 1.2px, transparent 2px),
		radial-gradient(circle at 8% 50%,  #fff 1.0px, transparent 2px),
		radial-gradient(circle at 95% 50%, #fff 1.0px, transparent 2px);
	opacity: .55;
	pointer-events: none;
}
.cs-hero-inner {
	max-width: 1100px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.cs-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,.14);
	border: 2px dashed rgba(255,255,255,.5);
	color: #fff;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 24px;
}
.cs-hero-eyebrow .cs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pf-orange); }
.cs-hero-title {
	color: #fff !important;
	font-family: 'Baloo', sans-serif !important;
	font-size: clamp(34px, 4.8vw, 60px);
	line-height: 1;
	max-width: 860px;
	margin: 0 auto;
	text-wrap: balance;
	text-shadow: 0 4px 0 rgba(0,0,0,.12);
	position: relative;
	z-index: 4;
}
/* Surcharge la règle globale `h1, h2 em` du thème (custom.scss) qui force du 12px. */
.cs-page .cs-hero-title em,
.cs-page h1.cs-hero-title em,
.cs-page h2.cs-hero-title em {
	color: var(--pf-yellow) !important;
	font-style: normal !important;
	display: inline !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-family: inherit !important;
	margin: 0 !important;
	letter-spacing: inherit !important;
	line-height: inherit !important;
}
.cs-hero-title p { margin: 0; }
.cs-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 34px;
	background: var(--pf-orange);
	color: #fff !important;
	text-decoration: none;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	font-size: 18px;
	padding: 16px 30px;
	border-radius: 999px;
	box-shadow: 0 6px 0 var(--pf-orange-dark), 0 12px 24px rgba(0,0,0,.15);
	transition: transform .15s ease, box-shadow .15s ease;
}
.cs-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--pf-orange-dark), 0 14px 28px rgba(0,0,0,.18); }
.cs-hero-cta:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--pf-orange-dark), 0 6px 12px rgba(0,0,0,.12); }

/* floating decor */
.cs-hero-decor { position: absolute; pointer-events: none; user-select: none; }
.cs-decor-rocket {
	top: 70px; left: 5%; width: 130px;
	animation: csRocketFly 6s ease-in-out infinite;
	filter: drop-shadow(0 10px 18px rgba(60,12,80,.22));
}
.cs-decor-planet {
	top: 90px; right: 6%; width: 140px;
	animation: csPlanetSpin 9s ease-in-out infinite;
	filter: drop-shadow(0 12px 22px rgba(0,0,0,.18));
}

/* Bridge decor between sections */
.cs-bridge-decor { position: absolute; pointer-events: none; user-select: none; z-index: 10; }
.cs-bridge-strawberries {
	top: -220px; right: 5%; width: 260px;
	animation: csBobLong 5.5s ease-in-out infinite;
	filter: drop-shadow(0 22px 28px rgba(60,12,80,.3));
}
.cs-bridge-orange {
	top: -110px; left: 6%; width: 170px;
	animation: csTumble 7s ease-in-out infinite;
	filter: drop-shadow(0 14px 22px rgba(60,12,80,.26));
}

@media (max-width: 1100px) {
	.cs-decor-rocket { width: 100px; left: 3%; }
	.cs-decor-planet { width: 110px; right: 3%; }
	.cs-bridge-strawberries { width: 200px; top: -170px; right: 3%; }
	.cs-bridge-orange { width: 130px; top: -80px; left: 3%; }
}
@media (max-width: 780px) {
	.cs-decor-rocket { width: 74px; top: 40px; }
	.cs-decor-planet { width: 84px; top: 60px; }
	.cs-bridge-strawberries { width: 150px; top: -120px; right: -10px; }
	.cs-bridge-orange { width: 100px; top: -60px; }
}
@media (max-width: 560px) {
	.cs-decor-rocket,
	.cs-decor-planet { display: none; }
	.cs-bridge-strawberries { width: 110px; top: -90px; }
	.cs-bridge-orange { width: 80px; top: -50px; }

	.cs-hero {
		padding: 20px 28px 80px;
		min-height: 500px;
	}
	.cs-hero-title {
		font-size: clamp(27px, 4.8vw, 60px);
	}

	.cs-hero-eyebrow .cs-eyebrow-text {
		display: flex;
		flex-direction: column;
		text-align: center;
		line-height: 1.25;
	}
	.cs-hero-eyebrow .cs-eyebrow-sep { display: none; }
}

@keyframes csRocketFly {
	0%,100% { transform: translateY(0) rotate(-18deg); }
	50%     { transform: translateY(-22px) rotate(-12deg); }
}
@keyframes csPlanetSpin {
	0%,100% { transform: translateY(0) rotate(8deg); }
	50%     { transform: translateY(14px) rotate(-6deg); }
}
@keyframes csBobLong {
	0%,100% { transform: translateY(0) rotate(-4deg); }
	50%     { transform: translateY(-18px) rotate(3deg); }
}
@keyframes csTumble {
	0%   { transform: rotate(-12deg) translateY(0); }
	35%  { transform: rotate(8deg) translateY(-10px); }
	65%  { transform: rotate(-6deg) translateY(-2px); }
	100% { transform: rotate(-12deg) translateY(0); }
}
@keyframes csTwinkle {
	0%,100% { opacity: .55; transform: scale(1); }
	50%     { opacity: 1;   transform: scale(1.18); }
}
.cs-twinkle-stars { position: absolute; inset: 0; pointer-events: none; }
.cs-twinkle-stars span {
	position: absolute; color: #fff;
	font-size: 18px; line-height: 1;
	animation: csTwinkle 3s ease-in-out infinite;
	text-shadow: 0 0 8px rgba(255,255,255,.5);
}
@media (prefers-reduced-motion: reduce) {
	.cs-decor-rocket,
	.cs-decor-planet,
	.cs-bridge-strawberries,
	.cs-bridge-orange,
	.cs-twinkle-stars span { animation: none !important; }
}

.cs-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 80px; display: block; }

/* ============ SECTION ============ */
.cs-section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 64px 28px;
	position: relative;
}
.cs-section-head { text-align: center; margin-bottom: 42px; position: relative; z-index: 2; }
.cs-section-eyebrow {
	display: inline-block;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	color: var(--pf-orange);
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.cs-section-title {
	font-size: clamp(28px, 3.4vw, 44px);
	color: var(--pf-purple);
}
.cs-section-sub {
	margin: 14px auto 0;
	max-width: 620px;
	color: #5b4a85;
	font-size: 17px;
	line-height: 1.55;
}

/* ============ SHEETS GRID ============ */
.cs-sheets-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	position: relative;
	z-index: 2;
}
@media (max-width: 980px) { .cs-sheets-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .cs-sheets-grid { grid-template-columns: 1fr; } }

.cs-sheet-card {
	background: #fff;
	border-radius: 24px;
	padding: 18px 18px 20px;
	box-shadow: 0 8px 0 rgba(74,42,130,.08), 0 20px 40px rgba(74,42,130,.08);
	border: 2px solid #efe9f7;
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}
.cs-sheet-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 0 rgba(74,42,130,.08), 0 26px 50px rgba(74,42,130,.14);
}
.cs-sheet-thumb {
	position: relative;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1748 / 2480;
	border: 1px solid #ece4f7;
}
.cs-sheet-thumb img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	transition: transform .35s ease;
}
.cs-sheet-card:hover .cs-sheet-thumb img { transform: scale(1.03); }
.cs-sheet-num {
	position: absolute; top: 12px; left: 12px;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--pf-purple);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	font-size: 18px;
	box-shadow: 0 3px 0 var(--pf-purple-deep);
}
.cs-sheet-meta {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-top: 16px;
}
.cs-sheet-info h3 {
	font-size: 20px;
	color: var(--pf-purple);
	line-height: 1.15;
	margin: 0;
}
.cs-sheet-info p { margin: 4px 0 0; color: #7a6aa3; font-size: 13px; font-weight: 600; }
.cs-btn-download {
	flex-shrink: 0;
	background: var(--pf-orange);
	color: #fff !important;
	border: none;
	cursor: pointer;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	font-size: 14px;
	padding: 11px 16px;
	border-radius: 999px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 0 var(--pf-orange-dark);
	transition: transform .15s, box-shadow .15s;
	white-space: nowrap;
}
.cs-btn-download:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--pf-orange-dark); }
.cs-btn-download:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pf-orange-dark); }
.cs-btn-download svg { width: 14px; height: 14px; }
.cs-btn-preview {
	position: absolute;
	inset: auto 0 0 0;
	background: rgba(74,42,130,.92);
	color: #fff;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 10px;
	text-align: center;
	transform: translateY(100%);
	transition: transform .25s ease;
	cursor: pointer;
	border: none;
	width: 100%;
}
.cs-sheet-thumb:hover .cs-btn-preview { transform: translateY(0); }

.cs-badge-new {
	position: absolute; top: -10px; right: -10px;
	background: var(--pf-red);
	color: #fff;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	transform: rotate(8deg);
	box-shadow: 0 3px 0 rgba(0,0,0,.15);
	z-index: 3;
}

/* download-all card */
.cs-card-download-all {
	background: linear-gradient(135deg, #5B36A0, #3A1F6B);
	color: #fff;
	border-color: transparent;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 32px;
}
.cs-card-download-icon { margin-bottom: 16px; }
.cs-card-download-all h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.cs-card-download-all p { color: rgba(255,255,255,.85); font-size: 14px; margin: 0 0 18px; max-width: 240px; }

.cs-btn-primary {
	background: var(--pf-orange);
	color: #fff !important;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	font-size: 14px;
	padding: 11px 20px;
	border-radius: 999px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 5px 0 var(--pf-orange-dark);
	border: none;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}
.cs-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--pf-orange-dark); }
.cs-btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--pf-orange-dark); }

/* ============ HOW IT WORKS ============ */
.cs-how-section {
	padding: 80px 28px;
	background: var(--pf-bg);
	position: relative;
}
.cs-how-grid {
	max-width: 1100px;
	margin: 42px auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	position: relative;
	z-index: 2;
}
@media (max-width: 820px) { .cs-how-grid { grid-template-columns: 1fr; } }
.cs-how-card {
	background: #fff;
	border-radius: 24px;
	padding: 32px 28px;
	text-align: center;
	border: 2px solid #efe9f7;
	box-shadow: 0 6px 0 rgba(74,42,130,.06);
}
.cs-how-icon {
	width: 78px; height: 78px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 18px;
	box-shadow: 0 4px 0 rgba(0,0,0,.08);
}
.cs-how-icon.cs-c1 { background: #FFD9DC; color: var(--pf-red); }
.cs-how-icon.cs-c2 { background: #FFE8C5; color: var(--pf-orange); }
.cs-how-icon.cs-c2 svg { width: 46px; height: 46px; }
.cs-how-icon.cs-c3 { background: #D6F0D5; color: var(--pf-green); }
.cs-how-icon svg { width: 36px; height: 36px; }
.cs-how-card h3 { font-size: 22px; margin-bottom: 8px; color: var(--pf-purple); }
.cs-how-card p { margin: 0; color: #5b4a85; line-height: 1.55; font-size: 15px; }
.cs-step-num {
	display: inline-block;
	font-family: "Sour Gummy", "Londrina Solid", sans-serif;
	font-weight: 800;
	color: var(--pf-orange);
	letter-spacing: .12em;
	font-size: 12px;
	text-transform: uppercase;
	margin-bottom: 6px;
}

/* ============ MODAL ============ */
.cs-modal-bg {
	position: fixed; inset: 0;
	background: rgba(20,8,50,.85);
	display: none;
	align-items: center; justify-content: center;
	z-index: 1000;
	padding: 24px;
	backdrop-filter: blur(4px);
}
.cs-modal-bg.open { display: flex; }
.cs-modal-box {
	background: #fff;
	border-radius: 20px;
	max-width: 760px;
	width: 100%;
	max-height: 92vh;
	overflow: hidden;
	display: flex; flex-direction: column;
	position: relative;
	animation: csPop .25s ease;
}
@keyframes csPop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cs-modal-img {
	flex: 1;
	overflow: auto;
	background: #f5f0fb;
	display: flex; align-items: center; justify-content: center;
}
.cs-modal-img img { max-width: 100%; max-height: 80vh; display: block; }
.cs-modal-foot {
	padding: 16px 22px;
	display: flex; align-items: center; justify-content: space-between;
	background: #fff;
	border-top: 1px solid #efe9f7;
	gap: 12px;
}
.cs-modal-foot h3 { font-size: 18px; margin: 0; color: var(--pf-purple); }
.cs-modal-close {
	position: absolute; top: 14px; right: 14px;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: #fff;
	color: var(--pf-purple);
	font-size: 22px;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(0,0,0,.2);
	z-index: 2;
	display: flex; align-items: center; justify-content: center;
}
.cs-modal-close:hover { background: var(--pf-yellow); }
