@font-face {
	font-family: Dancing_Script;
	src: url(/Dancing_Script/DancingScript-VariableFont_wght.ttf);
}

@font-face {
	font-family: Comfortaa;
	src: url(/Comfortaa/Comfortaa-VariableFont_wght.ttf);
}

body {
	margin: auto;
	font-family: Comfortaa;
	font-size: 15px;
}

.info {
	overflow-y: hidden;
	height: 0px;
	margin-top: 0px;
	transition: height .3s ease, margin-top .3s ease;
}

section {
	padding: 0px 20px 20px 20px;
	margin-bottom: -15px;
	border-top: 1px solid black;
	border-left: 1px solid black;
	border-right: 1px solid black;
	border-radius: 15px 15px 0px 0px;
}

section:last-of-type {
	border-bottom: 1px solid black;
	border-radius: 15px 15px 15px 15px;
	padding: 20px 20px 20px 20px;
	margin-bottom: 0px;
}

h1,
h2 {
	font-family: Dancing_Script;
}

h1 {
	font-size: 60px;
	text-align: center;
	margin: 40px 0px;
}

h2 {
	cursor: pointer;
	font-size: 30px;
	position: relative;
	padding-left: 30px;
	padding: 20px 20px 20px 30px;
	margin: 0px;
}

h2:before {
	content: url("/arrow.svg");
	width: 20px;
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translate(-50%, -50%) rotate(0deg);
	transform-origin: center center;
	transition: transform .15s ease;
}

section.actif h2:before {
	transform: translate(-50%, -50%) rotate(90deg);
}

[onclick] {
	cursor: pointer;
}

#profile {
	width: 100%;
	border-radius: 15px;
	max-width: 100%;
}

#ad {
	height: 80px;
}

#qr {
	height: 100px;
}

#content {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	align-content: flex-start;
	margin: 20px;
	gap: 20px;

	aside {
		flex-grow: 1;
		flex-shrink: 1;
		flex-basis: 300px;
		max-width: 300px;
	}

	main {
		flex-grow: 2;
		flex-shrink: 1;
		flex-basis: 500px;
		max-width: 700px;

		table,
		tr,
		td {
			display: block;
		}

		tbody {
			display: flex;
			flex-direction: column;
		}

		tr {
			display: flex;
			flex-direction: row;
			gap: 10px 0px 10px 10px;
			padding: 10px 0px;
			justify-content: space-between;
			flex-wrap: wrap;
		}

		tr:not(:first-of-type) {
			border-top: 1px solid lightgrey;
		}

		td {
			flex: 1 1 100px;
		}

		td:not(:first-of-type) {
			margin-left: 10px;
		}
	}

}

footer {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-top: 1px solid #dee2e6;
	padding: 30px 20px;
	margin-top: 40px;
	text-align: center;
}

.footer-content {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	max-width: 500px;
	margin: 0 auto;
	flex-wrap: wrap;
}

.footer-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 15px;
	border-radius: 12px;
	transition: all 0.3s ease;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	width: 140px;
	height: 120px;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.footer-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.footer-item:active {
	transform: translateY(0px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-item img {
	transition: transform 0.3s ease;
}

.footer-item:hover img {
	transform: scale(1.05);
}

.footer-item span {
	font-size: 14px;
	color: #6c757d;
	font-weight: 500;
	text-align: center;
}

/* Animation de succès */
.footer-item.success {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	border: 1px solid #c3e6cb;
}

.footer-item.success::before {
	content: "✓";
	position: absolute;
	top: 10px;
	right: 10px;
	background: #28a745;
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
	animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Tooltip */
.footer-item .tooltip {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 1000;
}

.footer-item .tooltip::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid rgba(0, 0, 0, 0.8);
}

.footer-item:hover .tooltip {
	opacity: 1;
	visibility: visible;
}

/* Indicateur de chargement */
.footer-item.loading {
	pointer-events: none;
}

.footer-item.loading::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

.footer-item.loading::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 1;
}

@keyframes spin {
	0% {
		transform: translate(-50%, -50%) rotate(0deg);
	}

	100% {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* Masquer le bouton QR sur mobile */
.footer-item.mobile-hidden {
	display: none;
}

/* Modal pour le QR code */
.qr-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.qr-modal.active {
	display: flex;
	opacity: 1;
}

.qr-modal-content {
	background: white;
	padding: 30px;
	border-radius: 20px;
	text-align: center;
	max-width: 90%;
	max-height: 90%;
	position: relative;
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.qr-modal.active .qr-modal-content {
	transform: scale(1);
}

.qr-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.qr-modal-close:hover {
	background: #f0f0f0;
	color: #333;
}

.qr-modal img {
	max-width: 300px;
	max-height: 300px;
	width: 100%;
	height: auto;
	margin-bottom: 20px;
}

.qr-modal h3 {
	font-family: Dancing_Script;
	font-size: 28px;
	margin: 0 0 15px 0;
	color: #333;
}

.qr-modal p {
	font-size: 16px;
	color: #666;
	margin: 0;
	line-height: 1.5;
}

#ad {
	height: 60px;
	width: auto;
}

#qr {
	height: 80px;
	width: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

.ref {
	a {
		color: #007bff;
	}

	ul {
		list-style-type: disc;
		padding-left: 20px;
	}
}

/* Screen reader only text */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Language switcher */
.language-switcher {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 10px;
	display: flex;
	gap: 10px;
}

.language-btn {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	color: #333;
	font-size: 14px;
}

.language-btn:hover {
	background: #f8f9fa;
	border-color: #007bff;
}

.language-btn.active {
	background: #007bff;
	color: white;
	border-color: #007bff;
}

/* Responsive design */
@media (max-width: 768px) {
	h1 {
		font-size: 40px;
		margin: 20px 0px;
		/* padding-right: 120px; Espace pour les boutons de langue */
	}

	h2 {
		font-size: 24px;
		padding: 15px 15px 15px 25px;
	}

	#content {
		margin: 10px;
		gap: 15px;
	}

	#content aside {
		flex-basis: 250px;
		max-width: 250px;
	}

	#content main {
		flex-basis: 100%;
		max-width: 100%;
	}

	.footer-content {
		gap: 20px;
	}

	.footer-item {
		width: 120px;
		height: 100px;
		padding: 10px;
	}

	.language-switcher {
		top: 10px;
		right: 10px;
		padding: 8px;
	}

	.language-btn {
		padding: 6px 10px;
		font-size: 12px;
	}
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
	h1 {
		font-size: 32px;
		margin: 15px 0px;
		padding-right: 100px;
		/* Moins d'espace sur très petit écran */
	}

	.language-switcher {
		top: 5px;
		right: 5px;
		padding: 6px;
	}

	.language-btn {
		padding: 4px 8px;
		font-size: 11px;
	}
}