/* --- General Container Styles --- */
.ecir-offers-header {
	text-align: center;
	margin-bottom: 40px;
	font-family: 'Roboto', sans-serif;
}
.ecir-section-title {
	color: #04175c;
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 10px;
}
.ecir-section-subtitle {
	color: #5e688a;
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.5;
}

/* --- Dynamic Filter Tabs --- */
.ecir-offers-filters {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 40px;
}
.ecir-filter-tab {
	background-color: #fafcfb;
	color: #04175c;
	border: 1px solid #e1e7ec;
	padding: 10px 24px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
}
.ecir-filter-tab:hover,
.ecir-filter-tab.active {
	background-color: #04175c;
	color: #ffffff;
	border-color: #04175c;
	box-shadow: 0 4px 12px rgba(4, 23, 92, 0.15);
}

/* --- CSS Grid Layout --- */
.ecir-offers-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	align-items: stretch;
}

/* --- Card Styles --- */
.ecir-offer-card {
	background-color: #ffffff;
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(4, 23, 92, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	opacity: 1;
}
.ecir-offer-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(4, 23, 92, 0.16);
}

/* Image/Media Top */
.ecir-offer-image-wrapper {
	position: relative;
	height: 200px;
	overflow: hidden;
	background-color: #f0f2f5;
}
.ecir-offer-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.ecir-offer-card:hover .ecir-offer-image {
	transform: scale(1.08);
}
.ecir-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e0e6ed 0%, #cbd5e1 100%);
}

/* Overlaid Badges */
.ecir-offer-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	color: #ffffff;
	padding: 6px 14px;
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	z-index: 2;
	box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.badge-emploi {
	background-color: #04175c;
}
.badge-apprentissage {
	background-color: #ff7a01;
}

/* Card Body Content */
.ecir-offer-card-body {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Fix text break problem */
.ecir-offer-title {
	font-family: 'Roboto', sans-serif;
	color: #04175c;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 12px 0;
	word-break: normal;
	overflow-wrap: break-word;
	hyphens: none;
}

/* Location block */
.ecir-offer-location {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #5e688a;
	font-size: 0.88rem;
	font-weight: 500;
	margin-bottom: 15px;
}
.ecir-offer-location svg {
	width: 16px;
	height: 16px;
	fill: #5e688a;
	flex-shrink: 0;
}

/* Chips/Tags */
.ecir-offer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.ecir-offer-tag-chip {
	background-color: #f1f4f8;
	color: #04175c;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}
.ecir-offer-card:hover .ecir-offer-tag-chip {
	background-color: #e2e8f0;
}

/* Description */
.ecir-offer-desc {
	font-size: 0.92rem;
	line-height: 1.6;
	color: #4a5568;
	margin-bottom: 25px;
	flex-grow: 1;
}

/* CTA Buttons styling */
.ecir-offer-cta-container {
	margin-top: auto;
}
.ecir-offer-btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	background-color: #ff7a01;
	color: #ffffff;
	border: 2px solid #ff7a01;
	padding: 12px 24px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	border-radius: 30px;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	cursor: pointer;
}
.ecir-offer-btn:hover {
	background-color: transparent;
	color: #04175c;
	border-color: #04175c;
}

/* --- Spontaneous Application Block --- */
.ecir-spontaneous {
	text-align: center;
	max-width: 760px;
	margin: 55px auto 0;
	padding: 34px 28px;
	font-family: 'Roboto', sans-serif;
	background-color: #fafcfb;
	border: 2px solid rgba(255, 122, 1, 0.35);
	border-radius: 15px;
}
.ecir-spontaneous-title {
	color: #04175c;
	font-size: 1.6rem;
	font-weight: 700;
	margin: 0 0 12px 0;
}
.ecir-spontaneous-text {
	color: #4a5568;
	font-size: 1rem;
	line-height: 1.7;
	margin: 0;
}
.ecir-spontaneous-email {
	color: #ff7a01;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease;
}
.ecir-spontaneous-email:hover {
	border-bottom-color: #ff7a01;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
	.ecir-offers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}
@media (max-width: 640px) {
	.ecir-offers-grid {
		grid-template-columns: 1fr;
	}
	.ecir-offers-filters {
		flex-direction: column;
		align-items: stretch;
	}
	.ecir-spontaneous {
		padding: 26px 20px;
	}
	.ecir-spontaneous-email {
		white-space: normal;
		word-break: break-word;
	}
}

/* --- Editor notice (empty query / ACF missing) --- */
.ecir-offers-notice {
	font-family: 'Roboto', sans-serif;
	text-align: center;
	color: #5e688a;
	background: #fafcfb;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 20px;
}

/* --- Card subtitle (e.g. "Poste envisagé") --- */
.ecir-offer-subtitle {
	font-family: 'Roboto', sans-serif;
	color: #ff7a01;
	font-size: 0.9rem;
	font-weight: 600;
	margin: -4px 0 14px 0;
}