#header .header-logo {
	max-width: 340px;
	width: 340px;
	flex: 0 1 340px;
}

#header .header-logo a {
	display: block;
	max-width: 100%;
}

#header .header-logo img {
	max-width: 100%;
	width: auto;
	height: auto;
	display: block;
}

/* Boutons CTA : fond primary, hover bleu clair, sans cadre ni animation */
.custom-btn-style-1:not(.btn-hero-slider),
.btn.custom-btn-style-1:not(.btn-hero-slider),
a.custom-btn-style-1:not(.btn-hero-slider),
button.custom-btn-style-1:not(.btn-hero-slider) {
	position: relative;
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
	color: #fff !important;
	transform: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease !important;
	box-shadow: none !important;
}

.custom-btn-style-1:not(.btn-hero-slider) > span {
	position: relative;
	z-index: 1;
	color: inherit !important;
}

.custom-btn-style-1:not(.btn-hero-slider):before,
.custom-btn-style-1:not(.btn-hero-slider):after {
	display: none !important;
	content: none !important;
}

.custom-btn-style-1:not(.btn-hero-slider):hover,
.custom-btn-style-1:not(.btn-hero-slider).hover,
.custom-btn-style-1:not(.btn-hero-slider):focus,
.custom-btn-style-1:not(.btn-hero-slider).focus,
.custom-btn-style-1:not(.btn-hero-slider):active,
.custom-btn-style-1:not(.btn-hero-slider).active {
	background-color: var(--primary--300) !important;
	border-color: var(--primary--300) !important;
	color: #fff !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Page Contact : coordonnées + case RGPD visible */
.contact-coordonnees .contact-coord-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	line-height: 0;
}

.contact-coordonnees .contact-coord-icon img,
.contact-coordonnees .contact-coord-icon svg,
.contact-coordonnees .contact-coord-icon .animated-icon {
	width: 22px !important;
	height: 22px !important;
}

.contact-consent {
	cursor: pointer;
	gap: 0.35rem;
}

.contact-consent-input {
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
	width: 1.1rem !important;
	height: 1.1rem !important;
	min-width: 1.1rem !important;
	margin: 0.15rem 0.5rem 0 0 !important;
	opacity: 1 !important;
	position: static !important;
	pointer-events: auto !important;
	accent-color: var(--primary);
}

.form-style-4 .contact-consent-input {
	display: inline-block !important;
}

.footer-logo {
	max-width: 230px;
	width: 100%;
	height: auto;
}

/* Réseaux sociaux — bandeau header */
.header-top-social {
	gap: 0.15rem;
}

.header-top-social .header-social-soon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.45;
	cursor: default;
}

/* Hauteur bandeau logo — desktop uniquement */
@media (min-width: 992px) {
	#header .header-container {
		height: 117px;
	}
}

/* Téléphone header : icône FA + espacement */
#header .header-top-phone {
	gap: 0.75rem;
	line-height: 1.2;
}

#header .header-top-phone-icon {
	flex: 0 0 auto;
	font-size: 0.7rem;
	line-height: 1;
	margin: 0;
	opacity: 0.95;
}

#header .header-top-phone-link {
	margin: 0;
	padding: 0;
}

/* Bandeau supérieur mobile : fond primary, texte blanc, tel plus petit */
@media (max-width: 991.98px) {
	#header .header-top {
		background-color: var(--primary) !important;
	}

	#header .header-top .custom-header-top-nav-background:before,
	#header .header-top .custom-header-top-nav-background:after {
		display: none;
	}

	#header .header-top .custom-header-top-nav-background {
		padding-right: 0 !important;
	}

	#header .header-top a,
	#header .header-top .text-color-light,
	#header .header-top .header-social-soon {
		color: #fff !important;
	}

	#header .header-top .social-icons li a,
	#header .header-top .social-icons li a i,
	#header .header-top .header-top-social .header-social-soon i {
		color: #fff !important;
	}

	#header .header-top .header-nav-top .nav-item {
		padding-top: 0.35rem !important;
		padding-bottom: 0.35rem !important;
	}

	#header .header-top .header-nav-top a {
		font-size: 0.8rem !important;
		line-height: 1.2 !important;
	}

	#header .header-top .header-top-phone {
		gap: 0.5rem;
	}

	#header .header-top .header-top-phone-icon {
		font-size: 0.62rem !important;
	}

	#header .header-top .header-top-social a,
	#header .header-top .header-top-social .header-social-soon {
		font-size: 0.95rem !important;
	}

	/* Bandeau blanc : logo plus gros, padding 0.75rem, bouton menu resserré */
	#header,
	#header .header-body,
	#header .header-container,
	#header .header-nav,
	#header .header-row,
	#header .header-column {
		min-height: 0 !important;
		height: auto !important;
	}

	#header .header-container {
		padding-top: 0.75rem !important;
		padding-bottom: 0.75rem !important;
	}

	#header .header-logo {
		width: auto;
		max-width: min(460px, 90vw);
		flex-basis: auto;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	#header .header-nav {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	#header .header-btn-collapse-nav {
		padding-left: 0.45rem !important;
		padding-right: 0.45rem !important;
		margin-left: 0.5rem !important;
	}

	#header .header-btn-collapse-nav i {
		font-size: 1.35rem !important;
		line-height: 1 !important;
	}
}

@media (max-width: 575px) {
	#header .header-logo {
		max-width: min(460px, 90vw);
	}
}

/* Homepage hero slider */
.home-hero-slider {
	overflow: hidden;
}

.home-hero-slider .owl-carousel,
.home-hero-slider .owl-stage-outer,
.home-hero-slider .owl-stage,
.home-hero-slider .owl-item {
	height: 100%;
}

.home-hero-slide {
	min-height: 70vh;
	height: 620px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.home-hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.15) 100%);
	z-index: 1;
}

.home-hero-overlay .container {
	position: relative;
	z-index: 2;
	width: 100%;
}

/* CTA slider : fond blanc → transparent au survol */
.home-hero-slider .btn-hero-slider {
	background-color: #fff !important;
	border-color: #fff !important;
	color: var(--primary) !important;
}

.home-hero-slider .btn-hero-slider > span {
	color: inherit;
	position: relative;
	z-index: 1;
}

.home-hero-slider .btn-hero-slider:before {
	background-color: transparent !important;
	opacity: 0 !important;
}

.home-hero-slider .btn-hero-slider:hover,
.home-hero-slider .btn-hero-slider:focus {
	background-color: transparent !important;
	border-color: #fff !important;
	color: #fff !important;
}

.home-hero-slider .shape-divider {
	z-index: 3;
	pointer-events: none;
}

.home-hero-slider .owl-dots {
	bottom: 140px !important;
}

.home-hero-slider .owl-nav {
	bottom: auto;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	pointer-events: none;
}

.home-hero-slider .owl-nav button.owl-prev,
.home-hero-slider .owl-nav button.owl-next {
	pointer-events: auto;
	width: 52px !important;
	height: 52px !important;
	line-height: 52px !important;
	font-size: 1.35rem !important;
	color: #fff !important;
	background: rgba(0, 0, 0, 0.35) !important;
	border-radius: 50%;
	opacity: 0.9;
	transition: background 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.home-hero-slider .owl-nav button.owl-prev {
	left: 28px !important;
}

.home-hero-slider .owl-nav button.owl-next {
	right: 28px !important;
	left: auto !important;
}

.home-hero-slider .owl-nav button.owl-prev:before,
.home-hero-slider .owl-nav button.owl-next:before {
	font-size: 1.35rem !important;
	line-height: 52px !important;
}

.home-hero-slider .owl-nav button.owl-prev:hover,
.home-hero-slider .owl-nav button.owl-next:hover {
	background: rgba(0, 0, 0, 0.55) !important;
	opacity: 1;
	color: #fff !important;
}

@media (max-width: 991px) {
	.home-hero-slide {
		height: 520px;
		min-height: 60vh;
	}

	.home-hero-slider .owl-dots {
		bottom: 100px !important;
	}

	.home-hero-slider .owl-nav button.owl-prev,
	.home-hero-slider .owl-nav button.owl-next {
		width: 44px !important;
		height: 44px !important;
		line-height: 44px !important;
	}

	.home-hero-slider .owl-nav button.owl-prev {
		left: 16px !important;
	}

	.home-hero-slider .owl-nav button.owl-next {
		right: 16px !important;
	}

	.home-hero-slider .owl-nav button.owl-prev:before,
	.home-hero-slider .owl-nav button.owl-next:before {
		line-height: 44px !important;
		font-size: 1.15rem !important;
	}
}

@media (max-width: 575px) {
	.home-hero-slide {
		height: 480px;
	}
}

.formations-family-nav .nav-link {
	border-radius: 0;
	font-weight: 600;
	transition: all 0.2s ease;
}

.formations-family {
	scroll-margin-top: 110px;
}

.formation-texte h2 {
	font-size: 1.35rem;
	font-weight: 600;
	margin-top: 1.75rem;
	margin-bottom: 0.75rem;
}

.formation-texte ul {
	padding-left: 1.1rem;
	margin-bottom: 1rem;
}

.formation-texte li {
	margin-bottom: 0.35rem;
}

/* Accueil — ombre moderne sur les pavés cliquables */
.page-home .custom-link-hover-effects > .card {
	box-shadow:
		0 1px 2px rgba(16, 24, 40, 0.04),
		0 8px 24px rgba(16, 24, 40, 0.08),
		0 20px 40px rgba(16, 24, 40, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-home .custom-link-hover-effects:hover > .card {
	box-shadow:
		0 2px 4px rgba(16, 24, 40, 0.04),
		0 12px 32px rgba(16, 24, 40, 0.12),
		0 28px 56px rgba(16, 24, 40, 0.1);
	transform: translateY(-4px);
}

.page-formation .page-header.formation-page-header {
	position: relative;
	background-image: none !important;
	background-color: #fff;
	padding: 0 !important;
	min-height: 0 !important;
}

.page-formation .formation-page-header .formation-header-body,
.page-formation .formation-page-header .shape-divider {
	position: relative;
	z-index: 1;
}

/* —— Mobile : bandeau image court, textes en dessous —— */
.page-formation .formation-header-media {
	position: relative;
	height: 180px;
	overflow: hidden;
}

.page-formation .formation-header-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.page-formation .formation-header-body {
	background: #eee;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 1.25rem !important;
	padding-bottom: 1.25rem !important;
}

.page-formation .formation-header-copy {
	display: block;
	max-width: 46rem;
	margin: 0 auto;
	padding: 0;
	background: none;
	box-shadow: none;
	backdrop-filter: none;
	text-align: center;
}

.page-formation .formation-header-title {
	color: var(--dark, #212529);
}

.page-formation .formation-header-lead,
.page-formation .formation-header-lead p {
	color: #4a4a4a;
	opacity: 1;
}

.page-formation .formation-header-breadcrumb,
.page-formation .formation-header-breadcrumb a,
.page-formation .formation-header-breadcrumb li {
	color: #6c757d !important;
	text-shadow: none;
}

.page-formation .formation-header-breadcrumb a:hover {
	color: var(--primary) !important;
	opacity: 1;
}

/* —— Desktop : image en fond + panneau sombre (comportement actuel) —— */
@media (min-width: 992px) {
	.page-formation .formation-page-header {
		min-height: 420px;
	}

	.page-formation .formation-header-media {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0; /* image derrière la vague (pas de bande blanche) */
		height: auto;
		z-index: 0;
	}

	.page-formation .formation-page-header .shape-divider {
		z-index: 2;
		pointer-events: none;
	}

	.page-formation .formation-header-body {
		background: transparent;
		margin-top: 1rem !important;
		margin-bottom: 0 !important;
		padding-top: 2rem !important;
		padding-bottom: 4rem !important;
	}

	.page-formation .formation-header-copy {
		display: inline-block;
		padding: 1.75rem 2rem;
		background: rgba(12, 18, 28, 0.62);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
		border-radius: 0.25rem;
		box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
	}

	.page-formation .formation-header-title {
		color: #fff;
	}

	.page-formation .formation-header-lead,
	.page-formation .formation-header-lead p {
		color: #fff;
		opacity: 0.9;
	}

	.page-formation .formation-header-copy a {
		color: #fff;
		text-decoration: underline;
	}

	.page-formation .formation-header-breadcrumb,
	.page-formation .formation-header-breadcrumb a,
	.page-formation .formation-header-breadcrumb li {
		color: #fff !important;
		text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
	}

	.page-formation .formation-header-breadcrumb a:hover {
		color: #fff !important;
		opacity: 0.85;
	}
}

.formation-sidebar {
	top: 110px;
	z-index: 2;
}

.formation-sidebar .card-img-top {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

/* Trait sous titres (points + ligne), style type « programme » */
.title-underline {
	position: relative;
	padding-bottom: 0.85rem;
	margin-bottom: 1.35rem !important;
}

.title-underline::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: min(100%, 11.5rem);
	background-image: linear-gradient(
		90deg,
		var(--primary) 0 calc(100% - 30px),
		transparent calc(100% - 30px) calc(100% - 24px),
		var(--primary) calc(100% - 24px) calc(100% - 21px),
		transparent calc(100% - 21px) calc(100% - 17px),
		var(--primary) calc(100% - 17px) calc(100% - 14px),
		transparent calc(100% - 14px) calc(100% - 10px),
		var(--primary) calc(100% - 10px) calc(100% - 7px),
		transparent calc(100% - 7px) calc(100% - 3px),
		var(--primary) calc(100% - 3px) 100%
	);
	background-repeat: no-repeat;
}

.text-center > .title-underline::after,
.title-underline.text-center::after {
	left: 50%;
	transform: translateX(-50%);
}

/* Titres issus du contenu landing / fiche catalogue */
.formation-landing-contenu > h2,
.formation-texte > h2 {
	position: relative;
	padding-bottom: 0.85rem;
	margin-top: 2rem;
	margin-bottom: 1.35rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.formation-landing-contenu > h2:first-child,
.formation-texte > h2:first-child {
	margin-top: 0;
}

.formation-landing-contenu > h2::after,
.formation-texte > h2::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: min(100%, 11.5rem);
	background-image: linear-gradient(
		90deg,
		var(--primary) 0 calc(100% - 30px),
		transparent calc(100% - 30px) calc(100% - 24px),
		var(--primary) calc(100% - 24px) calc(100% - 21px),
		transparent calc(100% - 21px) calc(100% - 17px),
		var(--primary) calc(100% - 17px) calc(100% - 14px),
		transparent calc(100% - 14px) calc(100% - 10px),
		var(--primary) calc(100% - 10px) calc(100% - 7px),
		transparent calc(100% - 7px) calc(100% - 3px),
		var(--primary) calc(100% - 3px) 100%
	);
	background-repeat: no-repeat;
}

/* Accordéons : chevron bas à gauche du titre */
.accordion .card-header .accordion-toggle {
	display: block;
	position: relative;
	padding-left: 2.15rem !important;
}

.accordion .card-header .accordion-toggle::before {
	content: "\f078";
	font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 0.75em;
	line-height: 1;
	position: absolute;
	left: 0.55rem;
	top: 50%;
	margin-top: 0;
	color: var(--primary);
	transition: transform 0.25s ease;
	transform: translateY(-50%) rotate(0deg);
}

.accordion .card-header .accordion-toggle:not(.collapsed)::before {
	transform: translateY(-50%) rotate(180deg);
}

/* —— Bandeaux pages internes : mobile uniquement (desktop = rendu Porto d’origine) —— */
@media (max-width: 991.98px) {
	.site-page-header.page-header {
		background-image: none !important;
		background-color: #eee !important;
		min-height: 0 !important;
		padding: 0 !important;
	}

	.site-page-header .site-page-header-body {
		margin: 0 !important;
		padding-top: 1.25rem !important;
		padding-bottom: 1.25rem !important;
	}

	.site-page-header .site-page-header-body .row {
		margin-bottom: 0 !important;
	}

	.site-page-header .site-page-header-body h1 {
		margin-bottom: 0;
		font-size: 1.75rem;
	}

	.site-page-header .shape-divider {
		display: none !important;
	}
}

