/* Les réponses : des rangées écrites en blanc sur le magenta, séparées d'un trait de 2 px.
   La rangée choisie s'inverse (fond blanc, texte magenta). */
.fil {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px 12px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid var(--blanc);
}
.retour {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding-right: 4px;
}
.retour svg { width: 22px; height: 22px; }
.retour span { display: none; }
.fil-reponses { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 2px; }
.fil-reponses li { display: flex; align-items: center; }
.fil-reponses li + li::before { content: "·"; padding: 0 4px; }
.fil-reponses button { min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / 0.55); }
.fil-pas { flex: none; margin-left: auto; font-weight: 500; white-space: nowrap; }
.fil .c { display: none; }
@media (max-width: 599px) {
  .fil { font-size: 15px; column-gap: 8px; }
  .fil .l { display: none; }
  .fil .c { display: inline; }
  .fil:has(.fil-reponses li:nth-child(4)) .fil-pas { display: none; }
}
@media (min-width: 420px) { .retour span { display: inline; } }

.rangees { display: flex; flex-direction: column; }
.rangee {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  min-height: 56px;
  padding: 8px 10px;
  margin: 0 -10px;
  width: calc(100% + 20px);
  text-align: left;
  border-bottom: 2px solid var(--blanc);
  transition: background-color 0.12s, color 0.12s, transform 0.1s;
}
.r-nom { font-size: 22px; font-weight: 600; line-height: 1.15; }
.r-csq { flex-basis: 100%; font-size: 16px; font-weight: 500; line-height: 1.3; }
.r-prix { margin-left: auto; font-size: 18px; font-weight: 600; white-space: nowrap; }
.r-fleche { width: 26px; height: 26px; margin-left: auto; transform: scaleX(-1); }
.rangee[aria-pressed="true"] { background: var(--blanc); color: var(--magenta); }
.rangee:active:not(:disabled) { transform: scale(0.98); }
.rangee:disabled { opacity: 1; }
.rangee:disabled .r-nom { text-decoration: line-through; text-decoration-thickness: 2px; }
.pied {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  background: var(--magenta);
  border-top: 2px solid var(--blanc);
}
.ecran:not(:has(.pied)) { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.rangees-courtes .r-csq { flex-basis: auto; margin-left: auto; }
@media (hover: hover) {
  .rangee:not(:disabled):not([aria-pressed="true"]):hover { background: var(--profond); }
  .fil-reponses button:hover { text-decoration-color: var(--blanc); }
}

/* Compteur géant */
.compteur {
  display: grid;
  grid-template-columns: 56px auto 56px 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 6px 0 2px;
}
.pas {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blanc);
  border-radius: 10px;
  transition: background-color 0.12s, transform 0.1s;
}
.pas svg { width: 24px; height: 24px; }
.pas:active:not(:disabled) { transform: scale(0.96); background: var(--profond); }
.pas:disabled { opacity: 0.4; }
.compteur-n { min-width: 1.1em; text-align: center; font: 400 64px/1 var(--titre); padding-bottom: 6px; }
.compteur-unite { font-size: 20px; font-weight: 600; }
.resultat { padding: 10px 0 2px; font-size: 20px; font-weight: 600; }
.note { padding: 2px 0 4px; font-size: 16px; line-height: 1.3; }
.note:empty { display: none; }
.categorie { padding: 14px 0 0; font-size: 17px; font-weight: 600; }

/* Écran 4 : la proposition, le briefing */
.propose { padding: 12px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.compris { padding: 8px 0 0; font-size: 16px; }
.briefing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 0 12px; }
.briefing li { display: flex; flex-direction: column; gap: 6px; }
.briefing svg { width: 100%; height: auto; max-width: 92px; aspect-ratio: 160 / 150; }
.briefing span { font-size: 14px; line-height: 1.25; font-weight: 500; }

/* Écran 5 : la grille des départs */
.heures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0 8px; }
.heure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 2px solid var(--blanc);
  border-radius: 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  transition: background-color 0.12s, color 0.12s, transform 0.1s;
}
.heure small { font-size: 13px; font-weight: 500; }
.heure[aria-pressed="true"] { background: var(--blanc); color: var(--magenta); }
.heure:disabled { border-style: dashed; border-color: rgb(255 255 255 / 0.7); }
.heure:disabled > span { text-decoration: line-through; }
.heure:active:not(:disabled) { transform: scale(0.97); }
@media (hover: hover) { .heure:not(:disabled):not([aria-pressed="true"]):hover { background: var(--profond); } }

/* Écran 7 : les réponses empilées */
.rangees-recap .rangee { flex-wrap: nowrap; min-height: 56px; }
.r-cle { flex: none; width: 74px; font-size: 16px; font-weight: 500; }
.rangees-recap .r-nom { font-size: 20px; }
.acompte { padding: 10px 0 0; font-size: 17px; }
.continuer-zone { padding: 12px 0 10px; border-top: 0; }
.continuer {
  width: 100%;
  min-height: 56px;
  background: var(--blanc);
  color: var(--magenta);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 650;
  box-shadow: 5px 5px 0 var(--profond);
  transition: transform 0.1s;
}
.continuer:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--profond); }
.rangee-venir { border-top: 2px solid var(--blanc); flex-wrap: nowrap; }
.rangee-venir .r-nom { font-size: 17px; font-weight: 600; }
.r-ponton { width: 24px; height: 24px; flex: none; }

/* Écran 2 : le champ de date natif, dans une rangée */
.rangee-champ { cursor: pointer; justify-content: space-between; }
.rangee-champ input {
  min-height: 44px;
  padding: 6px 10px;
  border: 2px solid currentColor;
  border-radius: 6px;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  color-scheme: dark;
}

@media (min-width: 600px) {
  .r-csq { flex-basis: auto; margin-left: auto; text-align: right; max-width: 55%; }
  .rangees-sorties .r-csq { flex-basis: 100%; margin-left: 0; text-align: left; max-width: none; }
  .heures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .briefing span { font-size: 15px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .pied { position: static; background: none; }
  .rangee { min-height: 64px; }
  .r-nom { font-size: 24px; }
  .compteur-n { font-size: 120px; }
  .compteur { padding: 4px 0 0; }
  .r-cle { width: 84px; }
}
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-height: 800px) {
  .compteur-n { font-size: 88px; }
}
