/* Reset de styles par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styles généraux */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  min-height: 100vh;            /* mieux que height:100vh sur mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;                /* évite que ça colle aux bords sur mobile */
}

/* Carte centrale */
.container {
  position: relative;           /* IMPORTANT pour placer le "!" */
  text-align: center;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 520px;
}

/* Titre */
h1 {
  font-size: 2.2rem;
  margin-bottom: 26px;
  color: #333333;
  line-height: 1.15;
}

/* Conteneur des boutons */
.button-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 22px;
  place-items: center;
}

/* Styles des boutons */
.button {
  display: flex;
  justify-content: center;
  align-items: center;

  /* Taille fluide (s'adapte à l'écran) */
  width: clamp(110px, 18vw, 150px);
  height: clamp(110px, 18vw, 150px);

  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

/* Couleurs boutons */
.createur-button {
  background-color: #18b000;
}

.poser-question-button {
  background-color: #2196F3;
}

.voir-question-button {
  background-color: #ff0000;
}

.supprimer-salon-button {
  background-color: #555555;
}

.button:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* ==========================
   Tooltip "!" (info 72h)
   ========================== */
.info-tooltip {
  position: absolute;
  top: 16px;
  right: 16px;

  width: 30px;
  height: 30px;
  border-radius: 50%;

  background: #ff9800;
  color: #fff;
  font-weight: bold;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: help;
  user-select: none;
}

/* Bulle */
.info-tooltip .tooltip-text {
  position: absolute;
  top: 40px;
  right: 0;

  width: 280px;
  max-width: calc(100vw - 60px);

  background: #2d2d2d;
  color: #fff;
  text-align: left;

  padding: 12px 12px;
  border-radius: 10px;

  font-size: 14px;
  line-height: 1.35;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

/* Petite flèche */
.info-tooltip .tooltip-text::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 12px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #2d2d2d transparent;
}

.info-tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 600px) {
  .container {
    padding: 26px 18px;
  }

  h1 {
    font-size: 1.7rem;
    margin-bottom: 18px;
  }

  .button-container {
    grid-template-columns: 1fr;   /* une colonne */
    gap: 16px;
  }

  .info-tooltip {
    top: 12px;
    right: 12px;
  }
}
