:root {
  --red: #c62828;
  --red-dark: #b71c1c;
  --dark: #424242;
  --light: #f5f5f5;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-image: url("ph1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* optionnel pour effet parallaxe */
  background-color: var(--light);
  color: black;
  font-size: 20px;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 20px;
  box-sizing: border-box;
}

.logo {
  height: 140px; /* ou 150px, selon ton besoin */
  max-width: 100%; /* pour éviter dépassement horizontal */
  object-fit: contain; /* garde les proportions sans déformation */
}


.hidden {
  display: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  width: 100%;
  margin-top: 20px;
}

input,
select,
textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid var(--dark);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--dark);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  background-color: red;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--red-dark);
}

h1,
h2 {
  font-size: 50px;
  color: white;
  text-shadow: 0 0 2px wheat;
}

p {
  font-size: 25px;
  color: white;
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feedback form spécifique */
#feedback-form {
  max-width: 600px;
  margin: 20px auto;
  padding: 30px;
  background: rgba(12, 0, 0, 0.5); /* fond semi-transparent */
  border-radius: 10px;
  box-shadow: 0 4px 15px white;
  font-family: Arial, sans-serif;
  color: white;
}

/* Style pour tablettes (768px à 1024px) */
@media (max-width: 1024px) {
  #feedback-form {
    max-width: 90%;
    padding: 25px;
  }
}

/* Style pour téléphones (en dessous de 768px) */
@media (max-width: 767px) {
  #feedback-form {
    max-width: 95%;
    padding: 20px;
    font-size: 14px;
  }

#feedback-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--light);
}
}

#feedback-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--light);
}

#feedback-form input[type="text"],
#feedback-form select,
#feedback-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid var(--light);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: var(--light);
  color: var(--dark);
}

#feedback-form textarea {
  resize: vertical;
  min-height: 80px;
}

#feedback-form button {
  margin-top: 20px;
  background-color: red;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#feedback-form button:hover {
  background-color: var(--red-dark);
}

.champ-conditionnel {
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.champ-conditionnel.visible {
  visibility: visible;
  opacity: 1;
  height: auto;
  margin-top: 20px;
}

.champ-conditionnel textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  resize: vertical;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  color: #000;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
/* Welcome form : même style cohérent que feedback-form */
#welcome-form {
  max-width: 600px;
  margin: 30px auto;
  padding: 30px;
  background: rgba(66, 66, 66, 0.6); /* semi-transparent dark */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
  font-family: Arial, sans-serif;
  color: var(--light);
  animation: fadeIn 1s ease-out;
}

#welcome-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: var(--light);
}

#welcome-form input,
#welcome-form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid var(--light);
  border-radius: 6px;
  font-size: 15px;
  background-color: var(--white);
  color: var(--dark);
  box-sizing: border-box;
}

/* Bouton identique au feedback form */
#welcome-form button {
  background-color: red;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#welcome-form button:hover {
  background-color: var(--red-dark);
}

/* Responsive tablette */
@media (max-width: 1024px) {
  #welcome-form {
    max-width: 90%;
    padding: 25px;
  }
}

/* Responsive téléphone */
@media (max-width: 767px) {
  #welcome-form {
    max-width: 95%;
    padding: 20px;
    font-size: 14px;
  }

  #welcome-form label {
    font-size: 14px;
  }

  #welcome-form input,
  #welcome-form select {
    font-size: 14px;
  }
}