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

/* ----- html et body ----- */
html,
body {
	height: 100%;
	width: 100%;
	font-size: 45px;
	font-family: "Oxygen";
	color: #000000 !important;
	color-scheme: dark;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	scrollbar-width: none;
	-ms-overflow-style: none;
	background: none;
}

/* Fond */

.background-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-image: url(../image/background.png);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: -1;
	pointer-events: none;
}

body::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
	display: none;
}

/* ----- Fonts ----- */
/* Basic */
@font-face {
	font-family: 'Oxygen';
	src: url('./fonts/Font-Oxygen-Regular.ttf') format('truetype');
}

/* Citation */
@font-face {
	font-family: 'Lora';
	src: url('./fonts/Font-Lora-Regular.ttf') format('truetype');
}

/* ----- Variables ----- */
:root {
	/* Classic Colors */
	--color-classic-1: rgba(255, 255, 255, 0.04);
	--color-classic-2: rgba(30, 30, 30, 0.4);
	--color-classic-1-eco: rgba(10, 10, 10, 1);
	--color-classic-2-eco: rgba(20, 20, 20, 1);
	/* Pixy Colors */
	--color-pixypurple-light: rgb(180, 0, 255);
	--color-pixypurple-medium: rgb(120, 0, 160);
	--color-pixypurple-dark: rgb(75, 0, 100);
	--color-pixypurple-dark-transluscent: rgba(47, 27, 54, 0.4);
	/* Text Colors */
	--color-text-1: ;
	--color-text-2: ;
	/* Transparency */

	/* Animations */
}

/* ========== Text ========== */
/* ----- Classic ----- */
h1 {
	margin: 0;
	font-weight: 800;
	font-size: 1rem;
	color: #fff;
	text-decoration: none;
}

h2 {
	margin: 0;
	font-weight: 600;
	font-size: 0.65rem;
	color: #fff;
	text-decoration: none;
}

h3 {
	margin: 0;
	font-weight: 500;
	font-size: 0.52rem;
	color: #fff;
	text-decoration: none;
}

p {
	margin: 0;
	font-weight: 400;
	font-size: 0.425rem;
	color: #fff;
	text-decoration: none;
}

.citation {
    margin: 0;
	color: #fff;
	text-decoration: none;
    font-family: "Lora" !important;
}

/* ----- special ----- */
/* Menu link */
.menu a {
	font-size: 28px;
	text-decoration: underline;
	text-decoration-color: #7c2bce;
	color: #fff;
	text-align: center;
	transition: 0.3s;
}

.menu a:hover {
	transform: translateY(-3px);
}

/* Footer Text */
footer p {
	font-style: normal;
	color: #FFFFFF;
	font-size: 0.4rem;
}

/* Links */
a:not(.button) {
	color: #FFFFFF;
	text-decoration: underline;
	text-decoration-color: #7c2bce;
}

/* ========== Header, Footer & Nav, Page Structure ========== */
/* ----- Header & Nav ----- */
/* Header */
header {
	width: 100%;
	height: 60px;
	z-index: 5;
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	background: rgba(80, 80, 80, 0.2);
}

header img {
	height: 50px;
	border-radius: 10px;
	z-index: 5;
}

/* Menu & Nav */
.menu {
	padding-top: 80px;
	height: 100%;
	width: 100%;
	z-index: 4;
	transition: 0.4s;
	position: fixed;
	top: 0;
	left: 0;
	opacity: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	pointer-events: none;
	padding-left: 20px;
	gap: 20px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-content: center;
}

.menu.lowperf {
	background: rgba(0, 0, 0, 0.95);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.menu.open {
	opacity: 1;
	pointer-events: auto;
}

.menu-btn {
	width: 35px;
	height: 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	z-index: 5;
}

.menu-btn span {
	display: block;
	height: 4px;
    border-radius: 2px;
	background: #7c2bce;
	transition: 0.15s;
}

.menu-btn.open span:nth-child(1) {
	transform: translateY(11px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
	opacity: 0;
	visibility: hidden;
	transition-delay: 0.03s;
}

.menu-btn.open span:nth-child(3) {
	transform: translateY(-11px) rotate(-45deg);
}

/* ----- Footer ----- */
footer {
	flex-shrink: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6px 0;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	background: rgba(80, 80, 80, 0.2);
}

/* ----- Main ----- */
main {
	flex: 1;
	padding-top: 60px;
	overflow-y: none;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.main-content::-webkit-scrollbar {
	display: none;
}

/* ========== Components ========== */
/* ----- Main Container ----- */
.content-list {
	max-width: 1000px;
	width: 95%;
	margin: 20px auto;
	padding: 20px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	background: var(--color-classic-1);
	border-radius: 38px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.content-list.lowperf {
	background: var(--color-classic-1-eco);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* ----- Sub Container ----- */
.content-block {
	background: var(--color-classic-2);
	padding: 20px;
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	transition: 0.3s;
	justify-content: space-between;
}

.content-block.lowperf {
	background: var(--color-classic-2-eco);
}

.content-block:hover {
	transform: translateY(-3px);
	box-shadow: 0px 7px 11px rgba(0, 0, 0, 0.5);
    border-radius: 40px;
}

.content-block.clickable:hover {
	transform: translateY(-3px);
	box-shadow:
		0px 7px 10px rgba(0, 0, 0, 0.4),
		inset 0 0 0 2px var(--color-pixypurple-medium);
	cursor: pointer;
    background-color: var(--color-pixypurple-dark-transluscent);
}

.content-block.collumn {
	display: flex;
	flex-direction: row;
	gap: 8px;
}

.classic-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.classic-row img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 5px;
}

/* surrounding container (text 4 example) */
.surround-block {
    width: fit-content;
    height: fit-content;
	background: var(--color-classic-2);
	padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 18px;
    padding-right: 18px;
	border-radius: 18px;
	gap: 10px;
	justify-content: space-between;
    transition: 0.3s;
    align-self: center;
}

.surround-block:hover {
	transform: translateY(-3px);
	box-shadow: 0px 7px 11px rgba(0, 0, 0, 0.5);
    border-radius: 40px;
}

/* ----- Button (omg i love button omg omg uwu owo ----- */
.btn {
	padding: 10px 22px;
	width: auto;
	height: auto;
	background: rgba(90, 90, 90, 0.2);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: 50px;
	border: 2px solid rgba(150, 150, 150, 0.2);
	transition: 0.3s;
	cursor: pointer;
	font-size: 20px;
	color: #fff;
	text-decoration: none !important;
	text-align: center;
}

.btn:hover {
	border: 2px solid var(--color-pixypurple-medium);
	transform: translateY(-3px);
	box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.4);
    background-color: var(--color-pixypurple-dark-transluscent);
}

.btn:active {
	transform: scale(98%);
}

.btn.on {
	border: 2px solid var(--color-pixypurple-light);
	background: var(--color-pixypurple-dark-transluscent);
}

.iframepage {
	width: 100%;
	height: 100%;
	border: 0;
	overflow: hidden;
}

.horizontal-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 15px;
}

.img-icon {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 5px;
}

.S10 {
	padding-bottom: 10px;
}

.grid-list {
	height: fit-content;
	display: flex;
}

.grid-block {
	width: calc(33.333% - 8px);
	padding: 8px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	background: var(--color-classic-2);
	border-radius: 12px;
	margin: 6px;
}

/* ========== Horiscroll Component ========== */

.horiscroll {
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto; /* Permet le scroll horizontal */
    overflow-y: hidden;
    padding: 10px 5px;
    width: 100%;
    
    /* Scroll Snapping pour un effet fluide sur mobile */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    /* Cacher la barre de scroll par défaut (ton style) */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.horiscroll::-webkit-scrollbar {
    display: none; /* Cache la barre sur Chrome/Safari */
}

/* Les enfants de la section scrollable */
.horiscroll > * {
    flex: 0 0 auto; /* Empêche les enfants de rétrécir, garde leur taille auto */
    width: 280px;   /* Taille fixe par défaut pour les blocs */
    scroll-snap-align: start; /* Calage de l'élément au début du scroll */
    
    /* Optionnel : on peut réutiliser ton style de block */
    background: var(--color-classic-2);
    padding: 15px;
    border-radius: 18px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Gestion des images à l'intérieur */
.horiscroll img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.scroll-item {
    transition: 0.3s;
}

.scroll-item.lowperf {
	background: var(--color-classic-2-eco);
}

.scroll-item:hover {
	transform: translateY(-3px);
	box-shadow: 0px 7px 11px rgba(0, 0, 0, 0.5);
    border-radius: 35px;
}

/* ----- Responsive System ----- */
@media (max-width: 768px) {
	.content-list {
		width: 100%;
		padding: 15px;
	}

	.content-block {
		border-radius: 23px;
	}

	.img-icon {
		width: 35px;
		height: 35px;
	}
}

@media (max-width: 480px) {
	.content-list {
		width: 100%;
		padding: 10px;
	}

	.content-block {
		border-radius: 28px;
	}

	.img-icon {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ----- Responsive Horiscroll ----- */
@media (max-width: 768px) {
    .horiscroll > * {
        width: 85%;
    }
}