:root {
  --color-pink: #ff6b95;
  --color-purple: #833ab4;
  --color-dark: rgba(0, 0, 0, 0.6);
  --color-light: #ffffff;
  --color-text: rgba(255, 255, 255, 0.9);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-light);
  background-image: url('../images/Wayn_Et_Moi.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

.background-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 149, 0.4) 0%, rgba(131, 58, 180, 0.5) 100%), var(--color-dark);
  backdrop-filter: blur(5px);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  background: rgba(20, 20, 20, 0.65);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 90%;
  max-width: 600px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  text-align: center;
  backdrop-filter: blur(10px);
}

h1 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--color-pink), #e37cf0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.controls-group {
  margin-bottom: 1.5rem;
}

.controls-group p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  opacity: 0.8;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  color: var(--color-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.active {
  background: linear-gradient(to right, var(--color-pink), var(--color-purple));
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 107, 149, 0.4);
}

.progress-section {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 1rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
}

#label-text {
  color: var(--color-pink);
}

#percentage-text {
  font-family: monospace;
  font-size: 1.2rem;
}

.progress-container {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--color-pink), var(--color-purple));
  border-radius: 12px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(255, 107, 149, 0.6);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.timeline-detail {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text);
  opacity: 0.7;
}

/* Navigation Menu */
.navbar {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 1rem;
  background: rgba(20, 20, 20, 0.65);
  padding: 1rem 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.navbar a {
  text-decoration: none;
  display: inline-block;
}


/* Effets esthétiques */
.btn {
  transform: scale(1);
  transition: all 0.3s ease, transform 0.1s ease;
}
.btn:active {
  transform: scale(0.92);
}

/* Citations */
.quotes-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: default;
  padding: 0.5rem;
  position: relative;
}

.quote:hover {
  opacity: 1;
  transform: scale(1.02);
}

/* Coeurs animés */
.heart {
  position: absolute;
  pointer-events: none;
  font-size: 1.2rem;
  z-index: 9999;
  background: linear-gradient(to right, var(--color-pink), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: floatHeart 1.2s ease-out forwards;
}

@keyframes floatHeart {
  0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-60px) scale(1.5) rotate(15deg); opacity: 0; }
}


/* Responsive Navbar pour écrans réduits */
@media (max-width: 768px) {
  .navbar {
    width: 90%;
    padding: 0.8rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 1rem;
    top: 1rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
