html {
	min-height: 100vh;
}

/* ======================== */
/* == HEADER == */
/* ======================== */

.digiforma-formation-page-header {
	position: relative;
	color: var(--white, #fff);
}

.digiforma-formation-page-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--df-brand-color) 0%, rgba(0, 0, 0, 0) 100%);
	opacity: 0.7;
	z-index: -1;
}

.digiforma-formation-page-header-image,
.digiforma-formation-page-header-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	z-index: -2;
	filter: brightness(0.65);
}

.digiforma-formation-page-header-container {
	padding-top: 50px;
	padding-bottom: 95px;
	text-align: center;
}

.digiforma-formation-page-header
	.digiforma-formation-page-header-container
	:is(h1, h2, a:not(.digiforma-btn), p, li) {
	color: var(--white, #fff);
}

.digiforma-formation-page-header .digiforma-formation-page-header-breadcrumb {
	text-align: left;
	font-size: 0.875rem;
	text-transform: uppercase;
	font-weight: 700;
}

.digiforma-formation-page-header .digiforma-formation-page-header-breadcrumb a {
	text-decoration: none;
}

.digiforma-formation-page-header .digiforma-formation-page-header-title {
	margin: 50px 0 16px;
}

.digiforma-formation-page-header .digiforma-formation-page-header-subtitle {
	margin: 16px 0;
	font-size: 1.25rem;
}

.digiforma-formation-description {
	margin-bottom: 2rem;
}

.digiforma-formation-page-header-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.digiforma-formation-page-header-meta .card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ======================== */
/* == MAIN == */
/* ======================== */

.digiforma-formation-page-main {
	background-color: var(--df-light-color, #f3f3f3);
}

.digiforma-formation-page-main-container {
	padding-top: 100px;
	padding-bottom: 100px;
	display: grid;
	grid-template-columns: 100%;
	gap: 50px;
}

.digiforma-formation-page-main-content {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.digiforma-formation-page-main-sidebar .digiforma-formation-tab {
	position: sticky;
	top: 100px;
	padding: 48px;
	box-shadow: 2px 2px 10px 0 var(--df-brand-color);
	border-radius: var(--df-border-radius);
}

.digiforma-formation-financing-title {
	margin-bottom: 16px;
}

@media (min-width: 1024px) {
	.digiforma-formation-page-main-container {
		grid-template-columns: calc(100% - 350px) 300px;
	}
}

@media (min-width: 1280px) {
	.digiforma-formation-page-main-container {
		grid-template-columns: calc(100% - 450px) 400px;
	}
}

/* ======================== */
/* == FORMATIONS CARD == */
/* ======================== */

.digiforma-card .digiforma-subtitle {
	margin: 1rem 0 0.5rem;
}

.digiforma-card p {
	margin: 0.5rem 0;
}

.digiforma-card ul {
	margin: 1rem 0 0.5rem;
	list-style: none;
	margin: 12px 0;
	padding: 0;
}

.digiforma-card ul li {
	position: relative;
	margin: 0 0 8px 0;
	padding: 0 0 0 26px;
	line-height: 1.8;
}

.digiforma-card ul li::before {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	top: 6px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10.5px 0 10.5px 10px;
	border-color: transparent transparent transparent var(--df-brand-color);
}

.digiforma-card--objectives ul li {
	padding: 0;
}

.digiforma-card--objectives ul li::before {
	display: none;
}

.digiforma-formation-objective-item {
	display: flex;
	gap: 12px;
}

.digiforma-formation-objective-item svg {
	color: var(--df-brand-color);
}

.formation-card-details-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ======================== */
/* == SIDEBARS / TABS == */
/* ======================== */

.digiforma-switch-container {
	display: flex;
}

.digiforma-formation-tab {
	background-color: var(--white, #fff);
	padding: 48px;
	box-shadow: 2px 2px 10px 0 var(--df-brand-color);
}

.digiforma-switch-container .digiforma-switch-btn {
	flex-grow: 1;
	padding: 10px 0;
	background-color: var(--white, #fff);
	border: none;
	border-bottom: 4px solid var(--white, #fff);
	font-size: 1.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.3s ease;
	color: var(--df-brand-color);
}

.digiforma-switch-container .digiforma-switch-btn:hover,
.digiforma-switch-container .digiforma-switch-btn.active {
	border-bottom: 4px solid var(--df-brand-color);
}

.digiforma-switch-container .digiforma-switch-btn:focus {
	outline: none;
}

.digiforma-switch-container .digiforma-switch-btn:focus-visible {
	outline: 2px solid var(--df-brand-color);
	outline-offset: 2px;
}

.digiforma-formation-princing-title {
	margin: 0;
	padding: 2rem 0 0 0;
	text-align: center;
	font-size: 1.75rem;
}

.digiforma-card-grid-card-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.digiforma-formation-pricing-list-table {
	padding: 16px 0;
	border-bottom: 1px solid #000;
	display: grid;
	grid-template-columns: 100px auto;
	gap: 16px;
	font-size: 1rem;
}

.digiforma-formation-pricing-list-table-content {
	max-width: 188px;
	line-height: 1.125;
}

.digiforma-formation-pricing-list-table p {
	margin: 0;
}

.digiforma-formation-pricing-list-table-title {
	font-weight: 600;
}

.digiforma-formation-pricing-list-table-session-date:not(:last-child) {
	margin-bottom: 8px;
}

.digiforma-formation-intra-form,
.digiforma-formation-pricing-list-table-button {
	text-align: center;
	margin-top: 16px;
}

/* ======================== */
/* == SESSIONS == */
/* ======================== */

.digiforma-formation-page-sessions {
	padding: 72px 0;
	background-color: var(--white, #fff);
}

.digiforma-formation-page-sessions .digiforma-container {
	margin: 0px auto;
	width: 850px;
	max-width: calc(100% - 30px);
}

.session-list-container {
	padding-top: 36px;
}

.digiforma-formation-page-sessions .digiforma-formation-sessions-title {
	margin-bottom: 1rem;
	text-align: center;
}

.session.digiforma-formation-session-item {
	padding: 1rem 1.25rem 1rem 1rem;
	border-bottom: 1px solid var(--df-brand-color);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
}

.digiforma-formation-session-content {
	flex-grow: 1;
}

.digiforma-formation-session-name {
	margin: 0 0 8px;
	font-size: 1.25rem;
	color: var(--df-brand-color);
	font-weight: 600;
}

.digiforma-formation-session-info {
	display: flex;
	gap: 0.5rem;
}

.digiforma-formation-session-spot,
.digiforma-formation-session-location,
.digiforma-formation-session-date,
.digiforma-formation-session-end-date,
.digiforma-formation-session-price {
	margin: 0;
}

@media (max-width: 767px) {
	.digiforma-formation-session-separator {
		order: -2;
	}
	.digiforma-formation-session-info {
		flex-wrap: wrap;
	}
	.digiforma-formation-session-price {
		order: -3;
	}
	.digiforma-formation-session-location {
		order: -1;
		min-width: 60%;
		flex-grow: 1;
	}
	.session.digiforma-formation-session-item {
		flex-direction: column;
	}
}

@media (min-width: 768px) {
	.digiforma-formation-session-location {
		margin-left: auto;
	}
}

/* ======================== */
/* == VIDEO == */
/* ======================== */

.digiforma-formation-video-thumbnail {
	position: relative;
	margin-top: 1rem;
	cursor: pointer;
}

.digiforma-formation-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	width: 100px;
	height: 100px;
	background-color: var(--df-brand-color);
	border-radius: 50%;
	display: flex;
	transition: transform 0.3s ease;
}

.digiforma-formation-play-icon:hover {
	transform: translate(-50%, -50%) scale(1.1);
}

/* Video Modal Styles */
.digiforma-video-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(5px);
}

.digiforma-video-modal-content {
	position: relative;
	width: 90%;
	max-width: 1000px;
	height: 80%;
	margin: 5% auto;
	background-color: transparent;
}

.digiforma-video-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #f1f1f1;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	transition: color 0.3s ease;
}

.digiforma-video-modal-close:hover,
.digiforma-video-modal-close:focus {
	color: #bbb;
	text-decoration: none;
}

.digiforma-video-modal-iframe-container {
	position: relative;
	width: 100%;
	height: 100%;
	background-color: #000;
	border-radius: var(--df-border-radius-xs, 0);
	overflow: hidden;
}

.digiforma-video-modal-iframe-container iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* ======================== */
/* == MORE CONTENT == */
/* ======================== */

.digiforma-more-content.shrinked {
	position: relative;
	max-height: 200px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.digiforma-more-content:after {
	content: "";
	width: 100%;
	height: 120px;
	position: absolute;
	bottom: 0;
	left: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white, #fff));
}

.digiforma-more-content.shrinked:after {
	opacity: 1;
}

.digiforma-more-content {
	max-height: 2000px;
	transition: max-height 0.3s ease;
}

.digiforma-more-content-toggle {
	display: block;
	width: fit-content;
	margin: 0 auto;
	border: none;
	border-bottom: 2px solid var(--df-brand-color);
	padding: 12px 16px;
	cursor: pointer;
	background-color: transparent;
	font-size: 1rem;
	color: var(--df-brand-color);
	font-weight: 600;
}

/* ======================== */
/* == FILTERS == */
/* ======================== */

.digiforma-formation-filter-fields {
	display: flex;
	gap: 16px;
}

.digiforma-formation-filter-btn {
	display: flex;
	width: fit-content;
	margin: 0 auto;
	gap: 6px;
	color: #fff;
	background-color: var(--df-brand-color);
	padding: 12px 16px;
	border: none;
	border-radius: var(--df-border-radius);
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
}

.digiforma-formation-filter-btn + input {
	width: 100%;
	height: 1px;
	opacity: 0;
	border: none;
}

.digiforma-formation-filter-close {
	border: none;
	background-color: transparent;
	font-size: 2rem;
	cursor: pointer;
	color: var(--df-brand-color);
	font-weight: 600;
}

@media (max-width: 767px) {
	.digiforma-formation-filter-fields {
		margin-top: 2rem;
		flex-direction: column;
	}
	.digiforma-formation-filter-popup-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.digiforma-formation-filter-popup {
		box-sizing: border-box;
		display: none;
		position: fixed;
		top: 16px;
		left: 16px;
		width: calc(100vw - 32px);
		height: calc(100vh - 32px);
		background-color: #fff;
		z-index: 1000;
		padding: 40px;
		box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.5);
		border-radius: var(--df-border-radius);
	}
	#filter-toggle:checked + .digiforma-formation-filter-popup {
		display: block;
	}
	.digiforma-formation-filter-label {
		display: grid;
		grid-template-columns: 1.2fr 3fr;
		gap: 16px;
		align-items: center;
	}
	.digiforma-formation-filter-title {
		margin: 0;
	}
}

@media (min-width: 768px) {
	.digiforma-formation-filter-btn,
	.digiforma-formation-filter-close {
		display: none;
	}
	.digiforma-formation-filter-fields label {
		flex-grow: 1;
	}
	.digiforma-formation-filter-fields select {
		margin-top: 6px;
	}
	.digiforma-formation-filter-popup {
		margin-bottom: 1rem;
		background-color: var(--white, #fff);
		box-shadow: 2px 2px 10px 0 var(--df-brand-color);
		padding: 24px;
		border-radius: var(--df-border-radius);
	}
	.digiforma-formation-filter-title {
		margin: 0 0 1rem;
		text-align: center;
		color: var(--df-brand-color);
	}
}

/** 
Form 
*/

.digiforma-progress-steps {
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 1em 0 2em 0;
}
.digiforma-progress-step {
	width: 2.2em;
	height: 2.2em;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--df-brand-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1.2em;
	margin: 0 0.5em;
	border: 2px solid #eee;
	transition: background 0.2s, color 0.2s, border 0.2s;
}
.digiforma-progress-step.is-disabled {
	opacity: 0.5;
	filter: grayscale(100%) brightness(0.5);
}
.digiforma-progress-step.active {
	background: var(--df-brand-color);
	color: #fff;
	border: 2px solid var(--df-brand-color);
}

/* Form header */

.digiforma-form-button {
	display: flex;
	align-items: center;
	text-decoration: none;
	width: fit-content;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
}

.digiforma-form-button svg {
	fill: #fff;
}

.digiforma-form-page-wrapper {
	position: relative;
}

.digiforma-form-page-back-container {
	position: absolute;
	top: 0;
	left: 0;
	padding: 32px 0 0;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	z-index: 5;
	width: 100%;
}

.digiforma-form-header {
	position: relative;
	background-color: var(--df-brand-color);
	padding: 120px 0 32px;
	color: #fff;
}

.digiforma-form-page-header-image,
.digiforma-form-page-header-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	pointer-events: none;
	filter: brightness(0.65);
}

.digiforma-form-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--df-brand-color) 0%, rgba(0, 0, 0, 0) 100%);
	opacity: 0.7;
	z-index: 2;
}

.digiforma-form-header .digiforma-container {
	position: relative;
	z-index: 5;
}

.digiforma-form-header h1 {
	margin: 0 0 16px;
	color: #fff;
	text-align: center;
}

.digiforma-form-title-name {
	display: block;
}

.digiforma-form-page-header-informations {
	margin: 32px 0;
	display: flex;
	align-items: center;
	gap: 16px;
}

.digiforma-form-page-header-informations p {
	margin: 0;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.digiforma-form-session-name {
	flex-shrink: 9999;
	max-width: 80%;
}

.digiforma-form-page-form {
	padding-bottom: 80px;
}

.digiforma-form-content-container {
	padding: 30px 0 0;
}

.question-set {
	display: grid;
	gap: 32px 50px;
	min-height: 120px;
	width: 100%;
	max-width: 900px;
	margin: 0 auto 32px;
}

.digiforma-form-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.digiforma-form-label[for="stagiairesFillLater"] {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.digiforma-form-label:has(input[type="hidden"]) {
	display: none;
}

.digiforma-form .digiforma-form-button {
	background-color: var(--df-brand-color);
	color: #fff;
	padding: 12px 24px;
	border: 2px solid var(--df-brand-color);
	border-radius: var(--df-border-radius-xs);
	cursor: pointer;
	font-size: 1.25rem;
	width: fit-content;
	margin: 0 auto;
	transition: background-color 0.3s ease;
}

.digiforma-form .digiforma-form-button:hover {
	background-color: transparent;
	color: var(--df-brand-color);
}
.digiforma-form-paragraph {
	text-align: center;
}

.digiforma-sirene-lookup {
	box-sizing: border-box;
	background-color: var(--df-brand-color);
	padding: 12px 24px;
	width: 100%;
	max-width: 900px;
	margin: 0 auto 32px;
	border-radius: var(--df-border-radius);
}

.digiforma-sirene-lookup .digiforma-form-sirene-label {
	position: relative;
	display: flex;
	flex-direction: column;
}

.digiforma-sirene-lookup .digiforma-form-sirene-label-text {
	display: block;
	padding-bottom: 4px;
	color: #fff;
}

.digiforma-form-sirene-button {
	position: absolute;
	right: 4px;
	bottom: 8px;
	border-radius: var(--df-border-radius);
	border: 1px solid var(--df-brand-color);
	padding: 4px 12px;
	background-color: var(--df-brand-color);
	color: var(--white, #fff);
	cursor: pointer;
	height: 36px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.digiforma-form-sirene-button:hover {
	background-color: transparent;
	color: var(--df-brand-color);
}

.digiforma-form-sirene-results {
	display: grid;
	margin-top: 16px;
	grid-gap: 16px;
}

.digiforma-form-sirene-results > div {
	background-color: var(--white, #fff);
	padding: 16px;
	border-radius: var(--df-border-radius);
	cursor: pointer;
}

.digiforma-form-sirene-results > div p {
	margin: 0;
}

.digiforma-form-sirene-results > div p:first-child {
	position: relative;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 120%;
	width: fit-content;
	transition: color 0.3s ease;
}

.digiforma-form-sirene-results > div:hover p:first-child {
	color: var(--df-brand-color);
}

.digiforma-form-sirene-results > div p:first-child:after {
	content: "";
	position: absolute;
	bottom: 1px;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--df-brand-color);
	transition: width 0.3s ease;
}

.digiforma-form-sirene-results > div:hover p:first-child:after {
	width: 100%;
}

/* ======================================= */
/* == STAGIAIRES ========================= */
/* ======================================= */

.remove-stagiaire {
	display: none;
}

#add-stagiaire {
	padding: 12px 24px;
	background-color: var(--df-brand-color);
	color: #fff;
	border: 2px solid var(--df-brand-color);
	cursor: pointer;
	font-size: 1.25rem;
	width: fit-content;
}

.stagiaire-block {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.stagiaire-block {
	position: relative;
	margin-bottom: 32px;
	padding: 32px;
	border-radius: var(--df-border-radius);
	background-color: var(--white, #fff);
}

.stagiaire-block h2 {
	margin: 0;
}

.remove-stagiaire {
	display: flex;
	border: none;
	align-items: center;
	background-color: transparent;
	cursor: pointer;
	color: #a91818;
	font-size: 0.875rem;
	font-weight: 600;
	gap: 8px;
	position: absolute;
	z-index: 100;
	top: 16px;
	right: 16px;
}

.remove-stagiaire :is(svg, span) {
	pointer-events: none;
}

.stagiaires-list:has(.stagiaire-block:nth-child(2)) .remove-stagiaire {
	display: flex;
}

@media (min-width: 768px) {
	.question-set:has(.stagiaires-list) {
		margin-bottom: -50px;
	}
	.digiforma-form-content-container:has(.stagiaires-list) + .digiforma-form-buttons {
		width: 100%;
		max-width: 900px;
		margin: 0 auto;
	}
	.digiforma-form-content-container:has(.stagiaires-list)
		+ .digiforma-form-buttons
		.digiforma-form-button {
		margin-right: 0;
	}
	.question-set {
		grid-template-columns: calc(50% - 25px) calc(50% - 25px);
	}
	.digiforma-form-paragraph,
	.digiforma-form-label:has(textarea) {
		grid-column: span 2;
	}
	.digiforma-form-sirene-results {
		grid-template-columns: repeat(2, 1fr);
	}
	.stagiaires-list,
	.digiforma-form-button-add-stagiaire,
	.stagiaire-block h2 {
		grid-column: span 2;
	}
	.stagiaire-block {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.digiforma-form-page-header-informations {
		flex-wrap: wrap;
	}
	.digiforma-form-button-add-stagiaire {
		text-align: center;
	}
}
