@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://wallpapercave.com/uwp/uwp4655350.png") no-repeat center center/cover;
  filter: brightness(0.6) saturate(1.3);
  z-index: -1;
}

/* Topbar */
.topbar {
  height: 40px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center; /* Centrer le texte horizontalement */
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 0 6px rgba(255, 221, 225, 0.8);
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

/* Conteneur principal */
.app-container {
  display: flex;
  height: calc(100vh - 40px);
  width: 100vw;
  color: #fff;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  user-select: none;
  text-shadow: 0 0 8px rgba(255 221 225 / 0.8);
}

.content-box {
  background: rgba(255, 255, 255, 0.08); /* semi-transparent blanc */
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px); /* floute l’arrière-plan derrière la box */
  max-width: 900px;
  margin: 0 auto;
}

/* Exemples styles */
.content-box img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 2px solid rgba(255 221 225 / 0.5);
}

.slider {
  width: 100%;
  margin: 20px 0;
  color: #ff4b4b;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  color: white;
}

th, td {
  border: 1px solid rgba(255 221 225 / 0.5);
  padding: 8px 12px;
  text-align: center;
}

th {
  background: rgba(219, 47, 55, 0.7);
}

form.example-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: white;
}

form.example-form input,
form.example-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255 221 225 / 0.5);
  background: rgba(0,0,0,0.2);
  color: white;
  font-size: 1rem;
}

form.example-form button {
  align-self: flex-start;
  background-color: #db2f37;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-black-white {
  background-color: #353535;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-black-white:hover {
  background-color: #db2f37;
  color: #fff;
  border-color: #fff;
}

/* Nav buttons */
.nav-btn {
  background-color: #db2f37;
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: left;
  margin-bottom: 15px;
}

.nav-btn:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
}

/* Profil */
.profile {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #db2f37;
  object-fit: cover;
  margin-right: 15px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-weight: 600;
  font-size: 1rem;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 40px;
  overflow-y: auto;
}

.header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 30px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255 221 225 / 0.8);
}

.user-name {
  margin-right: 20px;
}

.header-icon {
  width: 36px;
  height: 36px;
  margin-left: 15px;
  cursor: pointer;
  background-color: #db2f37;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  user-select: none;
}

.header-icon:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
}

.content {
  flex: 1;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(255 221 225 / 0.8);
}

.main-area::-webkit-scrollbar {
  width: 8px;
}

.main-area::-webkit-scrollbar-thumb {
  background: rgba(255 221 225 / 0.5);
  border-radius: 4px;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  outline: none;
  margin: 20px 0;
}

input[type=range]::-webkit-slider-runnable-track {
  background: #db2f37;
  height: 8px;
  border-radius: 4px;
}

input[type=range]::-moz-range-track {
  background: #db2f37;
  height: 8px;
  border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #db2f37;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -8px;
  transition: background-color 0.3s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  background-color: #f0f0f0;
}

input[type=range]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #db2f37;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type=range]::-moz-range-thumb:hover {
  background-color: #f0f0f0;
}

.btn-black-white {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  border: 2px solid #000;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
