/* ===== FOND TECHNO ===== */

body {
  background: radial-gradient(circle at top left, #0b1e35, #08111f);
  overflow-x: hidden;
  color: white;
}

/* Grille animée */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 40px 40px; }
}

/* ===== SEARCH (NAVBAR) ===== */

.search-container {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-container input {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  width: 180px;
  transition: 0.3s ease;
}

.search-container input:focus {
  width: 240px;
  box-shadow: 0 0 10px rgba(30,192,255,0.8);
}

.search-container button {
  background: #ffb703;
  border: none;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

/* ===== PAGE STAGES ===== */

.stages-main {
  margin-right: 220px;
  padding: 80px 40px;
}

.stages-title {
  text-align: center;
  font-size: 2.8rem;
  color: #1ec0ff;
  margin-bottom: 70px;
  text-shadow: 0 0 10px rgba(30,192,255,0.8);
}

/* ===== CONTAINER + TIMELINE ===== */

.stages-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 85%;
  margin: auto;
  padding-left: 50px;
}

/* Ligne verticale */
.stages-container::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #1ec0ff, #00f7ff);
  border-radius: 4px;
}

/* ===== CARTE STAGE ===== */

.stage-card {
  position: relative;
  background: rgba(19, 49, 92, 0.95);
  border-radius: 18px;
  padding: 45px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.stage-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8);
}

/* Rond timeline */
.stage-card::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 50px;
  width: 18px;
  height: 18px;
  background: #00f7ff;
  border-radius: 50%;
  box-shadow: 0 0 14px #00f7ff;
}

/* ===== HEADER ===== */

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 18px;
}

.stage-header h2 {
  font-size: 1.9rem;
  color: #1ec0ff;
}

.stage-date {
  background: #0e2846;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== SECTIONS ===== */

.stage-section {
  margin-bottom: 30px;
}

.stage-section h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #00f7ff;
  position: relative;
  padding-left: 15px;
}

.stage-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: #1ec0ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #1ec0ff;
}

.stage-section ul {
  list-style: none;
  padding-left: 0;
}

.stage-section li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.stage-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #1ec0ff;
}

.stage-section p {
  line-height: 1.7;
  opacity: 0.9;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {

  .stages-container {
    width: 95%;
    padding-left: 35px;
  }

  .stage-card {
    padding: 30px;
  }

  .stage-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .stage-card::before {
    left: -30px;
  }

}

/* ============================================================
   Stages.css — styles de la page Stages
   ============================================================ */


/* ===== MODAL MOT DE PASSE ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: rgba(13, 35, 66, 0.97);
  border: 1px solid rgba(30, 192, 255, 0.4);
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  box-shadow:
    0 0 40px rgba(30,192,255,0.2),
    0 20px 60px rgba(0,0,0,0.6);
  width: 380px;
  max-width: 90vw;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-box h3 {
  color: #1ec0ff;
  font-size: 1.4rem;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(30,192,255,0.6);
}

.modal-box p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid rgba(30,192,255,0.4);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1rem;
  outline: none;
  text-align: center;
  letter-spacing: 3px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.modal-input:focus {
  box-shadow: 0 0 14px rgba(30,192,255,0.6);
  border-color: #1ec0ff;
}

.modal-input.erreur {
  border-color: #ff4f4f;
  box-shadow: 0 0 12px rgba(255,79,79,0.5);
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-8px); }
  75%      { transform: translateX(8px); }
}

.modal-erreur-msg {
  color: #ff6b6b;
  font-size: 0.82rem;
  margin-top: 10px;
  min-height: 18px;
}

.modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.btn-valider {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #1ec0ff, #0a91c3);
  color: #0a1f44;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-valider:hover {
  box-shadow: 0 0 18px rgba(30,192,255,0.7);
  transform: translateY(-2px);
}

.btn-annuler {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-annuler:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}


/* ===== BOUTON RAPPORT ===== */
.btn-rapport {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 30px;
  border: 1px solid rgba(30,192,255,0.5);
  background: rgba(30,192,255,0.1);
  color: #1ec0ff;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-rapport:hover {
  background: rgba(30,192,255,0.2);
  box-shadow:
    0 0 18px rgba(30,192,255,0.5),
    inset 0 0 10px rgba(30,192,255,0.15);
  transform: translateY(-2px);
}

.btn-rapport .icone {
  font-size: 1.2rem;
}


/* ===== BADGE PROJET TUTEURÉ ===== */
.badge-projet {
  display: inline-block;
  background: rgba(30,192,255,0.15);
  border: 1px solid rgba(30,192,255,0.4);
  color: #1ec0ff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* ===== TECH TAGS ===== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tech-tag {
  background: rgba(30,192,255,0.1);
  border: 1px solid rgba(30,192,255,0.3);
  color: #7dd8f5;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
}


/* ============================================================
   Stages.css — styles de la page Stages
   ============================================================ */


/* ===== MODAL MOT DE PASSE ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: rgba(13, 35, 66, 0.97);
  border: 1px solid rgba(30, 192, 255, 0.4);
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  box-shadow:
    0 0 40px rgba(30,192,255,0.2),
    0 20px 60px rgba(0,0,0,0.6);
  width: 380px;
  max-width: 90vw;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-box h3 {
  color: #1ec0ff;
  font-size: 1.4rem;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(30,192,255,0.6);
}

.modal-box p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 30px;
  border: 1px solid rgba(30,192,255,0.4);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1rem;
  outline: none;
  text-align: center;
  letter-spacing: 3px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.modal-input:focus {
  box-shadow: 0 0 14px rgba(30,192,255,0.6);
  border-color: #1ec0ff;
}

.modal-input.erreur {
  border-color: #ff4f4f;
  box-shadow: 0 0 12px rgba(255,79,79,0.5);
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-8px); }
  75%      { transform: translateX(8px); }
}

.modal-erreur-msg {
  color: #ff6b6b;
  font-size: 0.82rem;
  margin-top: 10px;
  min-height: 18px;
}

.modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.btn-valider {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #1ec0ff, #0a91c3);
  color: #0a1f44;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-valider:hover {
  box-shadow: 0 0 18px rgba(30,192,255,0.7);
  transform: translateY(-2px);
}

.btn-annuler {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-annuler:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}


/* ===== BOUTON RAPPORT ===== */
.btn-rapport {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 28px;
  border-radius: 30px;
  border: 1px solid rgba(30,192,255,0.5);
  background: rgba(30,192,255,0.1);
  color: #1ec0ff;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-rapport:hover {
  background: rgba(30,192,255,0.2);
  box-shadow:
    0 0 18px rgba(30,192,255,0.5),
    inset 0 0 10px rgba(30,192,255,0.15);
  transform: translateY(-2px);
}

.btn-rapport .icone {
  font-size: 1.2rem;
}


/* ===== BADGE PROJET TUTEURÉ ===== */
.badge-projet {
  display: inline-block;
  background: rgba(30,192,255,0.15);
  border: 1px solid rgba(30,192,255,0.4);
  color: #1ec0ff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* ===== TECH TAGS ===== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tech-tag {
  background: rgba(30,192,255,0.1);
  border: 1px solid rgba(30,192,255,0.3);
  color: #7dd8f5;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
}


/* ===== FEUILLE DE ROUTE ===== */
.fdr-wrapper {
  margin-top: 24px;
  border-top: 1px solid rgba(30,192,255,0.15);
  padding-top: 24px;
}

.fdr-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(30,192,255,0.3);
  background: rgba(30,192,255,0.06);
  color: #1ec0ff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fdr-toggle:hover {
  background: rgba(30,192,255,0.12);
  border-color: rgba(30,192,255,0.55);
}

.fdr-toggle[aria-expanded="true"] {
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
}

.fdr-toggle-arrow {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.fdr-toggle[aria-expanded="true"] .fdr-toggle-arrow {
  transform: rotate(180deg);
}

.fdr-body {
  border: 1px solid rgba(30,192,255,0.3);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 20px 20px 4px;
}

.fdr-sous-titre {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  margin-bottom: 22px;
  letter-spacing: 0.4px;
}

/* -- Onglets -- */
.fdr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.fdr-tab {
  padding: 7px 18px;
  border-radius: 30px;
  border: 1px solid rgba(30,192,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fdr-tab:hover {
  border-color: rgba(30,192,255,0.55);
  color: rgba(255,255,255,0.8);
}

.fdr-tab.actif {
  border-color: #1ec0ff;
  background: rgba(30,192,255,0.12);
  color: #1ec0ff;
  font-weight: 700;
}

/* -- Panneaux -- */
.fdr-panneau        { display: none; }
.fdr-panneau.actif  { display: block; }

.fdr-semaine-label {
  display: inline-block;
  background: rgba(30,192,255,0.1);
  border: 1px solid rgba(30,192,255,0.3);
  color: #1ec0ff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.fdr-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 680px) {
  .fdr-cols { grid-template-columns: 1fr; }
}

.fdr-col-full { margin-bottom: 14px; }

/* -- Blocs -- */
.fdr-bloc {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 18px;
}

.fdr-bloc-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.fdr-bloc-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.fdr-bloc-icon.done  { background: rgba(34,197,94,0.15); }
.fdr-bloc-icon.todo  { background: rgba(251,191,36,0.12); }
.fdr-bloc-icon.choix { background: rgba(30,192,255,0.12); }

.fdr-bloc-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fdr-bloc-label.done  { color: #4ade80; }
.fdr-bloc-label.todo  { color: #fbbf24; }
.fdr-bloc-label.choix { color: #1ec0ff; }

/* -- Items -- */
.fdr-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fdr-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.fdr-bullet {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.fdr-bullet.done  { background: rgba(34,197,94,0.18);  border: 1px solid rgba(34,197,94,0.5);  color: #4ade80; }
.fdr-bullet.todo  { background: rgba(251,191,36,0.1);   border: 1px solid rgba(251,191,36,0.4); color: #fbbf24; }
.fdr-bullet.choix { background: rgba(30,192,255,0.1);   border: 1px solid rgba(30,192,255,0.4); color: #1ec0ff; }

.fdr-texte.done  { color: rgba(255,255,255,0.75); }
.fdr-texte.todo  { color: rgba(255,255,255,0.6);  }
.fdr-texte.choix { color: rgba(255,255,255,0.75); }

.fdr-tag {
  display: inline-block;
  background: rgba(30,192,255,0.08);
  border: 1px solid rgba(30,192,255,0.2);
  color: rgba(30,192,255,0.8);
  font-size: 0.67rem;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
  white-space: nowrap;
}

/* -- Progression -- */
.fdr-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

.fdr-progress-label {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.fdr-progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.fdr-progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #1ec0ff, #4ade80);
  transition: width 0.5s ease;
}

.fdr-progress-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1ec0ff;
  white-space: nowrap;
}

.fdr-vide {
  color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
  font-style: italic;
  padding: 4px 0;
}