/* 🌐 Structure principale */
body {
  font-family: "Georgia", serif;
  background: #f5f4f2;
  color: #222;
  line-height: 1.6;
  max-width: 800px;
  margin: auto;
  padding: 0;
}

/* 🧭 Titres */
h1, h2, h3 {
  color: #2b2b2b;
}

/* 📦 Sections génériques */
.section {
  padding: 0 2.5rem;
  margin-top: 2rem;
}

/* 🖼️ Image d’ambiance */
.image-header {
  text-align: center;
  margin-bottom: 2rem;
}
.image-header img {
  width: 100%;
  max-width: 100px;
  float: left;
  margin-right: 1rem;
}

/* 🔰 Logo */
.logo {
  width: 100%;
  max-width: 200px;
  margin-bottom: 1rem;
}

/* 📝 Textes */
em {
  color: #444;
  font-style: italic;
}
strong {
  color: #000;
}
ul {
  padding-left: 1.2rem;
}
ul li {
  margin-bottom: 0.5rem;
}

/* 📩 Formulaire */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 100%;
}
input, textarea {
  padding: 0.7rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.response {
  margin-top: 1rem;
  font-weight: bold;
}

/* 🧱 Bloc de type carte */
.carte-bloc {
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

/* 🟡 Formulaire : fond jaune pâle */
.questionnaire {
  background-color: #fff8e1;
}

/* 🔵 Tirage : fond bleu pâle */
.tirage-ouinon {
  background-color: #f0f8ff;
}

/* 🎯 Bouton unifié (gris/noir) */
.btn {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.btn:hover {
  background-color: #444;
}

/* 🔮 Résultat du tirage */
.resultat {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

/* 🦶 Footer */
footer {
  background-color: #1e1e1e;
  color: #f0f0f0;
  padding: 2rem 1rem;
  margin-top: 4rem;
  font-size: 0.85rem;
  text-align: center;
}
footer a {
  color: #f0f0f0;
  text-decoration: underline;
}

/* Animation de points qui clignotent */
.loading::after {
  content: "";
  display: inline-block;
  animation: dots 1.2s steps(3, end) infinite;
  vertical-align: baseline;
  margin-left: 4px;
}

@keyframes dots {
  0%   { content: ""; }
  33%  { content: "."; }
  66%  { content: ".."; }
  100% { content: "..."; }
}
