/* ============================================================
   suivi.css — page « Où en est ma réparation ? »

   Le client saisit un code de six lettres et voit l'état de ses
   appareils, lu dans la base du logiciel de gestion.
   ============================================================ */

.suivi-page {
  padding: 50px 0 110px;
}

.suivi-titre {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 12px;
}

.suivi-intro {
  color: #a0a0ab;
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 38px;
}

/* =======================
   SAISIE DU CODE
======================= */
.suivi-form {
  max-width: 480px;
  margin: 0 auto;
}

.suivi-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #74747f;
  margin-bottom: 10px;
}

.suivi-saisie {
  display: flex;
  gap: 10px;
}

.suivi-champ {
  flex: 1 1 auto;
  min-width: 0;
  background: #1A181E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 15px 18px;
  color: #fff;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  outline: none;
  transition: border-color 0.2s;
}

.suivi-champ:focus { border-color: #FF2352; }
.suivi-champ::placeholder { color: #4a4a54; letter-spacing: 0.22em; }

.suivi-bouton {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom, #D7002E, #FF2352);
  border: none;
  border-radius: 12px;
  padding: 0 24px;
  cursor: pointer;
  transition: filter 0.2s, opacity 0.2s;
}

.suivi-bouton:hover:not(:disabled) { filter: brightness(1.12); }
.suivi-bouton:disabled { opacity: 0.55; cursor: not-allowed; }
.suivi-bouton:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.suivi-aide {
  margin-top: 14px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #74747f;
}

.suivi-aide strong { color: #c4c4cf; font-weight: 600; }
.suivi-aide em { color: #a0a0ab; font-style: normal; }

.suivi-erreur {
  margin-top: 14px;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: #FF2352;
}

/* =======================
   RÉSULTAT
======================= */
.suivi-resultat {
  max-width: 640px;
  margin: 44px auto 0;
}

.suivi-resultat[hidden] { display: none; }

.suivi-compte {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #74747f;
  margin-bottom: 16px;
}

.fiche {
  background: #1A181E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 26px 26px;
  margin-bottom: 18px;
}

.fiche-terminee { opacity: 0.68; }

.fiche-tete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.fiche-appareil {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.fiche-modele {
  font-weight: 400;
  color: #a0a0ab;
}

.fiche-date {
  margin-top: 5px;
  font-size: 0.82rem;
  color: #74747f;
}

.fiche-statut {
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8d8e0;
}

/* Devis envoyé : c'est au client de répondre. L'ambre le signale
   sans dramatiser, là où le rouge de la marque dirait « problème ». */
.statut-devis {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #f0a71b;
}

.statut-pret {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
  color: #22c55e;
}

.statut-fini {
  background: rgba(255, 255, 255, 0.05);
  color: #8a8a95;
}

/* =======================
   FRISE DES ÉTAPES
   Horizontale sur écran large, verticale sur téléphone : à sept
   étapes, les libellés ne tiennent pas côte à côte sur 375 px.
======================= */
.frise {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: etape;
}

.frise-etape {
  position: relative;
  flex: 1 1 0;
  padding-top: 20px;
  text-align: center;
  min-width: 0;
}

/* Le trait qui relie une étape à la précédente */
.frise-etape::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.frise-etape:first-child::before { display: none; }

.frise-etape.faite::before,
.frise-etape.courante::before {
  background: #D7002E;
}

.frise-point {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a2730;
  border: 2px solid rgba(255, 255, 255, 0.16);
  z-index: 1;
}

.frise-etape.faite .frise-point {
  background: #D7002E;
  border-color: #D7002E;
}

.frise-etape.courante .frise-point {
  background: #FF2352;
  border-color: #FF2352;
  box-shadow: 0 0 0 5px rgba(255, 35, 82, 0.22);
}

/* Le repère courant reprend la couleur de l'étiquette : ambre quand
   la balle est dans le camp du client, vert quand c'est fini. */
.frise-devis .frise-etape.courante .frise-point {
  background: #f59e0b;
  border-color: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
}

.frise-pret .frise-etape.courante .frise-point {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.2);
}

.frise-nom {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #5e5e68;
  padding: 0 3px;
}

.frise-etape.faite .frise-nom { color: #8a8a95; }

.frise-etape.courante .frise-nom {
  color: #fff;
  font-weight: 700;
}

/* =======================
   ENCART DE L'ÉTAPE EN COURS
   Ce que le client lit en premier : une phrase qui dit où en est
   son appareil, et ce qu'il peut faire s'il a la main.
======================= */
.fiche-note {
  margin-top: 22px;
  padding: 14px 17px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.fiche-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.fiche-message i {
  flex: none;
  margin-top: 0.22em;
  font-size: 0.95em;
}

.note-neutre {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
  color: #b4b4c0;
}

.note-neutre i { color: #74747f; }

.note-devis {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.32);
  color: #ecdcc2;
}

.note-devis i { color: #f59e0b; }

.note-pret {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #cfe9d8;
}

.note-pret i { color: #22c55e; }

.note-fini {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
  color: #8a8a95;
}

.note-fini i { color: #6c6c77; }

/* Coordonnées rappelées quand le client a quelque chose à faire */
.fiche-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-left: 26px;
  font-size: 0.84rem;
}

.fiche-contact a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fiche-contact span { color: #74747f; }

/* =======================
   SECOURS
======================= */
.suivi-secours {
  max-width: 560px;
  margin: 46px auto 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #74747f;
}

.suivi-secours a {
  color: #c4c4cf;
  text-decoration: underline;
}

.suivi-secours a:hover { color: #fff; }

/* =======================
   TÉLÉPHONE
======================= */
@media (max-width: 640px) {
  .suivi-page { padding: 34px 0 70px; }

  .suivi-saisie { flex-direction: column; }
  .suivi-bouton { justify-content: center; padding: 14px 24px; }
  .suivi-champ { font-size: 1.15rem; text-align: center; }

  .fiche { padding: 20px 18px 22px; }

  /* La frise passe à la verticale : sept libellés côte à côte sont
     illisibles sur un écran de téléphone. */
  .frise { flex-direction: column; gap: 0; }

  .frise-etape {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 0 0 0 4px;
    min-height: 34px;
  }

  .frise-etape::before {
    top: auto;
    bottom: 50%;
    left: 9px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .frise-point {
    position: static;
    transform: none;
    flex: none;
  }

  .frise-nom { font-size: 0.84rem; padding: 0; }

  .fiche-contact {
    padding-left: 0;
    gap: 7px;
  }
}
