.rtc-intro h1 { margin-bottom: .65rem; font-size: clamp(1.55rem, 3.2vw, 2.25rem); line-height: 1.15; }
.rtc-repere { margin-bottom: .3rem; padding-inline-start: .45rem; border-inline-start: 2px solid var(--rouge); font-size: .9rem; font-weight: 700; }
.texte-rtc + .texte-rtc { margin-top: .65rem; }

.recherche-rtc {
  margin-top: .9rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ligne);
  border-radius: .25rem;
  background: var(--relief);
}
.recherche-rtc label { display: block; margin-bottom: .35rem; font-weight: 700; }
.ligne-recherche { display: flex; align-items: stretch; gap: .45rem; }
.ligne-recherche input, .ligne-recherche button {
  min-height: 2.7rem;
  padding: .45rem .65rem;
  border: 1px solid #a7a7a7;
  border-radius: .2rem;
  font: inherit;
}
.ligne-recherche input { flex: 1; min-width: 0; background: #fff; color: inherit; }
.ligne-recherche button { background: #fff; color: inherit; cursor: pointer; }
.ligne-recherche button:disabled { color: #656565; cursor: default; }
.ligne-recherche :focus-visible { outline: 3px solid var(--rouge); outline-offset: 2px; }
.resultats-rtc:not(:empty) { margin-top: .4rem; color: #515151; font-size: .92rem; }
.tableau-rtc {
  width: 100%;
  margin-top: .65rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .95rem;
}
.tableau-rtc th, .tableau-rtc td {
  padding: .46rem .55rem;
  border-bottom: 1px solid var(--ligne);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.tableau-rtc thead { background: var(--relief); }
.tableau-rtc thead th:nth-child(2) { width: 9rem; }
.tableau-rtc thead th:last-child { width: 37%; }
.tableau-rtc tbody th { font-weight: 600; }
.tableau-rtc tbody td:nth-child(2) { font-variant-numeric: tabular-nums; }
.source-rtc { margin-top: .75rem; font-size: .94rem; }
.source-rtc + .source-rtc { margin-top: .25rem; }

.rtc-schema-titre, .rtc-calendrier-titre { margin-top: 1.15rem; }
.rtc-schema { margin: .55rem 0 .8rem; }
.rtc-chaine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: .65rem;
  text-align: center;
  line-height: 1.35;
}
.rtc-entite {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: .3rem;
  padding: .85rem;
  border: 1px solid var(--ligne);
  border-radius: .25rem;
  background: var(--relief);
}
.rtc-entite svg { width: 2.25rem; height: 2.25rem; color: var(--rouge); }
.rtc-entite span, .rtc-sens { font-size: .9rem; }
.rtc-liaison { display: grid; gap: .45rem; }
.rtc-sens { display: grid; gap: .15rem; }
.rtc-fleche { position: relative; display: block; height: .75rem; color: var(--rouge); }
.rtc-fleche::before, .rtc-fleche::after { position: absolute; content: ""; }
.rtc-fleche::before { inset: calc(50% - 1px) 2px auto; border-top: 2px solid; }
.rtc-fleche::after {
  top: 50%;
  right: 2px;
  width: .5rem;
  height: .5rem;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateY(-50%) rotate(45deg);
}
.rtc-sens-retour .rtc-fleche { transform: rotate(180deg); }
.rtc-schema figcaption { margin-top: .65rem; color: #505050; font-size: .94rem; }
.sources-rtc, .verifications-rtc { margin-block: .55rem 0; padding-inline-start: 1.25rem; }
.calendrier-2g { margin-block: .55rem .85rem; padding-inline-start: 1.25rem; }
.calendrier-2g li + li { margin-top: .42rem; }
.verifications-rtc li + li { margin-top: .48rem; }
.rtc-aide { margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--ligne); font-size: .94rem; }
.rtc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; margin-top: .75rem; }
.rtc-actions .contact {
  display: inline-block;
  margin: 0;
  border: 1px solid var(--ligne);
  color: var(--rouge);
  background: var(--relief);
}
.rtc-actions .contact:hover { border-color: var(--rouge); }
.rtc-actions > a:last-child { min-width: 0; overflow-wrap: anywhere; }
.date-article { margin-top: .95rem; color: #515151; font-size: .9rem; }

@media (min-width: 48rem) {
  .texte-rtc { text-align: justify; hyphens: auto; }
}
@media (max-width: 40rem) {
  .tableau-rtc thead th:nth-child(2) { width: 4rem; }
  .tableau-rtc th, .tableau-rtc td { padding-inline: .35rem; }
  .tableau-rtc { font-size: .85rem; }
  .rtc-chaine { grid-template-columns: minmax(0, 1fr); }
  .rtc-liaison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rtc-liaison > strong { grid-column: 1 / -1; }
  .rtc-sens { justify-items: center; align-content: end; }
  .rtc-fleche { width: 1.5rem; height: 1.5rem; transform: rotate(90deg); }
  .rtc-sens-retour .rtc-fleche { transform: rotate(-90deg); }
}
@media print {
  .recherche-rtc { display: none; }
}
