/* ============================
   🎨 Variables globales (formation)
============================ */
:root {
	--primary-color: #875e40;
	--secondary-color: #05121e;
	--primary-color-dark: #6c4a33;
	--text-dark: #333;
	--white: #fff;
	--light-gray: #f9f6f4;

	--shadow-light: 0 4px 12px rgba(0, 0, 0, 0.12);
	--shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.16);
	--shadow-strong: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================
   Cover Challenge des 4 & Ateliers
============================ */

.challenge-cover {
	width: 100%;
	height: 200px;
	overflow: hidden;
	border-radius: 12px;
	position: relative;
	background: var(--light-gray);
	box-shadow: var(--shadow-light);
}

/* Image */
.challenge-cover-img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	filter: brightness(0.75); /* meilleure lisibilité du texte */
}

/* Texte overlay */
.challenge-cover-title {
	position: absolute;
	bottom: 25px;
	left: 30px;
	color: var(--white);
	z-index: 10;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.challenge-cover-title h2 {
	font-size: 1.8rem;
	margin: 0 0 5px 0;
	font-weight: 800;
}

.challenge-cover-title h4 {
	font-size: 1.2rem;
	margin: 0;
	font-weight: 500;
	opacity: 0.95;
}

.atelier-cover {
	width: 100%;
	background: var(--white);
	border-radius: 18px;
	box-shadow: var(--shadow-light);
	padding: 24px 28px;
	position: relative;
	overflow: hidden;
}

/* Petit liseré couleur en haut pour rappeler le header */
.atelier-cover::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 100%;
	background: var(--secondary-color);
	border-radius: 6px 0 0 6px;
}

/* On remet le bloc en flux normal et on enlève le texte blanc */

.atelier-cover-title h2 {
	font-size: 1.8rem;
	font-weight: 800;
	color: #6a4b2b;
	margin-bottom: 0.2rem;
}

.atelier-cover-title h4 {
	font-size: 1.2rem;
	color: #333;
	opacity: 0.85;
}

/* Zone texte sous le titre */
.atelier-infos {
	margin-top: 1rem;
	gap: 0.35rem;
}

.atelier-lieu {
	font-weight: 600;
}

.atelier-infos a {
	color: var(--secondary-color);
	font-weight: 600;
}

/* Badge lieu : style “pill” harmonisé */
.atelier-badge {
	align-self: flex-start;
	border-radius: 999px;
	padding: 0.35rem 0.9rem;
	font-size: 0.9rem;
	background: var(--secondary-color);
	color: var(--white);
}

.atelier-badge a {
	color: inherit;
	text-decoration: underline;
	font-weight: 500;
}

/* Texte descriptif */
.atelier-infos span {
	font-size: 0.95rem;
}

/* ============================
   Responsive
============================ */

@media (max-width: 992px) {
	.challenge-cover {
		height: 240px;
	}
	.challenge-cover-title h1 {
		font-size: 1.9rem;
	}
	.challenge-cover-title h4 {
		font-size: 1.05rem;
	}
}

@media (max-width: 768px) {
	.challenge-cover {
		height: 200px;
	}
	.challenge-cover-title {
		bottom: 18px;
		left: 20px;
	}
	.challenge-cover-title h1 {
		font-size: 1.6rem;
	}
	.challenge-cover-title h4 {
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.challenge-cover {
		height: 180px;
	}
	.challenge-cover-title h1 {
		font-size: 1.45rem;
	}
	.challenge-cover-title h4 {
		font-size: 0.85rem;
	}
}

/* ============================
   📐 Box Sizing (formation uniquement)
============================ */
p {
	margin: 0 !important;
}

.lesboxcorses-content *,
.lesboxcorses-content ::after,
.lesboxcorses-content ::before {
	box-sizing: border-box; /* retiré le !important */
}

.lesboxcorses-content {
	background: var(--light-gray);
}

/* ============================
   🎨 Couleurs & Boutons
============================ */
.lesboxcorses-content .text-primary-color {
	color: var(--primary-color);
}
.lesboxcorses-content .btn-primary-color {
	background-color: var(--primary-color);
	border: none;
	color: var(--white);
}
.lesboxcorses-content .btn-primary-color:hover {
	background-color: var(--primary-color-dark);
}
.lesboxcorses-content .btn-outline-primary-color {
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
}
.lesboxcorses-content .btn-outline-primary-color:hover {
	background-color: var(--primary-color);
	color: var(--white);
}

/* ============================
   🗂 Onglets
============================ */
.lesboxcorses-content .nav-tabs {
	border-bottom: none;
	gap: 0.5rem;
}
.lesboxcorses-content .nav-tabs .nav-link {
	font-weight: 600;
	color: var(--text-dark);
	border: none;
	background: #f9f9f9;
	border-radius: 6px 6px 0 0;
	padding: 0.75rem 1rem;
	transition: all 0.2s ease;
}
.lesboxcorses-content .nav-tabs .nav-link:hover {
	background: #f1f1f1;
	color: var(--primary-color);
}
.lesboxcorses-content .nav-tabs .nav-link.active {
	background: var(--light-gray);
	color: var(--primary-color);
	border-left: 6px solid var(--primary-color);
	border-radius: 6px 6px 0 0;
	font-weight: 700;
}
.lesboxcorses-content .tab-content {
	background: var(--light-gray);
	padding: 1.5rem;
}

/* Onglets – comportement mobile / tablette */
@media (max-width: 991.98px) {
	.lesboxcorses-content .nav-tabs.challenge-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		white-space: nowrap;
		padding-bottom: 0.25rem;
		margin-bottom: 0.5rem;
		/* masque la scrollbar visuellement sur certains navigateurs si tu veux :
		scrollbar-width: none;
		}
		*/
	}

	.lesboxcorses-content .nav-tabs.challenge-tabs .nav-link {
		font-size: 0.9rem;
		padding: 0.5rem 0.75rem;
	}

	/* un peu moins de padding dans le contenu pour les petits écrans */
	.lesboxcorses-content .tab-content {
		padding: 1rem;
	}
}

/* ============================
   Accordéon
============================ */
.lesboxcorses-content .accordion-button {
	font-weight: 600;
	color: var(--text-dark);
	background: var(--white) !important;
	transition: all 0.2s ease;
}
.lesboxcorses-content .accordion-button:not(.collapsed) {
	color: var(--primary-color);
	background: var(--white) !important;
	border-left: 6px solid var(--primary-color);
}
.lesboxcorses-content .accordion-item {
	border: none;
	border-bottom: 1px solid #eaeaea;
}

/* ============================
   🖼 Images
============================ */
.lesboxcorses-content .paiement-multi {
	box-shadow: var(--shadow-light);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.lesboxcorses-content .paiement-multi:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}
.lesboxcorses-content .cover-img {
	max-height: 300px;
	width: 100%;
	object-fit: cover;
	border-radius: 8px;
}

/* ============================
   🧭 Breadcrumb
============================ */
.breadcrumb-area {
	padding: 3rem 0;
	position: relative;
}
.breadcrumb {
	background: transparent;
	padding: 0;
	margin-bottom: 0.75rem;
}
.breadcrumb-item + .breadcrumb-item::before {
	color: #292929;
	content: "›";
	font-weight: bold;
}
.breadcrumb-link {
	color: #292929;
	font-size: 0.9rem;
	font-weight: 500;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s ease;
}
.breadcrumb-link:hover {
	color: var(--primary-color);
	text-decoration: underline;
}
.breadcrumb-title {
	font-weight: 700;
	font-size: 2.2rem;
	color: var(--secondary-color);
	border-left: 6px solid var(--primary-color);
	padding-left: 0.75rem;
	margin-top: 0.5rem;
	margin-bottom: 0 !important;
}

/* ============================
   📏 Ajustements Footer
============================ */
.lesboxcorses-content .site-content,
.lesboxcorses-content main {
	margin-bottom: 0;
	padding-bottom: 0;
}
.lesboxcorses-content section.container:last-of-type {
	margin-bottom: 2rem;
}

/* ============================
   🔠 Typographie ajustée
============================ */
.lesboxcorses-content .details {
	font-size: 1.2rem;
}

.lesboxcorses-content .citation-box {
	background: var(--light-gray);
	border-left: 4px solid var(--primary-color);
	font-style: italic;
	color: var(--text-dark);
	box-shadow: var(--shadow-light);
}

/* Empêche tout débordement horizontal sur mobile */
html,
body {
	overflow-x: hidden;
}

/* Corrige le débordement des rows Bootstrap dans les conteneurs étroits */
.container,
.container-fluid {
	overflow-x: hidden;
}

/* Supprime le léger débordement lié à la combinaison row/col + p-3 sur mobile */
@media (max-width: 768px) {
	.formations-domaines .row {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.formations-domaines [class^="col-"],
	.formations-domaines [class*=" col-"] {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* ============================
   📦 Sidebar
============================ */

/* ============================
   Sidebar LesBoxCorses – card
============================ */

/* Card globale */
.lesboxcorses-content .sidebar-intro {
	border-left: none;
	border-radius: 16px;
	padding: 0;
	overflow: hidden;
	box-shadow: var(--shadow-strong);
	background: var(--white);
}

/* Partie image en haut */
.lesboxcorses-content .sidebar-intro-media {
	position: relative;
	height: 230px;
	background: var(--secondary-color);
}

.lesboxcorses-content .sidebar-intro-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: brightness(0.65);
}

/* Overlay badge + titre */
.lesboxcorses-content .sidebar-intro-overlay {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	color: var(--white);
	text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
	z-index: 2;
}

.lesboxcorses-content .sidebar-intro-badge {
	display: inline-block;
	margin-bottom: 0.4rem;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	background: rgba(249, 246, 244, 0.2);
	border: 1px solid rgba(249, 246, 244, 0.5);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lesboxcorses-content .sidebar-intro-overlay h3 {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0;
}

/* Corps textuel sous l’image */
.lesboxcorses-content .sidebar-intro-body {
	padding: 1.25rem 1.4rem 1.4rem 1.4rem;
	color: var(--text-dark);
	font-size: 0.95rem;
	line-height: 1.6;
}

.lesboxcorses-content .sidebar-intro-body p {
	margin-bottom: 0.75rem !important;
}

.lesboxcorses-content .sidebar-intro-lead {
	font-weight: 600;
}

/* Baseline */
.lesboxcorses-content .sidebar-intro-tagline {
	font-style: italic;
	font-weight: 500;
	color: var(--primary-color-dark);
	background-color: var(--light-gray);
}

@media (max-width: 991.98px) {
	.lesboxcorses-content .sidebar-intro-media {
		height: 210px;
	}
}

@media (max-width: 575.98px) {
	.lesboxcorses-content .sidebar-intro-media {
		height: 190px;
	}

	.lesboxcorses-content .sidebar-intro-overlay {
		left: 14px;
		right: 14px;
		bottom: 14px;
	}

	.lesboxcorses-content .sidebar-intro-overlay h3 {
		font-size: 1.3rem;
	}
}

.offre-tag {
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
	margin-top: 0.5rem !important;
	display: inline-block;
}

.offre-tag-particulier {
	background: #f5a623; /* à adapter à ta palette */
	color: #fff;
}

.offre-tag-pro {
	background: var(--secondary-color);
	color: var(--white);
}
