/* REART — page de suivi client publique. Style du site : blanc, noir, rouge #8B0000 réservé à l'action principale.
   Polices du site (Funnel Display pour les titres, Funnel Sans pour le texte), hébergées ici : aucune requête vers Google. */
@font-face {
  font-family: "Funnel Display"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/funnel-display-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Funnel Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/funnel-sans-latin.woff2") format("woff2");
}
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5c5c5c;
  --line: #e3e3e3;
  --field: #8a8a8a;
  --accent: #8b0000;
  --accent-hover: #6e0000;
  --soft: #f5f5f5;
  --font: "Funnel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Funnel Display", var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font);
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--text); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.page { flex: 1; padding-top: 32px; padding-bottom: 48px; }

/* En-tête calqué sur reartbuild.com : menu à gauche, logo centré, compte et panier à droite. */
.site-header { border-bottom: 1px solid #8f8f8f; background: #fff; }
.header-inner { height: 67px; padding: 0 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.main-nav { display: flex; gap: 30px; }
.main-nav a, .mobile-menu nav a { font-size: 13.3px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; color: #0b0b0b; }
.main-nav a:hover, .mobile-menu nav a:hover { text-decoration: underline; color: #0b0b0b; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.brand { grid-column: 2; display: inline-block; line-height: 0; text-decoration: none; }
.brand img { display: block; width: 76px; height: auto; }
.header-icons { grid-column: 3; justify-self: end; display: flex; gap: 18px; }
.header-icons .icon { color: #0b0b0b; line-height: 0; }
.mobile-menu { display: none; }
@media (max-width: 989px) {
  .header-inner { padding: 0 16px; }
  .main-nav, .icon-account { display: none; }
  .mobile-menu { display: block; grid-column: 1; grid-row: 1; justify-self: start; position: relative; }
  .mobile-menu summary { list-style: none; cursor: pointer; line-height: 0; color: #0b0b0b; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: 44px; left: -16px; width: 100vw; max-width: 100vw; background: #fff;
    border-bottom: 1px solid #8f8f8f; display: grid; gap: 18px; padding: 20px 16px; z-index: 10; }
  .brand { grid-row: 1; }
}
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; padding: 20px 0; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--muted); }

h1, h2, .eyebrow, .btn { font-family: var(--font-display); }
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; font-weight: 600; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 16px; font-weight: 600; }
h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 0 8px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); margin-bottom: 24px; }
.back { margin: 0 0 16px; font-size: .9375rem; }
.back a { color: var(--muted); }
.section-title { margin-top: 40px; font-size: 1.0625rem; }
.aside { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.aside a { color: var(--text); font-weight: 600; }
.fine-print { margin: 16px 0 0; font-size: .8125rem; color: var(--muted); }

/* Cartes : résultat, messages */
.card { border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin: 0 0 24px; }
.card > :last-child { margin-bottom: 0; }
.eyebrow { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.result h2 { font-size: 1.375rem; margin-bottom: 0; overflow-wrap: anywhere; }
.result h3:first-of-type { margin-top: 20px; }
.notice { background: var(--soft); border-color: var(--soft); }
.notice-title { font-weight: 600; }

.products { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.products li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.products .qty { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.status-summary { font-weight: 500; }
.facts { margin: 16px 0 0; display: grid; gap: 12px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.actions { margin-top: 20px; }

/* Formulaires */
.form { margin: 0; }
fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 1.0625rem; padding: 0; margin: 8px 0 12px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field .help { font-size: .8125rem; color: var(--muted); margin: -2px 0 6px; }
.field input:not([type="file"]), .field textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1px solid var(--field); border-radius: 4px; padding: 11px 12px; min-height: 48px;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input[type="file"] { display: block; width: 100%; max-width: 100%; font: inherit; font-size: .9375rem; padding: 10px 0; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--text); outline-offset: 0; border-color: var(--text); }
.has-error input:not([type="file"]), .has-error textarea { border-color: var(--accent); border-width: 2px; padding: 10px 11px; }
.error { color: var(--accent); font-size: .875rem; font-weight: 600; margin: 6px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  border-radius: 4px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { width: 100%; background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--text); }
.btn-secondary:hover { background: var(--text); color: #fff; }

/* Champ piège anti-robot : hors écran, ignoré par les lecteurs d'écran */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
  .page { padding-top: 56px; }
  h1 { font-size: 2rem; }
  .card { padding: 28px; }
  .btn-primary { width: auto; min-width: 220px; }
}

/* Tableau de bord client */
.dashboard h1 { margin-bottom: 20px; overflow-wrap: anywhere; }
.delivery { border: 1px solid var(--text); }
.delivery-label { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.delivery-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
.delivery-note { color: var(--muted); margin: 0; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 8px; }
.summary div { display: grid; gap: 2px; }
.summary dt { font-size: .8125rem; color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.items-title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 8px; font-family: var(--font); font-weight: 500; }
.help-line { color: var(--muted); font-size: .9375rem; margin-top: 8px; }
.card + .card { margin-top: 16px; }
@media (max-width: 380px) { .summary { grid-template-columns: 1fr; } }

/* Encadré de livraison : jaune = en attente, vert = expédiée/suivie, rouge = retard, gris = information. */
.delivery.tone-pending { background: #fff6d6; border-color: #e0b100; }
.delivery.tone-tracked { background: #e8f5ec; border-color: #2e7d4f; }
.delivery.tone-delayed { background: #fdeaea; border-color: #8b0000; }
.delivery.tone-delayed .delivery-value { color: #8b0000; }
.delivery.tone-info { background: var(--soft); border-color: var(--line); }
.delivery .delivery-note { color: #3d3d3d; }
.tracking { margin: 10px 0 0; overflow-wrap: anywhere; }
