@font-face {
	font-family: 'Young Serif';
	src: url('/polices/young-serif.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Atkinson Hyperlegible';
	src: url('/polices/atkinson-400.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Atkinson Hyperlegible';
	src: url('/polices/atkinson-700.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}

/* La nuit de Noel : bleu nuit, neige, le rouge pour le seul geste a faire, une touche d'or.
   Une marque d'entreprise remplace --fond, --encre, --doux, --accent, --sur-accent et --or (commun.js). */
:root {
	--fond: #0f1d3a;
	--encre: #f6f1e7;
	--doux: #b4bfd6;
	--accent: #d62839;
	--sur-accent: #ffffff;
	--or: #f2c14e;
	--neige: #fbf7ef;
	--sur-neige: #101b33;
	--carte: color-mix(in srgb, var(--encre) 7%, var(--fond));
	--trait: color-mix(in srgb, var(--encre) 22%, var(--fond));
	--police: 'Atkinson Hyperlegible', system-ui, sans-serif;
	--titre: 'Young Serif', Georgia, serif;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--fond);
	color: var(--encre);
	font-family: var(--police);
	font-size: 1.0625rem;
	line-height: 1.5;
}

main {
	max-width: 34rem;
	margin: 0 auto;
	padding: 0.5rem 1.25rem 3rem;
}

header.haut {
	max-width: 34rem;
	margin: 0 auto;
	padding: 0.9rem 1.25rem 0;
}

header.haut a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--encre);
	text-decoration: none;
	font-family: var(--titre);
	font-size: 1.15rem;
}

header.haut img {
	width: 2.4rem;
	height: 2.64rem;
}

#logo-marque {
	max-height: 3rem;
	max-width: 10rem;
	object-fit: contain;
}

h1,
h2,
.tire {
	font-family: var(--titre);
	font-weight: 400;
}

h1 {
	font-size: 2.15rem;
	line-height: 1.12;
	margin: 1rem 0 1.25rem;
}

h2 {
	font-size: 1.35rem;
	line-height: 1.2;
	margin: 2rem 0 0.6rem;
}

a {
	color: var(--or);
}

label,
legend {
	display: block;
	font-weight: 700;
	margin: 1.1rem 0 0.4rem;
	padding: 0;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.aide {
	display: block;
	font-weight: 400;
	color: var(--doux);
	font-size: 0.95rem;
}

textarea,
input[type='text'],
input[type='email'],
input[type='url'],
input[type='date'],
input[type='number'],
select {
	width: 100%;
	font: inherit;
	color: var(--sur-neige);
	background: var(--neige);
	border: 2px solid transparent;
	border-radius: 0.4rem;
	padding: 0.65rem 0.75rem;
	color-scheme: light;
}

::placeholder {
	color: #6b7590;
	opacity: 1;
}

textarea:focus,
input:focus,
select:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--or);
	outline-offset: 2px;
}

textarea {
	min-height: 7rem;
	resize: vertical;
}

.deux {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 0.75rem;
}

.case {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-weight: 400;
}

.case input {
	width: 1.3rem;
	height: 1.3rem;
	margin-top: 0.15rem;
	flex: none;
	accent-color: var(--accent);
}

button,
.bouton {
	display: inline-block;
	font: inherit;
	font-weight: 700;
	border: 0;
	border-radius: 0.4rem;
	padding: 0.8rem 1.2rem;
	background: var(--accent);
	color: var(--sur-accent);
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

button.principal {
	width: 100%;
	margin-top: 1.25rem;
	font-size: 1.2rem;
	padding: 1rem;
}

button.second,
.bouton.second {
	background: transparent;
	color: var(--encre);
	border: 2px solid var(--trait);
	padding: 0.45rem 0.8rem;
}

button.lien {
	background: none;
	color: var(--or);
	padding: 0.25rem 0;
	font-weight: 400;
	text-decoration: underline;
}

button:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Les prenoms : un champ par personne, comme une etiquette de cadeau. */
ol.prenoms {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

ol.prenoms input {
	font-size: 1.2rem;
	padding: 0.7rem 0.85rem;
}

.etape[hidden] {
	display: none;
}




.qui {
	color: var(--doux);
	margin: 0 0 0.25rem;
}

details {
	margin-top: 0.75rem;
	border-top: 1px solid var(--trait);
	padding-top: 0.75rem;
}

summary {
	font-weight: 700;
	cursor: pointer;
	padding: 0.2rem 0;
}

details[open] > summary {
	margin-bottom: 0.25rem;
}

.choix {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.6rem 0;
}

.choix button {
	background: transparent;
	color: var(--encre);
	border: 2px solid var(--trait);
	font-weight: 400;
	padding: 0.45rem 0.8rem;
}

.choix.grand button {
	font-size: 1.15rem;
	padding: 0.7rem 1rem;
}

.choix button:disabled {
	cursor: not-allowed;
}

.choix button[aria-pressed='true'] {
	background: var(--neige);
	color: var(--sur-neige);
	border-color: var(--neige);
	font-weight: 700;
}

ul.exclusions {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

ul.exclusions li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--trait);
}

.erreur {
	color: #3d0a00;
	background: #ffd9a8;
	border-radius: 0.4rem;
	padding: 0.6rem 0.8rem;
	font-weight: 700;
}

.erreur:empty {
	display: none;
}

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

ul.liens li {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--trait);
}

.prenom {
	font-family: var(--titre);
	font-size: 1.3rem;
}

.etat {
	color: var(--doux);
	font-size: 0.95rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.encadre {
	background: var(--carte);
	border-radius: 0.5rem;
	padding: 1rem 1.1rem;
	margin: 1rem 0;
}

.infos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.25rem;
	color: var(--doux);
	margin: 0;
	padding: 0;
	list-style: none;
}

.envies {
	white-space: pre-wrap;
	background: var(--carte);
	border-radius: 0.4rem;
	padding: 0.6rem 0.8rem;
}

.message-marque {
	white-space: pre-line;
}

.cache {
	display: none !important;
}

/* La revelation : le cadeau ferme, qu'on touche pour l'ouvrir. */
.revelation {
	display: grid;
	justify-items: center;
	text-align: center;
	margin-top: 0.5rem;
}

button.cadeau {
	position: relative;
	background: none;
	padding: 0;
	width: min(17rem, 78vw);
	aspect-ratio: 1 / 1;
	border-radius: 0.5rem;
}

button.cadeau:disabled {
	opacity: 1;
	cursor: default;
}

.cadeau svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.cadeau .couvercle {
	transform-box: fill-box;
	transform-origin: 0% 100%;
	transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.6, 1);
}

.cadeau .gardien {
	position: absolute;
	width: 32%;
	right: -2%;
	top: -5%;
	transition: transform 0.4s ease;
}

.cadeau:not(:disabled) svg {
	animation: attend 2.6s ease-in-out infinite;
}

.ouvert .couvercle {
	transform: translate(-6%, -38%) rotate(-24deg);
}

.ouvert .cadeau svg {
	animation: none;
}

.consigne {
	font-weight: 700;
	margin: 1rem 0 0;
}

.carte-nom {
	margin-top: -0.5rem;
	background: var(--neige);
	color: var(--sur-neige);
	border-radius: 0.5rem;
	padding: 1.1rem 1.25rem 1.25rem;
	width: 100%;
	animation: sort 0.5s cubic-bezier(0.2, 1.3, 0.5, 1) both;
}

.carte-nom .infos {
	color: #3c4560;
	justify-content: center;
}

.tire {
	font-size: 2.8rem;
	line-height: 1.05;
	color: var(--sur-neige);
	margin: 0.15rem 0 0.6rem;
	overflow-wrap: anywhere;
}

@keyframes attend {
	0%,
	100% {
		transform: rotate(0deg);
	}
	8% {
		transform: rotate(-3deg);
	}
	16% {
		transform: rotate(3deg);
	}
	24% {
		transform: rotate(0deg);
	}
}

@keyframes sort {
	from {
		opacity: 0;
		transform: translateY(2.5rem) scale(0.9);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

.texte h2 {
	margin-top: 1.75rem;
}

.texte li {
	margin: 0.2rem 0;
}

.texte code,
.texte pre {
	font-family: ui-monospace, 'Courier New', monospace;
	font-size: 0.9rem;
	background: var(--carte);
	border-radius: 0.3rem;
}

.texte code {
	padding: 0 0.25rem;
	overflow-wrap: anywhere;
}

.texte pre {
	padding: 0.75rem;
	overflow-x: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

table {
	border-collapse: collapse;
	width: 100%;
}

td,
th {
	text-align: left;
	border-bottom: 1px solid var(--trait);
	padding: 0.4rem 0.3rem;
	vertical-align: top;
}

footer.pied {
	max-width: 34rem;
	margin: 0 auto;
	padding: 1.25rem 1.25rem 2.5rem;
	border-top: 1px solid var(--trait);
	color: var(--doux);
	font-size: 0.95rem;
}

footer.pied p {
	margin: 0.35rem 0;
}

footer.pied a {
	margin-right: 0.85rem;
	white-space: nowrap;
}

footer.pied .rubrique {
	color: var(--encre);
	font-weight: 700;
	margin-right: 0.5rem;
}

.fait-avec {
	margin-top: 0.75rem;
}

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

	h1 {
		font-size: 1.85rem;
	}

	.tire {
		font-size: 2.2rem;
	}
}

.ouvert .gardien {
	transform: translate(-12%, 18%) rotate(-10deg);
}

.entete-liens {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
}

.entete-liens h1 {
	flex: 1;
}

.entete-liens img {
	width: 4.5rem;
	height: auto;
	flex: none;
	margin-bottom: 1rem;
}

ul.retraits {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

ul.retraits li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--trait);
}

/* L'accueil remplit l'ecran : le pied de page commence sous la ligne de flottaison. */
.accueil main {
	min-height: 100svh;
}

.titre-accueil {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.titre-accueil h1 {
	flex: 1;
}

.titre-accueil img {
	width: 6rem;
	height: auto;
	flex: none;
}

.accueil header.haut img {
	display: none;
}

.invisible {
	display: none;
}

label.importer,
button.importer {
	display: inline;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	min-height: 0;
	color: var(--or);
	text-decoration: underline;
	cursor: pointer;
	font-weight: 400;
}

#aide-noms {
	margin: -0.25rem 0 0.6rem;
}

button.ajout-personne {
	margin-top: 0.6rem;
	font-weight: 700;
	text-decoration: none;
}

/* Le fil d'Ariane des pages de texte. */
nav.fil ol {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.9rem;
	color: var(--doux);
}

nav.fil li:not(:last-child)::after {
	content: "/";
	margin-left: 0.35rem;
}

.ligne {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0.4rem 0;
}

.ligne input,
.ligne select {
	flex: 1 1 8rem;
	width: auto;
}

.etiquette {
	margin: 0.6rem 0;
}

.etiquette legend {
	font-weight: 700;
}

ul#mails,
ul#emojis {
	list-style: none;
	margin: 0.4rem 0 0.8rem;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

ul#emojis li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

ul#emojis select {
	width: 6rem;
}

/* L'emoji d'une personne, ou son initiale dans un rond de couleur. */
.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	border-radius: 50%;
	margin-right: 0.35em;
	vertical-align: middle;
	font-size: 0.8em;
	line-height: 1;
}

.avatar.initiale {
	color: #ffffff;
	font-weight: 700;
}

.avatar:empty {
	display: none;
}

.tire .avatar {
	font-size: 0.55em;
}

/* Une idee de cadeau : l'objet, son prix releve, pour qui, pas pour qui. */
section.idee {
	border-top: 1px solid var(--trait);
	padding: 0.75rem 0 0.25rem;
}

section.idee h2 {
	font-size: 1.2rem;
	margin: 0 0 0.25rem;
}

section.idee p {
	margin: 0.3rem 0;
}

section.idee .prix {
	color: var(--or);
	font-weight: 700;
}

section.idee .prix a {
	color: inherit;
}

section.idee .pas-pour {
	color: var(--doux);
}

ul.sommaire li {
	margin: 0.35rem 0;
}

section.liste-autre {
	border-top: 1px solid var(--trait);
	padding-top: 0.5rem;
}

section.liste-autre h3 {
	margin: 0.4rem 0;
}

/* L'accueil : la nuit et sa neige, le formulaire, puis le produit montre. */
.accueil {
	background: radial-gradient(120% 34rem at 50% 0, #1c3162 0, var(--fond) 100%) no-repeat var(--fond);
}

.ciel {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.5;
	background-image: radial-gradient(circle, #ffffff 0 1.5px, transparent 2px), radial-gradient(circle, #ffffff 0 1px, transparent 1.5px), radial-gradient(circle, #ffffff 0 2.5px, transparent 3px);
	background-size: 173px 173px, 97px 97px, 251px 251px;
	background-position: 20px 30px, 50px 70px, 110px 10px;
	animation: neige 26s linear infinite;
}

@keyframes neige {
	to {
		background-position: 20px 203px, 50px 264px, 110px 512px;
	}
}

header.haut,
main,
footer.pied {
	position: relative;
	z-index: 1;
}

.accueil main {
	max-width: none;
	padding: 0;
}

.scene {
	max-width: 34rem;
	margin: 0 auto;
	padding: 0.5rem 1.25rem 0;
}

/* Le telephone : ce que recoit un participant, le cadeau qui s'ouvre en boucle.
   L'etat pose est l'etat ouvert : sans animation, on voit le prenom tire. */
.demo {
	display: grid;
	justify-items: center;
	margin-top: 2.75rem;
}

.telephone {
	width: 16.5rem;
	border: 0.55rem solid #070d1c;
	border-radius: 2.4rem;
	background: #070d1c;
	box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45), 0 0 0 2px color-mix(in srgb, var(--encre) 28%, var(--fond));
	transform: rotate(-3deg);
}

.ecran {
	position: relative;
	overflow: hidden;
	border-radius: 1.85rem;
	background: #14264a;
	padding: 1.6rem 1rem 1.1rem;
	text-align: center;
	min-height: 23.5rem;
}

.demo-bonjour {
	font-family: var(--titre);
	font-size: 1.45rem;
	margin: 0 0 0.25rem;
}

.demo-cadeau {
	position: relative;
	width: 9.5rem;
	height: 9.5rem;
	margin: 0 auto;
}

.demo-cadeau svg {
	width: 100%;
	height: 100%;
	overflow: visible;
	transform-origin: 50% 90%;
	animation: demo-secoue 7s ease-in-out infinite;
}

.demo-cadeau .couvercle {
	transform-box: fill-box;
	transform-origin: 0 100%;
	transform: translate(-6%, -38%) rotate(-24deg);
	animation: demo-couvercle 7s cubic-bezier(0.3, 1.4, 0.6, 1) infinite;
}

.demo-carte {
	position: relative;
	margin-top: -0.4rem;
	background: var(--neige);
	color: var(--sur-neige);
	border-radius: 0.6rem;
	padding: 0.7rem 0.75rem 0.8rem;
	animation: demo-carte 7s cubic-bezier(0.2, 1.3, 0.5, 1) infinite;
}

.demo-carte p {
	margin: 0;
	font-size: 0.95rem;
}

.demo-carte .tire {
	font-size: 2.3rem;
	margin: 0.1rem 0 0.35rem;
}

.demo-infos {
	display: flex;
	justify-content: center;
	gap: 1rem;
	color: #3c4560;
}

.confettis i {
	position: absolute;
	left: 50%;
	top: 38%;
	width: 0.5rem;
	height: 0.8rem;
	border-radius: 2px;
	background: var(--or);
	opacity: 0;
	animation: demo-confetti 7s ease-out infinite;
}

.confettis i:nth-child(3n) {
	background: #e8424f;
}

.confettis i:nth-child(3n + 1) {
	background: var(--neige);
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
}

.confettis i:nth-child(1) { --x: -6.5rem; --y: -6rem; --r: 200deg; }
.confettis i:nth-child(2) { --x: -4.5rem; --y: -8.5rem; --r: -160deg; }
.confettis i:nth-child(3) { --x: -2.5rem; --y: -7rem; --r: 300deg; }
.confettis i:nth-child(4) { --x: -1rem; --y: -9.5rem; --r: 120deg; }
.confettis i:nth-child(5) { --x: 1rem; --y: -8rem; --r: -240deg; }
.confettis i:nth-child(6) { --x: 2.75rem; --y: -9rem; --r: 180deg; }
.confettis i:nth-child(7) { --x: 4.5rem; --y: -7rem; --r: -300deg; }
.confettis i:nth-child(8) { --x: 6.5rem; --y: -5.5rem; --r: 220deg; }
.confettis i:nth-child(9) { --x: -7rem; --y: -2.5rem; --r: -120deg; }
.confettis i:nth-child(10) { --x: 7rem; --y: -2rem; --r: 260deg; }
.confettis i:nth-child(11) { --x: -5.5rem; --y: -4rem; --r: 90deg; }
.confettis i:nth-child(12) { --x: 5.5rem; --y: -4.5rem; --r: -90deg; }
.confettis i:nth-child(13) { --x: -3.5rem; --y: -10rem; --r: 340deg; }
.confettis i:nth-child(14) { --x: 3.5rem; --y: -10.5rem; --r: -340deg; }

@keyframes demo-secoue {
	0%,
	8%,
	30%,
	100% {
		transform: rotate(0deg);
	}
	12%,
	20% {
		transform: rotate(-4deg);
	}
	16%,
	24% {
		transform: rotate(4deg);
	}
}

@keyframes demo-couvercle {
	0%,
	32% {
		transform: none;
	}
	40%,
	93% {
		transform: translate(-6%, -38%) rotate(-24deg);
	}
	100% {
		transform: none;
	}
}

@keyframes demo-carte {
	0%,
	36% {
		opacity: 0;
		transform: translateY(-3rem) scale(0.7);
	}
	46%,
	93% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
		transform: translateY(-3rem) scale(0.7);
	}
}

@keyframes demo-confetti {
	0%,
	35% {
		opacity: 0;
		transform: none;
	}
	38% {
		opacity: 1;
		transform: none;
	}
	60% {
		opacity: 1;
		transform: translate(var(--x), var(--y)) rotate(var(--r));
	}
	85%,
	100% {
		opacity: 0;
		transform: translate(var(--x), calc(var(--y) + 9rem)) rotate(calc(var(--r) * 2));
	}
}

/* La vitrine : la colline de neige, puis le produit en images sur fond clair. */
.vitrine {
	margin-top: -1.5rem;
}

.colline {
	display: block;
	width: 100%;
	height: 4.5rem;
	margin-bottom: -1px;
}

.neige {
	background: var(--neige);
	color: var(--sur-neige);
	padding: 1rem 1.25rem 3.5rem;
}

.neige section {
	max-width: 62rem;
	margin: 0 auto;
}

.neige h2 {
	font-size: 1.9rem;
	text-align: center;
	margin: 0 0 1.75rem;
}

.neige .plus h2 {
	margin-top: 3.5rem;
}

.neige h3 {
	font-family: var(--titre);
	font-weight: 400;
	font-size: 1.3rem;
	line-height: 1.2;
	margin: 1rem 0 0.2rem;
}

.neige p {
	margin: 0;
	color: #3c4560;
}

.neige ol,
.neige ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2.5rem 1.75rem;
	grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.numero {
	display: inline-grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	margin-right: 0.3rem;
	border-radius: 50%;
	background: var(--accent);
	color: #ffffff;
	font-family: var(--police);
	font-weight: 700;
	font-size: 1.05rem;
	vertical-align: 0.1em;
}

/* Un petit ecran du site, dessine en HTML. */
.mini {
	display: grid;
	align-content: center;
	gap: 0.45rem;
	height: 13.5rem;
	padding: 1.1rem;
	border-radius: 1.1rem;
	background: #0f1d3a;
	color: #f6f1e7;
	font-size: 0.95rem;
}

.faux-champ {
	background: var(--neige);
	color: var(--sur-neige);
	border-radius: 0.35rem;
	padding: 0.35rem 0.65rem;
}

.faux-bouton {
	background: #d62839;
	color: #ffffff;
	font-weight: 700;
	text-align: center;
	border-radius: 0.35rem;
	padding: 0.45rem;
	margin-top: 0.25rem;
}

.bulle {
	justify-self: end;
	max-width: 92%;
	font-size: 1.05rem;
	background: #d9fdd3;
	color: #111b21;
	border-radius: 0.8rem 0.8rem 0.15rem 0.8rem;
	padding: 0.55rem 0.75rem;
	line-height: 1.35;
}

.suivi {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid #2c3b61;
	font-family: var(--titre);
	font-size: 1.1rem;
}

.suivi em {
	margin-left: auto;
	font-family: var(--police);
	font-style: normal;
	font-size: 0.85rem;
	color: #b4bfd6;
}

.suivi em.vu {
	color: #8fe0a4;
	font-weight: 700;
}

.rond {
	display: inline-grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	font-family: var(--police);
	font-size: 0.9rem;
	color: #ffffff;
}

.r1 {
	background: #d62839;
}

.r2 {
	background: #2f7d5b;
}

.r3 {
	background: #b7791f;
}

/* Les images des fonctions : pas de cadre, l'objet seul. */
.plus .image {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	gap: 0.4rem;
	height: 6.5rem;
}

.envie {
	flex: 0 0 auto;
	background: #ffffff;
	border: 2px solid var(--sur-neige);
	border-radius: 0.35rem;
	padding: 0.1rem 0.55rem;
	font-size: 0.9rem;
}

.envie:nth-child(2) {
	margin-left: 1.5rem;
	transform: rotate(-1.5deg);
}

.envie:nth-child(3) {
	margin-left: 0.5rem;
}

.paire {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.puce {
	border: 2px solid var(--sur-neige);
	border-radius: 0.4rem;
	padding: 0.35rem 0.8rem;
	font-weight: 700;
	background: #ffffff;
}

.etiquette-prix {
	background: var(--or);
	border: 2px solid var(--sur-neige);
	border-radius: 0.4rem 1.6rem 1.6rem 0.4rem;
	padding: 0.5rem 1.4rem 0.5rem 0.9rem;
	font-family: var(--titre);
	font-size: 1.6rem;
	transform: rotate(-5deg);
}

.etiquette-date {
	display: grid;
	justify-items: center;
	margin-left: 0.6rem;
	background: #ffffff;
	border: 2px solid var(--sur-neige);
	border-top: 0.6rem solid #d62839;
	border-radius: 0.4rem;
	padding: 0.1rem 0.7rem 0.3rem;
	font-size: 0.8rem;
	line-height: 1.1;
}

.etiquette-date b {
	font-family: var(--titre);
	font-weight: 400;
	font-size: 1.7rem;
}

.direct {
	display: flex;
	gap: 0.4rem;
}

.direct i {
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 0.3rem;
	background: #d62839;
	border: 2px solid var(--sur-neige);
	box-shadow: inset 0 0.55rem 0 #e8424f, inset 0.95rem 0 0 -0.55rem transparent;
	background-image: linear-gradient(90deg, transparent 42%, var(--or) 42% 58%, transparent 58%);
	animation: saute 2.4s ease-in-out infinite;
}

.direct i:nth-child(2) {
	animation-delay: 0.12s;
}

.direct i:nth-child(3) {
	animation-delay: 0.24s;
}

.direct i:nth-child(4) {
	animation-delay: 0.36s;
}

.direct i:nth-child(5) {
	animation-delay: 0.48s;
}

@keyframes saute {
	0%,
	30%,
	100% {
		transform: none;
	}
	15% {
		transform: translateY(-0.7rem);
	}
}

.annees {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--titre);
	font-size: 1.15rem;
}

.annees span {
	border: 2px solid #9aa3ba;
	color: #5a6480;
	border-radius: 0.4rem;
	padding: 0.25rem 0.6rem;
}

.annees .cette-annee {
	border-color: var(--sur-neige);
	background: #d62839;
	color: #ffffff;
	font-size: 1.45rem;
}

.teintes {
	display: flex;
}

.teintes i {
	width: 2.9rem;
	height: 2.9rem;
	border-radius: 50%;
	border: 2px solid var(--sur-neige);
	margin-right: -0.7rem;
	background: #0f1d3a;
}

.teintes i:nth-child(2) {
	background: #2f7d5b;
}

.teintes i:nth-child(3) {
	background: #f2c14e;
}

.teintes i:nth-child(4) {
	background: #7b3fa0;
}

.suite {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem 1.75rem;
	margin-top: 3rem !important;
	font-weight: 700;
}

.neige a {
	color: #a3172a;
}

.final {
	display: grid;
	justify-items: center;
	gap: 1rem;
	padding: 3rem 1.25rem 3.5rem;
	background: var(--neige);
}

.final img {
	width: 8.5rem;
	height: auto;
	animation: attend 3.2s ease-in-out infinite;
}

.final .bouton {
	font-size: 1.2rem;
	padding: 1rem 2.2rem;
}

.accueil footer.pied {
	max-width: none;
	margin: 0;
	padding-top: 1.5rem;
	border-top: 0;
	text-align: center;
}

/* Le second ecran (les options) reste seul : ni telephone, ni vitrine. */
main:has(#etape-options:not([hidden])) .demo,
main:has(#etape-options:not([hidden])) .vitrine {
	display: none;
}

main:has(#etape-options:not([hidden])) .scene {
	padding-bottom: 3rem;
	min-height: 100svh;
}

@media (min-width: 60rem) {
	.accueil header.haut {
		max-width: 64rem;
		padding-top: 1.4rem;
	}

	main:not(:has(#etape-options:not([hidden]))) .scene {
		max-width: 64rem;
		display: grid;
		grid-template-columns: minmax(0, 31rem) 1fr;
		align-items: center;
		gap: 2rem;
		padding-top: 1.5rem;
		padding-bottom: 3.5rem;
	}

	.scene h1 {
		font-size: 3rem;
	}

	.titre-accueil img {
		width: 7.5rem;
	}

	.demo {
		margin-top: 0;
	}

	.telephone {
		width: 19rem;
	}

	.ecran {
		min-height: 28rem;
		padding-top: 2.2rem;
	}

	.demo-cadeau {
		width: 11.5rem;
		height: 11.5rem;
	}

	.neige h2 {
		font-size: 2.4rem;
	}

	.colline {
		height: 6.5rem;
	}
}

/* Une visite de plus : le prenom sans cadeau ni animation. */
.direct .carte-nom {
	margin-top: 0;
	animation: none;
}

/* Les themes du tirage (fonction 15) : un fond et un motif. Une marque d'entreprise passe par-dessus (style pose par commun.js). */
html[data-theme='chalet'] {
	--fond: #3d2418;
	--doux: #e3cbb4;
	--accent: #c0283a;
}

html[data-theme='chalet'] body {
	background-image: linear-gradient(90deg, rgb(255 255 255 / 0.04) 50%, transparent 50%), linear-gradient(rgb(255 255 255 / 0.04) 50%, transparent 50%);
	background-size: 2.5rem 2.5rem;
}

html[data-theme='pull'] {
	--fond: #173d22;
	--doux: #c9e0cd;
}

html[data-theme='pull'] body {
	background-image: linear-gradient(135deg, rgb(255 255 255 / 0.06) 25%, transparent 25%), linear-gradient(225deg, rgb(255 255 255 / 0.06) 25%, transparent 25%);
	background-size: 1.6rem 1.6rem;
}

html[data-theme='nuit'] {
	--fond: #080d22;
}

html[data-theme='nuit'] body {
	background-image: radial-gradient(circle, rgb(255 255 255 / 0.7) 0 1px, transparent 1.5px), radial-gradient(circle, rgb(242 193 78 / 0.8) 0 1.5px, transparent 2px);
	background-size: 5.5rem 5.5rem, 9rem 9rem;
	background-position: 0 0, 2.7rem 4.1rem;
}

/* Le personnage d'une personne (fonction 14) : un dessin dans un medaillon de neige. */
.perso {
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--neige);
	overflow: hidden;
	flex: none;
	vertical-align: middle;
}

.perso svg {
	width: 100%;
	height: 100%;
}

.perso.grand {
	width: 9rem;
	height: 9rem;
	display: flex;
	margin: 0.4rem auto;
	border: 3px solid var(--or);
}

.carte-nom .perso.grand {
	border-color: var(--sur-neige);
}

.passion {
	font-weight: 700;
}

.mon-perso summary {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.couche legend {
	margin-top: 0.8rem;
}

.couche .choix {
	margin: 0.3rem 0;
}

.choix.pastilles button.pastille {
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border-radius: 50%;
	background: var(--teinte);
}

.choix.pastilles button.pastille[aria-pressed='true'] {
	background: var(--teinte);
	border: 3px solid var(--or);
	outline: 2px solid var(--fond);
	outline-offset: -5px;
}

ul.personnages {
	list-style: none;
	padding: 0;
	margin: 0.4rem 0;
}

ul.personnages li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.35rem 0;
}

ul.personnages li > span:nth-child(2) {
	flex: 1;
}

h2.petit {
	font-size: 1.25rem;
	margin-top: 1.4rem;
}

.logo-choix {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

#m-logo-apercu {
	max-height: 3rem;
	max-width: 8rem;
	object-fit: contain;
	background: var(--neige);
	border-radius: 0.3rem;
	padding: 0.2rem;
}

.etiquette-champ {
	font-weight: 700;
	margin: 1.1rem 0 0.4rem;
}

input.fichier {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

label.bouton-fichier {
	display: inline-block;
	margin: 0;
	padding: 0.5rem 0.9rem;
	border: 2px solid var(--trait);
	border-radius: 0.4rem;
	cursor: pointer;
	font-weight: 400;
}

input.fichier:focus-visible + label.bouton-fichier {
	outline: 3px solid var(--or);
	outline-offset: 2px;
}

/* L'accueil apres le haut : une grille de tuiles d'une ligne. */
.neige .tuiles h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.neige .tuiles ul {
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: 0.6rem;
}

.tuiles li {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 0.3rem;
	padding: 0.6rem 0.5rem;
	text-align: center;
	border: 2px solid #e4dccb;
	border-radius: 0.8rem;
	background: #ffffff;
}

.tuiles li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.tuiles .image {
	display: grid;
	place-items: center;
	height: 2.6rem;
	overflow: hidden;
}

.tuiles p {
	font-size: 0.92rem;
	line-height: 1.25;
	color: var(--sur-neige);
}

.tuiles .envie,
.tuiles .puce {
	font-size: 0.7rem;
	padding: 0.05rem 0.3rem;
	margin: 0;
	transform: none;
}

.tuiles .paire {
	gap: 0.1rem;
}

.tuiles .etiquette-prix {
	font-size: 0.95rem;
	padding: 0.2rem 0.6rem 0.2rem 0.4rem;
}

.tuiles .direct {
	gap: 0.15rem;
}

.tuiles .direct i {
	width: 0.9rem;
	height: 0.9rem;
	box-shadow: none;
}

.tuiles .annees .cette-annee {
	font-size: 0.85rem;
	padding: 0.15rem 0.35rem;
}

.tuiles .teintes i {
	width: 1.3rem;
	height: 1.3rem;
	margin-right: -0.35rem;
}

.neige .tuiles .suite {
	margin-top: 1.25rem !important;
}

.accueil .neige {
	padding-bottom: 1.5rem;
}

.tuiles .teintes i:last-child {
	margin-right: 0;
}

.choix button[aria-disabled='true'] {
	opacity: 0.6;
}

.alerte {
	color: var(--or);
	font-weight: 700;
	margin-top: 0.3rem;
}

button.refaire-un {
	margin-top: 0.5rem;
}

.autre-appareil .qr {
	width: 11rem;
	margin: 0.6rem 0;
	border-radius: 0.4rem;
	overflow: hidden;
	line-height: 0;
}

.autre-appareil .qr svg {
	width: 100%;
	height: auto;
}

.ligne-lien {
	display: flex;
	gap: 0.4rem;
	align-items: stretch;
}

.ligne-lien input {
	flex: 1;
	min-width: 0;
}
