/* ============================================================
   Pages refondues (réexpédition, devis, contact) — base commune
   ------------------------------------------------------------
   Le contenu suit la charte d'envoi.colisbridge.fr : police Jost,
   navy #243269 → #151f42, rose #e6007e, teal #39c4b6, cartes
   arrondies. L'en-tête et le pied de page restent ceux du site.
   Maquettes validées : docs/68, docs/70 et docs/71 de Forward.

   Tout est rangé sous .ui-page (posé sur le <div> racine du contenu)
   pour ne jamais fuir sur les autres pages, qui gardent leur charte.
   Chargée seulement par les pages qui déclarent `pageStyles`.
   ============================================================ */

/* ---------- Police Jost (auto-hébergée, reprise d'envoi) ---------- */
@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jost/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jost/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Le hero passe sous l'en-tête transparent (comme l'accueil) ---------- */
body.page-redesign main#main-content {
  padding-top: 0;
}

/* ---------- Jetons et remise à zéro locale ---------- */
.ui-page {
  --ui-bg: #eef1f7;
  --ui-card: #fff;
  --ui-surface-2: #eef1f7;
  --ui-ink: #243269;
  --ui-ink-deep: #151f42;
  --ui-muted: #6b7390;
  --ui-line: #e3e7f1;
  --ui-line-strong: #c9cfe2;
  --ui-field: #f4f6fb;
  --ui-field-focus: #fff;
  --ui-placeholder: #9aa1bd;
  --ui-focus-ring: rgba(230, 0, 126, 0.1);
  --ui-pink: #e6007e;
  --ui-pink-hover: #cc006f;
  --ui-pink-shadow: rgba(230, 0, 126, 0.3);
  --ui-teal: #39c4b6;
  --ui-teal-ink: #1f9c8f;
  --ui-hero-muted: #b9c0dd;
  --ui-font: Jost, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-family: var(--ui-font);
  color: var(--ui-ink);
  font-size: 16px;
  line-height: 1.5;
}
.ui-page *,
.ui-page *::before,
.ui-page *::after {
  box-sizing: border-box;
}
.ui-page [hidden] {
  display: none !important;
}
.ui-page h1,
.ui-page h2,
.ui-page h3,
.ui-page p,
.ui-page ol,
.ui-page ul,
.ui-page dl,
.ui-page dd,
.ui-page fieldset,
.ui-page legend,
.ui-page address {
  margin: 0;
  padding: 0;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-style: normal;
}
.ui-page h1,
.ui-page h2,
.ui-page h3 {
  color: inherit;
}
.ui-page fieldset {
  border: 0;
  min-width: 0;
}
.ui-page button,
.ui-page input,
.ui-page select,
.ui-page textarea {
  font-family: inherit;
}
.ui-page a {
  text-decoration: none;
}

.ui-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.ui-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero navy (dégradé + halos) ---------- */
.ui-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, var(--ui-ink), var(--ui-ink-deep));
  padding: calc(var(--header-height, 100px) + 56px) 0 132px;
}
.ui-hero > .ui-wrap {
  position: relative;
}
.ui-glow {
  position: absolute;
  border-radius: 99px;
  pointer-events: none;
}
.ui-glow--teal {
  right: -160px;
  top: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(57, 196, 182, 0.3), transparent 70%);
}
.ui-glow--pink {
  left: -140px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(230, 0, 126, 0.28), transparent 70%);
}
.ui-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--ui-teal);
}
.ui-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--ui-teal);
}
.ui-hero h1 {
  font-size: 44px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.7px !important;
  margin: 14px 0 16px;
  color: #fff;
  max-width: 960px;
}
.ui-hero h1 em {
  font-style: normal;
  color: var(--ui-teal);
}
.ui-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ui-hero-muted);
  max-width: 640px;
}

/* Corps qui chevauche le hero */
.ui-body {
  position: relative;
  margin-top: -92px;
  padding-bottom: 72px;
}
.ui-card {
  background: var(--ui-card);
  border-radius: 28px;
  box-shadow: 0 30px 70px -30px rgba(21, 31, 66, 0.45);
  padding: 34px 36px 36px;
}
.ui-card-head {
  margin-bottom: 22px;
}
.ui-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--ui-pink);
  margin-bottom: 6px !important;
}
.ui-h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ui-ink);
  letter-spacing: -0.3px !important;
  outline: none;
}
.ui-sub {
  font-size: 15.5px;
  color: var(--ui-muted);
  margin-top: 6px !important;
}

/* ---------- Boutons ---------- */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 0.15s ease-out, background-color 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.ui-btn:active {
  transform: scale(0.98);
}
.ui-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}
.ui-btn--primary {
  background: var(--ui-pink);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(230, 0, 126, 0.6);
}
.ui-btn--primary:hover {
  background: var(--ui-pink-hover);
  color: #fff;
}
.ui-btn--ghost {
  background: #fff;
  color: var(--ui-ink);
  border: 1.5px solid var(--ui-line);
}
.ui-btn--ghost:hover {
  border-color: var(--ui-line-strong);
  background: var(--ui-field);
}
/* Bouton fantôme sur fond navy (hero, bandeau final) */
.ui-btn--ghost-light {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}
.ui-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.ui-btn--block {
  display: flex;
  width: 100%;
}
.ui-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ui-pink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ui-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.ui-actions--split {
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Champs (dessin du champ et du téléphone d'envoi) ---------- */
.ui-field {
  margin-bottom: 16px;
  min-width: 0;
}
.ui-label,
.ui-legend {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ui-ink);
}
.ui-legend {
  margin-bottom: 10px;
}
.ui-label i {
  font-style: normal;
  font-weight: 400;
  color: var(--ui-muted);
}
.ui-hint {
  margin-top: 6px !important;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ui-muted);
}
.ui-error {
  margin-top: 6px !important;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ui-pink);
}
.ui-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.ui-input {
  border: 1.5px solid var(--ui-line);
  background: var(--ui-field);
  width: 100%;
  height: 48px;
  font-family: var(--ui-font);
  color: var(--ui-ink);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.ui-input::placeholder {
  color: var(--ui-placeholder);
}
.ui-input:focus {
  border-color: var(--ui-pink);
  background: var(--ui-field-focus);
  box-shadow: 0 0 0 4px var(--ui-focus-ring);
  outline: none;
}
.ui-input[aria-invalid="true"] {
  border-color: var(--ui-pink);
  box-shadow: 0 0 0 4px var(--ui-focus-ring);
}
select.ui-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7390' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
textarea.ui-input {
  height: auto;
  min-height: 104px;
  padding: 13px 16px;
  line-height: 1.5;
  resize: vertical;
}
/* Champ avec unité (kg, €) */
.ui-unit {
  position: relative;
}
.ui-unit .ui-input {
  padding-right: 46px;
}
.ui-unit b {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-muted);
  pointer-events: none;
}

/* Téléphone : indicatif + numéro national (composant d'envoi) */
.ui-phone__box {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--ui-line);
  background: var(--ui-field);
  border-radius: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.ui-phone__box:focus-within {
  border-color: var(--ui-pink);
  background: var(--ui-field-focus);
  box-shadow: 0 0 0 4px var(--ui-focus-ring);
}
.ui-phone[data-invalid="true"] .ui-phone__box {
  border-color: var(--ui-pink);
  box-shadow: 0 0 0 4px var(--ui-focus-ring);
}
.ui-phone__country {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  align-self: stretch;
  margin: 0;
  padding: 0 0.625rem 0 0.875rem;
  border-right: 1.5px solid var(--ui-line);
}
.ui-phone__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ui-phone__dial {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ui-ink);
  white-space: nowrap;
}
.ui-phone__arrow {
  display: block;
  width: 0.4em;
  height: 0.4em;
  margin: -4px 0 0 6px;
  color: var(--ui-muted);
  opacity: 0.9;
  border: 1.5px solid;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ui-phone__input {
  flex: auto;
  min-width: 0;
  padding: 0 0.875rem;
  color: var(--ui-ink);
  font-size: 15px;
  font-family: var(--ui-font);
  background: transparent;
  border: none;
  outline: none;
}
.ui-phone__input::placeholder {
  color: var(--ui-placeholder);
}
.ui-phone__select:focus-visible + .ui-phone__dial {
  outline: 2px solid var(--ui-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Pot de miel : hors écran, jamais rempli par un humain */
.ui-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ui-page .ui-submit-error {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(230, 0, 126, 0.08);
  border: 1px solid rgba(230, 0, 126, 0.3);
  color: #b0005f;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.ui-privacy {
  margin-top: 14px !important;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ui-muted);
  text-align: center;
}
.ui-privacy a {
  color: var(--ui-pink);
  font-weight: 600;
}

/* ---------- Écran « envoyé » ---------- */
.ui-page [data-done],
.ui-page [data-again-target] {
  scroll-margin-top: calc(var(--header-height, 100px) + 16px);
}
.ui-done {
  text-align: center;
  padding: 44px 36px 40px;
}
.ui-success {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto;
}
.ui-success span {
  position: absolute;
  border-radius: 999px;
}
.ui-success span:nth-child(1) {
  inset: 0;
  background: rgba(57, 196, 182, 0.1);
}
.ui-success span:nth-child(2) {
  inset: 12px;
  background: rgba(57, 196, 182, 0.16);
}
.ui-success span:nth-child(3) {
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-teal);
  color: #fff;
  box-shadow: 0 14px 30px rgba(57, 196, 182, 0.38);
}
.ui-done h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 18px 0 8px !important;
  outline: none;
}
.ui-done > p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ui-muted);
  max-width: 520px;
  margin: 0 auto !important;
}
.ui-recap {
  max-width: 560px;
  margin: 24px auto 22px !important;
  text-align: left;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  overflow: hidden;
}
.ui-recap div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--ui-line);
}
.ui-recap div:first-child {
  border-top: 0;
}
.ui-recap dt {
  font-size: 13px;
  color: var(--ui-muted);
}
.ui-recap dd {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ui-page .ui-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 560px;
  margin: 16px auto 22px !important;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ui-surface-2);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.ui-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--ui-teal);
}
.ui-note a {
  color: var(--ui-pink);
  font-weight: 600;
  white-space: nowrap;
}

@keyframes ui-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ui-enter {
  animation: ui-in 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 980px) {
  .ui-hero {
    padding: calc(var(--header-height, 100px) + 40px) 0 116px;
  }
  .ui-hero h1 {
    font-size: 34px;
  }
  .ui-lead {
    font-size: 16px;
  }
}
@media (max-width: 640px) {
  .ui-wrap {
    padding: 0 16px;
  }
  .ui-hero {
    padding: calc(var(--header-height, 100px) + 32px) 0 104px;
  }
  .ui-hero h1 {
    font-size: 28px;
    letter-spacing: -0.4px !important;
  }
  .ui-body {
    margin-top: -80px;
    padding-bottom: 48px;
  }
  .ui-card {
    padding: 22px 18px 24px;
    border-radius: 24px;
  }
  .ui-h2 {
    font-size: 23px;
  }
  .ui-row {
    grid-template-columns: 1fr;
  }
  .ui-actions .ui-btn {
    width: 100%;
  }
  .ui-actions--split .ui-btn {
    width: auto;
    flex: 1;
    padding: 0 14px;
  }
  .ui-done {
    padding: 32px 18px 28px;
  }
  .ui-recap div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ui-page *,
  .ui-page *::before {
    animation: none !important;
    transition: none !important;
  }
}
