/* Inestimable Campagnes — codes de la maison : noir, crème, rouge profond, sans angles. */
.icp,
.icp * {
	box-sizing: border-box;
}

.icp {
	--icp-bg: #fff;
	--icp-fg: #000;
	--icp-btn-bg: #000;
	--icp-btn-fg: #fff;
	--icp-line: #000;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--icp-fg);
	-webkit-font-smoothing: antialiased;
}

.icp[data-theme="dark"] {
	--icp-bg: #000;
	--icp-fg: #f4eee3;
	--icp-btn-bg: #f4eee3;
	--icp-btn-fg: #000;
	--icp-line: #f4eee3;
}

.icp[data-theme="cream"] {
	--icp-bg: #f4eee3;
	--icp-fg: #000;
	--icp-btn-bg: #000;
	--icp-btn-fg: #f4eee3;
	--icp-line: #000;
}

.icp[data-theme="red"] {
	--icp-bg: #6e1423;
	--icp-fg: #f4eee3;
	--icp-btn-bg: #f4eee3;
	--icp-btn-fg: #6e1423;
	--icp-line: #f4eee3;
}

.icp[hidden] {
	display: none !important;
}

.icp__eyebrow {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.icp__title {
	margin: 0 0 14px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 500;
	color: inherit;
}

.icp__text {
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.7;
	white-space: pre-line;
}

.icp__btn {
	display: inline-block;
	min-height: 48px;
	padding: 16px 28px;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--icp-btn-fg);
	background: var(--icp-btn-bg);
	border: 1px solid var(--icp-btn-bg);
	border-radius: 0;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.icp__btn:hover {
	color: var(--icp-btn-bg);
	background: transparent;
	border-color: var(--icp-line);
}

.icp__coupon {
	display: flex;
	align-items: stretch;
	margin: 0 0 22px;
	border: 1px dashed var(--icp-line);
}

.icp__code {
	flex: 1;
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.18em;
}

.icp__copy {
	padding: 0 16px;
	font: inherit;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: inherit;
	background: transparent;
	border: 0;
	border-left: 1px dashed var(--icp-line);
	cursor: pointer;
}

.icp__note {
	margin: -14px 0 22px;
	font-size: 12px;
	opacity: 0.85;
}

.icp__count {
	display: flex;
	gap: 18px;
	margin: 0 0 22px;
	font-variant-numeric: tabular-nums;
}

.icp__count span {
	display: block;
	font-size: 22px;
	font-weight: 500;
	line-height: 1;
}

.icp__count small {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.icp__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	z-index: 2;
}

.icp__btn:focus-visible,
.icp__copy:focus-visible,
.icp__close:focus-visible {
	outline: 2px solid var(--icp-line);
	outline-offset: 3px;
}

/* Popup centrée */
.icp--modal {
	position: fixed;
	inset: 0;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.icp--modal .icp__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.icp--modal .icp__box {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	color: var(--icp-fg);
	background: var(--icp-bg);
	border: 1px solid var(--icp-line);
	animation: icp-in 0.4s ease both;
	outline: none;
}

.icp--modal.has-image .icp__box {
	max-width: 780px;
	grid-template-columns: 1fr 1fr;
}

.icp__media {
	min-height: 320px;
	background-position: center;
	background-size: cover;
}

.icp__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 44px 40px 36px;
}

/* Carte discrète */
.icp--corner {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 999980;
	width: calc(100% - 32px);
	max-width: 360px;
}

.icp--corner .icp__box {
	position: relative;
	color: var(--icp-fg);
	background: var(--icp-bg);
	border: 1px solid var(--icp-line);
	animation: icp-in 0.4s ease both;
}

.icp--corner .icp__media {
	min-height: 150px;
}

.icp--corner .icp__body {
	padding: 26px 24px 22px;
}

.icp--corner .icp__title {
	font-size: 19px;
}

/* Bandeau */
.icp--bar {
	position: relative;
	z-index: 999970;
	color: var(--icp-fg);
	background: var(--icp-bg);
	border-bottom: 1px solid var(--icp-line);
}

.icp--bar .icp__box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 22px;
	padding: 10px 56px 10px 16px;
	text-align: center;
}

.icp--bar .icp__media,
.icp--bar .icp__eyebrow {
	display: none;
}

.icp--bar .icp__body {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 22px;
	padding: 0;
}

.icp--bar .icp__title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.icp--bar .icp__text,
.icp--bar .icp__note {
	display: none;
}

.icp--bar .icp__coupon {
	margin: 0;
}

.icp--bar .icp__code {
	padding: 6px 10px;
	font-size: 12px;
}

.icp--bar .icp__copy {
	padding: 0 10px;
}

.icp--bar .icp__count {
	gap: 10px;
	margin: 0;
}

.icp--bar .icp__count span {
	display: inline;
	font-size: 13px;
}

.icp--bar .icp__count small {
	display: inline;
	margin: 0 0 0 2px;
	font-size: 10px;
}

.icp--bar .icp__count div {
	white-space: nowrap;
}

.icp--bar .icp__btn {
	min-height: 0;
	padding: 9px 16px;
}

.icp--bar .icp__close {
	top: 50%;
	right: 8px;
	margin-top: -19px;
}

@keyframes icp-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 700px) {
	.icp--modal {
		align-items: flex-end;
		padding: 0;
	}
	.icp--modal .icp__box,
	.icp--modal.has-image .icp__box {
		max-width: 100%;
		max-height: 92vh;
		grid-template-columns: 1fr;
		border-width: 1px 0 0;
	}
	.icp__media {
		min-height: 180px;
	}
	.icp__body {
		padding: 28px 22px 26px;
	}
	.icp__title {
		font-size: 22px;
	}
	.icp--corner {
		right: 8px;
		bottom: 8px;
		width: calc(100% - 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.icp__box {
		animation: none !important;
	}
	.icp__btn {
		transition: none;
	}
}
