/* Simulateur de VMA – complète les styles .calc-* de style.css */
.vma-card {
  padding: 24px 28px;
}
.vma-card .calc-field {
  margin-bottom: 14px;
}
.vma-card .calc-field legend {
  margin-bottom: 6px;
}
.vma-help {
  color: var(--grey);
  font-size: 15px;
  margin: 0 0 12px;
}
.vma-help-small {
  font-size: 13px;
  margin-top: -6px;
}
.vma-help strong {
  color: var(--navy);
}
.vma-races {
  display: grid;
  gap: 8px;
}
.vma-race {
  display: grid;
  grid-template-columns: 136px 216px minmax(0, 1fr);
  align-items: center;
  gap: 8px 16px;
  border: 1.5px solid #e3e8f0;
  border-radius: 14px;
  padding: 8px 12px;
  min-height: 62px;
  transition: border-color 0.2s, background 0.2s;
}
.vma-race.is-filled {
  border-color: #f6c08a;
  background: #fffaf4;
}
.vma-race-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.vma-race-name strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}
.vma-race-name small {
  color: var(--grey);
  font-size: 12px;
}
.vma-time {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid #e3e8f0;
  border-radius: 12px;
  padding: 0 6px;
  height: 44px;
  transition: border-color 0.2s;
}
.vma-time:focus-within {
  border-color: var(--primary);
}
.vma-time input {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: 0 0;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  text-align: right;
  padding: 0 3px 0 0;
}
.vma-time input::placeholder {
  color: #b9c1d0;
}
.vma-time span {
  color: var(--grey);
  font-size: 12.5px;
  font-weight: 700;
  padding-right: 6px;
}
.vma-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 8px;
}

.vma-details[hidden],
.vma-details select[hidden] {
  display: none;
}
.vma-card select {
  font: inherit;
  font-size: 13.5px;
  color: var(--grey);
  background-color: var(--white);
  border: 1.5px solid #e3e8f0;
  border-radius: 10px;
  padding: 0 4px 0 8px;
  height: 40px;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.vma-card select.is-set {
  color: var(--navy);
  font-weight: 600;
}
.vma-card select:focus {
  outline: 0;
  border-color: var(--primary);
}
.vma-card select.is-missing {
  border-color: #d93025;
  background-color: #fdecec;
}
.vma-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  border-top: 1px solid #e3e8f0;
  padding-top: 16px;
}
.vma-volume {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 260px;
}
.vma-volume > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}
.vma-volume .calc-step {
  width: 24px;
  height: 24px;
  font-size: 13px;
}
.vma-volume select {
  color: var(--navy);
}
.vma-buttons {
  display: flex;
  gap: 10px;
}
.vma-submit {
  font-size: 16px;
  padding: 13px 32px;
}
.vma-buttons .btn-outline {
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
}
.vma-card .calc-error {
  margin: 6px 0 14px;
}
.vma-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vma-select > span:first-child {
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}
.vma-select select {
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  border: 2px solid #e3e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Résultats */
.vma-ie-scale {
  margin-top: 12px;
}
.vma-ie-scale[hidden] {
  display: none;
}
.vma-ie-bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #7c8bb3, var(--primary));
}
.vma-ie-bar span {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  transform: translate(-50%, -50%);
}
.vma-ie-legend {
  display: flex;
  justify-content: space-between;
  color: #c3cad9;
  font-size: 11.5px;
  margin-top: 6px;
}
.vma-ie-help {
  color: #c3cad9;
  font-size: 14px;
  line-height: 1.55;
}
.vma-ie-help strong {
  color: #fff;
}

.vma-results {
  margin-top: 24px;
  scroll-margin-top: 100px;
}
.vma-results[hidden] {
  display: none;
}
.vma-result {
  justify-content: flex-start;
}
.vma-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vma-kpis > div {
  background: #ffffff0f;
  border: 1px solid #ffffff1a;
  border-radius: 18px;
  padding: 18px;
}
.vma-profile {
  font-size: clamp(30px, 3.2vw, 44px);
}
.vma-reliability {
  color: #c3cad9;
  font-size: 14.5px;
  font-weight: 600;
}
.vma-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vma-badge.is-elevee {
  background: #2e9e5b;
  color: #fff;
}
.vma-badge.is-moyenne {
  background: var(--primary);
  color: #fff;
}
.vma-badge.is-faible {
  background: #c0392b;
  color: #fff;
}
.vma-explain {
  background: #ffffff0d;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  display: grid;
  gap: 8px;
}
.vma-explain p {
  color: #e4e8f1;
  font-size: 16px;
  line-height: 1.6;
}
.vma-explain strong {
  color: #fff;
}
.vma-note {
  color: var(--grey);
  font-size: 13.5px;
  font-weight: 600;
}
.vma-scroll {
  overflow-x: auto;
}
.vma-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 3px;
  font-variant-numeric: tabular-nums;
  min-width: 560px;
}
.vma-table thead th {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: right;
  padding: 0 12px 6px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.vma-table thead th:first-child {
  text-align: left;
}
.vma-table tbody th,
.vma-table tbody td {
  color: var(--navy);
  background: #f6f8fc;
  padding: 9px 12px;
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}
.vma-table tbody th {
  text-align: left;
  border-radius: 10px 0 0 10px;
  font-weight: 700;
}
.vma-table tbody td:last-child {
  border-radius: 0 10px 10px 0;
}
.vma-table tbody th small {
  display: block;
  color: var(--grey);
  font-size: 12px;
  font-weight: 500;
}
.vma-table tr.is-mine th,
.vma-table tr.is-mine td {
  background: #ffe3c4;
}
.vma-flag {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 1px 7px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}
.vma-flag.is-grey {
  background: var(--grey);
}
.vma-zones td strong,
.vma-table td strong {
  font-weight: 900;
}
.vma-seo .calc-seo-grid {
  margin-bottom: 32px;
}
.vma-corr-card {
  margin: 0 0 32px;
}
.vma-inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.vma-inline select {
  width: auto;
  padding: 8px 12px;
}
.vma-corr tbody th {
  font-weight: 900;
}

@media (width<=1100px) {
  .vma-race {
    grid-template-columns: 140px 236px minmax(0, 1fr);
  }
  .vma-details {
    grid-column: 1 / -1;
  }
}
@media (width<=760px) {
  .vma-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .vma-kpis > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (width<=560px) {
  .vma-card {
    padding: 18px 14px;
  }
  .vma-race {
    grid-template-columns: minmax(0, 1fr) 188px;
    gap: 8px;
    padding: 8px 10px;
  }
  .vma-race-name strong {
    font-size: 14.5px;
  }
  .vma-time {
    padding: 0 2px;
  }
  .vma-time input {
    font-size: 17px;
  }
  .vma-time span {
    font-size: 11px;
    padding-right: 3px;
  }
  .vma-details {
    grid-template-columns: 1fr 1fr;
  }
  .vma-card select {
    font-size: 12.5px;
    padding: 0 2px 0 6px;
  }
  .vma-volume {
    min-width: 0;
    width: 100%;
  }
  .vma-buttons {
    width: 100%;
  }
  .vma-buttons .btn {
    flex: 1;
    justify-content: center;
  }
  .vma-kpis > div {
    padding: 14px;
  }
  .vma-explain {
    padding: 14px 16px;
  }
  .vma-explain p {
    font-size: 15px;
  }
  .vma-table {
    min-width: 0;
  }
  .vma-table thead th,
  .vma-table tbody th,
  .vma-table tbody td {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 13.5px;
  }
  .vma-table thead th {
    font-size: 10px;
    white-space: normal;
  }
  #vma-pred-table th:nth-child(4),
  #vma-pred-table td:nth-child(4),
  .vma-zones th:nth-child(4),
  .vma-zones td:nth-child(4) {
    display: none;
  }
  .vma-corr {
    min-width: 520px;
  }
  .vma-flag {
    display: block;
    width: fit-content;
    margin: 2px 0 0 auto;
  }
  .vma-zones tbody td {
    white-space: normal;
  }
  .vma-zones tbody th small {
    font-size: 11px;
  }
}

.vma-link-tool {
  color: var(--grey);
  font-size: 16px;
  margin: 0 0 32px;
}
.vma-link-tool a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* Page Tableau VMA et chronos */
.vt-section .calc-splits-card:first-child {
  margin-top: 0;
}
.vt-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e3e8f0;
}
.vt-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}
.vt-stepper {
  display: flex;
  align-items: stretch;
  border: 2px solid #e3e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.vt-stepper:focus-within {
  border-color: var(--primary);
}
.vt-stepper button {
  width: 48px;
  border: 0;
  background: #fff4e8;
  color: var(--primary-dark);
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}
.vt-stepper button:hover:not(:disabled) {
  background: #ffe3c4;
}
.vt-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.vt-stepper select {
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  padding: 10px 14px;
  background: var(--white);
  cursor: pointer;
}
.vt-picker-help {
  color: var(--grey);
  font-size: 14px;
}
.vt-picker-help a,
.vt-note a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
}
.vt-cards-title {
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.25;
}
.vt-cards-title span {
  color: var(--primary);
}
.vt-cards-intro {
  color: var(--grey);
  font-size: 15px;
  margin: 8px 0 20px;
  max-width: 900px;
}
.vt-cards-intro strong {
  color: var(--navy);
}
.vt-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.vt-card {
  background: #f6f8fc;
  border-radius: 16px;
  padding: 16px 18px 14px;
}
.vt-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.vt-card-head strong {
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}
.vt-card-head span {
  color: var(--grey);
  font-size: 12.5px;
  font-weight: 600;
}
.vt-card-time {
  color: var(--primary);
  font-size: clamp(30px, 2.6vw, 38px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.vt-card-sub {
  color: var(--grey);
  font-size: 12.5px;
  margin-bottom: 14px;
}
.vt-bar {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #7c8bb3);
}
.vt-bar span {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--navy);
  transform: translate(-50%, -50%);
}
.vt-bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.35;
}
.vt-bar-labels b {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.vt-bar-labels .r {
  text-align: right;
}
.vt-legend {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.55;
  background: #fff4e8;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.vt-legend div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--grey);
}
.vt-legend strong {
  color: var(--navy);
  font-weight: 800;
}
.vt-legend em {
  font-style: normal;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.vt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 3px;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}
.vt-table thead th {
  position: sticky;
  top: 0;
  background: var(--white);
  color: var(--grey);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  text-align: center;
}
.vt-table thead th:first-child,
.vt-table tbody th {
  width: 84px;
  text-align: left;
}
.vt-table tbody th,
.vt-table tbody td {
  background: #f6f8fc;
  padding: 8px;
  text-align: center;
  color: var(--navy);
}
.vt-table tbody tr {
  cursor: pointer;
}
.vt-table tbody tr:hover th,
.vt-table tbody tr:hover td {
  background: #eef2f8;
}
.vt-table tbody tr:focus-visible {
  outline: 3px solid #fa881573;
  outline-offset: 1px;
}
.vt-table tbody th {
  border-radius: 10px 0 0 10px;
  font-size: 15px;
  font-weight: 900;
}
.vt-table tbody th::after {
  content: " km/h";
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
}
.vt-table tbody td:last-child {
  border-radius: 0 10px 10px 0;
}
.vt-table td strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.vt-range {
  display: block;
  color: var(--grey);
  font-size: 12px;
  font-weight: 500;
}
.vt-table tr.is-me th,
.vt-table tr.is-me td {
  background: #ffe3c4;
}
.vt-table tr.is-me .vt-range,
.vt-table tr.is-me th::after {
  color: #6b4a22;
}
.vt-note {
  color: var(--grey);
  font-size: 13px;
  margin-top: 10px;
}
@media (width<=1100px) {
  .vt-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width<=560px) {
  .vt-picker {
    flex-direction: column;
    align-items: stretch;
  }
  .vt-stepper select {
    flex: 1;
  }
  .vt-cards-title {
    font-size: 18px;
  }
  .vt-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .vt-card {
    padding: 14px;
  }
  .vt-legend {
    padding: 10px 12px;
    font-size: 13px;
  }
  .vt-table thead th {
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 6px 2px;
  }
  .vt-table thead th:first-child,
  .vt-table tbody th {
    width: 46px;
  }
  .vt-table tbody th,
  .vt-table tbody td {
    padding: 7px 2px;
  }
  .vt-table tbody th {
    font-size: 13.5px;
    padding-left: 8px;
  }
  .vt-table tbody th::after {
    content: "";
  }
  .vt-table td strong {
    font-size: 12.5px;
  }
  .vt-range {
    font-size: 10px;
    letter-spacing: -0.01em;
  }
}

/* Section explicative : titre sur une ligne, texte justifié */
.vma-seo h2 {
  max-width: none;
}
.vma-seo .calc-seo-grid p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Curseur des cartes (Tableau VMA et chronos) */
.vt-slider {
  --pos: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 6px 0 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #7c8bb3);
  cursor: pointer;
  touch-action: pan-y;
}
.vt-slider:focus-visible {
  outline: 3px solid #fa881573;
  outline-offset: 6px;
}
.vt-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--navy);
  box-shadow: 0 2px 6px #0f1b3d40;
  cursor: grab;
}
.vt-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--navy);
  box-shadow: 0 2px 6px #0f1b3d40;
  cursor: grab;
}
.vt-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
}
.vt-card-sub {
  min-height: 1.4em;
}

/* Séances par semaine (Tableau VMA et chronos) */
.vt-picker + .vt-picker {
  margin-top: -8px;
}
.vt-picker-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}
.vt-freq {
  display: flex;
  border: 2px solid #e3e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.vt-freq button {
  border: 0;
  border-left: 1px solid #e3e8f0;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.vt-freq button:first-child {
  border-left: 0;
}
.vt-freq button:hover {
  background: #fff4e8;
}
.vt-freq button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
}
.vt-freq button:focus-visible {
  outline: 3px solid #fa881573;
  outline-offset: -3px;
}
.vt-card.is-warn {
  background: #fdecec;
}
.vt-card-warn {
  color: #c0392b;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  margin-top: 10px;
}
.vt-card-warn-text {
  color: #7a2a20;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
}
.vt-na {
  color: #c0392b;
  font-size: 12px;
  font-weight: 700;
}
@media (width<=560px) {
  .vt-freq button {
    flex: 1;
    padding: 11px 6px;
    font-size: 14px;
  }
}
.vt-picker:has(+ .vt-picker) {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 18px;
}
.vt-picker + .vt-picker {
  margin-top: 0;
}
