/* Accueil Seliweb-WP : sections plein écran avec défilement accroché */

html:has(body.cx-front) {
	scroll-snap-type: y proximity;
	scroll-padding-top: var(--cx-header-h);
	scroll-behavior: smooth;
}

.cx-front .site.grid-container { max-width: none; padding: 0; }
.cx-front .site-content { display: block; padding: 0; }

.cx-home { overflow-x: clip; }

.cx-wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

.cx-panel {
	min-height: calc(100vh - var(--cx-header-h));
	min-height: calc(100svh - var(--cx-header-h));
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 80px 0;
	scroll-snap-align: start;
	position: relative;
	background: #dfeaf4;
}

.cx-alt { background: #d2e1ee; }

.cx-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

@media (max-width: 900px) {
	.cx-split { grid-template-columns: 1fr; gap: 36px; }
	.cx-panel { padding: 56px 0; min-height: 0; }
	.cx-hero { min-height: calc(100svh - var(--cx-header-h)); }
}

@media (max-width: 600px) {
	.cx-wrap { padding: 0 16px; }
}

/* ---------- Typographie ---------- */
.cx-home h1 {
	font-size: clamp(36px, 5.4vw, 60px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.07;
	margin-bottom: 20px;
}

.cx-home h2 {
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 16px;
}

.cx-home h3 { font-size: 19px; margin-bottom: 8px; }

.cx-lede { font-size: 19px; color: var(--cx-text); max-width: 60ch; }

.cx-kicker {
	color: var(--cx-blue);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.cx-head { max-width: 760px; margin-bottom: 40px; }

.cx-foot-note { color: var(--cx-muted); font-size: 15px; margin: 28px 0 0; }

/* ---------- Boutons ---------- */
.cx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }

.cx-btn {
	display: inline-flex;
	align-items: center;
	padding: 13px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}

.cx-btn:hover { transform: translateY(-2px); }

.cx-btn-primary {
	background: var(--cx-orange);
	color: #fff;
	box-shadow: 0 8px 20px rgba(240, 138, 36, .3);
}
.cx-btn-primary:hover, .cx-btn-primary:focus { background: #d9731a; color: #fff; }

.cx-btn-ghost {
	border: 2px solid currentColor;
	color: var(--cx-blue-dark);
}
.cx-btn-ghost:hover, .cx-btn-ghost:focus { color: var(--cx-blue); }

/* ---------- 1. Présentation ---------- */
.cx-hero {
	background:
		radial-gradient(600px 400px at 88% 12%, rgba(124, 184, 58, .35), transparent 70%),
		radial-gradient(520px 420px at 8% 90%, rgba(240, 138, 36, .28), transparent 70%),
		linear-gradient(160deg, #0f2438 0%, #123a5a 55%, #0f6ea6 100%);
	color: #d9e6f2;
}

.cx-hero h1 { color: #fff; }
.cx-hero .cx-lede { color: #d9e6f2; }
.cx-hero strong { color: #fff; }
.cx-hero .cx-btn-ghost { color: #fff; }
.cx-hero .cx-btn-ghost:hover { color: var(--cx-green); }

.cx-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 24px;
}

.cx-badge span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cx-green);
	box-shadow: 0 0 0 4px rgba(124, 184, 58, .3);
}

.cx-note { font-size: 15px; color: #a9bfd3; }
.cx-note a { color: #fff; }

.cx-scroll {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	color: #a9bfd3;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.cx-scroll span { display: inline-block; animation: cx-bob 2s infinite; }
.cx-scroll:hover { color: #fff; }

@keyframes cx-bob { 50% { transform: translateY(5px); } }

/* Maquette de navigateur */
.cx-mock {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
	overflow: hidden;
	color: var(--cx-text);
	transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}

.cx-mock-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: #eef2f6;
	font-size: 12px;
	color: var(--cx-muted);
}
.cx-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3dbe3; }
.cx-mock-bar i:nth-child(1) { background: #f26d5b; }
.cx-mock-bar i:nth-child(2) { background: #f5bf4f; }
.cx-mock-bar i:nth-child(3) { background: #62c554; }
.cx-mock-bar span { margin-left: 10px; background: #fff; border-radius: 6px; padding: 2px 10px; flex: 1; }

.cx-mock-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 14px 4px; }
.cx-mock-filters b {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--cx-soft);
	color: var(--cx-blue-dark);
}
.cx-mock-filters b:first-child { background: var(--cx-blue); color: #fff; }

.cx-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 14px 16px; }

.cx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--cx-line);
	border-radius: 10px;
	padding: 8px;
	font-size: 12px;
	line-height: 1.35;
}
.cx-card strong { color: var(--cx-ink); margin-top: 8px; }
.cx-card small { color: var(--cx-muted); }
.cx-card-img { height: 64px; border-radius: 6px; }
.cx-card-img.g1 { background: linear-gradient(135deg, #f7b267, #f08a24); }
.cx-card-img.g2 { background: linear-gradient(135deg, #7fc8f0, #1b8fd0); }
.cx-card-img.g3 { background: linear-gradient(135deg, #b6dd8a, #7cb83a); }
.cx-price { margin-top: 6px; font-weight: 700; color: var(--cx-blue-dark); }

.cx-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
	color: #fff;
}
.cx-tag.urgent { background: #d64545; }
.cx-tag.done { background: var(--cx-ink); }

@media (max-width: 900px) {
	.cx-mock { transform: none; }
	.cx-scroll { display: none; }
}

@media (max-width: 480px) {
	.cx-mock-grid { grid-template-columns: repeat(2, 1fr); }
	.cx-mock-grid .cx-card:nth-child(3) { display: none; }
}

/* ---------- Listes de fonctionnalités ---------- */
.cx-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.cx-features li {
	position: relative;
	padding: 14px 16px 14px 52px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 36, 56, .06);
	border-radius: 12px;
	font-size: 16px;
}

.cx-features li::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 16px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--cx-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.cx-features b { color: var(--cx-ink); }

/* ---------- Tuiles ---------- */
.cx-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cx-cards-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1000px) { .cx-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cx-cards, .cx-cards-2 { grid-template-columns: 1fr; } }

.cx-tile {
	background: var(--cx-surface);
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-radius);
	padding: 28px 24px;
	box-shadow: var(--cx-shadow);
	border-top: 4px solid var(--cx-blue);
}
.cx-cards .cx-tile:nth-child(3n+2) { border-top-color: var(--cx-green); }
.cx-cards .cx-tile:nth-child(3n) { border-top-color: var(--cx-orange); }
.cx-tile p { margin: 0; font-size: 16px; }
.cx-alt .cx-tile { background: #fff; }

/* ---------- Compte (transactions) ---------- */
.cx-account {
	background: #fff;
	border: 1px solid var(--cx-line);
	border-radius: 18px;
	box-shadow: var(--cx-shadow);
	overflow: hidden;
}

.cx-account-head {
	background: linear-gradient(135deg, var(--cx-blue), var(--cx-blue-dark));
	color: #d9eefa;
	padding: 24px;
	display: grid;
	gap: 2px;
}
.cx-account-head strong { font-size: 40px; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.cx-account-head small { font-size: 14px; }

.cx-account ul { list-style: none; margin: 0; padding: 8px 0; }
.cx-account li {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 2px 12px;
	padding: 12px 24px;
	border-bottom: 1px solid var(--cx-line);
	font-size: 15px;
}
.cx-account li:last-child { border-bottom: 0; }
.cx-account li span:first-child { color: var(--cx-muted); }
.cx-account .who { grid-column: 2 / 4; color: var(--cx-muted); font-size: 13px; }
.cx-account .plus { color: #3f8a17; font-weight: 700; text-align: right; }
.cx-account .minus { color: #c0392b; font-weight: 700; text-align: right; }

/* ---------- Flux cotisations ---------- */
.cx-flow {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	counter-reset: none;
}

.cx-flow li {
	position: relative;
	background: #fff;
	border: 1px solid var(--cx-line);
	border-radius: var(--cx-radius);
	padding: 28px 24px;
	box-shadow: var(--cx-shadow);
}

.cx-flow li:not(:last-child)::after {
	content: "→";
	position: absolute;
	right: -18px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	background: var(--cx-orange);
	color: #fff;
	font-weight: 700;
	z-index: 1;
}

.cx-flow p { margin: 0; font-size: 16px; }

.cx-step {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--cx-soft);
	color: var(--cx-blue-dark);
	font-weight: 800;
	margin-bottom: 12px;
}

@media (max-width: 800px) {
	.cx-flow { grid-template-columns: 1fr; }
	.cx-flow li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -18px; transform: translateX(50%); }
}

/* ---------- Libre (sombre) ---------- */
.cx-dark {
	background: linear-gradient(160deg, #0f2438, #16324d);
	color: #c9d6e2;
}
.cx-dark h2 { color: #fff; }
.cx-dark .cx-lede { color: #d9e6f2; }
.cx-dark .cx-kicker { color: var(--cx-green); }
.cx-dark a { color: #fff; }
.cx-dark a:hover { color: var(--cx-orange); }

.cx-install { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: cx; }
.cx-install li {
	counter-increment: cx;
	position: relative;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 14px;
	padding: 20px 20px 20px 72px;
}
.cx-install li::before {
	content: counter(cx);
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--cx-orange);
	color: #fff;
	font-weight: 800;
}
.cx-install b { color: #fff; }

/* ---------- Hébergement ---------- */
.cx-host {
	background:
		radial-gradient(520px 380px at 92% 85%, rgba(240, 138, 36, .22), transparent 70%),
		linear-gradient(160deg, #eaf4e0, #d5ebc0);
}
.cx-host .cx-kicker { color: #4f8a1e; }
.cx-note-dark { font-size: 15px; color: var(--cx-muted); font-weight: 600; }

/* ---------- Actualités ---------- */
.cx-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cx-news { grid-template-columns: 1fr; } }

.cx-post { text-decoration: none; color: var(--cx-text); transition: transform .2s, box-shadow .2s; }
.cx-post:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 36, 56, .12); color: var(--cx-text); }
.cx-post time { font-size: 13px; color: var(--cx-muted); font-weight: 600; }
.cx-post h3 { margin: 6px 0 8px; }
.cx-post:hover h3 { color: var(--cx-blue); }

.cx-cta {
	margin-top: 28px;
	background: #fff !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	background: var(--cx-soft);
	border-radius: 18px;
	padding: 28px 32px;
}
.cx-cta p { margin: 0; }
.cx-cta .cx-actions { margin: 0; }

/* ---------- Navigation par points ---------- */
.cx-dots {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
}
.cx-dots ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cx-dots a {
	position: relative;
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(107, 124, 143, .45);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(15, 36, 56, .15);
	transition: transform .2s, background .2s;
}
.cx-dots a span {
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
	background: var(--cx-ink);
	color: #fff;
	padding: 3px 10px;
	border-radius: 6px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.cx-dots a:hover span, .cx-dots a:focus span { opacity: 1; }
.cx-dots a.is-active { background: var(--cx-orange); transform: scale(1.3); }

@media (max-width: 1100px) { .cx-dots { display: none; } }

/* ---------- Apparition au défilement ---------- */
.js .cx-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s ease;
}
.js .cx-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html:has(body.cx-front) { scroll-behavior: auto; }
	.js .cx-reveal { opacity: 1; transform: none; transition: none; }
	.cx-scroll span { animation: none; }
	.cx-btn:hover, .cx-post:hover { transform: none; }
}
