/**
 * Animal Tarifs – front-end styles.
 *
 * Every colour is driven by CSS custom properties set inline on .atf-grid,
 * so Elementor style controls can override them without extra CSS.
 */

.atf-grid {
	--atf-dark: #0d3b32;
	--atf-accent: #8dc63f;
	--atf-note: #f2861d;
	--atf-text: #0d3b32;
	--atf-bg: #ffffff;
	--atf-max: 860px;
	--atf-border: 1.5px;

	box-sizing: border-box;
	max-width: var(--atf-max);
	margin-left: auto;
	margin-right: auto;
	color: var(--atf-text);
	background: var(--atf-bg);
	line-height: 1.35;
}

.atf-grid *,
.atf-grid *::before,
.atf-grid *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Header */

.atf-grid__header {
	background: var(--atf-dark);
	padding: 14px 20px;
	text-align: center;
}

.atf-grid__title {
	display: block;
	margin: 0;
	color: #fff;
	font-size: clamp(26px, 5.4vw, 52px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.atf-grid--framed .atf-grid__body {
	border: 2px solid var(--atf-dark);
	border-top: 0;
}

.atf-grid--framed .atf-grid__header {
	border: 2px solid var(--atf-dark);
	border-bottom: 0;
}

.atf-grid__body {
	padding: 26px 20px 22px;
}

/* -------------------------------------------------------------- Sections */

.atf-section {
	margin: 0 0 30px;
}

.atf-section:last-child {
	margin-bottom: 18px;
}

.atf-section__title {
	margin: 0 0 12px;
	padding: 0;
	text-align: center;
	font-size: clamp(19px, 3.2vw, 30px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--atf-text);
}

.atf-section__inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.atf-section--options .atf-section__inner {
	padding-left: 8px;
}

/* ------------------------------------------------------- Timer badge */

.atf-badge {
	position: relative;
	flex: 0 0 auto;
	width: 108px;
	height: 108px;
	margin-top: 6px;
}

.atf-badge__ring {
	position: absolute;
	inset: 0;
	border: 9px solid var(--atf-dark);
	border-radius: 50%;
}

.atf-badge__arc {
	position: absolute;
	inset: 11px;
	border-radius: 50%;
	background: conic-gradient( var(--atf-accent) 0 72%, transparent 72% 100% );
	-webkit-mask: radial-gradient( closest-side, transparent 0 74%, #000 75% 100% );
	mask: radial-gradient( closest-side, transparent 0 74%, #000 75% 100% );
}

.atf-badge__value {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--atf-accent);
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.atf-badge__stem {
	position: absolute;
	top: -11px;
	left: 50%;
	width: 26px;
	height: 13px;
	transform: translateX(-50%);
	background: var(--atf-dark);
	border-radius: 4px 4px 2px 2px;
}

.atf-badge__stem::before,
.atf-badge__stem::after {
	content: "";
	position: absolute;
	top: 6px;
	width: 12px;
	height: 9px;
	background: var(--atf-dark);
	border-radius: 3px;
}

.atf-badge__stem::before {
	left: -13px;
	transform: rotate(-38deg);
}

.atf-badge__stem::after {
	right: -13px;
	transform: rotate(38deg);
}

/* ------------------------------------------------------------ Rows */

.atf-rows {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.atf-row {
	display: flex;
	align-items: stretch;
	gap: 9px;
	font-size: 15px;
}

.atf-row__label {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 6px;
	padding: 9px 14px;
	border: var(--atf-border) solid var(--atf-dark);
}

.atf-row__text {
	font-weight: 600;
}

.atf-row__sub {
	font-weight: 400;
	font-style: italic;
	opacity: 0.75;
}

.atf-row__price {
	flex: 0 0 108px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 9px 8px;
	border: var(--atf-border) solid var(--atf-dark);
	font-weight: 700;
	font-size: 17px;
	text-align: center;
	white-space: nowrap;
}

/* --------------------------------------------------------- Options ribbon */

.atf-ribbon {
	position: relative;
	display: inline-block;
	margin: 0 0 18px;
	padding: 8px 26px 8px 18px;
	background: var(--atf-dark);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.atf-ribbon::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: -14px;
	width: 0;
	height: 0;
	border-left: 15px solid transparent;
	border-right: 15px solid transparent;
	border-top: 15px solid var(--atf-accent);
}

/* ---------------------------------------------------------------- Notes */

.atf-notes {
	margin: 0 0 16px;
}

.atf-notes__title {
	margin: 0 0 3px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--atf-note);
}

.atf-notes--dark .atf-notes__title {
	color: var(--atf-dark);
}

.atf-notes--accent .atf-notes__title {
	color: var(--atf-accent);
}

.atf-notes__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atf-notes__line {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 700;
	font-style: italic;
	line-height: 1.45;
}

.atf-notes__line em,
.atf-notes__line i {
	font-weight: 400;
}

/* ------------------------------------------------------------- Utilities */

.atf-notice {
	margin: 0;
	padding: 10px 14px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #3c434a;
	font-size: 14px;
}

.atf-grid .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ----------------------------------------------------------- Responsive */

@media (max-width: 780px) {
	.atf-badge {
		width: 82px;
		height: 82px;
	}

	.atf-badge__ring {
		border-width: 7px;
	}

	.atf-badge__value {
		font-size: 26px;
	}

	.atf-row {
		font-size: 14px;
	}

	.atf-row__price {
		flex-basis: 88px;
		font-size: 15px;
	}
}

@media (max-width: 540px) {
	.atf-grid__body {
		padding: 20px 14px 16px;
	}

	.atf-section__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.atf-badge {
		align-self: center;
		margin-top: 0;
	}

	.atf-row__label {
		padding: 8px 10px;
	}

	.atf-row__price {
		flex-basis: 74px;
	}
}

@media print {
	.atf-grid {
		max-width: none;
	}
}
