@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&family=Signika+Negative:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  width: 100%;
  background-color: #1E2124;
  font-family: 'Signika Negative', sans-serif;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

.font-climate {
  font-family: 'Climate Crisis', sans-serif;
}

.font-signika {
  font-family: 'Signika Negative', sans-serif;
}

#conv-name{
  color: black;
}

.menu-cb {
  display: none;
}

.menu-nav {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100%;
  width: 80%;
  max-width: 300px;
  background-color: #2D2A35;
  padding-top: 80px;
  transition: left 0.3s ease-in-out;
  z-index: 10;
  border-radius: 0 8px 8px 0;
}

.menu-cb:checked ~ .menu-nav {
  left: 0;
}

.menu-label {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.5rem;
  z-index: 11;
  cursor: pointer;
  color: #60A5FA;
}

.menu-lien {
  display: block;
  padding: 15px 20px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 300;
  font-size: 1.25rem;
}

.menu-lien:hover {
  background-color: #3C3744;
  color: #60A5FA;
}

.container {
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #60A5FA;
  padding-left: 20px;
}

#message-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.file-input-wrapper {
  position: relative;
}

.file-input {
  display: none;
}

.browse-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, #60A5FA, #3B82F6);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.browse-button:hover {
  background: linear-gradient(90deg, #3B82F6, #2563EB);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.browse-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#voice-settings {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.voice-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

#voice-settings label {
  font-weight: 500;
  color: #B6B6B6;
  margin-bottom: 5px;
}

#voice-settings label:hover {
  color: #60A5FA;
}

#messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-input {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #2D2A35;
  padding: 10px;
  border-radius: 8px;
}

input[type="text"], select, button {
  padding: 10px;
  border: 1px solid #3C3744;
  border-radius: 8px;
  font-size: 14px;
  background: #2D2A35;
  color: #FFFFFF;
  transition: all 0.3s;
}

input[type="text"] {
  flex: 1;
}

input[type="text"]:focus, select:focus {
  border-color: #60A5FA;
  box-shadow: 0 0 5px rgba(96, 165, 250, 0.5);
  outline: none;
}

button {
  background: #60A5FA;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #3B82F6;
}

#preview {
  position: relative;
  width: 100%;
  margin: 20px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#background-video-player {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.ios-screen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  min-height: 150px;
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.conversation-header {
  padding: 10px;
  background: #F7F7F7;
  border-bottom: 1px solid #D3D3D3;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 30px;
  height: 30px;
  background: #007AFF; /* Bleu iOS */
  border-radius: 50%;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.message-container {
  padding: 5px 10px 2px 10px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.message {
  margin: 2px 0;
  max-width: 60%;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 16px;
  word-wrap: break-word;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.received {
  background: #E5E5EA; /* Gris-bleu iOS */
  margin-left: 0;
  align-self: flex-start;
  color: #000000;
}

.sent {
  background: #34C759; /* Vert iOS */
  margin-right: 0;
  align-self: flex-end;
  color: #FFFFFF;
}

/* Supprime le point à côté des messages envoyés */
.sent::after {
  display: none;
}

.news-content {
  margin: 20px 0;
  padding: 20px;
  background: #2D2A35;
}

.news-content h3 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #60A5FA;
}

.news-content p, .news-content ul li {
  font-size: 1.125rem;
  color: #B6B6B6;
  line-height: 1.6;
}

.news-content a {
  color: #60A5FA;
  text-decoration: none;
}

.news-content a:hover {
  text-decoration: underline;
}

footer {
  background-color: #2D2A35;
  width: 100%;
  padding: 10px 20px;
  text-align: center;
  margin-top: 20px;
}

.footer-container a, .footer-container p {
  color: #B6B6B6;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-container a:hover {
  color: #60A5FA;
}

@media (min-width: 768px) {
  .menu-label {
    display: none;
  }
  .menu-nav {
    position: static;
    background: none;
    padding: 0;
    display: flex !important;
    width: auto;
    max-width: none;
    justify-content: center;
    gap: 20px;
  }
  .menu-lien {
    padding: 10px;
  }
  h1 {
    font-size: 3rem;
  }
  .news-content h3 {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 10px;
  }
  h1 {
    font-size: 2rem;
    padding-left: 10px;
  }
  .message-input {
    flex-direction: column;
    align-items: stretch;
  }
  .message-input input[type="text"], .message-input select, .message-input button {
    width: 100%;
  }
  .browse-button {
    width: 100%;
  }
  .news-content h3 {
    font-size: 2rem;
  }
  .news-content p, .news-content ul li {
    font-size: 1rem;
  }
}