@import url("fonts.css?v=2");

/* ============================================================
   RideZone — landing
   ============================================================ */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--bg: #08080b;
	--bg-2: #0b0b10;
	--surface: #101017;
	--surface-2: #15151e;
	--line: rgba(255, 255, 255, 0.08);
	--line-soft: rgba(255, 255, 255, 0.05);
	--line-strong: rgba(255, 255, 255, 0.14);

	--text: #b7b7c6;
	--text-dim: #82829a; /* 4,8:1 mini sur fonds et cartes (WCAG AA) */
	--heading: #f5f5fa;

	--accent: #7c6ef5;
	--accent-2: #5ad1e6;
	--accent-bright: #a99bff;
	--accent-ink: #6553e8; /* fond sous texte blanc : 5,3:1 (--accent ne fait que 3,9:1) */
	--accent-wash: rgba(124, 110, 245, 0.14);
	--accent-dim: rgba(124, 110, 245, 0.35);
	--live: #4ade8f;

	--font-sans: Arial, "Liberation Sans", Helvetica, sans-serif; /* tous les textes : Arial, plus Inter (polices et @font-face gardés : retour = remettre "Inter", system-ui, -apple-system, "Segoe UI", sans-serif) */
	--font-display: "Syne", var(--font-sans);
	--font-price: "Space Grotesk", var(--font-sans); /* chiffres des prix (abonnements, récap) */
	--font-mono: var(--font-sans); /* nom historique (DM Mono) des textes courts : menus, étiquettes, boutons, prix (retour : "DM Mono", ui-monospace, monospace) */

	--maxw: 960px;
	--radius: 14px;

	/* mouvement : mêmes courbes partout (sortie douce pour les apparitions, rebond léger pour les pastilles) */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-io: cubic-bezier(0.65, 0, 0.35, 1);
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* contraste renforcé demandé par le système : bordures et textes secondaires plus marqués */
@media (prefers-contrast: more) {
	:root {
		--line: rgba(255, 255, 255, 0.28);
		--line-soft: rgba(255, 255, 255, 0.2);
		--line-strong: rgba(255, 255, 255, 0.4);
		--text: #d6d6e2;
		--text-dim: #b4b4c6;
	}
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
	overflow-x: clip; /* Safari iPhone : la page ne se tire jamais à gauche / à droite */
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem; /* suit la taille de texte choisie dans le navigateur */
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	overflow-x: clip; /* idem html ; « clip » ne crée pas de zone de défilement, le menu collant reste collant */
}

::selection {
	background: var(--accent-ink);
	color: #fff;
}

h1,
h2,
h3 {
	text-wrap: balance;
}
p {
	text-wrap: pretty;
}

/* ---------- ambient backdrop ---------- */

.backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background:
		radial-gradient(125% 85% at 50% -15%, rgba(124, 110, 245, 0.12), transparent 58%),
		radial-gradient(110% 90% at 50% 118%, rgba(90, 209, 230, 0.05), transparent 60%),
		var(--bg);
}
.backdrop::before {
	content: "";
	position: absolute;
	inset: -35%;
	background:
		radial-gradient(38% 30% at 20% 16%, rgba(124, 110, 245, 0.38), transparent 60%),
		radial-gradient(34% 26% at 80% 10%, rgba(84, 132, 255, 0.24), transparent 60%),
		radial-gradient(42% 36% at 62% 28%, rgba(158, 92, 255, 0.22), transparent 62%),
		radial-gradient(30% 30% at 42% 6%, rgba(90, 209, 230, 0.16), transparent 60%);
	animation: aurora 32s ease-in-out infinite alternate;
	will-change: transform;
}
.backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(135% 95% at 50% 0%, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
	-webkit-mask-image: radial-gradient(140% 78% at 50% 0%, #000 22%, rgba(0, 0, 0, 0.35) 68%, transparent 100%);
	mask-image: radial-gradient(140% 78% at 50% 0%, #000 22%, rgba(0, 0, 0, 0.35) 68%, transparent 100%);
}
@keyframes aurora {
	0% {
		transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1.05);
	}
	50% {
		transform: translate3d(2%, 1%, 0) rotate(4deg) scale(1.12);
	}
	100% {
		transform: translate3d(4%, 3%, 0) rotate(-3deg) scale(1.08);
	}
}

/* faint film grain */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.topbar,
footer {
	position: relative;
	z-index: 1;
}

/* ---------- top bar ---------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background:
		linear-gradient(rgba(8, 8, 11, 0.82), rgba(8, 8, 11, 0.62)),
		radial-gradient(120% 300% at 50% -80%, rgba(124, 110, 245, 0.28), transparent 60%),
		var(--bg);
	border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0.9rem 1.75rem;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.08rem;
	letter-spacing: -0.02em;
	color: var(--heading);
	text-decoration: none;
}

.nav {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin-left: auto;
}
.nav a {
	white-space: nowrap;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--text-dim);
	text-decoration: none;
	position: relative;
	transition: color 0.18s ease;
}
.nav a:hover {
	color: var(--text);
}
/* soulignement qui glisse sous le lien survolé ou actif (section affichée) */
.nav a:not(.nav-subs):not(.nav-shop)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -7px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:not(.nav-subs):not(.nav-shop):hover::after,
.nav a[aria-current="location"]:not(.nav-subs):not(.nav-shop)::after {
	transform: scaleX(1);
}
.nav a[aria-current="location"],
.mobile-nav a[aria-current="location"] {
	color: var(--heading);
}
/* liens secondaires de l'accueil (ancres) : masqués quand la barre manque de place */
@media (max-width: 1020px) {
	.nav .nav-opt {
		display: none;
	}
}
.topbar-actions {
	display: flex;
	align-items: center;
	gap: 1.1rem;
}

.login-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--font-mono);
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--text-dim);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.18s ease;
}
.login-link:hover {
	color: var(--accent-bright);
}
.login-ico {
	width: 16px;
	height: 12px;
}

/* connecté : avatar + pseudo Discord */
[hidden] {
	display: none !important;
}
.admin-link:hover {
	background: var(--accent-wash);
	border-color: var(--accent);
}
.user-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.28rem 0.4rem 0.28rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.user-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface-2);
	flex: none;
}
.user-name {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--text);
	max-width: 14ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.user-logout:hover {
	color: #ff6b6b;
}

/* ---------- menu mobile ---------- */

.menu-toggle {
	display: none;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	margin: -9px -9px -9px 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 0.18s ease;
}
/* doigt : cible de 44 px (recommandation Apple), sans changer l'alignement */
@media (pointer: coarse) {
	.menu-toggle {
		width: 44px;
		height: 44px;
		margin: -11px -11px -11px 0;
	}
}
.menu-bar {
	display: block;
	height: 2px;
	width: 20px;
	border-radius: 2px;
	background: var(--text);
	transition:
		transform 0.25s ease,
		opacity 0.2s ease,
		background 0.18s ease;
}
.menu-toggle:hover .menu-bar {
	background: var(--accent-bright);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
	opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
	display: none;
}

/* ---------- modale de confirmation ---------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	background: rgba(6, 6, 9, 0.72);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}
@media (prefers-reduced-transparency: reduce) {
	.modal {
		background: rgba(6, 6, 9, 0.94);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}
}
.modal-box {
	width: 100%;
	max-width: 380px;
	padding: 1.85rem 1.75rem 1.6rem;
	text-align: center;
	border: 1px solid var(--line-strong);
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(124, 110, 245, 0.1), transparent 55%),
		var(--surface);
	box-shadow:
		0 40px 90px -40px rgba(0, 0, 0, 0.85),
		0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.modal-ico {
	width: 46px;
	height: 46px;
	margin: 0 auto 1.1rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--accent-dim);
	background: var(--accent-wash);
	color: var(--accent-bright);
}
.modal-box h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--heading);
	margin: 0 0 0.5rem;
}
.modal-box p {
	font-size: 0.86rem;
	color: var(--text-dim);
	margin: 0 0 1.5rem;
}
.modal-actions {
	display: flex;
	gap: 0.7rem;
}
.modal-actions .btn {
	flex: 1;
	cursor: pointer;
}
/* texte blanc : 5,3:1 sur le rouge le plus clair (l'ancien #f0566b ne faisait que 3,1:1) */
.btn-danger {
	border: 0;
	color: #fff;
	background: linear-gradient(135deg, #d01f43, #b3173a);
	box-shadow: 0 12px 34px -14px rgba(240, 86, 107, 0.65);
}
.btn-danger:hover {
	background: linear-gradient(135deg, #d8284b, #c01b3f);
}

/* ---------- ouverture / fermeture des menus et modales ----------
   Transitions (pas d'@keyframes) : la fermeture refait le chemin inverse, et un clic en
   pleine animation repart de la position actuelle au lieu de recommencer à zéro.
   [hidden] ne passe en display:none qu'à la fin du fondu (allow-discrete) ; navigateur trop
   ancien : la 2e déclaration est ignorée, ouverture/fermeture sèches. */
.modal,
.modal-box,
.acct-panel,
.mobile-nav,
.cart-bar {
	transition:
		opacity 0.18s ease,
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
	transition:
		opacity 0.18s ease,
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		display 0.22s allow-discrete;
}
.modal[hidden],
.acct-panel[hidden],
.mobile-nav[hidden],
.cart-bar[hidden] {
	opacity: 0;
	pointer-events: none;
}
.modal[hidden] .modal-box {
	transform: translateY(10px) scale(0.97);
}
/* menu compte : sort de l'avatar (en haut à droite) et y retourne */
.acct-panel {
	transform-origin: top right;
}
.acct-panel[hidden] {
	transform: translateY(-6px) scale(0.97);
}
.mobile-nav[hidden] {
	transform: translateY(-6px);
}
.cart-bar[hidden] {
	transform: translateY(16px);
}
@starting-style {
	.modal,
	.acct-panel,
	.mobile-nav,
	.cart-bar {
		opacity: 0;
	}
	.modal-box {
		transform: translateY(10px) scale(0.97);
	}
	.acct-panel {
		transform: translateY(-6px) scale(0.97);
	}
	.mobile-nav {
		transform: translateY(-6px);
	}
	.cart-bar {
		transform: translateY(16px);
	}
}

/* ---------- buttons ---------- */

.btn {
	position: relative;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.4rem;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	color: var(--heading);
	background: rgba(255, 255, 255, 0.02);
	overflow: hidden;
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		background 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease;
}
.btn:hover {
	border-color: var(--accent);
	background: var(--accent-wash);
}
/* appui : réaction immédiate (durée 0), retour en douceur au relâchement (transition de base) */
.btn:active,
.qty-btn:active,
.menu-toggle:active,
button.user-chip:active,
.acct-panel a:active,
.acct-logout:active,
.partner-pill:active,
.subs-mini a:active {
	transform: scale(0.97);
	transition-duration: 0s;
}
a.teaser:active {
	transform: scale(0.985);
	transition-duration: 0s;
}
/* bouton envoyé (site.js) : pas de second clic pendant la redirection */
.is-busy {
	pointer-events: none;
	opacity: 0.7;
	cursor: progress;
}
.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.74rem;
	border-radius: 8px;
}
.btn-primary {
	border: 0;
	color: #fff;
	font-weight: 500;
	background: linear-gradient(135deg, #6d5ff0, #5d4de0 55%, #6f5cf0);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.25) inset,
		0 14px 40px -12px rgba(124, 110, 245, 0.65),
		0 0 0 1px rgba(124, 110, 245, 0.4);
}
/* reflet qui traverse le bouton au survol (transform : pas de recalcul de mise en page) */
.btn-primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: translateX(-150%) skewX(-20deg);
	transition: transform 0.5s ease;
}
.btn-primary:hover {
	background: linear-gradient(135deg, #8a7cff, #7c6ef5 55%, #a99bff);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.3) inset,
		0 18px 50px -12px rgba(124, 110, 245, 0.8),
		0 0 0 1px rgba(124, 110, 245, 0.55);
}
@media (hover: hover) {
	.btn-primary:hover::after {
		transform: translateX(300%) skewX(-20deg);
	}
}
.btn-link {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--text-dim);
	text-decoration: none;
	padding: 0.75rem 0.25rem;
	transition: color 0.18s ease;
}
.btn-link:hover {
	color: var(--accent-bright);
}

/* ---------- hero ---------- */

.hero {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(3.5rem, 10vh, 7rem) 1.75rem clamp(4rem, 10vh, 6.5rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.logo-wrap {
	position: relative;
	margin-bottom: 1.25rem;
	animation: float 6s ease-in-out infinite;
}
.logo-wrap::before {
	content: "";
	position: absolute;
	inset: -20% -10%;
	background: radial-gradient(closest-side, rgba(124, 110, 245, 0.22), transparent 72%);
	filter: blur(14px);
	z-index: -1;
}
.hero-logo {
	display: block;
	width: clamp(240px, 58vw, 400px);
	height: auto;
	filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.5));
}
@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

.badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--live);
	box-shadow: 0 0 0 3px rgba(74, 222, 143, 0.16);
	animation: blip 2.6s ease-in-out infinite;
}
@keyframes blip {
	0%,
	100% {
		box-shadow: 0 0 0 3px rgba(74, 222, 143, 0.16);
	}
	50% {
		box-shadow: 0 0 0 5px rgba(74, 222, 143, 0.05);
	}
}

h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.05rem, 5.6vw, 3.5rem);
	line-height: 1.06;
	letter-spacing: -0.035em;
	max-width: 15ch;
	margin: 1.5rem 0 0;
	background: linear-gradient(180deg, #ffffff 30%, #cfc9f5 75%, #a99bff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-sub {
	max-width: 44ch;
	margin-top: 1.4rem;
	font-size: 1.03rem;
	color: var(--text-dim);
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 2.25rem;
}

.hero-meta {
	margin-top: 1.75rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	color: var(--text-dim);
}

/* ---------- sections ---------- */

.section {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(4rem, 10vh, 6.5rem) 1.75rem;
	position: relative;
}
.section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 1.75rem;
	right: 1.75rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}

h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.55rem, 3.6vw, 2.25rem);
	line-height: 1.12;
	letter-spacing: -0.028em;
	color: var(--heading);
	margin-top: 1rem;
}

/* liens dans les sous-titres : sans ça, bleu foncé du navigateur, illisible sur le fond sombre */
.section-sub a {
	color: var(--accent-bright);
}
.section-sub {
	max-width: 52ch;
	margin-top: 1rem;
	color: var(--text-dim);
	font-size: 0.98rem;
}
.shop-teaser > h2,
.shop-teaser > .section-sub,
#qui-sommes-nous > h2,
#qui-sommes-nous > .section-sub,
#comment-ca-marche > h2,
#comment-ca-marche > .section-sub {
	text-align: center;
	margin-inline: auto;
}

/* ---------- feature tiles ---------- */

.grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-top: 2.75rem;
}
/* tuiles d'information, pas des liens : aucun effet de survol (il promettrait un clic) */
.tile {
	position: relative;
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
	overflow: hidden;
}
.tile-num {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--accent);
	letter-spacing: 0.08em;
}
.tile h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.12rem;
	letter-spacing: -0.01em;
	color: var(--heading);
	margin: 0.7rem 0 0.5rem;
}
.tile p {
	font-size: 0.92rem;
	color: var(--text-dim);
}

/* ---------- faq ---------- */

.faq {
	margin-top: 2.5rem;
	border-top: 1px solid var(--line);
}
/* ouverture et fermeture symétriques : la réponse se déplie et se replie (hauteur animée par site.js, sur tous les
   navigateurs, même en mode calme). Le filet glisse, le lavis balaie le bloc de gauche à droite, le « + » pivote en « × ».
   « is-closing » (posé par site.js pendant le repli) retire l'apparence « ouvert » dès le clic : tout se défait en même
   temps que la hauteur, au lieu de sauter à la fin. */
.faq details {
	border-bottom: 1px solid var(--line);
	padding-left: 0;
	background: linear-gradient(90deg, var(--accent-wash), transparent 60%) no-repeat 0 0 / 0% 100%;
	transition:
		padding-left 0.3s var(--ease),
		box-shadow 0.3s var(--ease),
		background-size 0.5s var(--ease);
}
.faq details[open]:not(.is-closing) {
	padding-left: 1rem;
	box-shadow: inset 2px 0 0 var(--accent);
	background-size: 100% 100%;
}
.faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.35rem 0;
	font-size: 0.98rem;
	font-weight: 500;
	color: var(--text);
	transition: color 0.18s ease;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: "+";
	font-family: var(--font-mono);
	font-size: 1.15rem;
	line-height: 1;
	color: var(--accent);
	transition: transform 0.35s var(--ease);
}
.faq details[open]:not(.is-closing) summary {
	color: var(--heading);
}
.faq details[open]:not(.is-closing) summary::after {
	transform: rotate(135deg);
}
.faq summary:hover {
	color: var(--accent-bright);
}
.faq details > p {
	font-size: 0.92rem;
	color: var(--text-dim);
	padding-bottom: 1.4rem;
	max-width: 58ch;
	animation: fadein 0.3s ease both;
}
.faq details.is-closing > p {
	animation: fadeout 0.2s ease both;
}
@keyframes fadein {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes fadeout {
	to {
		opacity: 0;
	}
}

/* ---------- final cta ---------- */

.cta {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: clamp(3.5rem, 9vh, 5.5rem) 1.75rem clamp(4.5rem, 11vh, 7rem);
}
.cta-panel {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: clamp(2.75rem, 7vw, 4.5rem) 1.75rem;
	border: 1px solid var(--line);
	border-radius: 22px;
	background:
		linear-gradient(180deg, rgba(124, 110, 245, 0.1), rgba(255, 255, 255, 0.015)),
		var(--surface);
	box-shadow: 0 40px 90px -50px rgba(124, 110, 245, 0.7);
}
.cta-glow {
	position: absolute;
	left: 50%;
	top: -40%;
	width: 460px;
	height: 460px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(124, 110, 245, 0.35), transparent 70%);
	pointer-events: none;
}
.cta-panel h2 {
	margin: 0;
	position: relative;
}
.cta-panel p {
	position: relative;
	margin: 1rem 0 2rem;
	color: var(--text);
	font-size: 1rem;
}
.cta-panel .btn {
	position: relative;
}

/* ---------- footer ---------- */

footer {
	border-top: 1px solid var(--line);
	background: var(--bg-2);
}
.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 2rem 1.75rem 2.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.brand-sm {
	font-size: 0.92rem;
}
.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-left: auto;
}
.footer-legal a {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	color: var(--text-dim);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.18s ease;
}
.motion-toggle {
	appearance: none;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	color: var(--accent-bright);
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.18s ease;
}
.motion-toggle:hover {
	color: var(--heading);
}
.footer-legal a:hover {
	color: var(--accent-bright);
}
.footer-copy {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-dim);
	opacity: 0.9; /* 0,6 donnait 2,9:1 : sous le seuil AA */
}

/* ---------- entrance ---------- */

.hero > *,
.section > *,
.cta > * {
	animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero > *:nth-child(2) {
	animation-delay: 0.05s;
}
.hero > *:nth-child(3) {
	animation-delay: 0.1s;
}
.hero > *:nth-child(4) {
	animation-delay: 0.15s;
}
.hero > *:nth-child(5) {
	animation-delay: 0.2s;
}
.hero > *:nth-child(6) {
	animation-delay: 0.25s;
}
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- focus ---------- */

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
	border-radius: 8px;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
	.nav {
		display: none;
	}
	.topbar-inner {
		padding: 0.8rem 1.25rem;
	}
	.topbar-actions {
		margin-left: auto;
		gap: 0.8rem;
	}
	.menu-toggle {
		display: flex;
	}
	.mobile-nav:not([hidden]) {
		display: flex;
		flex-direction: column;
	}
	.mobile-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background:
			linear-gradient(rgba(8, 8, 11, 0.97), rgba(8, 8, 11, 0.93)),
			var(--bg);
		border-bottom: 1px solid var(--line-soft);
		box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.7);
	}
	.mobile-nav a {
		font-family: var(--font-mono);
		font-size: 0.95rem;
		font-weight: 400;
		color: var(--text-dim);
		text-decoration: none;
		padding: 1.05rem 1.5rem;
		border-top: 1px solid var(--line-soft);
		transition:
			color 0.18s ease,
			background 0.18s ease;
	}
	.mobile-nav a:first-child {
		border-top: 0;
	}
	.mobile-nav a:hover,
	.mobile-nav a:active {
		color: var(--accent-bright);
		background: var(--accent-wash);
	}
	.login-link {
		font-size: 0.72rem;
	}
	.hero,
	.section,
	.cta,
	.footer-inner {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
	.section::before {
		left: 1.25rem;
		right: 1.25rem;
	}
	.grid {
		grid-template-columns: 1fr;
	}
	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	.footer-legal {
		margin-left: 0;
	}
}

@media (max-width: 380px) {
	.topbar-inner {
		padding: 0.7rem 1rem;
	}
	.hero-actions .btn,
	.hero-actions .btn-link {
		width: 100%;
		justify-content: center;
	}
}

/* très petits écrans (320 px) : barre du haut resserrée, titre de l'accueil qui tient sur la largeur */
@media (max-width: 340px) {
	.topbar-inner {
		gap: 0.6rem;
		padding-inline: 0.85rem;
	}
	.brand img {
		height: 32px;
	}
	.topbar-actions {
		gap: 0.55rem;
	}
	.login-link {
		font-size: 0.66rem;
	}
	h1 {
		font-size: 1.65rem;
	}
}

/* animations réduites (réglage du système : Windows « Effets d'animation », iPhone « Réduire les animations ») : mode
   calme. Plus de boucles, de glissements ni de transformations ; en revanche les apparitions restent en fondu et les
   changements de couleur restent progressifs, pour que rien n'apparaisse ou ne disparaisse d'un coup.
   Le visiteur peut choisir d'activer quand même les animations (bouton du pied de page, js/motion.js) : html[data-motion="on"]. */
@media (prefers-reduced-motion: reduce) {
	html:not([data-motion="on"]) *,
	html:not([data-motion="on"]) *::before,
	html:not([data-motion="on"]) *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		scroll-behavior: auto !important;
		transition-property: opacity, visibility, color, background-color, border-color, box-shadow !important;
	}
	@keyframes rise-calm {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
	@keyframes fadein-calm {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
	html:not([data-motion="on"]) .hero > *,
	html:not([data-motion="on"]) .section > *,
	html:not([data-motion="on"]) .cta > * {
		animation: rise-calm 0.5s ease both !important;
	}
	html:not([data-motion="on"]) .faq details > p {
		animation: fadein-calm 0.3s ease both !important;
	}
	/* déplier une question (clic) : petit mouvement local, gardé en mode calme (sinon la réponse surgit d'un coup) */
	html:not([data-motion="on"]) .faq details {
		transition-property: padding-left, box-shadow, background-size !important;
	}
	html:not([data-motion="on"]) .faq summary::after {
		transition-property: transform !important;
	}
	html:not([data-motion="on"]) .faq details.is-closing > p {
		animation: fadeout 0.2s ease both !important;
	}
	@supports ((-moz-appearance: none) or (not (view-transition-name: none))) {
		html:not([data-motion="on"]) main {
			animation: page-in 0.45s ease backwards !important;
		}
	}
	html:not([data-motion="on"]) .modal,
	html:not([data-motion="on"]) .modal-box,
	html:not([data-motion="on"]) .acct-panel,
	html:not([data-motion="on"]) .mobile-nav,
	html:not([data-motion="on"]) .cart-bar {
		transition:
			opacity 0.2s ease,
			display 0.2s allow-discrete !important;
	}
	html:not([data-motion="on"]) .modal[hidden] .modal-box,
	html:not([data-motion="on"]) .acct-panel[hidden],
	html:not([data-motion="on"]) .mobile-nav[hidden],
	html:not([data-motion="on"]) .cart-bar[hidden] {
		transform: none;
	}
}

/* appareil lent (js/site.js : moins de 25 images/s après le chargement → html[data-lite], mémorisé 24 h par js/motion.js) :
   décors animés en boucle figés, flou de la fenêtre retiré. Les transitions courtes de l'interface restent. */
html[data-lite] .backdrop::before,
html[data-lite] .badge-dot {
	animation: none;
	will-change: auto;
}
html[data-lite] .modal {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.faq details > p a {
	color: var(--accent-bright);
}

/* ---------- menu compte (bouton avatar) ---------- */

.acct-menu {
	position: relative;
}
button.user-chip {
	appearance: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	padding-right: 0.55rem;
	transition:
		border-color 0.18s ease,
		background 0.18s ease,
		transform 0.18s ease;
}
/* doigt : zone d'appui agrandie à ~46 px de haut, sans changer la taille visible */
@media (pointer: coarse) {
	button.user-chip {
		position: relative;
	}
	button.user-chip::after {
		content: "";
		position: absolute;
		inset: -6px -4px;
	}
}
button.user-chip:hover,
button.user-chip[aria-expanded="true"] {
	border-color: var(--accent-dim);
	background: var(--accent-wash);
}
button.user-chip:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}
.acct-caret {
	width: 12px;
	height: 12px;
	color: var(--text-dim);
	transition: transform 0.18s ease;
}
button.user-chip[aria-expanded="true"] .acct-caret {
	transform: rotate(180deg);
}
.pro-tag {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	padding: 2px 7px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent-ink), #6f5cf0);
}
/* abonnés Premium (Plus garde le violet) */
.pro-tag.is-premium {
	background: linear-gradient(135deg, #d01f43, #b3173a);
}

.acct-panel {
	position: absolute;
	top: calc(100% + 0.6rem);
	right: 0;
	z-index: 30;
	width: 250px;
	max-width: calc(100vw - 2rem);
	display: flex;
	flex-direction: column;
	padding: 0.4rem;
	border: 1px solid var(--line-strong);
	border-radius: 14px;
	background:
		linear-gradient(180deg, rgba(124, 110, 245, 0.08), transparent 45%),
		var(--surface);
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85);
}
.acct-who {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.65rem 0.7rem 0.8rem;
	margin-bottom: 0.3rem;
	border-bottom: 1px solid var(--line);
}
.acct-who img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface-2);
	flex: none;
}
.acct-who div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.acct-who strong {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--heading);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.acct-who span {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--text-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.acct-panel a,
.acct-logout {
	appearance: none;
	border: 0;
	background: none;
	text-align: left;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--text);
	text-decoration: none;
	padding: 0.6rem 0.7rem;
	border-radius: 8px;
	cursor: pointer;
	transition:
		background 0.15s ease,
		color 0.15s ease,
		transform 0.15s ease;
}
.acct-panel a:hover,
.acct-panel a:focus-visible {
	background: var(--accent-wash);
	color: var(--accent-bright);
	outline: none;
}
.acct-logout {
	margin-top: 0.3rem;
	border-top: 1px solid var(--line);
	border-radius: 0 0 8px 8px;
	color: var(--text-dim);
}
.acct-logout:hover,
.acct-logout:focus-visible {
	color: #ff6b6b;
	background: rgba(255, 107, 107, 0.08);
	outline: none;
}

@media (max-width: 420px) {
	button.user-chip .user-name {
		display: none;
	}
}

/* ---------- mise en avant de la boutique (accueil) ---------- */

/* lien Abonnements mis en avant dans la barre du haut (toutes les pages), réduction en badge */
.nav a.nav-subs,
.mobile-nav a.nav-subs {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #ff8095;
}
.nav a.nav-subs {
	padding: 0.35rem 0.8rem;
	border: 1px solid rgba(255, 61, 94, 0.45);
	border-radius: 999px;
	background: rgba(255, 61, 94, 0.1);
	box-shadow: 0 0 22px -8px rgba(255, 61, 94, 0.85);
	transition:
		color 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease;
}
.nav a.nav-subs:hover {
	color: #fff;
	border-color: #ff3d5e;
	background: rgba(255, 61, 94, 0.2);
}
.nav-deal {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	color: #fff;
	padding: 1px 6px;
	border-radius: 999px;
	background: linear-gradient(135deg, #d01f43, #b3173a);
}
.nav a.nav-shop,
.mobile-nav a.nav-shop {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--accent-bright);
}
.nav a.nav-shop:hover {
	color: #fff;
}
.new-dot {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	padding: 1px 6px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent-ink), #6f5cf0);
	box-shadow: 0 0 12px -2px rgba(124, 110, 245, 0.8);
}
/* tablette (721 à 900 px) : menu un peu plus petit et plus serré pour que la barre tienne sur une ligne, badge d'offre
   « -50 % » compris (pages légales : Accueil, Abonnements, Boutique, Mon compte). Placé après les règles de base du menu. */
@media (min-width: 721px) and (max-width: 900px) {
	.topbar-inner {
		gap: 0.9rem;
		padding-inline: 1.25rem;
	}
	.nav {
		gap: 0.7rem;
	}
	.nav a,
	.login-link {
		font-size: 0.76rem;
	}
	.nav a.nav-subs {
		padding: 0.3rem 0.55rem;
		gap: 0.3rem;
	}
	.nav-deal {
		font-size: 0.6rem;
	}
}
/* connecté (écrans où le menu est affiché, au-dessus de 720 px) : la puce du compte (avatar, pseudo, formule) prend la place
   des liens redondants (le menu du compte donne déjà « Mon compte », et « Qui sommes-nous » n'est qu'une ancre de
   l'accueil) pour que la barre tienne sur une ligne, même avec le badge d'offre */
@media (min-width: 721px) {
	.topbar-inner:has(#userChip:not([hidden])) .nav-opt,
	.topbar-inner:has(#userChip:not([hidden])) .nav a[href="/compte"] {
		display: none;
	}
	.topbar-inner:has(#userChip:not([hidden])) .user-name {
		max-width: 11ch;
	}
}
@media (min-width: 721px) and (max-width: 900px) {
	.topbar-inner:has(#userChip:not([hidden])) .user-name {
		max-width: 8ch;
	}
}
@media (min-width: 721px) and (max-width: 800px) {
	.topbar-inner .user-chip .pro-tag {
		display: none;
	}
}

.btn-icon {
	gap: 0.5rem;
}
.btn-accent {
	border-color: var(--accent-dim);
	color: var(--accent-bright);
	background: var(--accent-wash);
}
.btn-accent:hover {
	color: #fff;
}

.teaser-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 2.75rem;
}
.teaser {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
	color: var(--text);
	text-decoration: none;
	transition:
		transform 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}
a.teaser:hover {
	border-color: var(--accent);
}
/* soulèvement réservé à la souris : au doigt, il resterait collé après un tap */
@media (hover: hover) {
	a.teaser:hover {
		transform: translateY(-4px);
		box-shadow: 0 30px 60px -28px rgba(124, 110, 245, 0.6);
	}
	.teaser:hover .teaser-cta span,
	.teaser:hover .teaser-cta .i {
		transform: translateX(4px);
	}
}
.teaser > * {
	position: relative;
}
/* même fond que le bloc « Roulez en Premium » (.subs-card, boutique.css) */
.teaser-pro {
	border-color: rgba(255, 61, 94, 0.35);
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 61, 94, 0.16), transparent 55%),
		radial-gradient(90% 90% at 0% 100%, rgba(77, 141, 255, 0.1), transparent 60%),
		var(--surface);
	box-shadow: 0 40px 90px -50px rgba(255, 61, 94, 0.55);
}
.teaser h3 .nav-deal {
	vertical-align: middle;
}
.teaser h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.45rem;
	letter-spacing: -0.02em;
	color: var(--heading);
	margin: 0.5rem 0 0.9rem;
}
.teaser p {
	font-size: 0.92rem;
	color: var(--text-dim);
}
.teaser-cta {
	margin-top: auto;
	padding-top: 1.5rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--heading);
}
.teaser-pro .subs-mini {
	margin-bottom: 1.5rem;
}
.teaser-btn {
	margin-top: auto;
	align-self: center;
}
.teaser-cta span {
	display: inline-block;
	transition: transform 0.2s ease;
}
.teaser-visual {
	display: grid;
	place-items: center;
	height: 130px;
	margin: -0.5rem 0 0.75rem;
}
.teaser-goodies .stk-pack {
	transform: scale(0.9);
}

@media (max-width: 720px) {
	.teaser-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   icônes (Bootstrap Icons, sprite auto-hébergé images/icons.svg)
   ============================================================ */

.i {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	vertical-align: -0.15em;
}
.btn .i {
	width: 1.05em;
	height: 1.05em;
}
.acct-panel a,
.acct-logout {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.acct-panel .i {
	color: var(--text-dim);
	transition: color 0.15s ease;
}
.acct-panel a:hover .i,
.acct-panel a:focus-visible .i {
	color: var(--accent-bright);
}
.hero-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.25rem;
}
.hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.hero-meta .i {
	color: var(--accent-bright);
}
.tile h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.tile h3 .i {
	width: 1.05em;
	height: 1.05em;
	color: var(--accent-bright);
}
.teaser-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.teaser-cta .i {
	transition: transform 0.2s ease;
}
.shop-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}
.shop-notice .i {
	margin-top: 0.1em;
}
.acct-h {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}
.acct-h .i {
	color: var(--accent-bright);
}
.mark .i {
	width: 1em;
	height: 1em;
}
.section-sub .i {
	color: var(--accent-bright);
	margin-right: 0.25rem;
}

/* logo de la barre du haut (images/logo-nav.webp, réduit depuis logo-2.png) */
.brand img {
	display: block;
	width: auto;
	height: 40px;
}

/* boucles décoratives (logo, néon Premium, ligne de fidélité, sticker holo) en pause quand elles
   sont hors de l'écran (site.js) : rien ne tourne pour rien */
.is-paused,
.is-paused::before,
.is-paused::after,
.is-paused *,
.is-paused *::before,
.is-paused *::after {
	animation-play-state: paused !important;
}

/* menu compte (pages statiques) : l'avatar apparaît en fondu une fois la session lue, sans à-coup */
.acct-menu {
	transition: opacity 0.25s ease;
}
@starting-style {
	.acct-menu {
		opacity: 0;
	}
}

/* bandeau d'annonce du concours, en haut des pages publiques (dans .topbar) */
.promo-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.5rem 1rem;
	font-size: 0.82rem;
	color: #0b0b10;
	text-decoration: none;
	background: linear-gradient(90deg, var(--accent-2), #8fe6f2 50%, var(--accent-2));
}
.promo-strip strong {
	font-weight: 700;
}
.promo-strip-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 1px 10px;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	border-radius: 999px;
	background: #0b0b10;
	color: var(--accent-2);
	white-space: nowrap;
}
.promo-strip:hover .promo-strip-cta {
	color: #fff;
}
/* bandeau des abonnements : violet du site (texte blanc, 5,3:1 au plus clair) */
.promo-strip-subs {
	color: #fff;
	background: linear-gradient(90deg, #5443d6, var(--accent-ink) 50%, #5443d6);
}
.promo-strip-subs .promo-strip-cta {
	color: var(--accent-bright);
}
/* aperçu avant l'ouverture programmée (code d'accès saisi) : rouge, au-dessus des autres bandeaux
   (texte blanc, 5,3:1 au plus clair) */
.promo-strip-preview {
	color: #fff;
	background: linear-gradient(90deg, #b3173a, #d01f43 50%, #b3173a);
}
/* abonnements et concours se relaient au même endroit (site.js) : même hauteur, fondu enchaîné */
.promo-rotator {
	display: grid;
}
.promo-rotator > .promo-strip {
	grid-area: 1 / 1;
	transition:
		opacity 0.6s ease,
		visibility 0.6s ease;
}
.promo-rotator > .is-off {
	opacity: 0;
	visibility: hidden;
}
/* boutique désactivée (site.js masque les liens data-shop) : le concours reprend la place */
.promo-strip-subs[hidden] + .is-off {
	opacity: 1;
	visibility: visible;
}
@media (max-width: 640px) {
	.promo-strip-more {
		display: none;
	}
}

/* ---------- fluidité ---------- */

/* changement de page. Navigateurs avec transitions entre documents (Chrome, Edge, Safari récents) : fondu enchaîné natif.
   Les autres (Firefox) : site.js estompe la page au clic sur un lien (.is-leaving, barre .nav-progress) et la page
   suivante apparaît en fondu (@supports not : main). Sans JavaScript : navigation normale. */
@view-transition {
	navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.38s;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Firefox (pas de transition entre documents, bien qu'il annonce les transitions dans une page) et navigateurs plus anciens */
@supports ((-moz-appearance: none) or (not (view-transition-name: none))) {
	main {
		animation: page-in 0.55s var(--ease) backwards;
	}
}
@keyframes page-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
html.is-leaving main,
html.is-leaving footer {
	opacity: 0;
	transform: translateY(-10px);
	transition:
		opacity 0.24s var(--ease),
		transform 0.24s var(--ease);
}
.nav-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 2147483000;
	pointer-events: none;
	transform-origin: left;
	background: linear-gradient(90deg, var(--accent), var(--accent-bright));
	box-shadow: 0 0 12px var(--accent);
	animation: nav-progress 5s var(--ease) both;
}
@keyframes nav-progress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(0.92);
	}
}

/* le menu du haut prend une ombre dès qu'on a défilé */
.topbar {
	transition: box-shadow 0.35s var(--ease);
}
.topbar.is-scrolled {
	box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.85);
}

/* menu mobile : les liens arrivent l'un après l'autre */
.mobile-nav:not([hidden]) > a {
	animation: nav-item 0.5s var(--ease) both;
}
.mobile-nav:not([hidden]) > a:nth-child(2) {
	animation-delay: 0.04s;
}
.mobile-nav:not([hidden]) > a:nth-child(3) {
	animation-delay: 0.08s;
}
.mobile-nav:not([hidden]) > a:nth-child(4) {
	animation-delay: 0.12s;
}
.mobile-nav:not([hidden]) > a:nth-child(5) {
	animation-delay: 0.16s;
}
.mobile-nav:not([hidden]) > a:nth-child(6) {
	animation-delay: 0.2s;
}
@keyframes nav-item {
	from {
		opacity: 0;
		transform: translateX(-12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* bouton « en cours » (paiement, espace client) : petit cercle qui tourne devant le texte */
.btn.is-busy::before {
	content: "";
	flex: none;
	width: 0.95em;
	height: 0.95em;
	margin-right: 0.55rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}
@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* les boutons et les cartes se soulèvent légèrement au survol (la souris seulement ; l'appui garde son effet) */
@media (hover: hover) {
	.btn:hover:not(:disabled):not(:active) {
		transform: translateY(-2px);
	}
	.plan {
		transition:
			transform 0.35s var(--ease),
			box-shadow 0.35s var(--ease);
	}
	.plan:hover {
		transform: translateY(-5px);
	}
}

/* apparition des blocs quand on arrive dessus (site.js ajoute .rv aux blocs encore hors écran, puis .rv-in à leur
   arrivée, avec un léger décalage entre les cartes d'une même rangée, et enfin .rv-done). Sans JavaScript, rien n'est caché. */
.rv,
.rv-in,
.rv-done {
	animation: none;
}
.rv,
.rv-in {
	transition:
		opacity 0.85s var(--ease),
		transform 0.85s var(--ease);
}
.rv {
	opacity: 0;
	transform: translateY(30px);
}
.rv-in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html:not([data-motion="on"]) .rv {
		transform: none;
	}
	html:not([data-motion="on"]).is-leaving main,
	html:not([data-motion="on"]).is-leaving footer {
		transform: none;
	}
	html:not([data-motion="on"]) .nav-progress {
		transform: none;
	}
}

/* changements d'état progressifs : champs de saisie et liens (les composants qui ont leur propre transition la gardent) */
input,
textarea,
select {
	transition:
		border-color 0.22s var(--ease),
		box-shadow 0.22s var(--ease),
		background-color 0.22s var(--ease);
}
a {
	transition: color 0.2s var(--ease);
}
/* au toucher, pas de rectangle gris du navigateur : chaque contrôle a son propre retour visuel */
html {
	-webkit-tap-highlight-color: transparent;
}

/* images qui arrivent en retard (photos, stickers) : fondu au lieu d'un affichage sec */
img.fade-img {
	opacity: 0;
	transition: opacity 0.6s var(--ease);
}
img.fade-img.is-loaded {
	opacity: 1;
}

/* ---------- icône panier du haut ---------- */
.cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--text-dim);
	transition: color 0.18s ease;
}
.cart-link:not(.has-items) {
	display: none;
}
.cart-link:hover {
	color: var(--accent-bright);
}
.cart-link .i {
	width: 1.2rem;
	height: 1.2rem;
}
.cart-badge {
	position: absolute;
	top: -0.45rem;
	right: -0.6rem;
	min-width: 1.05rem;
	padding: 0 0.28rem;
	border-radius: 999px;
	background: var(--accent-ink);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	line-height: 1.05rem;
	text-align: center;
}

/* ---------- sortie de l'application (compte à rebours, site.js data-countdown) ---------- */
.promo-strip-app {
	color: #fff;
	background: linear-gradient(90deg, #5443d6, var(--accent-ink) 50%, #5443d6);
}
.promo-strip-app .app-live,
.promo-strip-app.is-over .app-soon {
	display: none;
}
.promo-strip-app.is-over .app-live {
	display: inline;
}
.promo-strip-app strong {
	font-variant-numeric: tabular-nums;
}
.app-card {
	display: grid;
	justify-items: center;
	gap: 0.4rem;
	text-align: center;
	padding: clamp(1.5rem, 4vw, 2.6rem);
	border: 1px solid var(--accent-dim);
	border-radius: 22px;
	background:
		radial-gradient(120% 90% at 50% 0%, var(--accent-wash), transparent 60%),
		var(--surface);
}
.app-card .countdown-grid {
	justify-content: center;
}
.app-card .countdown.is-over .countdown-label {
	display: none;
}
.app-cta {
	display: none;
	margin-top: 1.2rem;
}
.app-card .countdown.is-over + .app-cta {
	display: flex;
}

.app-shots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.25rem;
	width: 100%;
	max-width: 760px;
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
}
.app-shots li {
	display: grid;
	justify-items: center;
	gap: 0.7rem;
}
.app-shots img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	border: 1px solid var(--accent-dim);
	background: var(--surface);
}
.app-shots span {
	font-size: 0.85rem;
	color: var(--text-dim);
}
.app-more {
	margin: 1.4rem 0 0;
	font-size: 0.9rem;
}
.app-more a {
	color: var(--accent-bright);
}
