/************************************************
   GAVE Agency - Espace entreprise
   (complète candidat.css, qui fournit le gabarit commun)
*************************************************/

/* ---------- En-tête ---------- */
.ent-post-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 10px 20px rgba(23, 210, 124, 0.25);
}
.ent-logo {
	background: linear-gradient(135deg, #0f172a 0%, var(--gv-blue) 100%) center / cover no-repeat;
	border-radius: 22%;
}
.cand-avatar--lg.ent-logo,
.cand-avatar--xl.ent-logo {
	border-radius: 24px;
}
.ent-verified {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	color: #047857;
	background: rgba(23, 210, 124, 0.12);
	border-radius: 999px;
}

/* ---------- Boutons ---------- */
.ent-btn-reject {
	color: #b91c1c;
	background: #fff;
	border: 1px solid #fecaca;
	border-radius: 999px;
	font-weight: 700;
}
.ent-btn-reject:hover {
	color: #fff;
	background: #dc2626;
	border-color: #dc2626;
}
.ent-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	font-size: 16px;
	color: var(--gv-muted);
	background: var(--gv-surface);
	border: 0;
	border-radius: 50%;
	transition: all 0.15s ease;
}
.ent-fav:hover {
	color: #d97706;
}
.ent-fav.is-saved {
	color: #d97706;
	background: rgba(245, 158, 11, 0.16);
}

/* ---------- Tableau de bord ---------- */
.ent-chart {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	height: 210px;
	padding: 0;
	margin: 10px 0 0;
}
.ent-chart li {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	gap: 6px;
}
.ent-chart li span {
	position: relative;
	display: block;
	width: 100%;
	max-width: 36px;
	background: linear-gradient(180deg, var(--gv-blue) 0%, #60a5fa 100%);
	border-radius: 10px 10px 4px 4px;
	transition: opacity 0.2s ease;
}
.ent-chart li span:hover {
	opacity: 0.8;
}
.ent-chart em {
	position: absolute;
	top: -20px;
	left: 0;
	right: 0;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	text-align: center;
	color: var(--gv-ink);
}
.ent-chart small {
	font-size: 12px;
	font-weight: 600;
	color: var(--gv-muted);
}
.ent-jobs-mini {
	padding: 0;
	margin: 0;
}
.ent-jobs-mini a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--gv-line);
}
.ent-jobs-mini li:last-child a {
	border-bottom: 0;
}
.ent-jobs-mini a > span:first-child {
	flex: 1;
	min-width: 0;
}
.ent-jobs-mini strong,
.ent-jobs-mini small {
	display: block;
}
.ent-jobs-mini strong {
	color: var(--gv-ink);
}
.ent-jobs-mini small {
	font-size: 13px;
	color: var(--gv-muted);
}
.ent-jobs-mini em {
	min-width: 70px;
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
	text-align: right;
	color: var(--gv-blue);
}
.ent-jobs-mini a:hover strong {
	color: var(--gv-blue);
}

/* ---------- Page publique ---------- */
.ent-pub {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--gv-line);
	border-radius: var(--gv-radius);
	box-shadow: var(--gv-shadow-lg);
}
.ent-pub-cover {
	height: 150px;
	background: linear-gradient(135deg, var(--gv-blue) 0%, #0f172a 60%, var(--gv-green) 140%);
}
.ent-pub-head {
	display: flex;
	align-items: flex-end;
	gap: 22px;
	padding: 0 32px 24px;
	margin-top: -50px;
	border-bottom: 1px solid var(--gv-line);
}
.ent-pub-head .cand-avatar {
	cursor: default;
	box-shadow: 0 0 0 5px #fff;
}
.ent-pub-head h2 {
	margin-bottom: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 26px;
	font-weight: 800;
	color: var(--gv-ink);
}
.ent-pub-check {
	font-size: 18px;
	color: var(--gv-green);
}
.ent-pub-body {
	padding: 26px 32px 32px;
}
.ent-pub-body section + section {
	margin-top: 26px;
}
.ent-pub-body h3 {
	margin-bottom: 12px;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: var(--gv-ink);
}
.ent-pub-body p {
	font-size: 15px;
	line-height: 1.75;
	color: var(--gv-text);
}
.ent-pub-jobs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ent-pub-job {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--gv-line);
	border-radius: 14px;
	transition: all 0.15s ease;
}
.ent-pub-job:hover {
	border-color: var(--gv-blue);
}
.ent-pub-job strong,
.ent-pub-job small {
	display: block;
}
.ent-pub-job strong {
	color: var(--gv-ink);
}
.ent-pub-job small {
	font-size: 13px;
	color: var(--gv-muted);
}

/* ---------- Publier une offre ---------- */
.job-stepper {
	justify-content: flex-start;
	flex-wrap: wrap;
	margin-bottom: 0;
}
.job-step {
	border: 0;
	padding: 0;
	margin: 0;
}
.job-step legend {
	font-family: 'Montserrat', sans-serif;
	font-size: 21px;
	font-weight: 700;
	color: var(--gv-ink);
	margin-bottom: 20px;
}
.ent-checks {
	display: flex;
	gap: 20px;
	padding-top: 10px;
}
.ent-preview {
	position: sticky;
	top: 20px;
}
.ent-preview-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gv-muted);
}
.ent-preview-card {
	padding: 24px;
	background: #fff;
	border: 1px dashed rgba(38, 59, 214, 0.4);
	border-radius: var(--gv-radius);
	box-shadow: var(--gv-shadow);
}
.ent-preview-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.ent-preview-card h3 {
	margin-bottom: 2px;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: var(--gv-ink);
	word-break: break-word;
}
.ent-preview-company {
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gv-blue);
}
.ent-preview-card .job-row-meta {
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}
.ent-preview-desc {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.7;
	white-space: pre-line;
	color: var(--gv-text);
}
.ent-preview-card .is-placeholder {
	color: #cbd5e1 !important;
}
.ent-preview-card .badge.is-placeholder {
	background: var(--gv-surface);
}
.ent-preview-card .job-tags {
	margin-bottom: 18px;
}
.ent-preview-btn {
	pointer-events: none;
}

/* ---------- Mes offres ---------- */
.ent-job-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ent-job {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--gv-line);
	border-radius: var(--gv-radius);
	transition: box-shadow 0.2s ease;
}
.ent-job:hover {
	box-shadow: var(--gv-shadow-lg);
}
.ent-job-main {
	flex: 1;
	min-width: 0;
}
.ent-job-main h3 {
	margin-bottom: 6px;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
}
.ent-job-main h3 a {
	color: var(--gv-ink);
}
.ent-job-main h3 a:hover {
	color: var(--gv-blue);
}
.ent-job-main .cand-reject {
	margin-top: 8px !important;
}
.ent-job[data-statut="cloturee"],
.ent-job[data-statut="brouillon"] {
	background: #fcfcfd;
}
.ent-job-stats {
	display: flex;
	gap: 10px;
	padding: 0;
	margin: 0;
}
.ent-job-stats li {
	position: relative;
	min-width: 96px;
	padding: 10px 12px;
	font-size: 12px;
	text-align: center;
	color: var(--gv-muted);
	background: var(--gv-surface);
	border-radius: 12px;
}
.ent-job-stats strong {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	color: var(--gv-ink);
}
.ent-job-stats em {
	position: absolute;
	top: -8px;
	right: -6px;
	padding: 1px 7px;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	color: #fff;
	background: #e11d48;
	border-radius: 999px;
}
.ent-job-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ent-job-actions .dropdown-item {
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
}

/* ---------- Candidatures ---------- */
.ent-offer-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
}
.ent-offer-bar .form-label {
	flex-shrink: 0;
	font-weight: 700;
	color: var(--gv-ink);
}
.ent-offer-bar .form-label i {
	color: var(--gv-blue);
}
.ent-offer-bar .form-select {
	flex: 1;
	font-weight: 600;
	border-radius: 12px;
}
.ent-cand-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ent-cand {
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--gv-line);
	border-radius: var(--gv-radius);
	transition: box-shadow 0.2s ease;
}
.ent-cand:hover {
	box-shadow: var(--gv-shadow-lg);
}
.ent-cand.is-new {
	/* border-left: 4px solid var(--gv-blue); */
}
.ent-cand-head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.ent-cand-main {
	flex: 1;
	min-width: 0;
}
.ent-cand-main h3 {
	margin-bottom: 6px;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 700;
}
.ent-cand-main h3 a {
	color: var(--gv-ink);
}
.ent-cand-main h3 a:hover {
	color: var(--gv-blue);
}
.ent-new {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 9px;
	font-family: 'Open Sans', sans-serif;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
	color: #fff;
	background: var(--gv-blue);
	border-radius: 999px;
}
.ent-cand-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}
.ent-match {
	font-size: 13px;
	font-weight: 700;
	color: #047857;
}
.ent-cand .cand-reject {
	margin: 12px 0 0 !important;
}
.ent-cand-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--gv-line);
}
.ent-cand-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
}
.ent-file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--gv-blue);
}
.ent-file .fa-file-pdf {
	color: #dc2626;
}
.ent-cand-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.ent-cand-actions .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ent-reasons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ent-reasons .rdv-mode span {
	justify-content: flex-start;
	text-align: left;
}

/* ---------- Fiche candidat ---------- */
.ent-cand-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
}
.ent-cand-bar-info {
	display: flex;
	align-items: center;
	gap: 14px;
}
.ent-cand-bar-info strong,
.ent-cand-bar-info .cand-muted {
	display: block;
}
.ent-cand-bar .cand-reject {
	width: 100%;
	margin: 0 !important;
}

/* ---------- CVthèque ---------- */
.ent-search {
	display: flex;
	gap: 12px;
	padding: 14px;
}
.ent-search .hero-field {
	flex: 1;
}
.ent-search .form-select {
	width: auto;
	min-width: 190px;
	border-radius: 12px;
}
.ent-talent {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--gv-line);
	border-radius: var(--gv-radius);
	transition: all 0.2s ease;
}
.ent-talent:hover {
	border-color: transparent;
	box-shadow: var(--gv-shadow-lg);
}
.ent-talent-head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.ent-talent-head div {
	flex: 1;
	min-width: 0;
}
.ent-talent h3 {
	margin: 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 17px;
	font-weight: 700;
}
.ent-talent h3 a {
	color: var(--gv-ink);
}
.ent-talent-head p {
	margin: 0;
	font-size: 14px;
	color: var(--gv-muted);
}
.ent-talent .job-tags span {
	padding: 5px 12px;
	font-size: 12px;
}
.ent-talent-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--gv-line);
}
.cand-open-dot {
	font-size: 12px;
	font-weight: 600;
	color: #047857;
}
.cand-open-dot i {
	font-size: 8px;
	vertical-align: 2px;
}
.cand-alert .job-tags {
	margin-top: 8px;
}
.cand-alert .job-tags span {
	padding: 4px 10px;
	font-size: 12px;
}
.cand-alert h3 a {
	color: var(--gv-ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.ent-preview {
		position: static;
	}
	.cand-main .listing-aside > .filter-panel {
		display: none;
	}
	.cand-main .listing-aside.is-open > .filter-panel {
		display: block;
	}
}
@media (max-width: 991px) {
	.ent-post-btn {
		width: 100%;
		justify-content: center;
	}
}
@media (max-width: 767px) {
	.ent-job,
	.ent-cand-head {
		flex-wrap: wrap;
	}
	.ent-job-stats {
		width: 100%;
	}
	.ent-job-stats li {
		flex: 1;
	}
	.ent-job-actions {
		width: 100%;
		justify-content: flex-end;
	}
	.ent-cand-side {
		flex-direction: row;
		align-items: center;
		width: 100%;
	}
	.ent-offer-bar,
	.ent-search {
		flex-wrap: wrap;
	}
	.ent-search .form-select {
		width: 100%;
	}
	.ent-pub-head {
		flex-direction: column;
		align-items: flex-start;
		padding: 0 20px 20px;
	}
	.ent-pub-body {
		padding: 20px;
	}
}

/* ---------- Ajustements ---------- */
.ent-btn-reject.btn-sm {
	padding: 9px 18px;
	font-size: 14px;
}
@media (min-width: 992px) and (max-width: 1399px) {
	.ent-post-btn {
		display: none !important;
	}
}

/* ---------- Tableau de bord : « Mes offres » aéré ---------- */
.ent-offers-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ent-offer-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
	color: var(--gv-ink);
	text-decoration: none;
	border: 1px solid var(--gv-line);
	border-radius: 14px;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ent-offer-row:hover {
	border-color: #c7cff7;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
	transform: translateY(-1px);
	color: var(--gv-ink);
}
.ent-offer-icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	font-size: 18px;
	color: var(--gv-blue);
	background: #eef1fd;
}
.ent-offer-icon.is-attente { color: #b45309; background: #fff4e5; }
.ent-offer-icon.is-refusee { color: #dc2626; background: #fdecec; }
.ent-offer-icon.is-cloturee,
.ent-offer-icon.is-brouillon { color: #6b7280; background: #f1f3f8; }
.ent-offer-main {
	flex: 1;
	min-width: 0;
}
.ent-offer-title {
	display: block;
	overflow: hidden;
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.ent-offer-row:hover .ent-offer-title {
	color: var(--gv-blue);
}
.ent-offer-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 13px;
	color: var(--gv-muted);
}
.ent-offer-meta i {
	margin-right: 6px;
	font-size: 12px;
	color: #9ca3af;
}
.ent-offer-meta .is-soon,
.ent-offer-meta .is-soon i {
	color: #b45309;
}
.ent-offer-status {
	flex-shrink: 0;
}
.ent-offer-status .cand-status {
	white-space: nowrap;
}
.ent-offer-stats {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 104px;
}
.ent-offer-count {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6px 12px;
	border-radius: 12px;
	background: #f6f7fb;
	line-height: 1.15;
}
.ent-offer-count strong {
	font-size: 18px;
	color: var(--gv-muted);
}
.ent-offer-count small {
	font-size: 11px;
	color: var(--gv-muted);
}
.ent-offer-count.is-filled {
	background: #eef1fd;
}
.ent-offer-count.is-filled strong {
	color: var(--gv-blue);
}
.ent-offer-count em {
	margin-top: 3px;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	color: var(--gv-green, #16a34a);
}
.ent-offer-views {
	font-size: 12px;
	color: #9ca3af;
}
.ent-offer-arrow {
	flex-shrink: 0;
	font-size: 13px;
	color: #c0c6d4;
	transition: color 0.2s, transform 0.2s;
}
.ent-offer-row:hover .ent-offer-arrow {
	color: var(--gv-blue);
	transform: translateX(2px);
}
@media (max-width: 767.98px) {
	.ent-offer-row {
		flex-wrap: wrap;
		gap: 12px 14px;
		padding: 16px;
	}
	.ent-offer-main {
		flex-basis: calc(100% - 60px);
	}
	.ent-offer-title {
		white-space: normal;
	}
	.ent-offer-status {
		margin-left: 60px;
	}
	.ent-offer-stats {
		flex-direction: row;
		min-width: 0;
		margin-left: auto;
	}
	.ent-offer-count {
		flex-direction: row;
		gap: 4px;
		align-items: baseline;
	}
	.ent-offer-count strong {
		font-size: 15px;
	}
	.ent-offer-arrow {
		display: none;
	}
}

/* ---------- CVthèque : espacement de la recherche et des filtres ---------- */
.ent-cvtheque .ent-search {
	margin-bottom: 28px;
}
.ent-cvtheque .filter-panel {
	padding: 22px 18px 14px;
}
.ent-cvtheque .filter-panel-head {
	padding: 0 6px 14px;
	margin-bottom: 0;
}
.ent-cvtheque .filter-group {
	margin-top: 0;
	padding: 18px 0 10px;
}
.ent-cvtheque .filter-group h3 {
	margin: 0 6px 10px;
	font-size: 12px;
}
.ent-cvtheque .filter-check {
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 7px 6px;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 8px;
	transition: background 0.15s;
}
.ent-cvtheque .filter-check:hover {
	background: #f5f7fd;
}
.ent-cvtheque .filter-check input {
	flex-shrink: 0;
	margin-top: 1px;
}
.ent-cvtheque .filter-check input:checked + span {
	font-weight: 600;
	color: var(--gv-ink);
}
.ent-cvtheque .listing-aside + div > .cand-muted {
	margin-top: 4px;
	margin-bottom: 18px !important;
}
