/* AtlasMoz Link in Bio - styles publics */

.amlb-body {
	margin: 0;
}

.amlb {
	--amlb-bg1: #f97316;
	--amlb-bg2: #9a3412;
	--amlb-text: #ffffff;
	--amlb-btn-bg: #ffffff;
	--amlb-btn-text: #7c2d12;
	--amlb-btn-border: #ffffff;
	--amlb-accent: #fde68a;
	--amlb-radius: 1em;
	--amlb-overlay: 0.4;
	--amlb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	position: relative;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.4;
	color: var(--amlb-text);
	font-family: var(--amlb-font);
	background: linear-gradient(165deg, var(--amlb-bg1), var(--amlb-bg2));
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.amlb *,
.amlb *::before,
.amlb *::after {
	box-sizing: border-box;
}

.amlb--page {
	min-height: 100vh;
	min-height: 100dvh;
}

.amlb--embed {
	border-radius: 1.5em;
}

/* Image de fond */
.amlb__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
}

.amlb__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--amlb-overlay));
}

/* Colonne centrale */
.amlb__wrap {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 33em;
	margin: 0 auto;
	padding: 3.2em 1.3em calc(2em + env(safe-area-inset-bottom, 0px));
	text-align: center;
}

/* Bouton partager */
.amlb__share {
	position: absolute;
	top: 1em;
	right: 1em;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.7em;
	height: 2.7em;
	padding: 0;
	color: var(--amlb-text);
	cursor: pointer;
	background: rgba(255, 255, 255, 0.16);
	background: color-mix(in srgb, var(--amlb-text) 14%, transparent);
	border: 0;
	border-radius: 50%;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: transform 0.18s ease, background 0.18s ease;
}

.amlb__share:hover,
.amlb__share:focus-visible {
	transform: scale(1.08);
	background: rgba(255, 255, 255, 0.28);
	background: color-mix(in srgb, var(--amlb-text) 24%, transparent);
}

.amlb__share:focus-visible {
	outline: 0.16em solid var(--amlb-accent);
	outline-offset: 0.15em;
}

/* En-tête de profil */
.amlb__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.amlb__avatar {
	display: block;
	width: 6.2em;
	height: 6.2em;
	object-fit: cover;
	border-radius: 50%;
	border: 0.2em solid rgba(255, 255, 255, 0.55);
	border: 0.2em solid color-mix(in srgb, var(--amlb-text) 45%, transparent);
	box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.28);
	background: var(--amlb-btn-bg);
}

.amlb__avatar--initial {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4em;
	font-weight: 700;
	color: var(--amlb-btn-text);
}

.amlb .amlb__name {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3em;
	margin: 0.8em 0 0.1em;
	padding: 0;
	font-family: inherit;
	font-size: 1.55em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--amlb-text);
}

.amlb__verified {
	flex: none;
	width: 0.85em;
	height: 0.85em;
}

.amlb__verified circle {
	fill: var(--amlb-accent);
}

.amlb__verified path {
	stroke: var(--amlb-bg2);
}

.amlb__headline {
	margin: 0.2em 0 0;
	font-size: 1em;
	font-weight: 600;
	opacity: 0.92;
}

.amlb__bio {
	max-width: 28em;
	margin: 0.6em 0 0;
	font-size: 0.93em;
	opacity: 0.82;
}

/* Icônes sociales */
.amlb__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em;
	align-items: center;
	justify-content: center;
	margin: 1.4em 0 0.4em;
	padding: 0;
	list-style: none;
}

.amlb__socials li {
	margin: 0;
	padding: 0;
}

.amlb .amlb__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.9em;
	height: 2.9em;
	color: var(--amlb-text);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.14);
	background: color-mix(in srgb, var(--amlb-text) 12%, transparent);
	border: 0.07em solid rgba(255, 255, 255, 0.28);
	border: 0.07em solid color-mix(in srgb, var(--amlb-text) 22%, transparent);
	border-radius: 50%;
	transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.amlb .amlb__social:hover,
.amlb .amlb__social:focus-visible {
	color: var(--amlb-bg2);
	background: var(--amlb-text);
	transform: translateY(-0.15em);
}

.amlb .amlb__social:focus-visible {
	outline: 0.16em solid var(--amlb-accent);
	outline-offset: 0.15em;
}

/* Liste des liens */
.amlb__links {
	display: flex;
	flex-direction: column;
	gap: 0.95em;
	width: 100%;
	margin-top: 1.5em;
}

.amlb .amlb-heading {
	margin: 0.9em 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--amlb-text);
	opacity: 0.78;
}

.amlb .amlb-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.7em;
	padding: 0.8em 3.4em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: var(--amlb-btn-text);
	background: var(--amlb-btn-bg);
	border: 0.13em solid var(--amlb-btn-border);
	border-radius: var(--amlb-radius);
	box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}

.amlb .amlb-link:hover,
.amlb .amlb-link:focus-visible {
	color: var(--amlb-btn-text);
	transform: translateY(-0.15em) scale(1.01);
	box-shadow: 0 0.7em 1.6em rgba(0, 0, 0, 0.26);
}

.amlb .amlb-link:focus-visible {
	outline: 0.18em solid var(--amlb-accent);
	outline-offset: 0.2em;
}

.amlb .amlb-link:active {
	transform: scale(0.985);
}

.amlb-link__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.amlb-link__title {
	display: block;
	font-size: 1em;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.amlb-link__sub {
	display: block;
	margin-top: 0.15em;
	font-size: 0.8em;
	font-weight: 400;
	opacity: 0.78;
	overflow-wrap: anywhere;
}

.amlb-link__lead {
	position: absolute;
	top: 50%;
	left: 0.65em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5em;
	height: 2.5em;
	overflow: hidden;
	border-radius: 0.6em;
	transform: translateY(-50%);
}

.amlb-link__lead img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.amlb-link__lead--emoji {
	font-size: 1.55em;
	line-height: 1;
}

.amlb--shape-pill .amlb-link__lead {
	border-radius: 50%;
}

.amlb-link__arrow {
	position: absolute;
	top: 50%;
	right: 1.1em;
	display: flex;
	opacity: 0.45;
	transform: translateY(-50%);
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.amlb-link:hover .amlb-link__arrow {
	opacity: 0.9;
	transform: translate(0.2em, -50%);
}

/* Styles de bouton */
.amlb--btn-outline .amlb-link {
	color: var(--amlb-text);
	background: transparent;
	border-color: var(--amlb-text);
	box-shadow: none;
}

.amlb--btn-outline .amlb-link:hover,
.amlb--btn-outline .amlb-link:focus-visible {
	color: var(--amlb-bg2);
	background: var(--amlb-text);
	box-shadow: 0 0.5em 1.2em rgba(0, 0, 0, 0.18);
}

.amlb--btn-glass .amlb-link {
	color: var(--amlb-text);
	background: rgba(255, 255, 255, 0.16);
	background: color-mix(in srgb, var(--amlb-text) 12%, transparent);
	border-color: rgba(255, 255, 255, 0.3);
	border-color: color-mix(in srgb, var(--amlb-text) 24%, transparent);
	box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.amlb--btn-glass .amlb-link:hover,
.amlb--btn-glass .amlb-link:focus-visible {
	color: var(--amlb-text);
	background: rgba(255, 255, 255, 0.26);
	background: color-mix(in srgb, var(--amlb-text) 20%, transparent);
}

/* Lien mis en avant */
.amlb .amlb-link.is-highlight {
	animation: amlb-pulse 2.4s ease-in-out infinite;
}

@keyframes amlb-pulse {
	0%,
	100% {
		box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.18), 0 0 0 0 var(--amlb-accent);
	}

	60% {
		box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.18), 0 0 0 0.7em rgba(255, 255, 255, 0);
	}
}

/* Pied de page */
.amlb__foot {
	margin-top: 2.4em;
	font-size: 0.78em;
	opacity: 0.7;
}

.amlb .amlb__foot a {
	color: var(--amlb-text);
	text-decoration: none;
	border-bottom: 0.06em solid currentColor;
}

.amlb .amlb__foot a:hover {
	opacity: 0.8;
}

/* Message "Lien copié" */
.amlb__toast {
	position: fixed;
	left: 50%;
	bottom: 2em;
	z-index: 9999;
	padding: 0.7em 1.2em;
	font-size: 0.9em;
	font-weight: 600;
	color: #fff;
	background: rgba(17, 24, 39, 0.92);
	border-radius: 99em;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 0.6em);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.amlb__toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Animation d'entrée */
.amlb-item {
	animation: amlb-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: calc(var(--amlb-i, 0) * 60ms);
}

.amlb .amlb-link.amlb-item.is-highlight {
	animation: amlb-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both, amlb-pulse 2.4s ease-in-out 1s infinite;
	animation-delay: calc(var(--amlb-i, 0) * 60ms), 1s;
}

@keyframes amlb-in {
	from {
		opacity: 0;
		transform: translateY(0.9em);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.amlb--preview .amlb-item,
.amlb--preview .amlb-link.is-highlight {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.amlb .amlb-item,
	.amlb .amlb-link,
	.amlb .amlb-link.is-highlight,
	.amlb__social,
	.amlb__share {
		animation: none !important;
		transition: none !important;
	}
}

@media (min-width: 640px) {
	.amlb--page .amlb__wrap {
		padding-top: 4.2em;
	}
}
