/* Page publique /pass-cowork */

.pass-cowork {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 56rem;
  margin-inline: auto;
}

.pass-cowork-hero {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--cws-line);
  border-radius: var(--cws-radius-xl);
  background: var(--cws-surface);
  box-shadow: var(--cws-shadow-soft);
}

.pass-cowork-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--cws-ink);
}

.pass-cowork-lead {
  margin-top: 0.75rem;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--cws-muted);
}

.pass-cowork-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pass-cowork-fact {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--cws-line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--cws-surface) 88%, var(--cws-brand-soft));
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cws-ink);
}

.pass-cowork-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  position: relative;
}

.pass-cowork-progress::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--cws-line);
  z-index: 0;
}

.pass-cowork-progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--cws-muted);
}

.pass-cowork-progress-step strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cws-ink);
}

.pass-cowork-progress-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--cws-line);
  background: var(--cws-surface);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cws-muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pass-cowork-progress-step.is-active .pass-cowork-progress-num {
  border-color: var(--cws-brand);
  background: var(--cws-brand);
  color: #fff;
}

.pass-cowork-progress-step.is-active {
  color: var(--cws-ink);
}

.pass-cowork-progress-step.is-done .pass-cowork-progress-num {
  border-color: var(--cws-accent);
  background: var(--cws-accent);
  color: #fff;
}

@media (max-width: 520px) {
  .pass-cowork-progress::before {
    display: none;
  }

  .pass-cowork-progress {
    gap: 0.5rem;
  }

  .pass-cowork-progress-step span:last-child {
    display: none;
  }
}

.pass-cowork-alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--cws-radius-md);
  font-size: 0.9rem;
  line-height: 1.45;
}

.pass-cowork-alert--error {
  border: 1px solid color-mix(in oklch, var(--cws-danger) 35%, var(--cws-line));
  background: var(--cws-danger-soft);
  color: var(--cws-danger);
}

.pass-cowork-alert--info {
  border: 1px solid var(--cws-line);
  background: var(--cws-brand-soft);
  color: var(--cws-ink);
}

.pass-cowork-card {
  border: 1px solid var(--cws-line);
  border-radius: var(--cws-radius-xl);
  background: var(--cws-surface);
  box-shadow: var(--cws-shadow-soft);
  overflow: hidden;
}

.pass-cowork-card-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--cws-line);
  background: color-mix(in oklch, var(--cws-surface) 82%, var(--cws-brand-soft));
}

.pass-cowork-card-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cws-ink);
}

.pass-cowork-card-head p {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--cws-muted);
}

.pass-cowork-form {
  padding: 0 1.5rem 1.5rem;
}

.pass-cowork-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid color-mix(in oklch, var(--cws-line) 70%, transparent);
}

.pass-cowork-section:last-of-type {
  border-bottom: none;
}

.pass-cowork-section-title {
  margin-bottom: 1rem;
}

.pass-cowork-section-title h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--cws-ink);
}

.pass-cowork-section-title p {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--cws-muted);
}

.pass-cowork-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .pass-cowork-products {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.pass-cowork-product {
  position: relative;
  display: block;
  cursor: pointer;
}

.pass-cowork-product.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pass-cowork-product input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pass-cowork-product-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-height: 10.5rem;
  padding: 1.15rem 1.2rem;
  border: 2px solid var(--cws-line);
  border-radius: var(--cws-radius-md);
  background: var(--cws-surface);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.pass-cowork-product:hover:not(.is-disabled) .pass-cowork-product-body {
  border-color: color-mix(in oklch, var(--cws-brand) 35%, var(--cws-line));
}

.pass-cowork-product input:checked + .pass-cowork-product-body {
  border-color: var(--cws-brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--cws-brand) 16%, transparent);
}

.pass-cowork-product input:focus-visible + .pass-cowork-product-body {
  outline: 2px solid var(--cws-focus);
  outline-offset: 2px;
}

.pass-cowork-product-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cws-ink);
  line-height: 1.25;
}

.pass-cowork-product-desc {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--cws-muted);
}

.pass-cowork-product-price {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed color-mix(in oklch, var(--cws-line) 80%, transparent);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cws-brand);
}

.pass-cowork-product-price small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cws-muted);
}

.pass-cowork-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pass-cowork-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cws-ink);
}

.pass-cowork-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cws-line);
  border-radius: var(--cws-radius-sm);
  font-size: 1rem;
  color: var(--cws-ink);
  background: var(--cws-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pass-cowork-field input:focus {
  outline: none;
  border-color: var(--cws-brand);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--cws-brand) 14%, transparent);
}

.pass-cowork-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pass-cowork-date-field {
  max-width: 16rem;
}

.pass-cowork-fields-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pass-cowork-fields-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
  }
}

.pass-cowork-cta {
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--cws-line);
  background: color-mix(in oklch, var(--cws-surface) 90%, var(--cws-brand-soft));
}

.pass-cowork-cta-note {
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--cws-muted);
  text-align: center;
}

.pass-cowork-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: var(--cws-radius-md);
  background: var(--cws-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.pass-cowork-btn:hover:not(:disabled) {
  background: var(--cws-brand-dark);
}

.pass-cowork-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pass-cowork-footer {
  padding: 1rem 1.25rem;
  border: 1px solid var(--cws-line);
  border-radius: var(--cws-radius-md);
  background: color-mix(in oklch, var(--cws-surface) 92%, var(--cws-accent-soft));
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cws-muted);
  text-align: center;
}

.pass-cowork-footer a {
  font-weight: 700;
  color: var(--cws-brand);
  text-decoration: none;
}

.pass-cowork-footer a:hover {
  text-decoration: underline;
}

.pass-cowork-nav-active {
  color: var(--cws-brand) !important;
}

.pass-cowork-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cws-brand);
  text-decoration: none;
}

.pass-cowork-back:hover {
  text-decoration: underline;
}
