/* Étape 1 : la boîte booking du matin. */
.resume {
  display: grid; gap: 8px; padding: 14px 18px; min-width: 260px;
  background: var(--feuille); border: 1px solid var(--filet); border-radius: var(--rayon);
}
.resume__compte { color: var(--encre-2); font-size: 14px; }
.resume__compte .chiffre { margin-right: 4px; }
.resume__etats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.resume .muet { font-size: 13px; }

.demandes__grille { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.demandes__cote { display: grid; gap: 14px; position: sticky; top: 132px; }

.boite { list-style: none; margin: 0; padding: 0; }
.demande {
  display: grid; grid-template-columns: 46px minmax(200px, 1.1fr) 30px minmax(0, 1.4fr) 150px;
  align-items: center; gap: 4px 14px; min-height: 62px;
  padding: 10px 18px; border-bottom: 1px solid var(--filet);
  transition: background 0.3s;
}
.demande:last-child { border-bottom: 0; }
.demande__heure { font-family: var(--mono); font-size: 13px; color: var(--encre-2); }
.demande__email { display: grid; min-width: 0; }
.demande__email strong { font-weight: 500; font-size: 14px; }
.demande__objet { font-size: 13px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demande__analyse { display: grid; gap: 3px; font-size: 13px; min-width: 0; }
.demande__meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; }
.demande__voyage { font-family: var(--mono); font-size: 12px; color: var(--marine); overflow: hidden; text-overflow: ellipsis; }
.demande__resultat { color: var(--encre); }
.demande__fin { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.demande--attente { opacity: 0.55; }
.demande--encours { background: var(--cyan-voile); }
.lecture-encours { color: var(--cyan); font-weight: 500; }
.demande--vedette.demande--lu { background: linear-gradient(90deg, var(--alerte-voile), transparent 70%); box-shadow: inset 3px 0 0 var(--alerte); }

.armateurs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.armateurs li { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 10px; font-size: 13px; }
.armateurs strong { text-align: right; font-weight: 500; font-size: 15px; color: var(--marine); }

@media (max-width: 1080px) {
  .demandes__grille { grid-template-columns: 1fr; }
  .demandes__cote { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .demandes__cote .bouton { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .resume { min-width: 0; width: 100%; }
  .demande {
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    grid-template-areas: 'heure email langue' '. analyse analyse' '. fin fin';
    padding: 12px 14px; align-items: start;
  }
  .demande__heure { grid-area: heure; padding-top: 2px; }
  .demande__email { grid-area: email; }
  .demande__objet { white-space: normal; }
  .langue { grid-area: langue; }
  .demande__analyse { grid-area: analyse; }
  .demande__fin { grid-area: fin; justify-content: flex-start; }
  .demande--attente .demande__analyse, .demande--attente .demande__fin { display: none; }
}
