html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100vw;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: linear-gradient(120deg, #ffa100 0%, #ffe29f 35%, #48a7c2 100%);
  /* SUPPRIMÉ : display: flex; justify-content: center; align-items: center; */
}

.app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* Remove centering here */
  /* justify-content: center; */
  /* align-items: center; */
}

main#main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  /* Pour ratio spécifique sur desktop, tu peux remettre width: min(100vw, 66.67vh); et height: min(100vh, 150vw); en media query desktop */
}

/* Optionnel : ratio spécifique en desktop/tablette */
@media (min-width: 721px) {
  main#main {
    width: min(100vw, 66.67vh);
    height: min(100vh, 150vw);
    margin: auto;
  }
}

#header, #footer {
  display: none;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 32px #ffa10033;
  max-width: 340px;
  margin: 50px auto;
  padding: 32px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.login-card h2 {
  margin-bottom: 16px;
  color: #ffa100;
  text-align: center;
}
.login-card input[type="email"],
.login-card input[type="password"] {
  display: block;
  width: 100%;
  font-size: 1.1rem;
  padding: 12px 12px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: 1.5px solid #ffa10055;
  background: #faf9f4;
  box-sizing: border-box;
}
.login-card button[type="submit"], .login-card button[type="button"] {
  width: 100%;
  padding: 13px 0;
  margin-bottom: 9px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #ffa100 20%, #ffcc00 85%);
  color: #fff;
  cursor: pointer;
  transition: background .14s, transform .11s;
}
.login-card button[type="button"] {
  background: #eee;
  color: #ffa100;
  font-weight: 400;
  border: 1.5px solid #ffa10055;
}
.login-card button[type="submit"]:hover {
  background: linear-gradient(90deg, #48a7c2 20%, #ffa100 100%);
  transform: scale(1.01);
}
.login-card .error {
  color: #d22;
  font-size: 0.98rem;
  margin-top: 7px;
  min-height: 20px;
  text-align: center;
}

.profile-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px #ffa10033;
  max-width: 360px;
  margin: 40px auto;
  padding: 28px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.profile-card h2 {
  margin-bottom: 18px;
  color: #ffa100;
  text-align: center;
}
.profile-info {
  margin-bottom: 18px;
}
.profile-info > div {
  margin-bottom: 10px;
  font-size: 1.07rem;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-upgrade, .btn-logout, .btn-home {
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 1.13rem;
  font-weight: 500;
  cursor: pointer;
}
.btn-upgrade {
  background: linear-gradient(90deg, #ffa100 20%, #ffcc00 85%);
  color: #fff;
}
.btn-logout {
  background: #eee;
  color: #ffa100;
  border: 1.5px solid #ffa10055;
}
.btn-home {
  background: #faf9f4;
  color: #48a7c2;
}
