:root {
  --bg: #eef3fa;
  --text-light: #f6f8fb;
  --text-dark: #1b2230;
  --accent-red: #df1f26;
  --accent-red-deep: #af111a;
  --accent-blue: #0d4f9c;
  --accent-blue-deep: #08386f;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 20px 50px rgba(6, 20, 44, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text-light);
  background:
    linear-gradient(135deg, rgba(8, 25, 52, 0.92), rgba(15, 72, 141, 0.7)),
    radial-gradient(circle at top left, rgba(223, 31, 38, 0.32), transparent 35%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(8, 17, 33, 0.2), rgba(8, 17, 33, 0.28)),
    url("./carre-background.jpg") center center / cover no-repeat;
  filter: grayscale(20%) contrast(1.08) saturate(0.85);
  opacity: 0.7;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 18, 37, 0.9) 4%, rgba(9, 48, 96, 0.45) 45%, rgba(191, 18, 34, 0.38) 100%);
  z-index: -1;
}

.page-shell {
  width: min(860px, calc(100% - 18px));
  margin: 0 auto;
  padding: 14px 0 22px;
}

.hero {
  padding: 4px 0 12px;
}

.brand-block {
  max-width: 390px;
}

.brand-row {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: start;
  gap: 6px;
  margin-bottom: 6px;
}

.brand-mark {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-bottom: 0;
}

.brand-logo-image {
  display: block;
  width: 60px;
  height: auto;
  object-fit: contain;
}

.eyebrow,
.section-label,
.muted-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow,
.section-label {
  margin: 0 0 4px;
  font-size: 0.58rem;
  color: rgba(255, 241, 225, 0.82);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 400;
}

h1 {
  display: inline-grid;
  gap: 2px;
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  line-height: 0.95;
}

h1 span {
  font-size: 0.82em;
}

.hero-copy {
  max-width: 350px;
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 247, 240, 0.9);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(220px, 0.58fr);
  gap: 12px;
  align-items: start;
}

.tracking-card,
.countdown-card,
.stats-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.tracking-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 24, 48, 0.86), rgba(8, 24, 48, 0.68));
}

.card-head h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  margin-bottom: 4px;
}

.card-head p {
  margin: 0;
  max-width: 460px;
  color: rgba(255, 247, 240, 0.8);
  line-height: 1.42;
  font-size: 0.82rem;
}

.tracking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0 14px;
}

.tracking-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(250, 243, 235, 0.96);
  color: var(--text-dark);
  font: inherit;
  font-size: 0.86rem;
}

.tracking-form button {
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  min-height: 40px;
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  color: #fff7ec;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-deep));
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 14px 30px rgba(175, 17, 26, 0.32);
}

.tracking-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(175, 17, 26, 0.38);
}

.tracking-result {
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 241, 233, 0.96);
  color: var(--text-dark);
}

.status-row,
.result-grid,
.stats-card {
  display: grid;
}

.status-row {
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.muted-label {
  margin: 0 0 4px;
  font-size: 0.55rem;
  color: rgba(32, 26, 22, 0.6);
}

.status-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 79, 156, 0.14);
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.result-grid article {
  padding: 10px;
  border-radius: 12px;
  background: rgba(38, 28, 20, 0.04);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #b8c8de;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.result-grid strong,
.status-row strong {
  font-size: 0.8rem;
}

.info-panel {
  display: grid;
  gap: 12px;
}

.countdown-card,
.stats-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(191, 18, 34, 0.82), rgba(12, 46, 92, 0.7));
}

.countdown-card h3,
.stats-card h3 {
  font-size: 1.1rem;
  margin: 4px 0 6px;
}

.countdown-copy,
.stats-card p {
  margin: 0;
  line-height: 1.42;
  font-size: 0.78rem;
  color: rgba(255, 245, 233, 0.82);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(18, 140, 126, 0.28);
}

.contact-button:hover {
  filter: brightness(1.04);
}

.countdown-timer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.time-box {
  padding: 10px 8px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
}

.time-box strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.time-box span {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 245, 233, 0.84);
}

.stats-card {
  gap: 8px;
}

.mini-process {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(27, 34, 48, 0.08);
}

.mini-process-head {
  margin-bottom: 6px;
}

.process-inline-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(27, 34, 48, 0.08);
}

.process-inline-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.54rem;
}

.process-inline-table th,
.process-inline-table td {
  padding: 5px 4px;
  border-bottom: 1px solid rgba(27, 34, 48, 0.08);
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.process-inline-table thead th {
  background: rgba(13, 79, 156, 0.1);
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.48rem;
}

.process-inline-table tbody tr:nth-child(odd) {
  background: rgba(245, 240, 242, 0.9);
}

.process-inline-table tbody tr:nth-child(even) {
  background: rgba(196, 238, 232, 0.72);
}

.num-cell {
  font-weight: 700;
}

.etat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(223, 31, 38, 0.14);
  color: #b01a20;
  font-weight: 700;
  font-size: 0.5rem;
}

.etat-badge.valide {
  background: rgba(31, 170, 89, 0.14);
  color: #17824a;
}

.etat-badge.done {
  background: rgba(13, 79, 156, 0.14);
  color: #0d4f9c;
}

.etat-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(13, 79, 156, 0.1);
  color: #0d4f9c;
  font-weight: 800;
  font-size: 0.48rem;
  letter-spacing: 0.02em;
}

.stats-card div {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-card div:first-child {
  padding-top: 0;
  border-top: 0;
}

.stats-card span {
  display: inline-block;
  margin-bottom: 2px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 14px, 1180px);
    padding-top: 10px;
  }

  .tracking-card,
  .countdown-card,
  .stats-card {
    padding: 14px;
    border-radius: 14px;
  }

  .brand-row {
    gap: 6px;
  }

  .tracking-form,
  .status-row,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .tracking-form button {
    width: 100%;
  }

  h1 {
    font-size: clamp(0.9rem, 6vw, 1.1rem);
  }
}

@media (max-width: 540px) {
  .page-shell {
    width: calc(100% - 10px);
    padding: 8px 0 16px;
  }

  .hero {
    padding: 2px 0 10px;
  }

  .brand-block,
  .hero-copy,
  .card-head p {
    max-width: 100%;
  }

  .brand-row {
    align-items: center;
    gap: 8px;
  }

  .brand-logo-image {
    width: 54px;
  }

  .tracking-card,
  .tracking-result,
  .countdown-card,
  .stats-card {
    padding: 12px;
    border-radius: 12px;
  }

  .status-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .status-pill {
    justify-self: start;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .countdown-timer {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .time-box {
    padding: 8px 4px;
  }

  .time-box strong {
    font-size: 1.05rem;
  }

  .time-box span {
    font-size: 0.54rem;
  }

  .process-inline-table {
    font-size: 0.5rem;
  }

  .process-inline-table th,
  .process-inline-table td {
    padding: 4px 3px;
  }

  .process-inline-table th:nth-child(3),
  .process-inline-table td:nth-child(3),
  .process-inline-table th:nth-child(5),
  .process-inline-table td:nth-child(5),
  .process-inline-table th:nth-child(7),
  .process-inline-table td:nth-child(7) {
    display: none;
  }

  .etat-badge,
  .etat-countdown {
    min-width: 44px;
    font-size: 0.46rem;
  }

  .contact-button {
    width: 100%;
  }
}
