/*GENERAL*/
:root {
	--main-color: #e44444; /* var(--main-color) */
	--second-color: #cd487b; /* var(--second-color) */
	--light-grey-color: #ededed; /* var(--light-grey-color) */
	--drak-grey-color: #4b4b4b; /* var(--drak-grey-color) */
}

* {
	box-sizing: border-box; /* Empêche les débordements inattendus */
}

html,
body {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: hidden; /* Supprime le scroll horizontal */
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;
	display: flex;
	justify-content: center;
}

.container {
	width: 100%;
	max-width: 1440px;
	padding: 0 12px;
}

h2,
h3 {
	font-family: "Archivo", sans-serif;
	font-style: normal;
}

h2 {
	text-align: center;
}

/*HEADER*/
header {
	position: relative;
	width: 100%;
	height: 80vh;
}

header img,
header .headerTextContent {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

header img {
	object-fit: cover;
	display: block;
	max-width: 100%;
	height: auto;
}

header .headerTextContent {
	display: flex;
	justify-content: center;
	align-items: center;
}

h1 {
	font-family: "Inter", sans-serif;
	font-style: normal;
	font-weight: 900;
	font-size: 62px;
	line-height: 75px;
	color: white;
}

/*CONTENT*/
section {
	padding-bottom: 80px;
	padding-top: 80px;
}

h2 {
	font-weight: 900;
	font-size: 35px;
	line-height: 38px;
	color: var(--main-color);
	padding-bottom: 40px;
	margin-top: 0;
}

h3 {
	font-weight: 800;
	font-size: 25px;
	line-height: 27px;
	color: black;
	margin-bottom: 0;
}

article {
	width: 15%;
	margin: 0px 20px;
	max-width: 300px; /* Empêche l'élargissement total */
	display: flex;
	flex-direction: column;
}

/***************/
.directionRow {
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap; /* Pour éviter les débordements */
	width: 100%;
}

/***************/
.directionColumn {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sectionLinearGradientBackground {
	background: linear-gradient(
		to right,
		var(--main-color),
		var(--second-color)
	);
}

.whiteContentSection h2,
.whiteContentSection h3,
.whiteContentSection p {
	color: white;
}

.textCenter {
	text-align: center;
}

.sectionLightGreyBackground {
	background-color: var(--light-grey-color);
}

.button {
	margin: 20px 0px;
	padding: 28px 40px;

	background-color: white;

	border-style: solid;
	border-width: 2px;
	border-radius: 5px;

	font-family: "Archivo";
	font-style: normal;
	font-weight: 600;
	font-size: 16px;
	line-height: 17px;

	display: flex;
	align-items: center;
	justify-content: center;

	text-decoration: none;
	max-width: 100%;
	box-sizing: border-box;
}

.buttonDrakGreyColor {
	color: var(--drak-grey-color);
	border-color: var(--drak-grey-color);
}

.buttonMainColor {
	color: var(--main-color);
	border-color: var(--main-color);
}

.buttonSecondColor {
	color: var(--second-color);
	border-color: var(--second-color);
}

.buttonRounded {
	border-radius: 39px;
}

.buttonHighlight:hover {
	font-weight: 800;
	border-width: 3px;
}

/* Membres Fondateurs */
/* Animation Membres fondateurs */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Animation fade-in en cascade */
.fade-in-cascade > * {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-cascade.visible > *:nth-child(1) {
	animation-delay: 0.2s;
}

.fade-in-cascade.visible > *:nth-child(2) {
	animation-delay: 0.5s;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Animation des images */
.image-animate {
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 1s ease, transform 1s ease;
	will-change: transform, opacity;
	display: block;
	max-width: 100%;
	height: auto;
}

.image-animate.visible {
	opacity: 1;
	transform: scale(1);
}

/* Menu latéral repliable */
.sideMenu {
	position: fixed;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	background-color: var(--main-color);
	border-right: 1px solid #ccc;
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	z-index: 1000;
	transition: width 0.3s ease;
	overflow: hidden;
	width: 40px;
	max-width: 100%;
	color: white;
}

.sideMenu.expanded {
	width: 200px;
}

.menuToggle {
	cursor: pointer;
	background-color: transparent;
	color: white;
	font-family: "Archivo", sans-serif;
	font-weight: 700;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 4px;
	user-select: none;
}

.menuToggle span {
	display: block;
	line-height: 1.2;
	font-size: 14px;
}

.menuContent {
	display: none;
	padding: 10px;
}

.sideMenu.expanded .menuContent {
	display: block;
}

.menuContent ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menuContent li {
	margin: 10px 0;
}

.menuContent a,
.menuContent button {
	text-decoration: none;
	color: white;
	font-weight: 600;
	font-family: "Archivo", sans-serif;
	background: none;
	border: none;
	font-size: 16px;
	cursor: pointer;
	text-align: left;
	padding: 6px 12px;
	width: 100%;
	transition: background-color 0.3s, color 0.3s;
	border-radius: 4px;
}

.menuContent a:hover,
.menuContent button:hover {
	background-color: rgba(255, 255, 255, 0.2);
	color: white;
}

.sideMenu.expanded .menuToggle {
	display: none;
}

.menuContent button:hover {
	background-color: white;
	color: var(--main-color);
}

/* --------------------------- */
/* -------- RESPONSIVE ------- */
/* --------------------------- */

@media (max-width: 992px) {
	/* Réduire la largeur des articles pour tablettes */
	article {
		width: 40% !important;
		margin: 10px;
	}

	.button {
		padding: 20px 24px;
		font-size: 14px;
	}

	h1 {
		font-size: 44px;
		line-height: 52px;
	}

	h2 {
		font-size: 30px;
		line-height: 36px;
	}

	h3 {
		font-size: 22px;
		line-height: 26px;
	}
}

@media (max-width: 768px) {
	header {
		height: 50vh; /* réduction de hauteur pour mobile */
	}

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

	h1 {
		font-size: 32px;
		line-height: 38px;
		padding: 0 16px;
		text-align: center;
	}

	/* Passer en colonne */
	.directionRow {
		flex-direction: column !important;
		align-items: center;
	}

	article {
		width: 90% !important;
		margin: 20px 0 !important;
	}

	.container {
		padding: 0 12px;
	}

	.button {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 26px;
		line-height: 32px;
	}

	h2 {
		font-size: 24px;
		line-height: 30px;
	}

	h3 {
		font-size: 18px;
		line-height: 22px;
	}

	p {
		font-size: 14px;
		line-height: 18px;
	}

	.menuContent button {
		font-size: 14px;
	}
}

@media screen and (max-device-width: 768px) {
	body {
		font-size: 1rem;
		zoom: 1 !important;
	}
}
