*,
*::before,
*::after {
	box-sizing: border-box;
}

html, body {
	overflow-x: hidden;
}

body {
	background-color: #10ac84;
	margin: 0;
	text-align: center;

	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

@font-face {
  font-family: "titre";
  src:
    url("Pacifico-Regular.woff2") format("woff2") tech(color-COLRv1),
    url("Pacifico-Regular.woff") format("woff");
}

.principal {
	display: flex;
	justify-content: center;  /* centre le groupe entier */
	align-items: center;      /* aligne verticalement tous les blocs */
	gap: 0px;                 /* espace horizontal entre les 3 blocs */
	flex-wrap: wrap;          /* passe en colonne si écran trop petit */
	margin-top: 200px;
	margin-bottom: 30px;
}

@media only screen and (max-width: 480px) {
  .principal {
    margin-top: 100px;
  }
}

.bloc-icons {
	display: flex;
	gap: 15px;                /* espace entre les icônes d’un même bloc */
	align-items: center;
}

.titre {
	font-family: titre;
	font-size: clamp(45px, 8vw, 60px);
	text-align: center;
	margin-left: 100px;
	margin-right: 100px;
        margin-bottom: 60px;
        white-space: nowrap;

	color: #F9f1cc;
	text-shadow: 
		2px 2px 0px #6868AC, 
		4px 4px 0px #90B1E0, 
		6px 6px 0px #FF80BF, 
		8px 8px 0px #EF5097, 
		10px 10px 0px #FFB650, 
		12px 12px 0px #FFD662;

	filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.35));
}

.conteneur-icon {
	margin: auto;
	text-align: center;
	padding: 10px 10px 5px 10px;

	font-size: clamp(28px, 4vw, 42px);
	transition:
		transform 0.4s ease,
		filter 0.3s ease;
}

.conteneur-icon:hover {
	transform: scale(1.5);
	filter: drop-shadow(0 6px 8px rgba(0,0,0,0.35));
}

.icon {
	font-size: 24px;
	color: #F9f1cc;
	filter: drop-shadow(0px 0px 4px rgba(0,0,0,0.35));
}

.compteur {
	margin-top: 40px;
	padding: 15px;
	width: 100%;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #F9f1cc;
}

button {
	all: unset;
	cursor: pointer;
}

.description {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #F9f1cc;
}

.arrow {
	color: #F9f1cc;
	filter: drop-shadow(0px 0px 4px rgba(0,0,0,0.35));
}

.heart {
	color: #f368e0;
	filter: drop-shadow(0px 0px 4px rgba(0,0,0,0.35));
}

/* Animation de va-et-vient vertical */
@keyframes bounceDown {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(8px); } /* descendre de 8px */
}

#toggleDesc {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 30px;
	transition: transform 0.3s ease;
}

/* Rotation lorsqu’elle est ouverte */
#toggleDesc.open {
	transform: rotate(180deg);
}

/* Animation lorsqu’elle est fermée */
#toggleDesc:not(.open) {
	animation: bounceDown 1s infinite;
}

.texte-cache {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.3s ease;
	opacity: 0;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	padding-left: 30px;
	padding-right: 30px;
}

.texte-cache.open {
	max-height: 200px;
	opacity: 1;
}

.popup-message {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0); /* commence invisible */
	background-color: #F9f1cc;
	color: #EF5097;
	padding: 20px 30px;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: bold;
	font-size: 13px;
	text-align: center;
	z-index: 1000;
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 0;
}

.popup-message.show {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

/* Animation de “pop” du cœur */
@keyframes popHeart {
	0% { transform: scale(1); }
	30% { transform: scale(1.4); }
	50% { transform: scale(1.2); }
	70% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

#boutonClic i {
	transition: transform 0.2s ease;
}

#boutonClic.pop i {
	animation: popHeart 0.6s forwards;
}

