/* Service tabs (midi/soir switch) */
.tt-service-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.tt-service-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  position: relative;
  bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tt-service-tab:hover {
  color: var(--color-accent);
}

.tt-service-tab[aria-selected="true"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tt-service-content {
  transition: opacity 0.3s ease;
}

.tt-service-content[style*="display: none"] {
  display: none;
  opacity: 0;
}

/* Overlay by default */
.tt-preview {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(10, 10, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.3s ease;
}

.tt-preview.is-open {
  display: flex;
}

.tt-preview-figure {
  max-width: min(92vw, 900px);
  width: 100%;
  margin: 0;
}

.tt-preview-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.tt-preview.is-swapping .tt-preview-img {
  opacity: 0;
}

.tt-preview-caption {
  color: #fff;
  margin-top: 8px;
  opacity: 0.85;
}

.tt-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tt-degu-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.tt-menu-separator {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 24px 0;
}

.tt-degu-note {
  font-size: 0.95rem !important;
}

/* Side panel mode (on screens >= 992px) */
.tt-view-side {
  position: relative;
}

@media (min-width: 992px) {
  .tt-view-side {
    display: grid;
    grid-template-columns: 1fr min(38vw, 520px);
    gap: 28px;
    align-items: start;
  }

  .tt-view-side .tt-preview {
    position: sticky;
    margin-top: 90px;
    inset: auto;
    background: transparent;
    display: block;
    padding: 0;
    z-index: auto;
    top: 0px;
  }

  .tt-view-side .tt-preview-figure {
    max-width: 100%;
    margin: 0;
  }

  .tt-view-side .tt-preview-img {
    width: 100%;
  }

  .tt-view-side .tt-preview-close {
    display: none;
  }

  .tt-view-side .tt-preview-caption {
    color: var(--color-text);
    opacity: 0.75;
    margin-top: 10px;
  }
}
