/* Général */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

/* Connexion */
.login-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
  width: 300px;
  margin: auto;
  margin-top: 15vh;
}

h2 {
  margin-bottom: 20px;
  color: #004d40;
  font-size: 22px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 12px;
  background: #004d40;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

button:hover { background: #00695c; }

.error { color: red; margin-top: 10px; }

/* Bandeau dashboard */
.header {
  background-color: #004d40;
  color: white;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.user-info {
  margin-left: 20px;
  font-size: 14px;
}

.last-update {
  font-size: 12px;
  color: #ddd;
}

.logout a {
  color: white;
  text-decoration: none;
  background: #c62828;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  margin-right: 20px;
}

.iframe-container {
  width: 100%;
  height: calc(100vh - 60px);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ✅ Responsive mobile */
@media (max-width: 768px) {
  .login-box {
    width: 90%;
    padding: 20px;
  }
  h2 { font-size: 18px; }
  input, button { font-size: 14px; }

  .header {
    flex-direction: column;
    text-align: center;
  }
  .logout { margin-top: 8px; }
  .iframe-container {
    height: calc(100vh - 120px);
  }
}
/* Iframe par défaut */
.iframe-container {
  width: 100%;
  height: calc(100vh - 60px);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ✅ Responsive mobile */
@media (max-width: 768px) {
  .iframe-container {
    height: calc(100vh - 120px); /* prend toute la hauteur visible */
  }

  iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}
