/* Style jeneral */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(-45deg, #1e1e2f, #121224, #2a2a40, #1a1a2a);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: #f0f0f5;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: 'Flameregular';
  src: url('../vhfpolices/FlameRegular.otf');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family:'Monument' ;
  src: url('../vhfpolices/MonumentExtended-Regular.otf');
  font-weight: normal;
  font-style: normal;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
header {
  background: rgba(18, 18, 36, 0.9);
  padding: 20px 0;
  text-align: center;
  border-bottom: 5px solid #ff6f61;
  backdrop-filter: blur(8px);
}

header p {
  margin: 5px 0 0;
  font-style: italic;
  font-size: 1.5em;
  color: #ccc;
}

/* typewriter effect */
.titlewriter {
  font-family: 'Flameregular';
  font-style: bold;
  font-size: 2.5em;
  color: #ff6f61;
  text-shadow: 0 0 15px rgba(240, 78, 63, 0.808);
}
.typewriter {
  font-family: 'monument';
  font-size: 1.2em;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #000;
  padding-right: 5px;
}
.vhfimage{
    width: 20%;
    margin: 20px auto;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: rotate 12s linear infinite;
}
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Audio Player */
#player {
  max-width: 450px;
  margin: 40px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

/* Spinner loading */
#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ff6f61;
  font-weight: bold;
}

.spinner {
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #ff6f61;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bouton play */
.play-button {
  background: linear-gradient(135deg, #ff6f61, #ff503d);
  border: none;
  padding: 15px 40px;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  cursor: pointer;
  border-radius: 40px;
  margin: 30px auto;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 80, 61, 0.4);
}

.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 80, 61, 0.6);
}

/* Visualizer */
canvas {
  display: block;
  margin: 20px auto;
}

/* Commentaires */
#commentaires {
  background: rgba(30, 30, 47, 0.9);
  color: #eee;
  padding: 20px;
  margin-top: 30px;
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

#commentaires h2 {
  text-align: center;
  margin-bottom: 15px;
  color: #ff6f61;
}

#commentForm textarea,
#commentForm input[type="text"] {
  width: 90%;
  padding: 15px;
  margin: 12px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  outline: none;
}

#commentForm textarea {
  height: 80px;
  resize: vertical;
}

#commentForm button {
  background: linear-gradient(135deg, #ff5722, #e64a19);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  width: 100%;
}

#commentForm button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 74, 25, 0.5);
}

#commentList {
  margin-top: 20px;
}

.comment {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.comment-buttons button {
  padding: 8px 14px;
  margin: 5px;
  font-weight: bold;
  border: none;
  background-color: #0066ff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.comment-buttons button:hover:not(:disabled) {
  background-color: #004bb5;
}

.comment-buttons button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
#endMessage {
  text-align: center;
  font-style: italic;
  color: #888;
  margin-top: 10px;
}
/* Footer */
.footer {
  background-color: rgba(18, 18, 36, 0.95);
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  border-top: 2px solid #ff6f61;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-section {
  flex: 1 1 150px;
  margin: 10px;
}
.footer-section h4 {
  border-bottom: 2px solid #00227e;
  padding-bottom: 5px;
  margin-bottom: 4px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section ul li a {
  color: #ffab40;
  text-decoration: none;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 2px solid #444;
  padding-top: 10px;
  font-size: 14px;
}
.footer a {
  color: #ffab40;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff6f61;
}

@media screen and (max-width: 768px) {
  .titlewriter {
    font-size: 1.8em;
    text-align: center;
    padding: 0 10px;
    text-shadow: 0 0 10px rgba(255, 111, 67, 0.7);
  }
  .typewriter {
  font-size: 1em;
  }
  .vhfimage{
    width: 30%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.21)
  }

  #visualizer {
    width: 100%;
    height: 70%;
  }

  #commentaires h2 {
    font-size: 22px;
    text-align: center;
  }
    #commentForm textarea,
    #commentForm input[type="text"] {
      max-width: 100%;
      padding: 10px;
    }
    #commentForm button {
      width: 100%;
      padding: 10px;
    }
    #commentList {
        margin-top: 10px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        margin: 10px 0;
        text-align: center;
    }
    .footer-section h4 {
        font-size: 1.2em;
    }
    .footer-section ul {
        padding: 0;
    }
    .footer-section ul li {
        margin-bottom: 5px;
    }
    .footer-section ul li a {
        font-size: 0.9em;
    }
    .footer-bottom {
        font-size: 0.9em;
        padding-top: 10px;
    }
    .footer {
        padding: 20px 10px;
    }
    .footer-section {
        flex: 1 1 100%;
        text-align: center;
    }
    .footer-section h4 {
        font-size: 1.2em;
    }
    .footer-section ul li a {
        font-size: 0.9em;
        text-decoration: underline;
        color: #ffab40;
    }
}
