/* Atomes sobres. États de planche : .is-hover, .is-focus, .is-active.
   Les couleurs viennent de tokens.css ; data-brand ne change que l'accent. */

.yc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.yc-row--top {
  align-items: flex-start;
}

.yc-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 720px) {
  .yc-split {
    grid-template-columns: 1fr 1fr;
  }
}

.yc-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.yc-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.yc-state .yc-caption {
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yc-text-2);
}

.yc-btn-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 10px;
  min-width: 0;
  padding: 6px 2px 2px;
}

.yc-btn-matrix article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.yc-btn-matrix h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  color: var(--yc-text-1);
}

.yc-btn-matrix ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.yc-btn-matrix li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.yc-btn-matrix__state {
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  color: var(--yc-text-3);
}

.yc-btn-matrix .yc-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-inline: 8px;
}

.yc-btn-matrix .yc-btn--link {
  width: auto;
}

.yc-btn-matrix .yc-btn--wa,
.yc-btn-matrix .yc-btn--wa .yc-btn__label {
  color: var(--yc-bg);
}

@media (max-width: 799px) {
  .yc-btn-matrix {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .yc-btn-matrix article {
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--yc-line);
  }

  .yc-btn-matrix h3 {
    text-align: left;
    font-size: 15px;
  }

  .yc-btn-matrix li {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .yc-btn-matrix__state {
    text-align: left;
  }

  .yc-btn-matrix .yc-btn {
    width: auto;
    flex: none;
  }
}

.yc-atom-note {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--yc-line);
  max-width: 68ch;
  color: var(--yc-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.yc-atom-note strong {
  color: var(--yc-text-1);
  font-weight: 600;
}

/* Bouton */

.yc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--yc-text-1);
  font-family: var(--yc-font-body, "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 160ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.yc-btn__label {
  text-align: center;
  text-transform: none;
  letter-spacing: inherit;
  color: inherit;
  font: inherit;
}

.yc-btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.yc-btn__spinner {
  display: none;
  flex: none;
}

.yc-btn.yc-btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.yc-btn.yc-btn--sm .yc-btn__icon {
  width: 16px;
  height: 16px;
}

.yc-btn.yc-btn--lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

.yc-btn.yc-btn--lg .yc-btn__icon {
  width: 24px;
  height: 24px;
}

.yc-btn--icon {
  width: 44px;
  padding: 0;
}

.yc-btn.yc-btn--sm.yc-btn--icon {
  width: 36px;
}

.yc-btn.yc-btn--lg.yc-btn--icon {
  width: 48px;
}

.yc-btn--primary {
  background: var(--yc-text-1);
  color: var(--yc-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.yc-btn--primary:hover,
.yc-btn--primary.is-hover {
  background: color-mix(in srgb, var(--yc-text-1) 88%, var(--yc-bg));
  color: var(--yc-bg);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 0 16px color-mix(in srgb, var(--yc-accent) 14%, transparent);
}

.yc-btn--primary:active,
.yc-btn--primary.is-active {
  background: color-mix(in srgb, var(--yc-text-1) 78%, var(--yc-bg));
  color: var(--yc-bg);
}

.yc-btn--wa {
  background: var(--yc-wa);
  color: var(--yc-bg);
  padding-inline: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.yc-btn--wa:hover,
.yc-btn--wa.is-hover {
  background: color-mix(in srgb, var(--yc-wa) 82%, var(--yc-text-1));
  color: var(--yc-bg);
}

.yc-btn--wa:active,
.yc-btn--wa.is-active {
  background: color-mix(in srgb, var(--yc-wa) 88%, var(--yc-bg));
  color: var(--yc-bg);
}

.yc-btn--outline {
  background: transparent;
  color: var(--yc-text-2);
  border-color: var(--yc-line);
}

.yc-btn--outline:hover,
.yc-btn--outline.is-hover {
  background: var(--yc-surface-2);
  color: var(--yc-text-1);
  border-color: #3f3f46;
  transform: none;
}

.yc-btn--outline:active,
.yc-btn--outline.is-active {
  background: var(--yc-bg);
  color: var(--yc-text-1);
  border-color: var(--yc-line);
  transform: translateY(1px);
}

.yc-btn--ghost {
  background: transparent;
  color: var(--yc-text-2);
  border-color: transparent;
  box-shadow: none;
}

.yc-btn--ghost:hover,
.yc-btn--ghost.is-hover {
  background: var(--yc-surface-2);
  color: var(--yc-text-1);
}

.yc-btn--ghost:active,
.yc-btn--ghost.is-active {
  background: var(--yc-bg);
  color: var(--yc-text-1);
}

.yc-btn--link {
  min-height: 44px;
  padding: 0;
  background: none;
  border-color: transparent;
  box-shadow: none;
  color: var(--yc-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--yc-accent) 55%, transparent);
  text-underline-offset: 0.18em;
}

.yc-btn--link:hover,
.yc-btn--link.is-hover {
  background: none;
  color: var(--yc-accent-hover);
  text-decoration-color: var(--yc-accent-hover);
}

.yc-btn--link:active,
.yc-btn--link.is-active {
  color: var(--yc-accent-hover);
}

.yc-btn:active,
.yc-btn.is-active {
  transform: translateY(1px);
}

.yc-btn.is-focus,
.yc-btn:focus-visible {
  outline: 2px solid var(--yc-accent);
  outline-offset: 2px;
}

.yc-btn--primary.is-focus,
.yc-btn--primary:focus-visible {
  box-shadow: 0 0 12px color-mix(in srgb, var(--yc-accent) 16%, transparent);
}

.yc-btn.is-loading {
  pointer-events: none;
}

.yc-btn.is-loading .yc-btn__icon {
  display: none;
}

.yc-btn.is-loading .yc-btn__spinner {
  display: inline-block;
}

.yc-btn.is-copied {
  color: var(--yc-text-1);
  border-color: var(--yc-line);
}

.yc-btn[disabled],
.yc-btn[disabled]:hover,
.yc-btn[disabled].is-hover,
.yc-btn[disabled]:active,
.yc-btn[disabled].is-active,
.yc-btn[aria-disabled="true"],
.yc-btn[aria-disabled="true"]:hover,
.yc-btn[aria-disabled="true"].is-hover {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.yc-btn--primary[disabled],
.yc-btn--primary[disabled]:hover,
.yc-btn--primary[disabled].is-hover,
.yc-btn--primary[disabled]:active,
.yc-btn--primary[disabled].is-active {
  background: var(--yc-text-1);
  color: var(--yc-bg);
}

.yc-btn--wa[disabled],
.yc-btn--wa[disabled]:hover,
.yc-btn--wa[disabled].is-hover,
.yc-btn--wa[disabled]:active,
.yc-btn--wa[disabled].is-active {
  background: var(--yc-wa);
  color: var(--yc-bg);
}

.yc-btn--outline[disabled],
.yc-btn--outline[disabled]:hover,
.yc-btn--outline[disabled].is-hover,
.yc-btn--outline[disabled]:active,
.yc-btn--outline[disabled].is-active {
  background: transparent;
  color: var(--yc-text-2);
  border-color: var(--yc-line);
}

.yc-btn--ghost[disabled],
.yc-btn--ghost[disabled]:hover,
.yc-btn--ghost[disabled].is-hover,
.yc-btn--ghost[disabled]:active,
.yc-btn--ghost[disabled].is-active {
  background: transparent;
  color: var(--yc-text-2);
  border-color: transparent;
}

.yc-btn--link[disabled],
.yc-btn--link[disabled]:hover,
.yc-btn--link[disabled].is-hover,
.yc-btn--link[disabled]:active,
.yc-btn--link[disabled].is-active {
  background: none;
  color: var(--yc-accent);
}

/* Pastille */

.yc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.yc-badge__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--yc-accent);
}

.yc-badge--open {
  background: transparent;
  border-color: color-mix(in srgb, var(--yc-accent) 30%, transparent);
  color: var(--yc-accent);
}

.yc-badge--open .yc-badge__dot {
  animation: yc-dot 3.6s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.yc-badge--past {
  background: var(--yc-surface-1);
  border-color: var(--yc-line);
  color: var(--yc-text-2);
}

.yc-badge--online {
  background: var(--yc-surface-1);
  border-color: var(--yc-line);
  color: var(--yc-text-2);
}

@keyframes yc-dot {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Tag */

.yc-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-2);
  font-family: var(--yc-font-body, "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

/* Lien */

.yc-link {
  color: var(--yc-accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--yc-accent) 55%, transparent);
}

.yc-link:hover,
.yc-link.is-hover,
.yc-link:focus-visible,
.yc-link.is-focus {
  color: var(--yc-accent-hover);
  text-decoration-color: var(--yc-accent-hover);
}

.yc-link:focus-visible,
.yc-link.is-focus {
  outline: 2px solid var(--yc-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.yc-link--inline {
  font-weight: 400;
}

.yc-link--external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yc-link__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Champs */

.yc-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

.yc-field--wide {
  grid-column: 1 / -1;
}

.yc-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.yc-label {
  color: var(--yc-text-1);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.yc-input,
.yc-textarea,
.yc-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--yc-line);
  background-color: var(--yc-surface-1);
  color: var(--yc-text-1);
  font: inherit;
  font-weight: 400;
  line-height: 1.45;
  transition:
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.yc-textarea {
  min-height: 120px;
  resize: vertical;
}

.yc-input::placeholder,
.yc-textarea::placeholder {
  color: var(--yc-text-3);
}

.yc-select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--yc-text-2) 50%),
    linear-gradient(135deg, var(--yc-text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 1px),
    calc(100% - 12px) calc(50% - 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.yc-input:hover,
.yc-textarea:hover,
.yc-select:hover,
.yc-input.is-hover,
.yc-textarea.is-hover,
.yc-select.is-hover {
  border-color: #3f3f46;
  color: var(--yc-text-1);
}

.yc-input:active,
.yc-textarea:active,
.yc-select:active,
.yc-input.is-active,
.yc-textarea.is-active,
.yc-select.is-active {
  background-color: var(--yc-bg);
  border-color: #3f3f46;
  color: var(--yc-text-1);
}

.yc-input.is-focus,
.yc-textarea.is-focus,
.yc-select.is-focus,
.yc-input:focus-visible,
.yc-textarea:focus-visible,
.yc-select:focus-visible {
  outline: 2px solid var(--yc-accent);
  outline-offset: 2px;
  border-color: var(--yc-line);
  color: var(--yc-text-1);
}

.yc-field__hint,
.yc-field__error,
.yc-field__success {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.yc-field__hint {
  color: var(--yc-text-2);
}

.yc-field__error {
  color: var(--yc-danger);
}

.yc-field.is-error .yc-input,
.yc-field.is-error .yc-textarea,
.yc-field.is-error .yc-select,
.yc-input[aria-invalid="true"],
.yc-textarea[aria-invalid="true"],
.yc-select[aria-invalid="true"] {
  border-color: var(--yc-danger);
}

.yc-field.is-error .yc-input:focus-visible,
.yc-field.is-error .yc-textarea:focus-visible,
.yc-field.is-error .yc-select:focus-visible {
  border-color: var(--yc-danger);
}

.yc-field.is-success .yc-input,
.yc-field.is-success .yc-textarea,
.yc-field.is-success .yc-select {
  border-color: var(--yc-line);
}

.yc-field__success {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--yc-text-1);
}

.yc-field__success::before {
  content: "";
  width: 6px;
  height: 10px;
  margin-top: 3px;
  flex: none;
  border-right: 1.5px solid var(--yc-accent);
  border-bottom: 1.5px solid var(--yc-accent);
  transform: rotate(45deg);
}

.yc-input:disabled,
.yc-textarea:disabled,
.yc-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (min-width: 720px) {
  .yc-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Choix */

.yc-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--yc-text-1);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.yc-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yc-choice__face {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-bg);
}

.yc-radio + .yc-choice__face {
  border-radius: 999px;
}

.yc-choice__icon {
  width: 14px;
  height: 14px;
  opacity: 0;
}

.yc-choice:hover .yc-choice__face,
.yc-choice.is-hover .yc-choice__face {
  border-color: #3f3f46;
}

.yc-radio:checked + .yc-choice__face {
  background: var(--yc-accent);
  border-color: var(--yc-accent);
  box-shadow: inset 0 0 0 4px var(--yc-surface-1);
}

.yc-checkbox:checked + .yc-choice__face {
  background: var(--yc-accent);
  border-color: var(--yc-accent);
}

.yc-checkbox:checked + .yc-choice__face .yc-choice__icon {
  opacity: 1;
}

.yc-radio.is-focus + .yc-choice__face,
.yc-checkbox.is-focus + .yc-choice__face,
.yc-radio:focus-visible + .yc-choice__face,
.yc-checkbox:focus-visible + .yc-choice__face {
  outline: 2px solid var(--yc-accent);
  outline-offset: 2px;
}

.yc-choice:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}

.yc-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yc-text-1);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.yc-switch__track {
  width: 44px;
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-2);
  transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), border-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.yc-switch__thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--yc-text-1);
  transform: translateX(0);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.yc-switch:hover .yc-switch__track,
.yc-switch.is-hover .yc-switch__track {
  border-color: #3f3f46;
}

.yc-switch[aria-checked="true"] .yc-switch__track,
.yc-switch.is-selected .yc-switch__track {
  background: var(--yc-accent);
  border-color: var(--yc-accent);
}

.yc-switch[aria-checked="true"] .yc-switch__thumb,
.yc-switch.is-selected .yc-switch__thumb {
  background: var(--yc-bg);
  transform: translateX(20px);
}

.yc-switch.is-active .yc-switch__track {
  background: var(--yc-bg);
}

.yc-switch.is-selected.is-active .yc-switch__track {
  background: color-mix(in srgb, var(--yc-accent) 78%, var(--yc-bg));
  border-color: var(--yc-accent);
}

.yc-switch.is-focus,
.yc-switch:focus-visible {
  outline: 2px solid var(--yc-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.yc-switch:disabled,
.yc-switch:disabled:hover,
.yc-switch:disabled.is-hover {
  opacity: 0.4;
  cursor: not-allowed;
}

.yc-switch:disabled .yc-switch__track,
.yc-switch:disabled:hover .yc-switch__track {
  background: var(--yc-surface-2);
  border-color: var(--yc-line);
}

.yc-switch:disabled[aria-checked="true"] .yc-switch__track,
.yc-switch:disabled[aria-checked="true"]:hover .yc-switch__track {
  background: var(--yc-accent);
  border-color: var(--yc-accent);
}

.yc-switch {
  max-width: 100%;
}

.yc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.yc-chip:hover,
.yc-chip.is-hover {
  background: var(--yc-surface-2);
  border-color: #3f3f46;
  color: var(--yc-text-1);
}

.yc-chip.is-selected,
.yc-chip[aria-pressed="true"] {
  background: transparent;
  border-color: var(--yc-accent);
  color: var(--yc-accent);
}

.yc-chip.is-selected:hover,
.yc-chip.is-selected.is-hover,
.yc-chip[aria-pressed="true"]:hover {
  background: transparent;
  border-color: var(--yc-accent-hover);
  color: var(--yc-accent-hover);
}

.yc-chip:active,
.yc-chip.is-active {
  transform: translateY(1px);
}

.yc-chip.is-focus,
.yc-chip:focus-visible {
  outline: 2px solid var(--yc-accent);
  outline-offset: 2px;
}

.yc-chip:disabled,
.yc-chip:disabled:hover,
.yc-chip:disabled.is-hover,
.yc-chip:disabled:active,
.yc-chip:disabled.is-active {
  opacity: 0.4;
  background: var(--yc-surface-1);
  color: var(--yc-text-2);
  border-color: var(--yc-line);
  cursor: not-allowed;
  transform: none;
}

/* Avatar */

.yc-avatar {
  display: block;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--yc-line);
}

.yc-avatar--xs { width: 24px; height: 24px; }
.yc-avatar--sm { width: 32px; height: 32px; }
.yc-avatar--md { width: 48px; height: 48px; }
.yc-avatar--lg { width: 64px; height: 64px; }
.yc-avatar--xl { width: 96px; height: 96px; }
.yc-avatar--24 { width: 24px; height: 24px; }
.yc-avatar--32 { width: 32px; height: 32px; }
.yc-avatar--40 { width: 40px; height: 40px; }
.yc-avatar--56 { width: 56px; height: 56px; }
.yc-avatar--72 { width: 72px; height: 72px; }
.yc-avatar--96 { width: 96px; height: 96px; }

.yc-avatar--ring {
  box-shadow: 0 0 0 1px var(--yc-accent);
}

.yc-avatar-board {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.yc-avatar-scroll {
  max-width: 100%;
  min-width: 0;
  padding: 4px 2px 2px;
}

.yc-avatar-sizes,
.yc-avatar-rings {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  width: auto;
  max-width: 100%;
  margin: 0;
}

.yc-avatar-sizes figure,
.yc-avatar-rings figure,
.yc-avatar-board > figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.yc-avatar-sizes figcaption,
.yc-avatar-rings figcaption,
.yc-avatar-board > figure figcaption {
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: none;
  color: var(--yc-text-3);
  text-align: center;
}

.yc-avatar-board .yc-avatar {
  object-fit: cover;
  object-position: center center;
}

.yc-avatar-group {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.yc-avatar-group .yc-avatar {
  margin-left: -8px;
  box-shadow: 0 0 0 2px var(--yc-surface-1);
}

.yc-avatar-rings {
  max-width: 100%;
  min-width: 0;
}

/* Icône */

.yc-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yc-icon--16 { width: 16px; height: 16px; }
.yc-icon--20 { width: 20px; height: 20px; }
.yc-icon--24 { width: 24px; height: 24px; }

.yc-icon--fill {
  fill: currentColor;
  stroke: none;
}

.yc-btn .yc-icon {
  width: 20px;
  height: 20px;
}

.yc-btn.yc-btn--sm .yc-icon {
  width: 16px;
  height: 16px;
}

.yc-btn.yc-btn--lg .yc-icon {
  width: 24px;
  height: 24px;
}

.yc-link__icon.yc-icon,
.yc-choice__face .yc-icon {
  width: 16px;
  height: 16px;
}

.yc-choice__face .yc-icon {
  width: 14px;
  height: 14px;
}

.yc-icon.is-muted {
  color: var(--yc-text-3);
}

.yc-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.yc-icon-grid figure {
  margin: 0;
  min-height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
}

.yc-icon-grid figcaption {
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--yc-text-2);
}

/* Séparateur */

.yc-divider {
  border: 0;
  height: 1px;
  margin: 0;
  background: var(--yc-line);
}

.yc-divider--labeled {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  background: none;
  color: var(--yc-text-2);
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yc-divider--labeled::before,
.yc-divider--labeled::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--yc-line);
}

/* Info-bulle */

.yc-tip-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.yc-tip-case {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.yc-tip-case > figcaption {
  margin: 0;
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yc-text-3);
}

.yc-tooltip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  position: relative;
}

.yc-tooltip--top {
  flex-direction: column;
}

.yc-tooltip--bottom {
  flex-direction: column;
}

.yc-tooltip__bubble {
  display: none;
  position: static;
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-2);
  color: var(--yc-text-1);
  font-family: var(--yc-font-body, "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.yc-tooltip:hover .yc-tooltip__bubble,
.yc-tooltip:focus-within .yc-tooltip__bubble,
.yc-tooltip.is-hover .yc-tooltip__bubble,
.yc-tooltip.is-focus .yc-tooltip__bubble {
  display: block;
}

@media (max-width: 720px) {
  .yc-tip-board {
    grid-template-columns: 1fr;
  }
}

/* Logo */

.yc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--yc-text-1);
  text-decoration: none;
}

.yc-logo__mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  padding-bottom: 3px;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-2);
  color: var(--yc-text-1);
  font-family: var(--yc-font-body, "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.yc-logo__mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--yc-accent);
}

.yc-logo__word {
  color: var(--yc-text-1);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.yc-logo__suffix {
  color: var(--yc-text-2);
  font-weight: 500;
  letter-spacing: 0;
}

.yc-logo:hover .yc-logo__mark,
.yc-logo.is-hover .yc-logo__mark {
  border-color: #3f3f46;
}

.yc-logo:hover,
.yc-logo.is-hover {
  color: var(--yc-text-1);
}

.yc-logo:focus-visible,
.yc-logo.is-focus {
  outline: 2px solid var(--yc-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Code, touche, attente, progression */

.yc-code-inline {
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.92em;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
}

.yc-kbd {
  display: inline-block;
  font-family: var(--yc-font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--yc-line);
  border-bottom-width: 2px;
  background: var(--yc-surface-2);
  color: var(--yc-text-1);
}

.yc-spinner,
.yc-btn.is-loading .yc-btn__spinner {
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  animation: yc-spin 700ms linear infinite;
}

.yc-spinner {
  display: inline-block;
  flex: none;
  color: var(--yc-text-2);
}

.yc-btn .yc-spinner,
.yc-btn .yc-btn__spinner {
  color: inherit;
}

@keyframes yc-spin {
  to { transform: rotate(360deg); }
}

.yc-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--yc-text-2);
  font-size: 14px;
}

.yc-progress-label span:last-child {
  color: var(--yc-text-1);
  font-variant-numeric: tabular-nums;
}

.yc-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--yc-line);
  overflow: hidden;
}

.yc-progress__bar {
  display: block;
  height: 100%;
  width: var(--yc-progress-value, 0%);
  border-radius: 999px;
  background: var(--yc-accent);
}

.yc-progress.is-success .yc-progress__bar,
.yc-progress.is-loading .yc-progress__bar {
  background: var(--yc-accent);
}

.yc-progress.is-loading .yc-progress__bar {
  width: 40%;
}

@media (prefers-reduced-motion: reduce) {
  .yc-btn,
  .yc-chip,
  .yc-switch__thumb,
  .yc-switch__track,
  .yc-input,
  .yc-textarea,
  .yc-select {
    transition: none;
  }

  .yc-btn:active,
  .yc-btn.is-active,
  .yc-chip:active,
  .yc-chip.is-active {
    transform: none;
  }

  .yc-badge--open .yc-badge__dot,
  .yc-spinner,
  .yc-btn.is-loading .yc-btn__spinner {
    animation: none;
  }
}
