
:root{
  --coffee-dark: #4b2e21;
  --coffee: #6f4e37;
  --coffee-light: #a67c52;
  --coffee-cream: #f3e6da;
  --shadow: rgba(75,38,19,0.22);
}

/* Centrage de la page */
html, body {
  height: 100%;
}
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(180deg, #fffaf6 0%, #f6f1ec 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 18px; 
}

.container {
  width: 100%;
  max-width: 880px;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
}

/* Coffee Button Styles*/
.coffee-button{
  position: relative;
  display: inline-block;
  padding: 1rem 1.8rem; 
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1.25rem; 
  font-weight: 700; 
  color: white;
  background: linear-gradient(180deg, var(--coffee-light) 0%, var(--coffee) 50%, var(--coffee-dark) 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  box-shadow: 0 12px 28px var(--shadow), inset 0 -3px 0 rgba(0,0,0,0.15);
  transition: transform .14s cubic-bezier(.2,.9,.2,1), box-shadow .14s ease, filter .12s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.coffee-button::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  mix-blend-mode: overlay;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
}

.coffee-button::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 6px 18px rgba(0,0,0,0.08);
  pointer-events: none;
}

.coffee-button:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(75,38,19,0.28), inset 0 -2px 0 rgba(0,0,0,0.12);
  filter: brightness(1.03);
}

.coffee-button:hover::before{
  transform: translateY(-4px);
  opacity: 0.95;
}

.coffee-button:active{
  transform: translateY(-1px) scale(.995);
  box-shadow: 0 6px 12px rgba(0,0,0,0.18), inset 0 6px 10px rgba(0,0,0,0.12);
}

.coffee-button:focus{
  outline: none;
  box-shadow: 0 8px 22px rgba(75,38,19,0.28), 0 0 0 6px rgba(166,124,82,0.14);
}

.coffee-button:disabled,
.coffee-button[disabled]{
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.coffee-button--light{
  background: linear-gradient(180deg, var(--coffee-cream), #efe1d0);
  color: var(--coffee-dark);
  box-shadow: 0 10px 22px rgba(90,60,40,0.09), inset 0 -3px 0 rgba(0,0,0,0.04);
}

.timer-display {
  font-size: 4rem;
  font-weight: 800;
  color: var(--coffee-dark);
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
}

#coffee-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

body.dark-mode {
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #e0e0e0;
}

body.dark-mode .timer-display,
body.dark-mode #coffee-status {
  color: var(--coffee-cream);
}

body.dark-mode .progress {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .coffee-button--light {
  background: #3e2723;
  color: var(--coffee-cream);
  box-shadow: 0 10px 22px rgba(0,0,0,0.2), inset 0 -3px 0 rgba(0,0,0,0.1);
}


.progress {
  width: 100%;
  max-width: 760px;
  height: 14px;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  margin: 0.5rem auto 0; 
  overflow: hidden;
  display: block;
}

.container {
  width: 100%;
  max-width: 920px;
}

 #progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  margin: 0 auto; 
  background-color: var(--coffee);
  transition: width 1s linear;
  border-radius: inherit;
 }
