.ek-offres {
	--ek-bleu: #134787;
	--ek-rouge: #c22c40; /* réservé au bouton d'action principal */
	--ek-marine: #0B2F5E;
	--ek-gris: #5B6270;
	background: var(--ek-bleu);
	padding: 72px 16px 56px;
	color: #ffffff;
}

.ek-offres__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.ek-offres__titre {
	color: #ffffff;
	text-align: center;
	font-size: 34px;
	font-weight: 800;
	margin: 0 0 40px;
}

.ek-offres__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: start;
}

.ek-offre {
	position: relative;
	background: #ffffff;
	border-radius: 32px;
	padding: 8px 8px 24px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	transition: background-color 250ms ease, transform 250ms ease;
	cursor: pointer;
}

.ek-offres__grid .ek-offre:nth-child(2) { margin-top: 8px; }
.ek-offres__grid .ek-offre:nth-child(3) { margin-top: 4px; }
.ek-offres__grid .ek-offre:nth-child(4) { margin-top: 8px; }

.ek-offre.is-active {
	background: var(--ek-marine);
	color: #ffffff;
}

.ek-offre__img {
	border-radius: 28px;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #2d6ab8, #134787);
	overflow: hidden;
}

.ek-offre__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ek-offre__nom {
	font-size: 22px;
	font-weight: 800;
	color: var(--ek-bleu);
	margin: 18px 12px 6px;
}

.ek-offre__accroche {
	font-size: 16px;
	line-height: 1.5;
	color: var(--ek-gris);
	margin: 0 12px 56px;
	min-height: 48px;
}

.ek-offre.is-active .ek-offre__nom,
.ek-offre.is-active .ek-offre__accroche {
	color: #ffffff;
}

.ek-offre.is-active .ek-offre__accroche {
	font-weight: 600;
}

.ek-offre__btn {
	position: absolute;
	right: 20px;
	bottom: 20px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: var(--ek-bleu);
	color: #ffffff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.ek-offre.is-active .ek-offre__btn {
	background: #ffffff;
	color: var(--ek-marine);
}

.ek-offre__btn[aria-expanded="true"] {
	transform: rotate(45deg);
}

.ek-offre__btn:focus-visible,
.ek-detail__cta:focus-visible,
.ek-detail__fermer:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.ek-detail {
	margin: 32px auto 0;
	max-width: 880px;
	background: #ffffff;
	color: var(--ek-gris);
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.ek-detail[hidden] { display: none; }

.ek-detail__nom {
	color: var(--ek-bleu);
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 8px;
}

.ek-detail__prix {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	color: var(--ek-bleu);
	font-weight: 700;
	margin: 12px 0 20px;
}

.ek-detail__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ek-detail__table th,
.ek-detail__table td {
	text-align: left;
	vertical-align: top;
	padding: 10px 8px;
	border-bottom: 1px solid #E1E4EB;
}

.ek-detail__table th {
	width: 34%;
	color: var(--ek-bleu);
	font-weight: 700;
}

.ek-detail__cta {
	display: inline-block;
	margin-top: 20px;
	background: var(--ek-rouge);
	color: #ffffff;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}

.ek-modules {
	margin-top: 64px;
	text-align: center;
}

.ek-modules__titre {
	color: #ffffff;
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 8px;
}

.ek-modules__intro {
	color: #ffffff;
	opacity: 0.85;
	margin: 0 0 28px;
}

.ek-modules__liste {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

.ek-module {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #ffffff;
	color: var(--ek-gris);
	border-radius: 20px;
	padding: 16px 20px;
	width: 240px;
	text-align: left;
}

.ek-module strong {
	color: var(--ek-bleu);
	font-size: 16px;
}

.ek-module span {
	font-size: 14px;
	line-height: 1.5;
}

.ek-offres__note {
	text-align: center;
	color: #ffffff;
	opacity: 0.8;
	font-size: 14px;
	margin: 40px 0 0;
}

@media (max-width: 1099px) {
	.ek-offres__grid { grid-template-columns: repeat(2, 1fr); }
	.ek-offres__grid .ek-offre:nth-child(n) { margin-top: 0; }
	.ek-offres__grid .ek-offre:nth-child(2n) { margin-top: 8px; }
}

@media (max-width: 640px) {
	.ek-offres__grid { grid-template-columns: 1fr; }
	.ek-offres__grid .ek-offre:nth-child(n) { margin-top: 0; }
	.ek-offre__accroche { margin-bottom: 48px; }
	.ek-detail { padding: 22px; }
	.ek-detail__table th { width: 40%; }
}
