/* Exercice 7 - Transitions & Animations */

.page-ex7 {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 20px;
}

.demo {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  text-align: center;
}

/* Bouton principal */
.btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}
.btn:hover {
  background: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(52, 152, 219, 0.4);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Bouton outline */
.btn-outline {
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 15px;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover {
  background: #e74c3c;
  color: white;
}

/* Spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ecf0f1;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

/* Dots */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.dot {
  width: 14px;
  height: 14px;
  background: #3498db;
  border-radius: 50%;
  animation: bounce 0.6s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.1s; }
.dot:nth-child(3) { animation-delay: 0.2s; }

/* Pulse */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.6; }
}
.pulse-circle {
  width: 50px;
  height: 50px;
  background: #e74c3c;
  border-radius: 50%;
  margin: 0 auto;
  animation: pulse 1s ease-in-out infinite;
}
