:root {
  --marine: #1c2d4a;
  --marine-clair: #2e4468;
  --gris-bord: #d9dde3;
  --gris-fond: #f5f6f8;
  --texte: #232a35;
  --texte-discret: #5b6472;
  --accent: #c9772b;
  --vert-livree: #2f6f4f;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--gris-fond);
  color: var(--texte);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.conteneur {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* En-tête */

.entete {
  background: #fff;
  border-bottom: 1px solid var(--gris-bord);
}

.entete__interieur {
  display: flex;
  align-items: center;
  padding: 14px 20px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--marine);
}

.marque__sceau {
  flex-shrink: 0;
}

.marque__texte {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.marque__texte strong {
  font-size: 1.05rem;
}

.marque__texte small {
  color: var(--texte-discret);
  font-size: 0.78rem;
}

/* Contenu */

.contenu {
  padding: 28px 20px 60px;
}

h1 {
  color: var(--marine);
  font-size: 1.7rem;
  margin: 0 0 14px;
}

h2 {
  color: var(--marine);
  font-size: 1.15rem;
  border-bottom: 1px solid var(--gris-bord);
  padding-bottom: 6px;
  margin: 0 0 16px;
}

section {
  margin-bottom: 30px;
}

/* Page de suivi */

.suivi-entete__ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.suivi-entete__numero {
  font-family: "Courier New", monospace;
  font-size: 1.6rem;
  margin: 0;
  color: var(--marine);
}

.statut {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid transparent;
}

.statut--transit {
  color: var(--marine-clair);
  background: #eaeff6;
  border-color: #c7d3e6;
}

.statut--livree {
  color: var(--vert-livree);
  background: #e7f2ec;
  border-color: #bfdccb;
}

.message-livraison {
  background: #fff;
  border: 1px solid var(--gris-bord);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
}

.message-livraison__intro {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--texte-discret);
}

.message-livraison blockquote {
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--texte);
}

/* Frise chronologique */

.frise {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--gris-bord);
}

.frise__etape {
  position: relative;
  padding: 4px 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.frise__etape::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gris-bord);
}

.frise__etape--fait::before {
  border-color: var(--marine-clair);
  background: var(--marine-clair);
}

.frise__etape--courant::before {
  border-color: var(--accent);
  background: var(--accent);
}

.frise__label {
  font-weight: bold;
  color: var(--texte);
}

.frise__etape:not(.frise__etape--fait) .frise__label {
  color: var(--texte-discret);
  font-weight: normal;
}

.frise__lieu {
  font-size: 0.88rem;
  color: var(--texte-discret);
}

.frise__quand {
  font-size: 0.82rem;
  color: var(--texte-discret);
  font-style: italic;
}

.frise__detail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 28px;
  cursor: pointer;
}

.frise__resume {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.frise__resume::-webkit-details-marker {
  display: none;
}

.frise__resume::marker {
  content: "";
}

.frise__resume .frise__label::after {
  content: " ▼";
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 4px;
  transition: transform 0.5s ease;
}

.frise__detail[open] .frise__resume .frise__label::after {
  transform: rotate(90deg);
}

.frise__contenu {
  flex: 1 1 320px;
  min-width: 260px;
  font-size: 0.92rem;
}

.frise__contenu > div {
  margin-bottom: 14px;
}

.frise__contenu em {
  font-size: 0.82rem;
  color: var(--texte-discret);
}

/* Table de détails */

.table-details {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--gris-bord);
}

.table-details th,
.table-details td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gris-bord);
  font-size: 0.92rem;
}

.table-details th {
  width: 40%;
  color: var(--texte-discret);
  font-weight: normal;
}

.table-details tr:last-child th,
.table-details tr:last-child td {
  border-bottom: none;
}

/* Pied de page */

.pied {
  background: #fff;
  border-top: 1px solid var(--gris-bord);
}

.pied__interieur {
  padding: 22px 20px;
}

.pied__clause {
  font-size: 0.85rem;
  color: var(--texte);
  max-width: 70ch;
  margin: 0;
}
