/* Variables CSS */
:root {
	--primary-color: #ec4e34;
	--secondary-color: #f9efe1;
	--dark-gray: #808080;
	--light-gray: #ecf0f1;
	--white: #ffffff;
	--font-primary: "Open Sans", sans-serif;
	--orange: #e45e16;
	--saumon: #eacfc8;
	--carrefour-police: #F6F9CB;
	--en-bref: #0099D7;
	--grand-angle: #2D9153;

}

/* Reset et base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

h1,
h2,
h3 {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.h2-article {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	color: var(--dark-gray);
	line-height: 30pt;
	font-weight: 400;
	padding-top: 30px;
	text-transform: uppercase;
}

.h2-article-chapitre {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	color: var(--dark-gray);
	line-height: 30pt;
	font-weight: 400;
	padding-top: 0;
}

.h3-article {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	line-height: 30pt;
	font-weight: 600;
	font-size: 1.5rem;
	margin-top: 30px;
}

html {
	scroll-padding-top: 220px; /* compense .main-header en position sticky lors des sauts d'ancre (notes de bas de page, etc.) */
}

body {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	color: black;
	background-color: var(--white);
	font-size: 20px;
	line-height: 21pt;
}

main a {
	color: var(--primary-color);
	text-decoration: none;
}

@media (max-width: 576px) {
	body {
		font-size: 18px;
		line-height: normal;
	}
}

.btn-title {
	color: black;
}

.chapo {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	color: var(--dark-gray);
	font-size: 22px;
	font-weight: bold;
	margin-top: 10px;
}

@media (max-width: 576px) {
	.chapo {
		font-size: 18px;
		line-height: normal;
	}
}

.intertitre {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-weight: bold;
	color: black;
	padding-top: 24px;
	padding-bottom: 12px;
	margin: 0;
}

.conclusion-titre {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	padding-top: 12px;
}

.conclusion-text {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-weight: bold;
	color: var(--primary-color);
	padding-bottom: 0;
}

.methodologie-text {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-weight: bold;
	color: var(--dark-gray);
	padding-bottom: 0;
}

.vignette-main-title {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	margin-top: 10px;
}

.vignette-container {
	padding: 10px;
	margin-bottom: 10px;
	margin-right: 10px;
	background-color: white;
	width: 32%;
}

.vignette-titre {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	font-weight: bold;
}

.vignette-titre a {
	color: black;
}

.vignette-titre a:hover {
	color: var(--primary-color);
}

.vignette-text {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	padding-bottom: 0;
}

.lien-article-titre,
.lien-article-titre a {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 24px;
	line-height: 1.6rem;
	font-weight: bold;
	color: var(--primary-color);
	text-decoration: none;
}

@media (max-width: 576px) {
	.lien-article-titre,
	.lien-article-titre a {
		font-size: 20px;
	}
}

.titre-section {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 30px;
	margin-top: 30px;
}

@media (max-width: 576px) {
	.titre-section {
		font-size: 24px;
	}
}

.article-date {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 20px;
	color: black;
	width: max-content;
	border-bottom: 7px solid;
	border-bottom-color: var(--primary-color);
	font-weight: bold;
	margin-bottom: 5px;
}

.article-date-past {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	color: var(--dark-gray);
	width: max-content;
	border-bottom: 7px solid;
	border-bottom-color: var(--dark-gray);
	font-weight: bold;
	margin-bottom: 5px;
}

.article-titre {
	font-size: 22px;
	text-decoration: none;
	color: black;
	line-height: 20pt;
}

.article-titre:hover {
	color: var(--primary-color);
}

.chapitre-titre-lien {
	color: black;
}

.chapitre-titre-lien:hover {
	color: var(--primary-color);
}

.article-titre-past {
	font-size: 20px;
	color: var(--dark-gray);
	text-decoration: none;
	line-height: 20pt;
}

.rencontre-lien-article {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 36px;
	text-decoration: none;
	color: black;
	font-weight: bold;
}

.border-top-text {
	width: max-content;
	border-top: 2px solid black;
}

.border-top-chapitre {
	border-top: 2px solid black;
	font-weight: 100;
	padding-top: 10px;
}

.partenaire {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid black;
	padding: 30px;
}

.partenaire img {
	width: 150px;
	height: 150px;
}

.article-lien-contenu {
	padding-bottom: 5px;
}

.article-lien-video,
.article-lien-lecture {
	color: var(--primary-color);
	text-decoration: none;
	margin-right: 50px;
}

.article-lien-video span,
.article-lien-lecture span {
	margin-right: 4px;
}

/* Sidebar */
.sidebar-container-thematique {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
}

@media (max-width: 767px) {
	.sidebar-container-thematique {
		width: 50%;
		margin-left: 0;
		margin-right: 0;
	}

	#presentation .sidebar-container {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 992px) {
	.sidebar-container-thematique,
	.sidebar-container {
		width: 60%;
		margin-left: 0;
		margin-right: 0;
	}

	.sidebar-img {
		width: 100%;
	}
}

#formation-masteripad .sidebar-container-thematique div p {
	width: 50%;
	font-weight: 100;
	padding-top: 10px;
	display: block;
}

.sidebar-container-thematique {
	padding-top: 100px;
	padding-bottom: 80px;
	padding-right: 80px;
}

#ressources .sidebar-container-thematique {
	padding-top: 0;
	padding-right: 80px;
}

@media (max-width: 1200px) {
	.sidebar-container-thematique {
		padding-right: 20px;
	}
}

@media (max-width: 992px) {
	.sidebar-container-thematique {
		padding-top: 0;
		padding-right: 0;
		padding-bottom: 0;
	}
}

/* .sidebar-container-thematique div {
	margin-bottom: 80px;
}

@media (max-width: 992px) {
	.sidebar-container-thematique div {
		margin-bottom: 20px;
	}
} */

.sidebar-container .dashed-button a,
.sidebar-container-thematique .dashed-button a {
	font-size: 20px;
	padding: 5px;
	color: black;
	border: 2px solid;
	border-color: var(--primary-color);
	border-radius: 50%;
}

.sidebar-container .undashed-button a {
	font-size: 20px;
	padding: 5px;
	color: black;
	border: 0px;
}

.sidebar-container .dashed-button a:hover,
.sidebar-container-thematique .dashed-button a:hover {
	font-size: 20px;
	padding: 5px;
	color: black;
	border: dashed;
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	border-radius: 50%;
}

.sidebar-container {
	padding-top: 0;
	padding-right: 80px;
}

@media (max-width: 1200px) {
	.sidebar-container {
		padding-top: 0;
		padding-right: 20px;
	}
}

.sidebar-container div {
	margin-bottom: 20px;
}

.sidebar-container div p {
	margin-bottom: 50px;
	font-size: clamp(13px, 1vw, 18px);
	line-height: 1.3;
	font-weight: bold;
	overflow-wrap: break-word;
}

.sidebar-container .white-red-content {
	padding: 70px 20px 20px 20px;
	background-color: var(--primary-color);
	color: white;
}

.sidebar-container .white-orange-content {
	padding: 20px;
	background-color: var(--orange);
	color: white;
}

.sidebar-container div .agenda-fleche {
	font-size: 50px;
	color: black;
	width: 90px;
    height: 90px;
    display: inline-block;
}

.sidebar-container div .agenda-fleche-blanche, 
.sidebar-container-thematique .agenda-fleche-blanche {
	width: 90px;
    height: 90px;
    display: inline-block;
	color: white;
}

.sidebar-container a.img-wrap {
	position: relative;
	margin: 40px 0 0;
	display: block;
	/* aspect-ratio: 2 / 3; */
	height: 350px;
	max-height: 350px;
	overflow: hidden;
}

.sidebar-container a.img-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), color-mix(in srgb, var(--primary-color) 100%, transparent));
    pointer-events: none;
}

.img-wrap-placeholder {
	background-color: white;
	align-items: center;
	justify-content: center;
	/* aspect-ratio: 2 / 3; */
}

.sidebar-container a.img-wrap.img-wrap-placeholder,
.documents-joints a.img-wrap.img-wrap-placeholder,
.sidebar-container .img-overlay-wrap.img-wrap-placeholder {
	display: flex;
}


.img-wrap-placeholder img {
	width: 55%;
	height: auto;
}

.sidebar-auteurs ul {
	padding: 0;
}

.sidebar-auteurs li {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 18px;
	padding-top: 20px;
	padding-bottom: 12px;
	list-style: none;
	overflow-wrap: break-word;
	word-break: normal;
}

.sidebar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sidebar-container .img-overlay-wrap {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	max-width: 260px;
	max-height: 250px;
	margin-left: auto;
	margin-right: auto;
}

.sidebar-container .sidebar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* @media(max-width: 992px) {
    .sidebar-container {
        width: 50%;
    }
} */

.subtitle {
	font-size: 20px;
	font-weight: bold;
}

.sidebar-auteurs p a {
	font-size: 16px;
	border-top : 1px solid black;
	max-width: 100%;
    font-weight: 100;
    padding-top: 10px;
    display: block;
	color: black;
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: normal;
}

.sidebar-auteurs p .dashed-button-link {
    font-size: 20px;
    padding: 9px;
	padding-bottom: 12px;
	padding-top: 12px;
    color: black;
    border: 2px solid;
    border-color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 10px;
	margin-bottom: 50px;
}

.sidebar-auteurs p .dashed-button-link:hover {
    color: black;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50%;
}

.vignette-collection-so-what .img-overlay-wrap {
    position: relative;
    display: block;
	margin-bottom: 0;
}

.vignette-collection-so-what .img-overlay-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0), 
        color-mix(in srgb, var(--primary-color) 100%, transparent)
    );
    pointer-events: none;
}

.sidebar-container .sidebar-auteurs p strong{
	border-top: 2px solid black;
	padding-top: 5px;
}

.sidebar-container .sidebar-auteurs {
	margin-top: 50px;
}

.sidebar-auteurs .spip_document_image,
.sidebar-auteurs .spip_document_file {
	margin-top: 15px;
	margin-bottom: 15px;
}

.sidebar-auteurs .spip_document figure{
	margin: 0;
}

/* La boîte 220x220 ne cadre que l'image (lien ou img direct) : la légende reste en dehors, jamais coupée */
.sidebar-auteurs .spip_document_image .spip_doc_inner > a,
.sidebar-auteurs .spip_document_file .spip_doc_inner > a,
.sidebar-auteurs .spip_document_image .spip_doc_inner > img,
.sidebar-auteurs .spip_document_file .spip_doc_inner > img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1 / 1;
	height: auto;
	overflow: hidden;
}

.sidebar-auteurs .spip_document_image .spip_doc_inner {
	border: 1px solid black;
	background-color: white;
	width: 100%;
	max-width: 220px;
}

.sidebar-auteurs .spip_document_image img,
.sidebar-auteurs .spip_document_file img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Filet de sécurité : quelle que soit la structure HTML réelle autour de l'image
   (lien SPIP, balise emb, markup non prévu...), aucune image de la sidebar ne doit
   jamais dépasser 200px de large. */
.sidebar-auteurs img {
	max-width: 100% !important;
	height: auto !important;
	display: block !important;
	margin-left: auto !important;
	margin-right: auto !important;
}


/* Header */
.main-header {
	position: sticky;
	top: 0;
	background-color: var(--white);
	z-index: 99;
	width: 100%;
}
.navbar {
	padding: 1rem 0;
}

.logo-accueil {
	width: 350px;
	height: 150px;
}

.logo-accueil-header {
	width: 180px;
	height: 90px;
}

.brand-text p {
	font-size: 1.2rem;
	color: #666;
	margin: 0;
	font-weight: bold;
}

.navbar-nav {
	height: 40px;
}

.navbar-nav .nav-link {
	color: var(--dark-gray);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 15px;
	margin: 0 0.5rem;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: var(--primary-color);
}

.nav-item.dropdown {
	position: relative;
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::after {
	transform: rotate(180deg);
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	border: none;
	border-bottom: 15px solid var(--primary-color);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	padding: 0;
	margin: 0;
	list-style: none;
	display: none;
	border-radius: 0%;
	background-color: var(--secondary-color);
}

.nav-item.dropdown:hover .dropdown-menu {
	display: block;
}

.dropdown-item {
	display: block;
	width: min-content !important;
	padding: 0px;
	margin: 1rem;
	color: var(--dark-gray);
	text-decoration: none;
	border-bottom: 1px solid var(--light-gray);
	font-size: 15px;
	line-height: 10pt;
	text-transform: none;
	transition: all 0.3s ease;
}

.dropdown-item:last-child {
	border-bottom: none;
}

.dropdown-item:hover {
	color: var(--primary-color);
	background-color: var(--secondary-color);
}

.navbar-nav .dropdown-menu {
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    visibility: visible;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    max-height: 300px;
    opacity: 1;
}

.dropdown-menu .dropdown-item {
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
}

.dropdown:hover .dropdown-menu .dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
	.dropdown-menu {
		position: static;
		background-color: var(--secondary-color);
		border: none;
		box-shadow: none;
		display: none;
	}

	.navbar-nav .nav-link {
		font-size: 12px;
	}

	.nav-item.dropdown:hover .dropdown-menu {
		display: block;
	}

	.dropdown-item {
		font-size: 0.85rem;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.navbar-nav {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 1rem;
	}

	.navbar-nav .nav-item {
		flex: 0 0 calc(33.333% - 1rem);
		text-align: center;
	}

	.navbar-nav .nav-item .nav-link {
		padding: 0;
		margin: 0;
	}
}

@media (max-width: 768px) {
	.main-header #logo-accueil-link {
		position: relative;
		right: 100px;
	}

	.navbar-nav {
		height: auto;
	}

	#navbarNav {
		background-color: var(--white);
		padding: 0.5rem 0;
	}
}

.language-toggle {
	position: absolute;
	top: -10px;
	right: -20px;
	z-index: 1001;
	display: flex;
	align-items: start;
}

.language-toggle a {
	align-content: end;
	height: 65px;
	background-color: var(--dark-gray);
	color: var(--white);
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	margin: 0 0.25rem;
	padding: 0.25rem 0.5rem;
	transition:
		height 0.3s ease,
		background-color 0.3s ease;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* Textes bilingues */
html[lang="en"] .text-fr { display: none; }
html[lang="fr"] .text-en { display: none; }

html[lang="fr"] .language-toggle .lang-fr,
html[lang="en"] .language-toggle .lang-en {
	background-color: var(--primary-color);
	color: var(--white);
	height: 70px;
}

html[lang="fr"] .language-toggle .lang-en,
html[lang="en"] .language-toggle .lang-fr {
	background-color: var(--dark-gray);
	height: 65px;
}

.vr {
    background-color: var(--dark-gray);
    margin-bottom: 5px;
    margin-top: 5px;
    width: 1px;
    transform: scaleX(0.5);
    transform-origin: center;
}

/* Hover sur EN (inactif sur page FR) */
html[lang="fr"] .language-toggle .lang-en:hover {
	background-color: var(--primary-color);
	height: 70px;
}
html[lang="fr"] .language-toggle:has(.lang-en:hover) .lang-fr {
	background-color: var(--dark-gray);
	height: 65px;
}

/* Hover sur FR (inactif sur page EN) */
html[lang="en"] .language-toggle .lang-fr:hover {
	background-color: var(--primary-color);
	height: 70px;
}
html[lang="en"] .language-toggle:has(.lang-fr:hover) .lang-en {
	background-color: var(--dark-gray);
	height: 65px;
}

.header-image {
	background-image: url("../images/bandeau-marche-africain.jpg");
	background-size: cover;
	background-position: center;
	border-top: 1px solid var(--dark-gray);
	border-bottom: 1px solid var(--dark-gray);
	min-height: 80px;
	z-index: 1;
	position: relative;
}

.header-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, white 0%, transparent 20%, transparent 80%, white 100%);
	z-index: 2;
}

/* Breadcrumb personnalisé */
.breadcrumb .breadcrumb {
	padding: 0;
	margin: 0;
	border-radius: 0;
	display: flex;
	align-items: center;
}

.breadcrumb .breadcrumb-item {
	font-size: 0.9rem;
	color: var(--dark-gray);
	display: flex;
	align-items: center;
}

.breadcrumb .breadcrumb-item a {
	color: var(--dark-gray);
	text-decoration: none;
	transition: color 0.3s ease;
}

/* .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	content: "›";
	color: var(--dark-gray);
	font-size: 1.5rem;
	padding: 0 0.5rem;
	display: flex;
	align-items: center;
} */

.breadcrumb-theme li {
	max-width: 150px;
}

.breadcrumb-themes {
	position: sticky;
	top: 100px;
	background-color: var(--secondary-color);
	width: 100%;
	padding-bottom: 1rem;
}

.breadcrumb-themes.scrolled {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Main */
.page-title-thematique {
	font-size: 80px;
	color: black;
	margin: 0;
	font-weight: 800;
	line-height: 64pt;
	margin-top: 20px;
}

@media (max-width: 992px) {
	.page-title-thematique {
		font-size: 60px;
		line-height: 40pt;
	}
}

@media (min-width: 1400px) {
	.page-title-thematique {
		margin-right: 60px;
	}
}

.header-title-row {
	align-items: flex-start;
}

.page-title-courant {
	font-size: 64px;
	color: black;
	margin: 0;
	font-weight: 800;
	line-height: 50pt;
	max-width: 90%;
}

@media (max-width: 1200px) {
	.page-title-courant {
		font-size: 40px;
		line-height: 32pt;
		max-width: 100%;
	}
}

@media (max-width: 992px) {
	.page-title-courant {
		font-size: 40px;
		line-height: 32pt;
	}
}

.page-title2 {
	font-size: 64px;
	color: var(--dark-gray);
	margin-bottom: 30px;
}

@media (max-width: 992px) {
	.page-title2 {
		font-size: 40px;
		line-height: 32pt;
	}
}

main {
	position: relative;
	background-color: var(--secondary-color);
}

main > .container {
	padding-bottom: 30px;
}

.article-main-item {
	background-color: white;
}

.article-main-item .contenu {
	padding-left: 20px;
	padding-right: 100px;
}

#agenda .article-main-item img {
	width: 350px;
}

@media (max-width: 768px) {
	#agenda .article-main-item img {
		width: 100%;
	}
}

.surtitre {
	font-size: 14px;
	text-transform: uppercase;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	text-decoration: none;
	color: var(--primary-color);
	padding: 5px;
	font-weight: bold;
	display: inline-block;
	/* margin-bottom: 5rem; */
}

/* Templates */
.sidebar-info {
	padding: 20px;
	background-color: var(--orange);
	color: white;
	font-weight: bold;
}

/* .sidebar-info a {
	font-size: 40px;
	color: white;
} */

.projets-associations h4 {
	font-size: 22px;
	font-weight: bold;
}

@media (max-width: 576px) {
	.projets-associations h4 {
		font-size: 20px;
	}
}

.projets-associations h5 {
	font-size: 17px;
	line-height: 24px;
}

@media (max-width: 576px) {
	.projets-associations h5 {
		font-size: 17px;
		line-height: 24px;
	}
}

.projets-associations p {
	font-size: 16px;
	color: black;
	text-decoration: none;
	line-height: 16pt;
}

@media (max-width: 576px) {
	.projets-associations p,
	.projets-associations a {
		font-size: 16px;
	}
}
.rectangle-decoratif {
	width: 15%;
	height: 25px;
	background-color: var(--primary-color);
}

.projets-associations .row {
	margin-left: 0;
	margin-right: 0;
}

@media (min-width: 768px) {
	.projets-associations .news-slider {
		gap: 1rem;
	}
}

.projets-associations .news-slider > div {
	width: calc((100% - 2rem) / 3);
	margin-right: 0;
}

.projets-associations img {
	height: 200px;
	object-fit: contain;
	width: 100%;
}

/* Template Solidarités */
#themes-hero .row {
	z-index: 5;
	height: 100%;
	align-items: center;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

#themes-hero .theme-card {
	display: flex;
	color: var(--dark-gray);
	transition: all 0.3s ease;
	cursor: pointer;
	max-width: 200px;
}

#themes-hero .theme-card-active {
	display: flex;
	color: var(black);
	transition: all 0.3s ease;
	cursor: pointer;
	max-width: 200px;
}

#themes-hero .theme-card-active .theme-top {
	border-left-color: var(--primary-color);
}

#themes-hero .theme-top {
	border-left: 5px solid var(--dark-gray);
	transition: border-left-color 0.3s ease;
}

#themes-hero .theme-card:hover .theme-top {
	border-left-color: var(--primary-color);
}

#themes-hero .theme-card:hover a {
	color: black;
	text-decoration: none;
}

#themes-hero .theme-card a {
	text-transform: uppercase;
	font-size: 14px;
	align-items: baseline;
	padding-left: 5px;
	max-width: 150px;
	text-decoration: none;
	color: var(--dark-gray);
	line-height: 15pt;
}

#themes-hero .theme-card-active a {
	text-transform: uppercase;
	font-size: 14px;
	align-items: baseline;
	padding-left: 5px;
	max-width: 150px;
	text-decoration: none;
	color: black;
	font-weight: bold;
	line-height: 15pt;
}

#solidarites .text-bg-inactive {
	font-size: 16px;
	border-radius: 0;
	text-transform: uppercase;
	background-color: white;
	color: gray;
}

#solidarites .img-overlay-wrap {
	position: relative;
	display: block;
}

#solidarites .img-overlay-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0), 
        color-mix(in srgb, var(--white) 100%, transparent)
    );
    pointer-events: none;
}

.text-bg-agenda {
	font-size: 16px;
	border-radius: 0;
	text-transform: uppercase;
	background-color: var(--primary-color);
	color: white;
}

@media (max-width: 768px) {
	#solidarites .text-bg-inactive,
	.text-bg-agenda {
		font-size: 12px;
	}
}

.text-bg-decouvrir {
	font-size: 12px;
	border-radius: 0;
	text-transform: uppercase;
	background-color: var(--orange);
	color: white;
}

/* Section Agenda */
.agenda-section {
	background-color: var(--primary-color);
	color: var(--white);
}

.agenda-section h2 {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	position: relative;
	top: 100px;
	font-size: 30px;
	font-weight: 700;
	color: var(--white);
	transform: rotate(-90deg);
}

.agenda-section .row {
	margin-left: 200px;
	position: relative;
	bottom: 50px;
}

@media (max-width: 992px) {
	.agenda-section h2 {
		position: inherit;
		font-size: 2rem;
		font-weight: 700;
		color: var(--white);
		transform: rotate(0deg);
	}

	.agenda-section .row {
		margin-left: 0px;
		position: inherit;
	}
}

.agenda-card {
	padding: 2rem 1rem;
}

.date-badge {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	background-color: var(--white);
	color: black;
	width: max-content;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-direction: column;
	margin-bottom: 15px;
}

.agenda-card h4 {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.agenda-card p {
	font-size: 18px;
	line-height: 22pt;
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

.btn-voir-agenda {
	font-size: 30px;
	background-color: var(--primary-color);
	color: var(--white);
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 600;
	border-style: solid;
	border-width: 1px 1px;
	border-color: var(--white);
	display: inline-block;
	transition: all 0.3s ease;
}

.btn-voir-agenda:hover {
	background-color: var(--white);
	color: var(--primary-color);
}

/* Template Contact */
#contact .contact-form {
	text-transform: uppercase;
	font-weight: 300;
	font-size: 18px;
}

.btn-contact-effacer {
	background-color: var(--dark-gray);
	color: white;
	border-radius: 0;
	font-weight: bold;
}

.btn-contact-envoyer {
	background-color: var(--primary-color);
	color: white;
	border-radius: 0;
}

/* Formulaire SPIP (page Contacter la chaire) – classes uniquement */
.formulaire_spip {
	max-width: 42rem;
	margin: 2rem 0;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

.formulaire_spip .formulaire_editer form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.formulaire_spip .editer-groupe {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.formulaire_spip .editer {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	border: none;
}

.formulaire_spip .editer label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--dark-gray);
	line-height: 1.4;
}

.formulaire_spip .editer .text,
.formulaire_spip .editer .email,
.formulaire_spip .editer textarea,
.formulaire_spip .editer select {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.75rem;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.4;
	color: black;
	background-color: var(--white);
	border: none;
	border-radius: 0;
	box-sizing: border-box;
}

.formulaire_spip .editer textarea {
	min-height: 8rem;
	resize: vertical;
}

.formulaire_spip .editer .text:focus,
.formulaire_spip .editer .email:focus,
.formulaire_spip .editer textarea:focus,
.formulaire_spip .editer select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 1px var(--primary-color);
}

.formulaire_spip .editer .aide,
.formulaire_spip .editer .explication {
	font-size: 0.9rem;
	color: var(--dark-gray);
	line-height: 1.35;
}

.formulaire_spip .editer .erreur_message {
	font-size: 0.9rem;
	color: var(--primary-color);
	font-weight: 600;
}

.formulaire_spip .editer.erreur .text,
.formulaire_spip .editer.erreur .email,
.formulaire_spip .editer.erreur textarea,
.formulaire_spip .editer.erreur select {
	border-color: var(--primary-color);
}

.formulaire_spip .reponse_formulaire {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	font-size: 1rem;
	line-height: 1.4;
}

.formulaire_spip .reponse_formulaire_ok {
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.formulaire_spip .reponse_formulaire_erreur {
	background-color: #ffebee;
	color: #c62828;
	border: 1px solid #ef9a9a;
}

.formulaire_spip .boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding: 0;
}

.formulaire_spip .boutons .submit {
	padding: 0.6rem 1.25rem;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--white);
	background-color: var(--primary-color);
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.formulaire_spip .boutons .submit:hover {
	background-color: #c0392b;
}

.formulaire_spip .editer .choix {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.formulaire_spip .editer .choix .radio {
	width: auto;
	margin: 0;
}

@media (max-width: 576px) {
	.formulaire_spip {
		margin: 1.5rem 0;
	}

	.formulaire_spip .editer .text,
	.formulaire_spip .editer .email,
	.formulaire_spip .editer textarea,
	.formulaire_spip .editer select {
		font-size: 16px;
	}
}

/* Template Agenda */
#agenda {
	background-color: var(--saumon);
}

.agenda-page-title {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 30px;
	font-weight: 300;
	margin-top: 10px;
	margin-bottom: 30px;
	text-transform: uppercase;
}

.agenda-item h3 {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 30px;
	font-weight: 300;
	margin-top: 40px;
	margin-bottom: 30px;
	text-transform: uppercase;
}

.agenda-item .agenda-date {
	width: max-content;
	border-bottom: 5px solid;
	border-bottom-color: var(--primary-color);
	font-weight: bold;
}

.agenda-item .agenda-archive-date {
	width: max-content;
	border-bottom: 5px solid;
	border-bottom-color: var(--dark-gray);
	font-weight: bold;
}

@media (max-width: 768px) {
	.agenda-item {
		padding-left: 0;
	}
}

.agenda-item .article-titre {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 30px;
	text-decoration: none;
	color: black;
	line-height: 24pt;
}

.agenda-item .article-titre:hover {
	color: var(--primary-color);
}

@media (max-width: 768px) {
	.agenda-item .article-titre {
		font-size: 24px;
		line-height: 20pt;
	}
}

.agenda-item .agenda-archive-date {
	width: max-content;
	border-bottom: 5px solid;
	border-bottom-color: var(--dark-gray);
	font-weight: bold;
}

#agenda .col-sm-6 {
	border-bottom: 5px solid white;
}

#navbarAgenda a {
	margin-right: 20px;
	padding: 0;
	border-top: solid;
	border-top-color: var(--dark-gray);
	border-bottom: solid;
	border-bottom-color: var(--dark-gray);
}

/* Template Formation */
#formation-masteripad .sidebar-container {
	padding-top: 100px;
}

#formation-masteripad .formation-programme {
	padding-top: 40px;
}

/* Template Actualités */

#actualites .agenda-main-item img {
	width: 350px;
}

@media (max-width: 768px) {
	#actualites .agenda-main-item img {
		width: 100%;
	}
}

#actualites .agenda-main-item {
	background-color: white;
}

#actualites .agenda-item .agenda-date {
	width: max-content;
	border-bottom: 5px solid;
	border-bottom-color: var(--primary-color);
	font-weight: bold;
}

#actualites .agenda-item .agenda-archive-date {
	width: max-content;
	border-bottom: 5px solid;
	border-bottom-color: var(--dark-gray);
	font-weight: bold;
}

#actualites .col-sm-6 {
	border-bottom: 5px solid white;
}

/* #actualites .sidebar-container {
	padding-top: 200px;
}

@media (max-width: 992px) {
	#actualites .sidebar-container {
		padding-top: 0;
	}
} */

/* Template Equipe */

#equipe .equipe-container {
	padding-right: 100px;
}

#equipe .equipe-photo-wrap {
	width: 160px;
	height: 160px;
	overflow: hidden;
	flex-shrink: 0;
}

#equipe .equipe-photo-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

#equipe .titre-membres {
	font-weight: bold;
	margin-top: 30px;
}

#equipe div.hr {
	border-bottom: 5px solid white;
	margin-top: 20px;
}

#equipe .salarie-nom {
	font-weight: bold;
	margin: 0;
	padding-top: 20px;
}
#equipe .salarie-poste,
#equipe .salarie-email {
	margin: 0;
	font-size: 16px;
	line-height: 18pt;
}

#equipe .salarie-email p {
	margin-bottom: 0;
}

#equipe .linkedin-icon {
	display: inline-block;
	width: 30px;
	height: 30px;
	background-color: var(--orange);
	border-radius: 5px;
	text-align: center;
	color: white;
	font-size: 20px;
	align-content: center;
	margin-top: 10px;
}

/* Template Publications */
#publications .publication-item {
	border-bottom: 5px solid;
	border-bottom-color: var(--white);
}

#publications .publication-item .contenu {
	padding-right: 150px;
}

@media (max-width: 768px) {
	#publications .publication-item .contenu {
		padding-right: 0;
	}
}

#publications .publication-item img {
	width: 200px;
}

#publications .col-sm-6 {
	border-bottom: 5px solid white;
}

@media (max-width: 768px) {
	#publications .col-sm-6 {
		border-bottom: none;
	}
}

#publications .col-sm-6 img {
	min-width: 200px;
	min-height: auto;
}

#publications .sidebar-container {
	padding-top: 400px;
}

@media (max-width: 992px) {
	#publications .sidebar-container {
		padding-top: 0;
	}
}

/* Template Recherche */

#recherche .sidebar-container {
	padding-top: 80px;
	padding-bottom: 80px;
}

#recherche .sidebar-container div {
	padding: 20px;
	background-color: var(--orange);
	color: white;
}

#recherche .sidebar-container div a {
	font-size: 40px;
	color: white;
}

#recherche .search-results-container {
	background-color: white;
	padding: 20px 80px 50px 20px;
}

#recherche .search-results-container .search-results {
	border-bottom: 1px solid black;
}

#recherche .search-results-container .result-title {
	color: var(--primary-color);
	font-weight: bold;
	font-size: 12px;
	padding-top: 10px;
}

#recherche .search-results-container a {
	color: black;
}

#recherche .btn-container {
	position: relative;
	right: 20px;
	padding: 10px;
	border-radius: 50px;
	border: none;
	background-color: var(--secondary-color);
}

#recherche .search-icon-btn {
	width: 50px;
	height: 50px;
	background-color: var(--primary-color);
	border: none;
	border-radius: 50px;
	color: black;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

#recherche .search-icon-btn:hover {
	background-color: var(--orange);
}

#recherche .search-icon-btn .fa-search {
	font-size: 40px;
	position: relative;
	left: 5px;
	top: 5px;
}

#recherche .search-icon-btn .search-plus {
	position: absolute;
	font-size: 10px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#recherche .search-icon-btn ~ .form-control,
input.form-control {
	padding-right: 60px;
}

#recherche label {
	width: min-content;
	padding-right: 30px;
	margin-right: 40px;
}

/* Template Collection So What */
#collection-so-what #logo-so-what {
	width: 400px;
}

#collection-so-what .sidebar-container .section-button p {
	width: max-content;
}

#collection-so-what .so_what-intro p {
	font-weight: bold;
	color: var(--dark-gray);
}

#collection-so-what .separator {
	border-bottom: 5px solid white;
	padding-bottom: 40px;
	margin: 12px;
	margin-bottom: 40px;
}

#collection-so-what .sidebar-container-thematique {
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
}

#collection-so-what .sidebar-container-thematique div p {
	width: max-content;
	font-weight: 100;
	padding-top: 10px;
	border-top: none;
	display: block;
}

#collection-so-what .sidebar-container-thematique .sidebar-info {
	background-color: var(--primary-color);
}

#collection-so-what .sidebar-container-thematique .sidebar-info p {
	width: auto;
	font-weight: 600;
	padding-top: 10px;
	display: block;
	line-height: 16pt;
}

#collection-so-what .sidebar-container-thematique .sidebar-info p a,
#so-what .white-red-content .collection_sowhat_download a,
#defaut .white-red-content .collection_sowhat_download a {
	font-size: 16px;
	padding: 5px;
	background-color: white;
	color: var(--dark-gray) !important;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 10px;
}

#collection-so-what .img-overlay-wrap-article {
    position: relative;
    display: block;
}

#collection-so-what .img-overlay-wrap-article::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--secondary-color));
    pointer-events: none;
}

.vignette-collection-so-what {
	width: 80%;
}

@media (max-width: 992px) {
	.vignette-collection-so-what {
		width: 100%;
	}
}

/* Template So What */
#so-what .sidebar-container,
#collection-so-what .sidebar-container {
	padding-top: 400px;
}

@media (max-width: 992px) {
	#so-what .sidebar-container,
	#collection-so-what .sidebar-container {
		padding-top: 0;
	}
}

/* .logo-sowhat {
	min-width: 270px;
} */

#so-what .points-cles {
	color: var(--primary-color);
	position: relative;
	font-size: 16px;
	line-height: 16pt;
}

#so-what .points-cles .texte {
	margin-top: 40px;
	margin-bottom: 40px;
	font-weight: bold;
}

#so-what .points-cles-date {
	width: max-content;
	border-top: solid var(--dark-gray);
	border-bottom: solid var(--dark-gray);
	margin-top: 40px;
}

#so-what .points-cles .points-cles-badge {
	transform: rotate(-90deg);
	position: absolute;
	left: -85px;
	top: 100px;
	color: white;
	line-height: 1.4;
	z-index: 10;
}

#so-what .points-cles .points-cles-badge .line {
	background-color: var(--primary-color);
	padding: 5px;
	display: inline-block;
	width: auto;
}

@media (max-width: 992px) {
	#so-what .points-cles .points-cles-badge {
		display: none;
	}

	#so-what .points-cles:has(.points-cles-badge)::before {
		background-color: var(--primary-color);
		width: max-content;
		content: "Points clés";
		display: block;
		color: white;
		padding: 5px;
		margin-bottom: 15px;
		text-transform: uppercase;
	}
}

#so-what .sowhat-auteurs {
	margin-bottom: 100px;
}

/* #so-what a.img-wrap {
	padding-top: 100px;
} */

#so-what .collection_sowhat_download {
	margin-bottom: 20px;
}

#so-what .lettrine-auto::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

#so-what .lettrine-auto .lettrine-target::first-letter {
    float: left;
    font-size: 15em;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 6px;
    margin-left: -0.1em;
    padding-top: 0;
}

.sowhat-auteurs ul {
	list-style-type: none;
	padding-left: 0;
}
.sowhat-auteurs li {
	position: relative;
	margin-bottom: 20px;
	padding-left: 0;
	line-height: 15pt;
}

.carte-montpellier {
	width: 100%;
	height: auto;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.carte-montpellier {
		max-width: 95%;
	}
}

/* Pagination Opinions : même rendu que rencontre-section (cta-link / cta-link-inactive) */
.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 0;
}
.pagination .pagination-items {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.pagination .pagination-item {
	display: inline-block;
	list-style: none;
}
.pagination .pagination-item .pagination-item-label,
.pagination .pagination-item a.pagination-item-label {
	font-size: 14px;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	text-decoration: none;
	padding-top: 5px;
	padding-bottom: 5px;
	text-transform: uppercase;
	font-weight: bold;
	padding-right: 1rem;
	margin-right: 0.25rem;
}
.pagination .pagination-item.on .pagination-item-label,
.pagination .pagination-item.active .pagination-item-label {
	color: var(--primary-color);
}
.pagination .pagination-item:not(.active):not(.on) .pagination-item-label,
.pagination .pagination-item:not(.active):not(.on) a.pagination-item-label {
	color: var(--dark-gray);
}
.pagination
	.pagination-item:not(.active):not(.on)
	a.pagination-item-label:hover {
	color: var(--primary-color);
}

.hrRecontres {
	border-top: 5px solid white;
}

.documents-joints .white-red-content {
	padding: 20px;
	background-color: var(--dark-gray);
	color: white;
}

.documents-joints .white-red-content p {
	font-size: 18px;
	font-weight: bold;
	line-height: 16pt;
	margin-bottom: 20px;
}

.documents-joints .agenda-fleche-blanche {
	width: 90px;
	height: 90px;
	display: inline-block;
	color: white;
}

.documents-joints .agenda-fleche-blanche svg {
	width: 100%;
	height: 100%;
}

.documents-joints a.img-wrap {
	position: relative;
	margin: 0;
	display: block;
}

.documents-joints a.img-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), color-mix(in srgb, var(--dark-gray) 100%, transparent));
	pointer-events: none;
}
.hrChapitre {
	border-top: 2px solid white;
	margin: 0;
}

/* Template Opinions */
#opinion .intro-text {
	width: 70% !important;
	font-weight: bold;
	margin-bottom: 50px;
}

/* Template Opinions Article */
#opinion-article .lettrine-auto {
    margin-top: 50px;
}

#opinion-article .lettrine-auto::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

#opinion-article .lettrine-auto .lettrine-target::first-letter {
    float: left;
    font-size: 15em;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 6px;
    margin-left: -0.1em;
    padding-top: 0;
}

/* Template Présentation */
#presentation h3 {
	font-size: 50px;
	margin-bottom: 30px;
	font-style: italic;
	line-height: 3rem;
	font-weight: 100;
}

@media (max-width: 576px) {
	#presentation h3 {
		font-size: 30px;
		line-height: 2rem;
	}
}

#presentation .dashed-button {
	margin-bottom: 100px;
}

#presentation .dashed-button p {
	border-top: 1px solid;
	margin-top: 100px;
	font-weight: 100;
}

/* Template Ouvrage */
#ouvrage .formation-programme {
	padding-top: 40px;
}

#ouvrage .intro-section {
	position: relative;
	margin-bottom: 2rem;
}

#ouvrage .intro-image {
	position: relative;
	z-index: 1;
}

#ouvrage .intro-image-bg {
	background-image: url("/images/eco-alim.png");
	background-size: cover;
	background-position: top;
	min-height: 700px;
	height: 100%;
}

#ouvrage .intro-image img {
    width: 100% !important;
    object-fit: contain;
}

@media (max-width: 768px) {
	#ouvrage .intro-image-bg {
		min-height: 400px;
		height: 100%;
	}
}

#ouvrage .page-title-thematique {
	position: relative;
	z-index: 2;
	margin-top: -20px;
}

@media (max-width: 992px) {
	#ouvrage .page-title-thematique {
		position: relative;
		z-index: 2;
		margin-top: 0;
	}
}

#ouvrage h2 {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	color: var(--dark-gray);
	line-height: 25pt;
	font-weight: 400;
	padding-top: 30px;
}

#ouvrage h3 {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	line-height: 25pt;
	font-weight: 600;
	font-size: 1.5rem;
}

/* #ouvrage .italique {
	font-style: italic;
} */

.livre-partie {
	width: max-content;
	margin-bottom: 0;
}

.livre-partie-titre {
	border-top: 0px !important;
	padding-top: 0px !important;
}

#ouvrage .intro-text-container {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	line-height: 25pt;
	justify-content: center;
}

#ouvrage .intro-text {
	font-size: 20px;
	text-align: center;
	margin-bottom: 0;
	width: 75%;
	color: var(--dark-gray);
}

#ouvrage .intro-text strong {
	font-size: 1.8rem;
}

#ouvrage .intro-auteur {
	font-size: 1.5rem;
	text-align: center;
	margin-bottom: 0;
	width: 60%;
	color: var(--dark-gray);
}

.btn-toggle-chapter {
	background: none;
	border: 1px solid black;
	border-radius: 50%;
	color: black;
	cursor: pointer;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	font-size: 1.2rem;
}

.btn-toggle-chapter:hover {
	opacity: 0.7;
}

.btn-toggle-chapter.active i {
	transform: rotate(180deg);
}

.btn-toggle-chapter i {
	transition: transform 0.3s ease;
}

.chapter-content {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition:
		max-height 0.5s ease-in-out,
		opacity 0.3s ease-in-out;
}

.chapter-content.open {
	max-height: 5000px; /* Ajustez selon vos besoins */
	opacity: 1;
}

/* Template Colloque Article */
.colloque-img img {
	width: 100%;
}

/* Template Ressource Article */
#ressource-article .chapitre-titre {
	font-weight: 200;
	margin-bottom: 20px;
}

#ressource-article .lettrine-auto::first-letter {
	float: left;
	font-size: 10.5em;
	line-height: 1;
	margin-right: 8px;
	margin-top: 6px;
}

.ressource-associee-titre,
.ressource-associee-text {
	font-size: 18px !important;
}

/* Slider pour les actualités, publications, contenus associés sur mobile */
@media (max-width: 767px) {
	.news-slider {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 1rem;
	}

	.news-slider > div {
		flex: 0 0 85%;
		max-width: 85%;
		scroll-snap-align: start;
	}

	/* Masquer la scrollbar tout en gardant la fonctionnalité */
	.news-slider::-webkit-scrollbar {
		display: none;
	}

	.news-slider {
		-ms-overflow-style: none;
		scrollbar-width: none;
	}
}

/* -------- Template Rubrique Défaut (#carrefour) -------- */
main#carrefour {
	background-color: var(--primary-color);
}

#carrefour .page-title-courant {
	color: var(--carrefour-police) !important;
	font-weight: bold;
}

#carrefour .chapo {
	color: var(--carrefour-police) !important;
	font-weight: bold;
}

#carrefour .surtitre {
	color: var(--carrefour-police) !important;
	border-color: var(--white) !important;
	font-weight: bold;
}

#carrefour p,
#carrefour li {
	color: var(--carrefour-police) !important;
	font-weight: bold;
}

#carrefour a {
	color: var(--carrefour-police) !important;
	font-weight: bold;
}

#carrefour .rubrique-cards-section {
	background-color: transparent;
}

#carrefour .rubrique-cards-section .container{
	padding-right: 100px;
}

#carrefour .card-rubrique {
	color: white;
}

#carrefour .card-rubrique-img {
	overflow: hidden;
	aspect-ratio: 4 / 4;
}

#carrefour .card-rubrique-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

#carrefour .card-rubrique:hover .card-rubrique-img img {
	transform: scale(1.05);
}

#carrefour .card-rubrique-titre {
	font-size: 32px;
	font-weight: bold;
	color: var(--carrefour-police) !important;
	margin-bottom: 0.5rem;
}

#carrefour .card-rubrique-text {
	font-size: 16px;
	line-height: 1.5;
	color: white;
}

#carrefour .card-rubrique-fleche {
    width: 90px;
    height: 90px;
    display: inline-block;
    opacity: 0.3;
}

#carrefour .card-rubrique-fleche:hover {
	width: 90px;
    height: 90px;
    display: inline-block;
    opacity: 0.9;
   	color: var(--carrefour-police) !important;
}

@media (max-width: 768px) {
	#carrefour .card-rubrique-titre {
		font-size: 18px;
	}
}

/* Citation style "grande mise en avant" */
blockquote.spip {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 2.6rem;
    line-height: 1.1;
    margin-left: -50px;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    border-left: none;
    padding: 0;
    background: none;
    color: var(--dark-gray);
}

blockquote.spip p {
    margin: 0;
}

@media (max-width: 1200px) {
    blockquote.spip {
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    blockquote.spip {
        font-size: 1.5rem;
    }
}

/* Balises Editoriales : Conclusion rouge/bleu/vert Méthodologie Cadre Blanc */
.conclusion {
	margin-top: 1rem;
    margin-left: 2rem;
	color: var(--orange);
}

.conclusion-bleu {
	margin-top: 1rem;
    margin-left: 2rem;
	color: var(--en-bref);
}

.conclusion-vert {
	margin-top: 1rem;
    margin-left: 2rem;
	color: var(--grand-angle);
}

.conclusion h2{
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
	color: var(--dark-gray) !important;
	font-size: 20px;
}

.conclusion p {
	color: var(--orange);
	font-weight: bold;
}

.conclusion-bleu h2 {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    color: var(--dark-gray) !important;
    font-size: 20px;
}

.conclusion-bleu p {
    color: var(--en-bref);
    font-weight: bold;
}

.conclusion-vert h2 {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    color: var(--dark-gray) !important;
    font-size: 20px;
}

.conclusion-vert p {
    color: var(--grand-angle);
    font-weight: bold;
}

.methodologie {
	color: var(--dark-gray);
	font-weight: bold;
	margin-top: 1rem;
    margin-left: 2rem;
}

.methodologie h2{
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
	color: var(--dark-gray);
	font-size: 20px;
}

.methodologie p{
	color: var(--dark-gray);
	font-weight: bold;
}


@media (max-width: 992px) {
    .conclusion,
    .methodologie {
        margin-left: 0;
    }
}

.fond-blanc {
	display: inline-block;
    background-color: #ffffff;
    padding: 2rem;
    margin: 2rem 0;
}

.fond-blanc h2 {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-weight: 100;
}

.fond-blanc p,
.fond-blanc li {
	color: var(--dark-gray);
	font-weight: bold;
}

/* Image style "pleine largeur" */

.spip_document {
    margin: 30px 0;
}

.spip_document img {
    max-width: 100%;
    height: auto;
}

.spip_doc_legende .spip_doc_titre,
.spip_doc_legende .spip_doc_titre strong {
    font-style: italic;
    font-weight: normal;
    font-size: 0.95em;
	text-align: center;
	color: var(--dark-gray);
}

.pleine_largeur {
    margin-left: calc(-33.33% - 12px);
    width: calc(100% + 33.33% + 12px);
    max-width: none;
}

.spip_documents_center img,
.pleine_largeur img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .spip_documents_center,
    .pleine_largeur {
        margin-left: 0;
        width: 100%;
    }
}

.petite_largeur {
    max-width: 50%;
}

.petite_largeur img {
    width: 100%;
    height: auto;
    display: block;
}

/* Variante En Bref */
.collection-en-bref {
    --primary-color: #0099D7;
}

/* Variante Grand Angle */
.collection-grand-angle {
    --primary-color: #2D9153;
}

/* Template Article Ouvrage */
#ouvrage-article h2 {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    color: var(--dark-gray);
    line-height: 25pt;
    font-weight: 400;
    padding-top: 30px;
	text-transform: uppercase;
}

#ouvrage-article .surtitre {
	text-transform: initial;
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 26px;
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0;
	border-bottom: 0;
	border-top: 0;
}

#ouvrage-article .sidebar-container div {
	margin-bottom: 0;
}

#ouvrage-article .sidebar-container div p {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 18px;
	font-weight: normal;
	margin-bottom: 0;
}

#ouvrage-article .download-chapter {
	padding-top: 20px;
}

#ouvrage-article .next-chapter-links {
	font-size: 16px;;
}

#ouvrage-article .sidebar-auteurs li::before {
	content: "";
	width: 50px;
	height: 12px;
	background-color: #ec4e34;
	display: block;
	margin-top: 32px;
	margin-bottom: 8px;
}


#ouvrage-article .sidebar-ouvrage-img {
	position: relative;
	top: 70px;
	/* right: 20px; */
}

#ouvrage-article .agenda-fleche-blanche, #ouvrage-article .agenda-fleche-blanche {
	width: 90px;
	height: auto;
	display: inline-block;
}

#ouvrage-article .sidebar-container .white-orange-content-top {
    padding : 60px 20px 0px 20px;
    background-color: var(--orange);
    color: white;
}

#ouvrage-article .sidebar-container .white-orange-content {
    padding: 20px;
    background-color: var(--orange);
    color: white;
}

#ouvrage-article .icon-arrow {
    width: 70px;
    height: auto;
    display: inline-block;
}

#ouvrage-article .icon-arrow-right {
    width: 40px;
    height: auto;
    display: inline-block;
}

#ouvrage-article .border-top-chapitre {
    font-weight: bold !important;
    padding-top: 10px;
	padding-bottom: 30px;
    margin-top: 40px;
}

#ouvrage-article .lettrine-auto {
    margin-top: 50px;
}

#ouvrage-article .lettrine-auto::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

#ouvrage-article .lettrine-auto .lettrine-target::first-letter {
    float: left;
    font-size: 15em;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 6px;
    margin-left: -0.1em;
    padding-top: 0;
}

#ouvrage-article .chapter-num {
	border-top: 2px solid black;
	padding-top: 10px;
}

#ouvrage-article .chapter-title {
	padding-bottom: 20px;
}

#ouvrage-article .sidebar-container .dashed-button a {
	font-size: 30px;
	padding: 0px;
	padding-bottom: 5px;
	color: black;
	border: 2px solid;
	border-color: var(--primary-color);
	border-radius: 50%;
}

#ouvrage-article .sidebar-container .dashed-button.active a {
	background-color: var(--primary-color);
}

.sidebar-container .undashed-button a {
	font-size: 20px;
	padding: 5px;
	color: black;
	border: 0px;
}

.sidebar-container .dashed-button a:hover,
.sidebar-container-thematique .dashed-button a:hover {
	font-size: 20px;
	padding: 5px;
	color: black;
	border: dashed;
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	border-radius: 50%;
}

#colloque-article hr {
	opacity: 1;
}

#colloque-article .sidebar-container div p {
	margin-top: 50px;
	margin-bottom: 10px;
}

#colloque-article .img-overlay-wrap {
    position: relative;
    display: block;
	margin-bottom: 0;
}

#colloque-article .img-overlay-wrap.img-wrap-placeholder {
	display: flex;
}

#colloque-article .img-overlay-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0), 
        color-mix(in srgb, var(--primary-color) 100%, transparent)
    );
    pointer-events: none;
}

/* Template Projets */
#projets .projets-articles .lien-article-projet {
	font-size: 25px;
	text-transform: uppercase;
	color: var(--dark-gray);
}

/* Template Evenements */
.lien_decouvrir_article, .vignette-orange-lien {
	background-color: var(--white);
	color: var(--dark-gray) !important;
	text-transform: uppercase;
	text-align: center !important;
	border: none !important;
	font-weight: bold !important;
	padding-top: 0px !important;
	margin-bottom: 1rem !important;
	max-width: max-content;
	padding: 2px !important;
}

#evenement .sidebar-container .white-red-content p {
	font-weight: 200;
}

#evenement .sidebar-container .white-red-content p.titre-colloque-sidebar {
	font-weight: bold;
}


/* #evenement .titre-colloque-sidebar {
	padding-top: 60px;
} */

/* Espace au-dessus/en dessous des iframes collées directement dans #TEXTE (Youtube, etc.) */
main iframe {
	margin: 1rem 0;
	position: static !important;
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	aspect-ratio: 16 / 9 !important;
}

/* Neutralise le wrapper responsive (padding-top + position:relative) que Vimeo/YouTube collent avec l'embed brut dans le texte */
main div:has(> iframe):not(.article-video-wrapper):not(.article-issuu-wrapper) {
	padding: 0 !important;
	position: static !important;
	height: auto !important;
}

.article-video-wrapper iframe,
.article-issuu-wrapper iframe {
	margin: 0 !important;
}

/* Médias embarqués dans le contenu article */
#defaut .col-lg-8 iframe,
#defaut .col-lg-8 video,
#defaut .col-lg-8 embed,
#defaut .col-lg-8 object {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 2rem 0;
}

#defaut .col-lg-8 img {
    max-width: 100%;
    height: auto;
}

/* Vidéos/Issuu collées avec un embed brut (Vimeo, etc.) qui impose sa propre taille en inline */
.article-video-wrapper,
.article-issuu-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-video-wrapper iframe,
.article-issuu-wrapper iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#JIPAD h2 {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.4;
    padding-top: 30px;
    margin-bottom: 12px;
}
#JIPAD .jipad-theme-num {
    font-weight: 700;
    margin-right: 4px;
}
#JIPAD .jipad-lire-row {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 8px 0;
    margin-top: 12px;
}
#JIPAD .jipad-lire-label {
    color: var(--primary-color);
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    text-decoration: none;
}
#JIPAD .jipad-lire-label span {
    margin-right: 6px;
}
#JIPAD .jipad-contrib-list ul {
    list-style: disc;
    padding-left: 20px;
    padding-top: 10px;
    margin-bottom: 10px;
}
#JIPAD .jipad-contrib-list li {
    padding: 3px 0;
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
}
#JIPAD .jipad-contrib-list a {
    color: black;
	font-size: 20px;
    text-decoration: none;
}
#JIPAD .jipad-contrib-list a:hover {
	color: var(--primary-color);
    text-decoration: none;
}

#JIPAD .sidebar-container div {
    margin-bottom: 0px;
}

#jipad-article .white-red-content{
    margin-bottom: 100px;
}

#JIPAD .white-red-content .jipad-download-label,
#jipad-article .white-red-content .jipad-download-label {
    font-size: 16px;
    padding: 5px;
    background-color: white;
    color: var(--dark-gray) !important;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#jipad-article .white-red-content p {
    margin-bottom: 10px;
	font-weight: normal;
}

#JIPAD .img-overlay-wrap,
#jipad-article .img-overlay-wrap {
    position: relative;
	margin-bottom: 0px;
	margin-top: 90px;
}
#JIPAD .img-overlay-wrap::after,
#jipad-article .img-overlay-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0),
        color-mix(in srgb, var(--primary-color) 100%, transparent));
    pointer-events: none;
}

#jipad-article h2 {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.35rem;
    line-height: 1.4;
    padding-top: 30px;
    margin-bottom: 12px;
}

#jipad-article .sidebar-main-auteur li {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: 600;
    padding-top: 20px;
    padding-bottom: 12px;
    list-style: none;
}
#jipad-article .sidebar-main-auteur ul {
    padding-left: 0;
}
.sidebar-auteurs li::before, #jipad-article .sidebar-main-auteur li::before {
    content: "";
    width: 60px;
    height: 10px;
    background-color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

#jipad-article .jipad-article-rub-titre {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-top: 1px solid #ccc;
    padding-top: 16px;
    margin-top: 16px;
    color: var(--dark-gray);
}
#jipad-article .lettrine-auto > p:first-of-type::first-letter {
    float: left;
    font-size: 15em;
    line-height: 0.8;
    margin-right: 8px;
    margin-top: 6px;
    margin-left: -0.1em;
    padding-top: 0;
}

#jipad-article .jipad-nav-rub-titre {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-top: 2px solid black;
    padding-top: 10px;
    margin-top: 16px;
    margin-bottom: 80px;
}
#jipad-article .jipad-nav-hr {
    border-top: 2px solid #000000;
	opacity: 1;
    margin: 0;
}
#jipad-article .jipad-nav-link {
    font-size: 30px;
    padding: 0px;
    padding-bottom: 5px;
    color: black;
    border: 2px solid;
    border-color: var(--primary-color);
    border-radius: 50%;
}
#jipad-article .jipad-nav-link:hover {
	color: black;
	border: dashed;
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	border-radius: 50%;
}

#jipad-article .jipad-nav-link-active {
	font-size: 30px;
    padding: 0px;
    padding-bottom: 5px;
    color: black;
    border: 2px solid;
	border-color: var(--primary-color);
    background-color: var(--primary-color);
    border-radius: 50%;
}

#jipad-article .jipad-nav-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: inherit;
}

#jipad-article .jipad-nav-item {
    margin-bottom: 50px;
}

#jipad-article .jipad-nav-item p {
    font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: normal;
	margin-top: 10px;
    margin-bottom: 20px;
}

#jipad-article .icon-arrow-right {
    width: 40px;
    height: auto;
    display: inline-block;
}

#jipad-article .surtitre {
	padding: 0;
}

#jipad-article .chapo {
	text-align: left;
}

#jipad-article .chapo iframe {
	max-width: 100%;
}

.btn-toggle-jipad {
	background: none;
	border: 1px solid black;
	border-radius: 50%;
	color: black;
	cursor: pointer;
	padding: 0.4rem 0.5rem;
	transition: transform 0.3s ease;
	font-size: 1.2rem;
}

.btn-toggle-jipad:hover {
	opacity: 0.7;
}

.btn-toggle-jipad.active i {
	transform: rotate(180deg);
}

.btn-toggle-chapter i {
	transition: transform 0.3s ease;
}

/* STYLES VIGNETTES */

#ouvrage-sidebar-img, #ouvrage-orange-sidebar-img, #publications-sidebar-img {
	position: relative;
	/* width: 80%;
	height: 250px; */
	max-height: 250px;
	object-fit: cover;
	top: 50px;
	/* left: -25px; */
}

#ouvrage-sidebar-white-bg-content, #publications-sidebar-white-bg-content {
	padding: 70px 20px 20px 20px;
    background-color: var(--white);
    color: black;
	margin-bottom: 20px;
}

#ouvrage-sidebar-fleche, #publications-sidebar-fleche {
	font-size: 50px;
	color: black;
	width: 90px;
    height: 90px;
    display: inline-block;
}

#ouvrage-sidebar-texte, #publications-sidebar-texte {
	margin-bottom: 50px;
	font-size: 18px;
	line-height: 16pt;
	font-weight: bold;
}

.page-title-ouvrage {
	font-size: 100px;
	color: black;
	margin: 0;
	font-weight: 800;
	line-height: 64pt;
	margin-top: 20px;
}