/* For pages like economy.html */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

/* Optional: small tweak for better vertical spacing */
.section-header button {
  margin-top: 10px;
}

/* Fix for header area of each project section */
.theme-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

/* Make sure both buttons are visible */
.theme-title .theme-btn {
  flex: 1 1 auto;
  max-width: 200px;
}

/* Ensure the download button always appears properly */
.theme-title .download-btn {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.download-btn:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Fine-tune the layout of the top buttons */
.theme-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 40px; /* adds horizontal breathing room */
}

/* Optional: add a bit more margin to push button farther to the right */
.theme-title .download-btn {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-left: auto; /* forces it to stay right-aligned */
}

.download-btn:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Softer, modern look for the theme button (e.g., "Économie") */
.theme-title .theme-btn {
  background-color: #f6f8fc; /* soft neutral background */
  color: #1b2b44; /* same dark blue as main text */
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* On hover — light gradient effect
.theme-title .theme-btn:hover {
  background: linear-gradient(90deg, #e8ecff, #dce8ff);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
} */

/* Optional: Active state (if you ever toggle this button) */
.theme-title .theme-btn.active {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(37, 117, 252, 0.25);
}

/* New to make sure the themes within the le_projet.html buttons are more beautifull*/
.themes-grid{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:16px 20px;margin:40px auto;max-width:980px
}
.theme-btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:10px 16px;border:1px solid #d0d4de;border-radius:12px;
  background:#fff;font-weight:700;color:#1b2b44;cursor:pointer;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  transition:background .2s,border-color .2s,transform .1s,color .2s
}
.theme-btn i{color:#2b6fbf;font-size:16px}
.theme-btn:hover{background:#2b6fbf;border-color:#2b6fbf;color:#fff;transform:translateY(-1px)}
.theme-btn:hover i{color:#fff}

.download-section{margin-top:50px;display:flex;justify-content:center}
.project-download-btn{
  background:linear-gradient(90deg,#6a11cb,#2575fc);color:#fff;border:0;
  padding:12px 28px;border-radius:10px;font-weight:800;cursor:pointer;
  transition:transform .15s ease,opacity .2s ease
}
.project-download-btn:hover{transform:scale(1.05);opacity:.92}

.theme-btn i {
  color: #2b6fbf;
  font-size: 18px;
  margin-right: 10px; /* Adds real spacing between the icon and the text */
}

.theme-btn span {
  display: inline-block;
  padding-left: 2px; /* Optional fine adjustment */
}
