/* =========================================================================
   Boostersarechercheemploi - Job Board components
   Built to match the site's branding via custom.css design tokens:
   --main-color #f58f20, --accent-color #ec2e6c, --gradiant-color,
   --primary-color #2e2e2e, --secondary-color #FDF1E6,
   Inter (body) + Cabinet Grotesk (headings).
   ========================================================================= */

/* ---- search / filter bar -------------------------------------------- */
.bsr-jobsearch {
	background: var(--white-color);
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 12px 40px rgba(46, 46, 46, .08);
}
.bsr-jobsearch .bsr-field { margin-bottom: 0; }
.bsr-jobsearch label {
	font-family: var(--default-font);
	font-weight: 600;
	font-size: 14px;
	color: var(--primary-color);
	margin-bottom: 8px;
	display: block;
}
.bsr-jobsearch .form-control,
.bsr-jobsearch .bsr-select select {
	margin: 0;
	width: 100%;
	height: 52px;                         /* identical pill height for inputs + selects */
	background: var(--secondary-color);
	border: 1px solid transparent !important;
	border-radius: 50px;
	padding: 0 22px;
	font-size: 15px;
	font-weight: 500;
	color: var(--primary-color);
	line-height: normal;
	-webkit-appearance: none;            /* clean rounded pill on mobile (iOS/Android) */
	-moz-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.bsr-jobsearch .form-control::placeholder { color: #a89a88; font-weight: 500; }
.bsr-jobsearch .form-control:hover,
.bsr-jobsearch .bsr-select select:hover { background: #f7ecdd; }
.bsr-jobsearch .form-control:focus,
.bsr-jobsearch .bsr-select select:focus {
	border-color: var(--main-color) !important;
	box-shadow: 0 0 0 3px rgba(245, 143, 32, .14);
	background: var(--white-color);
	outline: none;
}
.bsr-input-icon { position: relative; }
.bsr-input-icon .form-control { padding-right: 48px; }
.bsr-input-icon > i {
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--main-color);
	font-size: 15px;
	pointer-events: none;
}
.bsr-select { position: relative; }
.bsr-select select { padding-right: 48px; cursor: pointer; }
.bsr-select > i {
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--main-color);
	font-size: 13px;
	pointer-events: none;
}
.bsr-jobsearch .sis-btn-default { width: 100%; justify-content: center; text-align: center; border: none !important; }

/* ---- jobs section header (count + sort) ----------------------------- */
.bsr-jobs-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}
.bsr-jobs-head .bsr-count {
	font-family: var(--heading-font);
	font-size: 26px;
	font-weight: 700;
	color: var(--primary-color);
	margin: 0;
}
.bsr-jobs-head .bsr-count span { color: var(--main-color); }
.bsr-sort { display: flex; align-items: center; gap: 12px; }
.bsr-sort .bsr-sort-label { color: var(--primary-color); font-weight: 500; font-size: 15px; white-space: nowrap; }
.bsr-sort .bsr-select select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: var(--white-color);
	border: 1px solid #e7ddcf;
	border-radius: 50px;
	padding: 10px 40px 10px 18px;
	color: var(--primary-color);
	font-weight: 500;
	width: auto;
}

/* ---- job cards grid ------------------------------------------------- */
.bsr-jobs-grid { list-style: none; padding: 0; margin: 0; }
.bsr-jobs-grid > [class*="col-"] { margin-bottom: 24px; display: flex; }

.bsr-job-card {
	position: relative;
	width: 100%;
	background: var(--white-color);
	border: 1px solid #efe4d6;
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bsr-job-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(46, 46, 46, .12);
	border-color: var(--main-color);
}

.bsr-job-title {
	font-family: var(--heading-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 16px;
	min-height: 2.7em;            /* even top edges across the row */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bsr-job-title a { color: var(--primary-color); transition: color .3s ease; }
.bsr-job-title a:hover { color: var(--main-color); }

.bsr-job-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}
.bsr-job-meta li {
	font-size: 14px;
	color: #6a6a6a;
	display: flex;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bsr-job-meta li i { color: var(--main-color); font-size: 14px; }

.bsr-job-foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 18px;
	border-top: 1px solid #f1e8da;
}
.bsr-job-type {
	display: inline-block;
	background: var(--secondary-color);
	color: var(--main-color);
	font-family: var(--default-font);
	font-weight: 600;
	font-size: 13px;
	padding: 6px 16px;
	border-radius: 50px;
	white-space: nowrap;
}
.bsr-job-company {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--default-font);
	font-weight: 600;
	color: var(--primary-color);
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bsr-job-company i { color: var(--main-color); font-size: 14px; flex: 0 0 auto; }
.bsr-job-foot .bsr-job-type { flex: 0 0 auto; }

/* ---- company logo + top row (live cards) --------------------------- */
.bsr-job-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bsr-job-logo {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 19px;
	line-height: 1;
	color: #fff;
	text-transform: uppercase;
	overflow: hidden;
	background: var(--gradiant-color);
	box-shadow: 0 6px 16px rgba(46, 46, 46, .12);
}
.bsr-job-logo img { width: 100%; height: 100%; object-fit: cover; }
.bsr-job-top-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bsr-job-company-name {
	font-family: var(--default-font);
	font-weight: 700;
	font-size: 15px;
	color: var(--primary-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bsr-job-posted { font-size: 13px; color: #8a8a8a; display: flex; align-items: center; gap: 6px; }
.bsr-job-posted i { color: var(--main-color); font-size: 12px; }

.bsr-job-apply {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--default-font);
	font-weight: 600;
	font-size: 14px;
	color: var(--main-color);
	white-space: nowrap;
	transition: gap .25s ease, color .25s ease;
}
.bsr-job-apply:hover { color: var(--accent-color); gap: 11px; }
.bsr-job-apply i { font-size: 12px; }


/* ---- pagination ----------------------------------------------------- */
.bsr-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 44px;
	list-style: none;
	padding: 0;
}
.bsr-pagination li a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 18px;
	border-radius: 50px;
	background: var(--white-color);
	border: 1px solid #e7ddcf;
	color: var(--primary-color);
	font-weight: 600;
	font-size: 15px;
	transition: all .3s ease;
}
.bsr-pagination li a:hover { border-color: var(--main-color); color: var(--main-color); }
.bsr-pagination li.active a { background: var(--gradiant-color); border-color: transparent; color: #fff; }
.bsr-pagination li.disabled a { opacity: .45; pointer-events: none; }
.bsr-pagination li.bsr-dots a { pointer-events: none; border: none; background: transparent; letter-spacing: 2px; }

/* ---- apply / lead modal -------------------------------------------- */
.bsr-modal .modal-content { border: none; border-radius: 24px; overflow: hidden; }
.bsr-modal .modal-body { padding: 0; }
.bsr-modal .bsr-modal-side {
	background: var(--gradiant-color);
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	padding: 40px;
	text-align: center;
}
.bsr-modal .bsr-modal-side i { font-size: 64px; opacity: .9; }
.bsr-modal .bsr-modal-form { padding: 40px; }
.bsr-modal .bsr-modal-form h3 {
	font-family: var(--heading-font);
	font-weight: 700;
	color: var(--primary-color);
	margin: 0 0 22px;
}
.bsr-modal .bsr-modal-form .form-control {
	background: var(--secondary-color);
	border-radius: 50px;
	padding: 14px 20px;
	margin-bottom: 18px;
	border: 1px solid transparent !important;
}
.bsr-modal .bsr-modal-form .form-control:focus { border-color: var(--main-color) !important; }
.bsr-modal .btn-close-custom {
	position: absolute;
	top: 16px;
	right: 18px;
	z-index: 5;
	background: rgba(255, 255, 255, .85);
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 18px;
	color: var(--primary-color);
	cursor: pointer;
}

/* ---- loading / empty message cell ---------------------------------- */
.bsr-jobs-grid > li.bsr-message { width: 100%; flex: 0 0 100%; max-width: 100%; }
.bsr-jobs-grid > li.bsr-message .bsr-job-card { text-align: center; padding: 54px 28px; color: #6a6a6a; }
.bsr-jobs-grid > li.bsr-message h5 { margin: 0; font-weight: 600; color: var(--primary-color); }

/* ---- remote toggle switch ------------------------------------------ */
.bsr-jobsearch-extra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
}
.bsr-remote-toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	margin: 0;
	user-select: none;
	padding: 9px 18px 9px 14px;
	border-radius: 50px;
	background: var(--white-color);
	border: 1px solid #e7ddcf;
	transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.bsr-remote-toggle:hover { border-color: var(--main-color); box-shadow: 0 4px 14px rgba(245, 143, 32, .12); }
.bsr-remote-toggle input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.bsr-remote-switch {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 50px;
	background: #e2d6c5;
	transition: background .3s ease;
	flex: 0 0 auto;
}
.bsr-remote-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .3s ease;
}
.bsr-remote-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--default-font);
	font-weight: 600;
	font-size: 14px;
	color: var(--primary-color);
	white-space: nowrap;
}
.bsr-remote-label i { color: var(--main-color); font-size: 14px; transition: color .25s ease; }
/* state badge so it's obvious this is an on/off switch */
.bsr-remote-state {
	margin-left: 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .5px;
	padding: 3px 9px;
	border-radius: 50px;
	background: #e7ddcf;
	color: #8a8a8a;
	transition: background .25s ease, color .25s ease;
}
.bsr-remote-state::after { content: "NON"; }
/* checked state */
.bsr-remote-toggle input:checked ~ .bsr-remote-switch { background: var(--gradiant-color); }
.bsr-remote-toggle input:checked ~ .bsr-remote-switch .bsr-remote-knob { transform: translateX(18px); }
.bsr-remote-toggle:has(input:checked) { border-color: var(--main-color); background: var(--secondary-color); }
.bsr-remote-toggle input:checked ~ .bsr-remote-label .bsr-remote-state { background: var(--main-color); color: #fff; }
.bsr-remote-toggle input:checked ~ .bsr-remote-label .bsr-remote-state::after { content: "OUI"; }
.bsr-remote-toggle input:focus-visible ~ .bsr-remote-label .bsr-remote-state { outline: 2px solid var(--main-color); outline-offset: 2px; }
.bsr-jobsearch-extra .sis-btn-default { width: auto; }

/* ---- loading skeleton ---------------------------------------------- */
.bsr-skeleton { pointer-events: none; }
.bsr-skel-line {
	height: 14px;
	border-radius: 8px;
	background: linear-gradient(90deg, #f0e8dd 25%, #f8f2e9 37%, #f0e8dd 63%);
	background-size: 400% 100%;
	animation: bsr-shimmer 1.4s ease infinite;
	margin-bottom: 14px;
}
.bsr-skel-line.title { height: 22px; width: 75%; margin-bottom: 22px; }
.bsr-skel-line.short { width: 55%; }
.bsr-skel-line.foot { width: 40%; margin-top: 8px; margin-bottom: 0; }
@keyframes bsr-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---- accessibility: visible focus ---------------------------------- */
.bsr-jobsearch .form-control:focus-visible,
.bsr-jobsearch select:focus-visible,
.bsr-sort select:focus-visible,
.bsr-pagination a:focus-visible,
.sis-btn-default:focus-visible { outline: 2px solid var(--main-color); outline-offset: 2px; }

/* ---- responsive ----------------------------------------------------- */
@media only screen and (max-width: 991px) {
	.bsr-job-title { font-size: 18px; }
	.bsr-jobsearch { padding: 24px; }
	.bsr-field { margin-bottom: 16px; }
}
@media only screen and (max-width: 575px) {
	.bsr-jobsearch-extra { justify-content: center; }
	.bsr-jobsearch-extra .sis-btn-default { width: 100%; justify-content: center; }
	.bsr-jobs-head { justify-content: center; text-align: center; }
}

/* =========================================================================
   Job Detail page
   ========================================================================= */
.bsr-detail-loading { text-align: center; padding: 70px 20px; color: #6a6a6a; font-weight: 500; }
.bsr-detail-loading i { color: var(--main-color); font-size: 26px; display: block; margin-bottom: 14px; }

.bsr-detail-head {
	background: var(--white-color);
	border: 1px solid #efe4d6;
	border-radius: 20px;
	padding: 32px;
	margin-bottom: 24px;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}
.bsr-detail-logo {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 26px;
	color: #fff;
	text-transform: uppercase;
	background: var(--gradiant-color);
	box-shadow: 0 8px 20px rgba(46, 46, 46, .14);
}
.bsr-detail-headinfo { min-width: 0; flex: 1 1 320px; }
.bsr-detail-title {
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.25;
	color: var(--primary-color);
	margin: 0 0 10px;
}
.bsr-detail-company {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15px;
	color: var(--main-color);
	margin-bottom: 16px;
}
.bsr-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.bsr-detail-meta li { display: flex; align-items: center; gap: 8px; color: #6a6a6a; font-size: 14px; }
.bsr-detail-meta li i { color: var(--main-color); }

.bsr-detail-body {
	background: var(--white-color);
	border: 1px solid #efe4d6;
	border-radius: 20px;
	padding: 34px;
}
.bsr-detail-body > *:first-child { margin-top: 0; }
.bsr-detail-body h1, .bsr-detail-body h2, .bsr-detail-body h3, .bsr-detail-body h4 {
	font-family: var(--heading-font);
	color: var(--primary-color);
	line-height: 1.3;
	margin: 1.5em 0 .6em;
}
.bsr-detail-body h2 { font-size: 22px; }
.bsr-detail-body h3 { font-size: 19px; }
.bsr-detail-body h4 { font-size: 17px; }
.bsr-detail-body p { color: #4a4a4a; line-height: 1.85; margin: 0 0 1.1em; }
.bsr-detail-body ul, .bsr-detail-body ol { color: #4a4a4a; line-height: 1.85; padding-left: 1.3em; margin: 0 0 1.2em; }
.bsr-detail-body li { margin-bottom: .5em; }
.bsr-detail-body a { color: var(--main-color); text-decoration: underline; }
.bsr-detail-body strong, .bsr-detail-body b { color: var(--primary-color); }
.bsr-detail-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* sidebar */
.bsr-detail-card {
	background: var(--white-color);
	border: 1px solid #efe4d6;
	border-radius: 20px;
	padding: 28px;
	margin-bottom: 24px;
	position: sticky;
	top: 20px;
}
.bsr-detail-cardtitle {
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 18px;
	color: var(--primary-color);
	margin: 0 0 16px;
}
.bsr-apply-btn { width: auto; justify-content: center; }
/* apply card: centered with extra top padding (desktop + mobile) */
.bsr-detail-card:has(.bsr-apply-btn) { text-align: center; padding-top: 34px; }
.bsr-detail-note { font-size: 13px; color: #8a8a8a; text-align: center; margin: 12px 0 0; }
.bsr-overview { list-style: none; padding: 0; margin: 0; }
.bsr-overview li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f1e8da; }
.bsr-overview li:last-child { border-bottom: none; padding-bottom: 0; }
.bsr-overview .ov-ic {
	width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
	background: var(--secondary-color); color: var(--main-color);
	display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.bsr-overview .ov-label { font-size: 12px; color: #8a8a8a; text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 1px; }
.bsr-overview .ov-val { font-weight: 600; color: var(--primary-color); font-size: 15px; word-break: break-word; }
.bsr-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bsr-tag { background: var(--secondary-color); color: var(--main-color); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 50px; }

.bsr-detail-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--main-color); margin-bottom: 18px; transition: gap .25s ease; }
.bsr-detail-back:hover { gap: 12px; color: var(--accent-color); }

@media only screen and (max-width: 991px) {
	.bsr-detail-card { position: static; }
	/* the apply card stacks under the description - give it room + top padding */
	.bsr-detail-card:has(.bsr-apply-btn) { margin-top: 24px; padding-top: 30px; }
	.bsr-detail-title { font-size: 23px; }
	.bsr-detail-body { padding: 24px; }
	.bsr-detail-head { padding: 24px; }
}

/* =========================================================================
   Mobile smoothing (job board + detail)
   ========================================================================= */
@media only screen and (max-width: 767px) {
	/* section titles: the standalone .sisf-m-title stays 48px otherwise */
	.sisf-sis-section-title .sisf-m-title { font-size: 26px; line-height: 1.3; }
	.sisf-sis-section-title .sisf-m-subtitle { font-size: 13px; padding: 6px 14px; }
	.sisf-sis-section-title.mb-4 { margin-bottom: 18px !important; }

	/* search box */
	.bsr-jobsearch { padding: 20px; }
	.bsr-jobsearch label { font-size: 13px; }

	/* jobs header: stack count over sort, no cramming */
	.bsr-jobs-head { flex-direction: column; align-items: stretch; gap: 14px; text-align: left; margin-bottom: 24px; }
	.bsr-jobs-head .bsr-count { font-size: 21px; }
	.bsr-sort { justify-content: space-between; width: 100%; }
	.bsr-sort .bsr-select { flex: 1 1 auto; }
	.bsr-sort .bsr-select select { width: 100%; }

	/* cards */
	.bsr-job-card { padding: 22px; }
	.bsr-job-title { font-size: 18px; min-height: 0; margin-right: 0; }
	.bsr-job-logo { width: 46px; height: 46px; font-size: 17px; }

	/* pagination */
	.bsr-pagination { gap: 8px; margin-top: 32px; }
	.bsr-pagination li a { min-width: 42px; height: 42px; padding: 0 12px; font-size: 14px; }

	/* detail */
	.bsr-detail-meta { gap: 8px 16px; }
}

@media only screen and (max-width: 575px) {
	/* search extra row: stack, add top spacing, button fits its text */
	.bsr-jobsearch-extra { flex-direction: column; align-items: center; gap: 16px; padding-top: 12px; }
	.bsr-remote-toggle { justify-content: center; }
	.bsr-jobsearch-extra .sis-btn-default { width: auto; justify-content: center; }

	/* keep jobs header left-aligned & stacked (override earlier centering) */
	.bsr-jobs-head { text-align: left; justify-content: flex-start; }

	/* card footer: let type pill + apply wrap cleanly */
	.bsr-job-foot { flex-wrap: wrap; gap: 10px; }

	/* detail head: logo above text */
	.bsr-detail-head { padding: 20px; gap: 16px; }
	.bsr-detail-logo { width: 54px; height: 54px; font-size: 20px; border-radius: 14px; }
	.bsr-detail-title { font-size: 21px; }
	.bsr-detail-body { padding: 20px; }

	/* apply card: center it and let the button fit its text */
	.bsr-detail-card:has(.bsr-apply-btn) { text-align: center; }
	.bsr-apply-btn { width: auto; }
}
