/* Reset et base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  background: transparent; /* car vidéo en fond */
  color: #eee;
}

/* Body en flex pour centrer */
body {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  min-height: 100vh;
  padding: 20px;           /* espace sur les bords */
  background-color: transparent;
  text-align: center;
}

/* Titre */
h1 {
  color: #f0f0f0;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  margin-bottom: 30px;
  user-select: none;
}

/* Formulaire */
form {
  background: rgba(20, 20, 20, 0.85);
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 15px 20px;
  max-width: 900px;
  width: 100%;
  min-height: 60vh; /* hauteur minimum pour mieux centrer */
  box-sizing: border-box;
  text-align: left;
}

/* Champs du formulaire */
form input, form textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #222;
  color: #eee;
  transition: border-color 0.3s, background-color 0.3s;
  box-sizing: border-box;
}
form input:focus, form textarea:focus {
  border-color: #2980b9;
  background-color: #2c3e50;
  outline: none;
  color: #fff;
}

/* Textarea prend 2 colonnes */
textarea {
  grid-column: 1 / 3;
  resize: vertical;
  min-height: 80px;
}

/* Boutons d’action prennent 2 colonnes */
.form-actions {
  grid-column: 1 / 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}
.form-actions input[type="submit"] {
  background-color: #2980b9;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  width: 200px;
  transition: background-color 0.3s;
  flex-shrink: 0;
  border-radius: 4px;
}
.form-actions input[type="submit"]:hover {
  background-color: #3498db;
}

/* Champ texte dans form-actions */
.form-actions input[type="text"] {
  flex-grow: 1;
  background-color: #222;
  border: 1px solid #444;
  color: #eee;
}
.form-actions input[type="text"]:focus {
  border-color: #2980b9;
  background-color: #2c3e50;
  color: #fff;
}

/* Bouton paramètres */
#btnParam {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2980b9;
  color: white;
  font-size: 24px;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.7);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: background-color 0.3s, box-shadow 0.3s;
  z-index: 1000;
}
#btnParam:hover {
  background-color: #3498db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.9);
}
