/* VideoTripper — hotfix vitre de la Home marketplace.
   2026-08-28 : CLOISONNE a .vt-home-shell.
   Ce fichier est servi globalement depuis public/, hors du pipeline CSS. Ses selecteurs
   etaient generiques (.max-w-md > header.sticky + div) alors que le commentaire d origine
   le disait deja limite au DOM de la Home. Il contaminait donc TOUTE page ayant la meme
   structure : ligne parasite en theme clair, bande grise en theme sombre, et surtout un
   backdrop-filter qui cree un BLOC CONTENEUR cassant tout position:fixed descendant.
   Verification faite avant cloisonnement : sur la Home actuelle ces selecteurs matchaient
   DEJA 0 element. Le cloisonnement ne change donc rien a la Home. */

.vt-home-shell .max-w-md > header.sticky + div {
  position: sticky !important;
  top: 72px !important;
  z-index: 29 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(16px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35) !important;
  border-bottom-color: rgba(255, 255, 255, 0.55) !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 {
  position: sticky !important;
  top: 140px !important;
  z-index: 28 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem 0.75rem !important;
  padding-bottom: 0.65rem !important;
  background: transparent !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child,
.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) {
  display: contents !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child > a,
.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) > button {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  text-align: center !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  backdrop-filter: blur(4px) url(#lg-distortion) saturate(1.8) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.06) !important;
  box-shadow:
    0 8px 24px rgba(15, 37, 68, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -2px 7px rgba(255, 255, 255, 0.3),
    inset 0 0 14px rgba(255, 255, 255, 0.16) !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child > a {
  min-height: 3.75rem !important;
  border-radius: 1rem !important;
  padding: 0.75rem !important;
  font-size: 0.75rem !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) > button {
  min-height: 2.75rem !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.75rem !important;
  font-size: 0.75rem !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child > a::before,
.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) > button::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.08) 48%, transparent 76%) !important;
  pointer-events: none !important;
}

/* Soumettre une demande de cours — bleu léger et transparent. */
.vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child > a:first-child {
  grid-column: 1 !important;
  grid-row: 1 !important;
  background: linear-gradient(135deg, rgba(43, 123, 233, 0.28), rgba(21, 88, 192, 0.16)) !important;
  color: #0f3b72 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.82) !important;
}

/* Soumettre une offre de cours — vert léger et transparent. */
.vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child > a:nth-child(2) {
  grid-column: 2 !important;
  grid-row: 1 !important;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(16, 155, 74, 0.16)) !important;
  color: #14532d !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.82) !important;
}

/* Premier bouton réel dans le DOM : Voir les offres — vert plus soutenu. */
.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) > button:first-child {
  grid-column: 2 !important;
  grid-row: 2 !important;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.52), rgba(16, 155, 74, 0.36)) !important;
  color: #093d22 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.66) !important;
}

/* Second bouton réel dans le DOM : Voir les demandes — bleu plus soutenu. */
.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) > button:nth-child(2) {
  grid-column: 1 !important;
  grid-row: 2 !important;
  background: linear-gradient(135deg, rgba(43, 123, 233, 0.52), rgba(21, 88, 192, 0.36)) !important;
  color: #082e5f !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.66) !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) > button:first-child.bg-navy {
  border-color: rgba(34, 197, 94, 0.92) !important;
  box-shadow:
    0 9px 26px rgba(16, 155, 74, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.98),
    inset 0 -2px 7px rgba(255, 255, 255, 0.34) !important;
}

.vt-home-shell .max-w-md > section.px-4.pt-3 > div:nth-child(2) > button:nth-child(2).bg-green {
  border-color: rgba(43, 123, 233, 0.92) !important;
  box-shadow:
    0 9px 26px rgba(21, 88, 192, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.98),
    inset 0 -2px 7px rgba(255, 255, 255, 0.34) !important;
}

html[lang="fr"] .vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child > a:nth-child(2) {
  font-size: 0 !important;
}

html[lang="fr"] .vt-home-shell .max-w-md > section.px-4.pt-3 > div:first-child > a:nth-child(2)::after {
  content: "Soumettre une offre de cours" !important;
  position: relative !important;
  z-index: 1 !important;
  font-size: 0.75rem !important;
  line-height: 1.18 !important;
}
