/* Variables CSS */
:root {
	--primary-color: #ec4e34;
	--secondary-color: #f9efe1;
	--dark-gray: #808080;
	--light-gray: #ecf0f1;
	--white: #ffffff;
	--font-primary: "Open Sans", sans-serif;
}

/* Reset et base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

h1 {
	font-family: "Oswald", sans-serif;
	font-size: 28px;
	line-height: 20pt;
	margin-bottom: 30px;
	font-weight: 300;
	padding-left: 80px !important;
	width: 40% !important;
}

@media (max-width: 1200px) {
	h1 {
		width: 60% !important;
	}
}

@media (max-width: 992px) {
	h1 {
		font-size: 22px;
	}
}

h2,
h3 {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 24px;
	line-height: 24pt;
}

body {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	color: var(--dark-gray);
	background-color: var(--white);
}

.btn-title {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 18pt;
	color: black;
	text-align: end;
}

/* Header */
.main-header {
	position: sticky;
	top: 0;
	background-color: var(--white);
	z-index: 1000;
	width: 100%;
}

.navbar {
	padding: 1rem 0;
}

.logo-accueil {
	width: auto;
	height: 140px;
}

@media (max-width: 992px) {
	.logo-accueil {
		height: 120px;
	}
}

.logo-accueil-header {
	width: 180px;
	height: 80px;
}

#logo-accueil-mobile {
	display: none;
}

@media (max-width: 768px) {
	#logo-accueil-mobile {
		display: block;
		position: relative;
		right: 200px;
		width: 180px;
		height: 80px;
	}
}

.brand-text p {
	font-size: 1.2rem;
	color: #666;
	margin: 0;
	font-weight: bold;
	padding-left: 50px;
}

.navbar-nav .nav-link {
	color: var(--dark-gray);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 15px;
	line-height: 10pt;
	margin: 0 0.5rem;
	padding: 0.5rem 1rem;
	transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: var(--primary-color);
}

#navbarNav {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
}

#navbarNav .navbar-nav {
	padding-left: 250px;
}

@media (max-width: 1400px) {
	#navbarNav .navbar-nav {
		padding-left: 0;
	}
}

.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-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 {
	background-color: var(--secondary-color);
	border-bottom: 2px solid var(--primary-color);
}

@media (max-width: 991px) {
	.navbar-nav {
		margin-left: 0 !important;
	}

	.navbar-nav .nav-link {
		color: var(--dark-gray);
		font-size: 12px;
		margin: 0;
		padding: 0.5rem;
	}

	.dropdown-menu {
		position: static;
		background-color: var(--secondary-color);
		border: none;
		box-shadow: none;
		display: none;
	}

	.nav-item.dropdown:hover .dropdown-menu {
		display: block;
	}
}

.language-toggle {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	position: absolute;
	top: -10px;
	right: -20px;
	z-index: 1001;
	display: flex;
	align-items: start;
}

.language-toggle a {
	align-content: end;
	height: 50px;
	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;
}

.language-toggle a.active {
	background-color: var(--primary-color);
	color: var(--white);
	height: 70px;
}

.language-toggle:hover a:not(.active) {
	height: 70px;
	background-color: var(--dark-gray);
}

.language-toggle a:hover {
	transform: translateY(-2px);
}

#intro-accueil {
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	#intro-accueil h1 {
		width: auto !important;
		padding-left: 10px !important;
	}
}

/* Section Thématiques */
.themes-section {
	background-image: url("../images/fruits-background2.png");
	background-size: cover;
	background-position: center;
	min-height: 300px;
	z-index: 1;
}

#intro-themes {
	height: 200px;
}

@media (max-width: 992px) {
	#intro-accueil {
		height: auto;
	}
	#intro-themes {
		height: auto;
	}
}

.section-title {
	font-size: 30px;
	font-weight: 700;
	color: black;
	margin-top: 2rem;
	margin-bottom: 2rem;
	text-transform: uppercase;
}

.themes-hero .row {
	position: relative;
	bottom: 90px;
	z-index: 5;
	height: 100%;
	display: flex;
	justify-content: space-evenly;
	align-items: start;
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 992px) {
	.themes-hero .row {
		position: relative;
		bottom: 0px;
		z-index: 5;
		height: 100%;
		align-items: center;
		margin-bottom: 20px;
	}
}

.theme-card {
	color: black;
	transition: all 0.3s ease;
	cursor: pointer;
	width: 85%;
}

.theme-top {
	height: 90px;
	border-left: 10px solid var(--white);
	transition: border-left-color 0.3s ease;
}

@media (max-width: 992px) {
	.theme-top {
		display: none;
	}
}

.theme-card:hover {
	color: var(--primary-color);
}

.theme-card:hover .theme-top {
	border-left-color: var(--primary-color);
}

.theme-card:hover h3 {
	color: var(--primary-color);
}

.theme-card:hover * {
	color: var(--primary-color) !important;
}

.theme-card h2,
.theme-card-active h2 {
	text-transform: uppercase;
	align-items: baseline;
	margin-top: 20px;
	font-weight: 300;
}

.theme-card h2 a,
.theme-card-active h2 a {
	color: inherit;
	text-decoration: none;
	display: block;
	transition: color 0.3s ease;
}

.theme-card h2 a:hover {
	color: inherit;
	text-decoration: none;
}

.discover-panel,
a.discover-panel {
	width: 200px;
	background-color: rgb(64, 63, 63);
	color: var(--white);
	text-transform: uppercase;
	font-size: 16px;
	line-height: 14pt;
	padding: 28px;
	text-decoration: none !important;
	display: flex;
	transition: all 0.3s ease;
}

.discover-panel:hover,
a.discover-panel:hover {
	background-color: var(--primary-color);
	color: black;
	font-weight: bold;
	text-decoration: none !important;
}

.discover-panel .panel-link {
	color: #cb5039;
	font-weight: bold;
	text-decoration: none;
	margin-top: 20px;
}

.discover-panel:hover .panel-link {
	color: black;
}

@media (max-width: 992px) {
	.discover-panel {
		font-size: 12px;
		line-height: 100%;
		margin: 0;
		padding: 30px;
	}
}

/* Section Actualités */
.actualites-section {
	background-color: var(--white);
}

.news-card {
	margin-bottom: 2rem;
}

.news-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	margin-bottom: 1rem;
}

.news-date {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 16px;
	color: #666;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.news-card a {
	font-size: 24px;
	font-weight: 900;
	color: var(--dark-gray);
	text-decoration: none;
	line-height: 22pt;
}

.news-card a:hover {
	color: var(--primary-color) !important;
}

.news-card p {
	margin-top: 0.5rem;
	font-size: 20px;
	color: #666;
	line-height: 18pt;
}

.btn-toutes-actualites {
	font-size: 30px;
	background-color: var(--white);
	color: var(--primary-color);
	border-style: solid;
	border-width: 1px 1px;
	border-color: var(--primary-color);
	text-decoration: none;
	padding: 0.9rem;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.btn-toutes-actualites:hover,
.btn-toutes-publications:hover {
	background-color: #c0392b;
	color: var(--white);
}

.social-links {
	margin: 2rem 0;
}

.social-links a {
	display: inline-block;
	width: 40px;
	height: 40px;
	background-color: var(--dark-gray);
	color: var(--white);
	text-align: center;
	line-height: 40pt;
	margin-right: 0.5rem;
	border-radius: 3px;
	transition: background-color 0.3s ease;
}

.social-links a:hover {
	background-color: var(--primary-color);
}

.contact-info h4 {
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 1rem;
	color: var(--dark-gray);
}

.contact-info p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #666;
}

/* Section Publications */
.publications-section {
	background-color: var(--secondary-color);
}

.publication-main-card {
	margin-top: 2rem;
	margin-bottom: 2rem;
	margin-left: 1rem;
	margin-right: 1rem;
	padding: 0;
	background-color: white;
}

.publication-main-card img {
	position: relative;
	bottom: 80px;
	width: auto;
	height: 280px;
}

.publication-main-card h4 {
	position: relative;
	bottom: 30px;
	padding: 1rem;
	color: black;
}

.publication-card {
	margin-top: 2rem;
	margin-bottom: 2rem;
	border-right: 1px solid var(--dark-gray);
}

.publication-card:last-child {
	border-right: none;
}

.publication-card img {
	width: auto;
	height: 250px;
	object-fit: cover;
	border-radius: 5px;
	margin-bottom: 1rem;
}

@media (max-width: 992px) {
	.publication-card img {
		height: 250px;
		object-fit: cover;
		border-radius: 5px;
		margin-bottom: 1rem;
	}

	.publication-main-card img {
		position: relative;
		bottom: 0;
		width: auto;
		height: 280px;
	}

	.publication-main-card h4 {
		position: relative;
		bottom: 0;
		padding: 1rem;
		color: black;
	}

	.publication-card:hover img {
		position: relative;
		bottom: 0;
		width: auto;
		height: 280px;
	}

	.publication-card:hover h4 {
		position: relative;
		bottom: 0;
		padding: 1rem;
		color: black;
	}
}

@media (max-width: 768px) {
	.publication-card img {
		width: 60%;
		height: 100%;
		object-fit: cover;
		border-radius: 5px;
		margin-bottom: 1rem;
	}
}

.publication-card h4 {
	font-weight: 400;
	color: black;
}

/* Effet hover sur les cartes de publication */
.publication-card {
	transition: all 0.3s;
	cursor: pointer;
	position: relative;
	z-index: 1;
	min-height: 440px;
}

.publication-card:hover {
	/* transition: all 0.3s ease 0s; */
	z-index: 10;
	margin-top: 2rem;
	margin-bottom: 2rem;
	margin-left: 1rem;
	margin-right: 1rem;
	padding: 0;
	background-color: white;
	border-right: none;
}

.publication-card:hover img {
	position: relative;
	bottom: 50px;
	/* width: auto;
	height: 250px; */
	object-fit: cover;
	border-radius: 0;
	margin-bottom: 0;
	transition: all 0.3s ease 0s;
}

.publication-card:hover h4 {
	position: relative;
	bottom: 30px;
	padding: 1rem;
	color: black;
	transition: all 0.3s ease 0s;
}

.btn-toutes-publications {
	font-size: 30px;
	background-color: var(--secondary-color);
	color: var(--primary-color);
	border-style: solid;
	border-width: 1px 1px;
	border-color: var(--primary-color);
	text-decoration: none;
	padding: 0.75rem 1.5rem;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

/* Section Agenda */
.agenda-section {
	background-color: var(--primary-color);
	color: var(--white);
}

.agenda-section h2 {
	position: relative;
	top: 80px;
	font-size: 30px;
	font-weight: 700;
	color: var(--white);
	transform: rotate(-90deg);
}

.agenda-section .row {
	margin-left: 150px;
	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 0rem;
}

.date-badge {
	font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
	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: 10px;
}

.agenda-card h4 {
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.agenda-card p {
	font-size: 20px;
	line-height: 18pt;
}

.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);
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.btn-voir-agenda:hover {
	background-color: var(--white);
	color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
	.discover-panel {
		position: relative;
		right: auto;
		top: auto;
		transform: none;
		margin-top: 2rem;
		max-width: 100%;
	}

	.sidebar {
		padding-left: 0;
		margin-top: 3rem;
	}
}

@media (max-width: 992px) {
	.section-title {
		font-size: 1.5rem;
	}

	.theme-card h2 {
		font-size: 1rem;
		line-height: 18pt;
	}

	/* .news-card img,
    .publication-card img {
        height: 150px;
    } */
}

@media (min-width: 1201px) and (max-width: 1570px) {
	.container {
		padding-right: 140px !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;
	}
}
