/* Composants ajoutés dans la version Next.js (chargé après style.css, avant mobile.css). */

/* --- Jauge des sessions restantes ---------------------------------------- */
.quota {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0 24px;
}
.quota-gauge {
  position: relative;
  width: 190px;
}
.quota-gauge svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.quota-track,
.quota-progress {
  fill: none;
  stroke-width: 13;
  stroke-linecap: round;
}
.quota-track {
  stroke: #ebe8f5;
}
.quota-progress {
  stroke: url(#quota-gradient);
  filter: drop-shadow(0 3px 6px rgba(126, 52, 161, 0.35));
  transition: stroke-dasharray 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.quota-value {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  text-align: center;
  line-height: 1;
}
.quota-value strong {
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(to right, #6253e1, #F24645);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quota-value span {
  font-size: 18px;
  font-weight: 600;
  color: #9a96ab;
  margin-left: 2px;
}
.quota-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 16px;
  color: #444;
}
.quota-info {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1.5px solid #b4afc8;
  border-radius: 50%;
  background: #fff;
  color: #6b6680;
  font: italic bold 12px/1 Georgia, serif;
  cursor: pointer;
}
.quota-info:hover {
  border-color: #6253e1;
  color: #6253e1;
}

/* --- File d'attente (cartes de session) --------------------------------- */
/* La carte s'adapte au contenu (file d'attente) tout en gardant des hauteurs égales par ligne. */
.card {
  height: 100%;
  min-height: 360px;
  padding-bottom: 46px;
}
.waitlist-count {
  font-size: 14px;
  color: #6b6680;
  margin: -6px 0 0;
}
.btn-hover.waitlist {
  background-image: linear-gradient(to right, #29323c, #485563, #2b5876, #4e4376);
  box-shadow: 0 4px 15px 0 rgba(45, 54, 65, 0.55);
}
.waitlist-status {
  margin: 14px 12px 0;
  font-size: 15px;
  color: #444;
}
.waitlist-status strong {
  color: #6253e1;
}
.text-button {
  border: none;
  background: none;
  padding: 4px;
  color: #6b6680;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}
.offer {
  margin: 14px 10px 0;
  padding: 12px 10px 6px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(98, 83, 225, 0.1), rgba(242, 70, 69, 0.1));
  border: 1px solid rgba(133, 45, 145, 0.25);
}
.offer-title {
  margin: 0;
  font-weight: bold;
  color: #852d91;
}
.offer-deadline {
  margin: 4px 0 0;
  font-size: 14px;
  color: #444;
}
.offer .btn-hover {
  width: auto;
  max-width: 100%;
  padding: 0 22px;
  margin: 10px auto 2px;
}

/* --- Modification de session --------------------------------------------- */
img.edit-img {
  width: 20px;
  margin: -10px 4px 0;
}
.form-hint {
  font-size: 13px;
  color: #6b6680;
  max-width: 420px;
  margin: 6px auto 0;
}

/* --- Aide à l'installation (/installer) --------------------------------- */
.install {
  max-width: 560px;
  margin: 0 auto 60px;
  padding: 0 16px;
}
.install-intro {
  text-align: center;
  color: #444;
}
.install-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
}
.install-tabs button {
  flex: 1;
  padding: 10px 6px;
  border: 1px solid rgba(133, 45, 145, 0.25);
  border-radius: 12px 12px 0 0;
  background: #f6f4fb;
  color: #6b6680;
  font-size: 15px;
  cursor: pointer;
}
.install-tabs button.active {
  background: linear-gradient(135deg, rgba(98, 83, 225, 0.12), rgba(242, 70, 69, 0.12));
  color: #852d91;
  font-weight: bold;
}
.install-yours {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: #6253e1;
}
.install-panel {
  padding: 16px 18px 6px;
  border: 1px solid rgba(133, 45, 145, 0.25);
  border-top: none;
  border-radius: 0 0 14px 14px;
}
.install-panel ol {
  padding-left: 22px;
  line-height: 1.5;
}
.install-panel li {
  margin-bottom: 6px;
}
.install-browser {
  margin: 8px 0 4px;
  font-weight: bold;
  color: #852d91;
}
.install-note {
  font-size: 14px;
  color: #555;
}
.install-direct,
.install-done {
  text-align: center;
  margin-top: 20px;
}
.install-direct .btn-hover {
  width: auto;
  height: 44px;
  padding: 0 24px;
  font-size: 16px;
  margin: 0;
}

/* --- Barre du haut (réseaux + compte) ------------------------------------ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
}
.topbar-social,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6b6680;
  transition: color 0.2s, background-color 0.2s;
}
.topbar-social a:hover {
  color: #852d91;
  background: #f4f1fa;
}
.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #e6e1f2;
  border-radius: 999px;
  background: #fff;
  color: #3d3a4b;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(45, 30, 80, 0.06);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}
.topbar-btn:hover {
  color: #852d91;
  text-decoration: none;
  border-color: rgba(133, 45, 145, 0.35);
  box-shadow: 0 4px 14px rgba(98, 83, 225, 0.18);
  transform: translateY(-1px);
}
.topbar-btn svg {
  flex-shrink: 0;
}
.topbar-btn-admin {
  border-color: transparent;
  background: linear-gradient(135deg, #6253e1, #852d91 55%, #f24645);
  color: #fff;
}
.topbar-btn-admin:hover {
  color: #fff;
  border-color: transparent;
}
@media screen and (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
  }
  .topbar-social {
    gap: 2px;
  }
  .topbar-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .topbar-btn span {
    display: none;
  }
}
