* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #f7f8fa;
  color: #1c1f24;
  font-family: Inter, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.bandeau-barre {
  position: relative;
  width: 100%;
  aspect-ratio: 2171 / 208;
  overflow: hidden;
  background: #d7ebf8;
}
.bandeau-fond {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(100% * 724 / 208);
  top: calc(100% * -250 / 208);
  max-width: none;
}
.bandeau-logo,
.bandeau-ms1 {
  position: absolute;
  width: auto;
  z-index: 1;
}
.bandeau-logo {
  left: 1.2%;
  top: 8%;
  height: 84%;
}
.bandeau-ms1 {
  left: 34%;
  top: 24%;
  height: 50%;
  filter: brightness(0);
}
.corps { padding: 18px 40px 48px; }
.entete {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 4px 0 16px;
}
.titre { display: flex; gap: 14px; align-items: flex-start; min-width: 0; max-width: 100%; }
.barre {
  width: 6px;
  height: 28px;
  margin-top: 4px;
  border-radius: 2px;
  background: #c90c20;
  flex: none;
}
h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.sous {
  margin: 4px 0 0;
  color: #8b919a;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: break-word;
}
.sous .groupe { color: #d01627; font-weight: 700; }
.cherche {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
  max-width: 100%;
  min-width: 0;
  /* auto : en colonne, une base de 360 px devenait la hauteur du champ. */
  flex: 0 1 auto;
  margin-top: 6px;
  padding: 9px 16px;
  border: 1px solid #e4e6ea;
  border-radius: 999px;
  background: #fff;
  color: #9aa1ab;
  overflow: hidden;
}
.cherche svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
}
.cherche input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 22px;
  max-height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #1c1f24;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.cherche input::-webkit-search-decoration,
.cherche input::-webkit-search-cancel-button,
.cherche input::-webkit-search-results-button,
.cherche input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}
.cherche input::placeholder { color: #a0a6af; }
.carte {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(20, 24, 32, 0.08), 0 8px 24px rgba(20, 24, 32, 0.04);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: max-content; border-collapse: collapse; }
thead th {
  background: #3a4044;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 12px 17px;
  white-space: nowrap;
}
table th + th,
table td + td {
  border-left: 1px solid #e1e4e8;
}
table thead th + th {
  border-left-color: rgba(255, 255, 255, 0.28);
}
thead th.nom { text-align: left; }
tbody td {
  padding: 12px 17px;
  font-size: 14.5px;
  text-align: center;
  white-space: nowrap;
  border-top: 1px solid #eef0f3;
  font-variant-numeric: tabular-nums;
}
tbody tr:nth-child(even) { background: #f4f5f7; }
tbody tr:nth-child(odd) { background: #fff; }
td.nom { text-align: left; font-weight: 700; }
td.temps, td.num { font-weight: 600; }
.dos {
  display: inline-block;
  min-width: 42px;
  padding: 3px 8px 4px;
  border-radius: 5px;
  background: #d01627;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.btn-tours {
  display: inline-block;
  padding: 4px 12px 5px;
  border: 1.5px solid #d01627;
  border-radius: 7px;
  background: #fff;
  color: #d01627;
  font-size: 13px;
  font-weight: 700;
}
.btn-tours:hover { background: #fff5f6; }
.retour {
  display: inline-block;
  margin: 0 0 14px;
  color: #d01627;
  font-size: 14px;
  font-weight: 600;
}
.fiche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 0;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 17px 10px 20px;
}
.fiche > div { max-width: 100%; padding: 0 20px; }
.fiche .lib {
  display: block;
  color: #9aa1ab;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: break-word;
}
.fiche .val {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.fiche .dos { font-size: 14.5px; line-height: 1.2; }
.fiche .val.rouge { color: #d01627; }
.fiche .sep {
  width: 1px;
  height: 46px;
  margin: 0 auto;
  background: #e6e8ec;
}
.fiche-marche {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 0;
}
.fiche-marche > div { padding: 0 20px; max-width: 100%; }
.fiche-marche .fiche-note { flex: 1 0 100%; max-width: 36rem; padding-top: 8px; }
.fiche-marche .fiche-note .val { font-size: 16px; font-weight: 600; }
.tours td.tour { text-align: left; padding-left: 26px; font-weight: 600; }
.tours td.stat { text-align: center; }
.tours td.temps { text-align: right; padding-right: 17px; font-weight: 500; }
.tours thead th.tour { text-align: left; padding-left: 26px; }
.tours thead th.temps { text-align: right; padding-right: 17px; }
td.statut {
  white-space: nowrap;
  vertical-align: middle;
}
.statut-icone {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}
.statut-heure {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  vertical-align: middle;
}
.vide { margin: 0; padding: 28px 18px; color: #8b919a; }
.liste { list-style: disc; margin: 8px 0 0; padding-left: 22px; }
.liste li { margin: 8px 0; font-size: 16px; font-weight: 600; }
.liste a span { color: #e07a12; font-weight: 700; }
@media (max-width: 900px) {
  .corps { padding: 14px 12px 32px; }
  .entete { flex-direction: column; align-items: stretch; }
  /* Bandeau bas : le champ natif et l’icône ne peuvent plus s’arrondir
     sur toute la largeur et cacher Pos, Dos et Nom. */
  .cherche {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    margin-top: 2px;
    padding: 0 14px;
    border-radius: 10px;
  }
  .cherche input { font-size: 16px; }
  h1 { font-size: 22px; }
  .fiche { width: 100%; }
  .fiche .sep { display: none; }
  .carte { width: 100%; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
