﻿@import "normalize.css";

@font-face {
  font-family: 'Cream Cake';
  src: url('font/cream_cake/Cream Cake.ttf') format('truetype');
}

@font-face {
  font-family: 'Hello Christmas Icon';
  src: url('font/hello_christmas_icons/Hello-Christmas-Icon-trial.ttf') format('truetype');
}

:root {
  --couleur-principale: #fd341f;
  --couleur-secondaire: #3f9bbf;
  --couleur-texte: #222;
  --fond-page: #97dbf6;
 --fond-transparent: rgba(255, 255, 255, 0.6);
  --ombre-douce: 2px 2px 6px rgba(0, 0, 0, 0.2);
  --rayon: 1rem;
}

html {
  font-family: 'Cream Cake', cursive;
  font-size: 20px;
  background-image: url('illustration/travel-background.jpg');
  background-color: var(--fond-page);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  scroll-behavior: smooth;
  line-height: 1.6;
  letter-spacing: 0.5px;

}


body {
  margin: 0;
  padding: 0;
  background-image: url('illustration/oiseau1.png');
  background-repeat: no-repeat;
  background-size: 35%;
  background-position: right bottom;
  background-attachment: fixed;
  color: var(--couleur-texte);
}

/* PAGE DE CHARGEMENT */
#page-chargement-application {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('illustration/plage.png');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-size: 3rem;
  color: white;
  text-shadow: var(--ombre-douce);
  animation: pulse 4s ease-in-out infinite alternate;


}

@keyframes pulse {
  0% {
    background-color: #ffd1dc; /* rose pastel */
  }
  50% {
    background-color: #ffe8b3; /* jaune pâle */
  }
  100% {
    background-color: #cdddfb; /* bleu lavande doux */
  }
}


/* CONTENEUR PRINCIPAL */
.page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--fond-transparent);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
  position: relative;
}

/* TITRE PRINCIPAL */
.page h1 {
  text-align: center;
  font-size: 3rem;
  color: var(--couleur-principale);
  text-shadow: 1px 1px white;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

/* LISTE DES PAYS */
#liste-pays {
  list-style: none;
  padding: 0;
  margin: 0;
}

#liste-pays li {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
  transition: transform 0.2s ease;
}

#liste-pays li:hover {
  transform: scale(1.02);
  background-color: rgba(255, 255, 255, 0.9);
}

.liste-pays-item {
  text-decoration: none;
  color: var(--couleur-principale);
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

.liste-pays-item::before {
  content: "🌍 ";
    font-family: 'Baloo 2', cursive;
  margin-right: 0.5rem;
  color: var(--couleur-secondaire);
}

/* INFOS PAYS */
.page span {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--couleur-secondaire);
  display: block;
  margin-top: 1rem;
}

.page p {
  font-size: 1rem;
  margin: 0.3rem 0 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-douce);
}

/* BOUTON “RETOUR À LA LISTE” */
a.action {
  display: block; /* au lieu de inline-flex */
  text-align: center;
  gap: 0.5rem;
  margin: 4rem auto 0;
  padding: 1rem 4rem;
  background-color: var(--couleur-principale);
  color: white;
  font-family: 'Luckiest Guy', cursive;
  font-size: 2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--ombre-douce);
  transition: all 0.3s ease;
  width: fit-content;
  cursor: pointer;
}

a.action::before {
  content: "⬅️";
  font-size: 1.2rem;
}

a.action:hover {
  background-color: #d52a1a;
  transform: scale(1.05);
}
