/* Planches Templates et Règles.
   Blocs opaques. Aucune teinte par organisme.
   Le filet cyan ne marque que le bloc survolé ou choisi. */

.yc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yc-legend .yc-tag {
  text-transform: none;
  letter-spacing: 0.02em;
}

.yc-frames {
  display: grid;
  gap: 16px;
  align-items: start;
}

.yc-frame {
  min-width: 0;
  margin: 0;
}

.yc-frame figcaption {
  margin-bottom: 8px;
  font-family: var(--yc-font-mono);
  font-size: 12px;
  font-weight: var(--yc-fw-medium);
  letter-spacing: var(--yc-ls-kicker);
  text-transform: uppercase;
  color: var(--yc-text-3);
}

.yc-screen {
  padding: 8px;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
  background: var(--yc-bg);
}

.yc-frame--mob {
  max-width: min(390px, 100%);
  justify-self: start;
}

.yc-wf {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  margin: 0 0 6px;
  padding: 10px 12px;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.yc-wf:last-child {
  margin-bottom: 0;
}

.yc-wf:hover,
.yc-wf[aria-pressed="true"] {
  border-color: var(--yc-accent);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
}

.yc-wf b {
  font-family: var(--yc-font-mono);
  font-size: 12px;
  font-weight: var(--yc-fw-medium);
  letter-spacing: 0.04em;
  color: var(--yc-text-3);
}

.yc-wf > span {
  min-width: 0;
  font-size: 14px;
  font-weight: var(--yc-fw-bold);
  letter-spacing: var(--yc-ls-ui);
  line-height: 1.35;
  color: var(--yc-text-1);
}

.yc-wf small {
  display: block;
  margin-top: 3px;
  font-family: var(--yc-font-mono);
  font-size: 11px;
  font-weight: var(--yc-fw-medium);
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--yc-text-3);
  overflow-wrap: anywhere;
  white-space: normal;
}

.yc-wf--media {
  align-items: start;
}

.yc-wf__photo {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  max-height: 200px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-line);
}

.yc-wf__photo--portrait {
  aspect-ratio: 4 / 5;
  max-height: 220px;
  object-position: center 18%;
}

.yc-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yc-chips i {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-line);
  background: var(--yc-bg);
  color: var(--yc-text-2);
  font-family: var(--yc-font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: var(--yc-fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yc-ann {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.yc-ann div {
  padding: 14px 16px;
  border-radius: var(--yc-radius-md);
  border: 1px solid var(--yc-line);
  background: var(--yc-bg);
}

.yc-ann div.is-on {
  border-color: var(--yc-accent);
}

.yc-ann dt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-family: var(--yc-font-mono);
  font-size: 12px;
  font-weight: var(--yc-fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yc-text-3);
}

.yc-ann dd {
  margin: 8px 0 0;
  max-width: 72ch;
  color: var(--yc-text-2);
  font-size: 15px;
  line-height: 1.55;
  overflow: visible;
  overflow-wrap: break-word;
}

.yc-ann code,
.yc-a11y code,
.yc-demo code {
  font-family: var(--yc-font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--yc-text-1);
}

.yc-a11y {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.yc-a11y li {
  max-width: 72ch;
  color: var(--yc-text-2);
  font-size: 15px;
  line-height: 1.55;
}

.yc-a11y li::before {
  content: "Note. ";
  font-family: var(--yc-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yc-text-3);
}

.yc-compare {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.yc-case {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
  background: var(--yc-bg);
}

.yc-case header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.yc-case > * + * {
  margin-top: 12px;
}

.yc-case > p:last-child {
  margin-top: auto;
  padding-top: 12px;
}

.yc-case header p {
  margin: 0;
  color: var(--yc-text-2);
  font-size: 14px;
  letter-spacing: var(--yc-ls-ui);
}

.yc-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px 0 8px;
  border-radius: var(--yc-radius-full);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
  font-size: 14px;
  font-weight: var(--yc-fw-bold);
  letter-spacing: var(--yc-ls-ui);
}

.yc-verdict__plate {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--yc-radius-sm);
  background: var(--yc-surface-2);
  color: var(--yc-text-1);
  font-family: var(--yc-font-mono);
  font-size: 11px;
  font-weight: var(--yc-fw-medium);
  letter-spacing: 0.06em;
}

.yc-verdict--do .yc-icon {
  color: var(--yc-accent);
}

.yc-verdict--dont .yc-icon {
  color: var(--yc-danger);
}

.yc-demo {
  display: grid;
  gap: 12px;
}

.yc-demo p,
.yc-case > p {
  max-width: 58ch;
  color: var(--yc-text-2);
  font-size: 15px;
  line-height: 1.55;
}

.yc-case h3 {
  max-width: 22ch;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: var(--yc-fw-extrabold);
  letter-spacing: var(--yc-ls-h2);
  line-height: 1.15;
}

.yc-shot {
  margin: 0;
}

.yc-shot img,
.yc-face img {
  width: 100%;
  height: auto;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
}

.yc-shot--cover {
  max-width: 420px;
}

.yc-shot--cover img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
}

.yc-shot--bad {
  max-width: 420px;
}

.yc-shot--bad img {
  aspect-ratio: 16 / 10;
  object-fit: fill;
}

.yc-shot figcaption,
.yc-face figcaption {
  margin-top: 8px;
  max-width: 52ch;
  color: var(--yc-text-2);
  font-size: 14px;
  line-height: 1.5;
}

.yc-face {
  position: relative;
  max-width: 420px;
}

.yc-face__bad {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 42%;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
  font-size: 14px;
  font-weight: var(--yc-fw-bold);
  letter-spacing: var(--yc-ls-ui);
  box-shadow: var(--yc-shadow-2);
}

.yc-opaque,
.yc-glass-wrong {
  max-width: 460px;
  padding: 16px 18px;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
  color: var(--yc-text-2);
  font-size: 15px;
  line-height: 1.55;
}

.yc-opaque {
  background: var(--yc-surface-1);
}

.yc-glass-ok {
  max-width: 460px;
  padding: 12px 14px;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
  background: var(--yc-glass-header-bg);
  -webkit-backdrop-filter: blur(var(--yc-glass-header-blur));
  backdrop-filter: blur(var(--yc-glass-header-blur));
  color: var(--yc-text-1);
  font-size: 14px;
  font-weight: var(--yc-fw-bold);
  letter-spacing: var(--yc-ls-ui);
}

.yc-glass-wrong {
  background: var(--yc-glass-float-bg);
  -webkit-backdrop-filter: blur(var(--yc-glass-float-blur));
  backdrop-filter: blur(var(--yc-glass-float-blur));
}

.yc-glow-card {
  max-width: 280px;
  padding: 16px;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
  box-shadow: var(--yc-glow-cta);
}

.yc-tag-row,
.yc-strike-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yc-strike {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-3);
  font-family: var(--yc-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.yc-card-line,
.yc-card-tint {
  max-width: 280px;
  padding: 16px;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
}

.yc-card-tint {
  border-top: 3px solid var(--yc-accent);
}

.yc-card-line p,
.yc-card-tint p,
.yc-glow-card p {
  margin-top: 6px;
  color: var(--yc-text-2);
  font-size: 14px;
  font-weight: var(--yc-fw-regular);
  letter-spacing: 0;
}

.yc-pair--t1 { background: var(--yc-bg); color: var(--yc-text-1); }
.yc-pair--t2 { background: var(--yc-bg); color: var(--yc-text-2); }
.yc-pair--t3 { background: var(--yc-bg); color: var(--yc-text-3); }
.yc-pair--acc { background: var(--yc-bg); color: var(--yc-accent); }
.yc-pair--wa { background: var(--yc-wa); color: var(--yc-bg); }
.yc-pair--wa-bad { background: var(--yc-wa); color: var(--yc-text-1); }
.yc-pair--err { background: var(--yc-surface-1); color: var(--yc-danger); }

.yc-target {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--yc-radius-md);
  border: 1px solid var(--yc-line);
  background: var(--yc-text-1);
  color: var(--yc-bg);
  font-size: 14px;
  font-weight: var(--yc-fw-bold);
  letter-spacing: var(--yc-ls-ui);
  cursor: pointer;
}

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

.yc-tiny {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--yc-radius-sm);
  border: 1px solid var(--yc-line);
  background: var(--yc-text-1);
  color: var(--yc-bg);
  font-size: 12px;
  font-weight: var(--yc-fw-bold);
  letter-spacing: var(--yc-ls-ui);
}

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

.yc-err {
  margin: 0;
  color: var(--yc-danger);
  font-size: 14px;
  line-height: 1.45;
}

.yc-schema {
  display: grid;
  gap: 16px;
}

.yc-schema .yc-spec pre.yc-code {
  border-top: 0;
}

.yc-brand-grid {
  display: grid;
  gap: 12px;
}

.yc-brand-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--yc-radius-lg);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
}

.yc-brand-card strong {
  color: var(--yc-text-1);
  font-size: 16px;
}

.yc-brand-card p {
  margin: 0;
  max-width: 62ch;
  color: var(--yc-text-2);
  font-size: 15px;
  line-height: 1.55;
}

.yc-swatch-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yc-text-3);
  font-family: var(--yc-font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.yc-swatch-line i {
  width: 8px;
  height: 8px;
  border-radius: var(--yc-radius-full);
  background: var(--yc-accent);
}

.yc-map td:first-child {
  color: var(--yc-text-1);
  font-weight: var(--yc-fw-bold);
}

.yc-state .yc-state-note {
  margin: 0;
  color: var(--yc-text-2);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.yc-bento-demo {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 52px 52px auto;
  gap: 8px;
  width: 100%;
  max-width: 440px;
}

.yc-bento-demo > div {
  min-width: 0;
  padding: 12px;
  border-radius: var(--yc-radius-md);
  border: 1px solid var(--yc-line);
  background: var(--yc-surface-1);
  color: var(--yc-text-1);
}

.yc-bento-demo strong {
  display: block;
  font-size: 14px;
  font-weight: var(--yc-fw-bold);
  letter-spacing: var(--yc-ls-ui);
}

.yc-bento-demo span {
  display: block;
  margin-top: 4px;
  color: var(--yc-text-2);
  font-size: 13px;
  line-height: 1.4;
}

.yc-bento-demo__lead {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.yc-bento-demo > div:nth-child(2) {
  grid-column: 3 / span 2;
  grid-row: 1 / span 2;
}

.yc-bento-demo > div:nth-child(3),
.yc-bento-demo > div:nth-child(4) {
  grid-column: span 2;
}

.yc-bento-demo--bad > div {
  box-shadow: inset 0 3px 0 var(--yc-accent);
}

@media (max-width: 859px) {
  .yc-planche__main,
  .yc-spec,
  .yc-spec__stage,
  .yc-frames,
  .yc-frame,
  .yc-ann {
    min-width: 0;
    max-width: 100%;
  }

  .yc-planche__main {
    overflow-x: clip;
  }

  .yc-frame--mob {
    max-width: none;
    width: 100%;
  }

  .yc-spec__label {
    flex-wrap: wrap;
  }

  .yc-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .yc-compare {
    gap: 20px;
  }
}

@media (min-width: 860px) {
  .yc-frames {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  }

  .yc-compare,
  .yc-brand-grid {
    grid-template-columns: 1fr 1fr;
  }

  .yc-schema {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .yc-wf,
  .yc-target {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .yc-glass-ok,
  .yc-glass-wrong {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--yc-surface-1);
  }
}
