@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
}

.section {
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.command-card {
  border-left: 4px solid #2563eb;
  padding: 1rem;
  background-color: #f0f4f8;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
}

.command-examples {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 6px;
  font-family: monospace;
  margin: 1rem 0;
  position: relative;
  overflow-x: auto;
}

.code {
  font-family: monospace;
  padding: 0.2rem 0.4rem;
  background-color: #f1f5f9;
  border-radius: 3px;
}

.accordion-btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-open .accordion-content {
  max-height: 1000px;
}

.tab {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px 5px 0 0;
  background-color: #f1f5f9;
  transition: all 0.3s ease;
}

.tab.active {
  background-color: #2563eb;
  color: white;
}

.tab-content {
  display: none;
  padding: 20px;
  border-radius: 0 0 5px 5px;
  background-color: white;
  border: 1px solid #e5e7eb;
}

.tab-content.active {
  display: block;
}

.workflow-step {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.workflow-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2563eb;
}

.workflow-step::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 2px;
  height: calc(100% + 10px);
  background-color: #2563eb;
}

.workflow-step:last-child::after {
  display: none;
}

.top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.top-btn:hover {
  transform: translateY(-5px);
}

/* Optimisations pour l'export PDF */
@media print {
  .section {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: none;
  }

  .top-btn {
    display: none;
  }

  body {
    padding: 0;
    background-color: white;
  }
}

/* Animation pour le flux de travail Git */
.git-flow-container {
  position: relative;
  width: 100%;
  margin: 40px 0;
}

.git-flow-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #2563eb;
  z-index: 1;
}

.git-flow-step {
  position: relative;
  background-color: white;
  border: 2px solid #2563eb;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-weight: 600;
  z-index: 2;
  transition: all 0.3s ease;
}

.git-flow-step:hover {
  transform: scale(1.1);
  background-color: #2563eb;
  color: white;
}

.git-flow-label {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 500;
  width: 120px;
}
