*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

body{
  background:#0f0f0f;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  transition:0.3s;
}

.app{
  width:100%;
  max-width:390px;
  height:85vh;
  background:#1b1b1b;
  color:white;
  border-radius:22px;
  overflow:hidden;
  position:relative;
  transition:0.3s;
}

.app.dark{
  background:#f4f4f4;
  color:#111;
}

.app.dark .bottom-nav{
  background:#dddddd;
}

.app.dark .bottom-nav button{
  color:#111;
}

.app.dark .main-btn{
  background:#dcdcdc;
  color:#111;
}

.app.dark .color-item{
  background:#e8e8e8;
  color:#111;
}

.page{
  display:none;
  padding:16px;
  height:calc(85vh - 65px);
  overflow-y:auto;
}

.page.active{
  display:block;
}

.light-area{
  width:100%;
  height:34vh;
  border-radius:22px;
  background:#ffb366;
  box-shadow:0 0 40px rgba(255,179,102,0.7);
  transition:0.3s;
}

.light-area.fullscreen-light{
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  z-index:9999;
  border-radius:0;
}

.button-group{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.main-btn{
  flex:1;
  padding:14px;
  border:none;
  border-radius:14px;
  background:#2d2d2d;
  color:white;
  font-size:14px;
}

.timer-box{
  margin-top:15px;
}

.timer-box select{
  width:100%;
  padding:12px;
  margin-top:8px;
  border-radius:12px;
  border:none;
}

.timer-btn{
  margin-top:10px;
  width:100%;
}

.color-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px;
}

.color-item{
  padding:12px;
  border-radius:14px;
  background:#262626;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}

.color-item span{
  width:24px;
  height:24px;
  border-radius:8px;
}

/* BARRE DU BAS */
.bottom-nav{
  position:absolute;
  bottom:0;
  width:100%;
  height:65px;
  display:flex;
  justify-content:space-around;
  align-items:center;
  background:#222;
  transition:0.3s;
}

.bottom-nav button{
  border:none;
  background:none;
  display:flex;
  justify-content:center;
  align-items:center;
}

.bottom-nav img{
  width:28px;
  height:28px;
  object-fit:contain;
}

input[type="range"]{
  width:100%;
  margin:18px 0;
}