/* === GLOBAL === */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #3a4756, #495e70, #5a7189);
  margin: 0;
  padding: 0;
  color: #2b2f36;
}
.footer { 
  color: #000;              
  font-size: 0.85rem;       /* un peu plus petit que le texte normal */
  text-align: center;       /* centré */
  padding: 5px 5px;       /* espace autour du texte */
  position: fixed;          /* reste en bas de l'écran */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;             /* toujours au-dessus du contenu */
  font-family: 'Inter', sans-serif; /* police moderne */
}
.container {
  max-width: 900px;
  margin: 2rem auto;
  background: #f1f5f4;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(61, 220, 132, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}

h1 {
  text-align: center;
  font-size: 2rem;
  color: #3ddc84;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 6px rgba(61, 220, 132, 0.3);
}

/* === CHAT === */
.chat-and-button {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex: 1;
}

.chat-window {
  flex: 1;
  background: #e7f7f1;
  border: 1px solid #c2e7d6;
  border-radius: 12px;
  padding: 1rem;
  height: 380px;
  overflow-y: auto;
  box-shadow: inset 0 0 6px #bde8cf88;
  color: #2b2f36;
}

.user-msg,
.bot-msg {
  margin: 0.7rem 0;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 80%;
  padding: 0.5rem 0.5rem;
  border-radius: 12px;
  word-wrap: break-word;
}

.user-msg {
  background: #c6efdf;
  color: #000000;
  text-align: right;
  margin-left: auto;
}

.bot-msg {
  font-size: 16px;
  background: #EBFAF5;
  color: #000000;
  text-align: left;
  margin-right: auto;
}

/* === FORMULAIRE === */
.chat-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

#user-input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid #9fe4bc;
  background: #e4f4ea;
  color: #000000;
  outline: none;
  box-shadow: inset 0 0 4px rgba(121, 217, 156, 0.3);
}

#user-input::placeholder {
  color: #666;
}

#user-input:focus {
  border-color: #3ddc84;
  box-shadow: 0 0 5px rgba(61, 220, 132, 0.4);
}

button {
  padding: 0.6rem 1.2rem;
  background: linear-gradient(45deg, #4eea9b, #3ddc84);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.3);
}

button:hover {
  background: linear-gradient(45deg, #3ddc84, #2ec673);
  transform: scale(1.05);
}

/* === BOUTON GARAGE === */
.garage-button-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap:0.5rem;
}

.garage-button {
  background: linear-gradient(135deg, #3ddc84, #2cc96a);
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(61, 220, 132, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: inline-block;
  min-width: 160px;
  text-align: center;
}

.garage-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(61, 220, 132, 0.6);
}
.carter-button {
  background: linear-gradient(135deg, #ff4d4d, #0066ff); /* rouge -> bleu */
  color: white;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(255, 77, 77, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  text-align: center;
  margin-top: 0.5rem; /* petit espace avec le bouton au-dessus */
  max-width: 160px;
}

.carter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 77, 77, 0.6);
}
/* === INDICATEUR DE TYPING === */
.typing-indicator {
  font-style: italic;
  color: #000000;
}

.dots {
  display: inline-block;
  margin-left: 8px;
}

.dots span {
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 2px;
  color: #000000;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* === MOBILE (≤600px) === */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
    margin: 0;
    border-radius: 0;
    height: 81vh;
    display: flex;
    flex-direction: column;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .chat-and-button {
    flex-direction: column;
    flex: 1;
    overflow: hidden;
  }

  .chat-window {
    flex: 1;
    height: auto;
  }

  .chat-form {
    flex-direction: row;
    margin-top: 1rem;
  }
  .garage-button-container {
    margin-top: 2rem;
    text-align: center;
  }

  .garage-button {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
  }
}
.carter-button {
    max-width: 280px;
    padding: 12px 24px;
    font-size: 1rem;
    margin-top: 0.5rem; /* garde un petit espace avec le bouton du dessus */
  }
  #user-input {
    flex: 1;
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  button {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }



























