/*
  En-tete, pied de page et decor d'arriere-plan, alignes sur unimove.fr.
  Le vitrine pose une barre blanche translucide, un logo a gauche, et des
  "cartes" arrondies tres pales qui flottent derriere le contenu. On reprend
  les trois, en gardant les fonctions propres au tunnel de devis :
  le lien de rappel immediat et le bandeau UNILoc dynamique.

  Toutes les couleurs viennent de tokens.css.
*/

/* ---------- Decor : les cartes arrondies du vitrine ---------- */
/*
  Couche fixe derriere tout le contenu. Purement decorative, donc masquee
  aux lecteurs d'ecran et inerte au clic. Le vitrine ne l'affiche qu'a
  partir du "xl" ; on fait pareil pour ne pas encombrer les petits ecrans.
*/
.um-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.um-bg span {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .6;
}
.um-bg .s1 {
  width: 620px; height: 620px;
  left: -190px; top: -160px;
  background-image: url("../../../assets/images/design-ui/vitrine/bg-square-01.webp");
}
.um-bg .s2 {
  width: 680px; height: 680px;
  right: -320px; top: -120px;
  background-image: url("../../../assets/images/design-ui/vitrine/bg-square-04.webp");
}
.um-bg .s3 {
  width: 520px; height: 520px;
  left: -170px; bottom: 6%;
  background-image: url("../../../assets/images/design-ui/vitrine/bg-square-03.webp");
}
.um-bg .s4 {
  width: 560px; height: 560px;
  right: -220px; bottom: -180px;
  background-image: url("../../../assets/images/design-ui/vitrine/bg-square-05.webp");
}
@media (max-width: 1199px) {
  .um-bg { display: none; }
}

/* Le contenu passe devant le decor. */
.page > header,
.page > .um-content,
.page > footer {
  position: relative;
  z-index: 1;
}

/* ---------- En-tete ---------- */
.um-header {
  position: sticky;
  top: 0;
  z-index: 991;
  /*
    Fond quasi-opaque : en semi-transparent (.85) le contenu qui défile
    dessous restait lisible en transparence sous l'en-tête, ce qui donnait
    l'impression d'un doublon de carte flouté par-dessus la page.
  */
  background: rgba(237, 241, 250, .98);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--um-line);
}
.um-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.um-header__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.um-header__logo img {
  height: 34px;
  width: auto;
  display: block;
}
/*
  Le logo mene au site vitrine ; cette pastille, a sa droite, ramene au debut
  de la demande de devis.
*/
.um-header__devis,
.um-header__tool {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--um-ink-muted);
  background: var(--um-bg-sunken);
  box-shadow: var(--um-shadow-inset);
  transition: color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.um-header__devis .fa,
.um-header__tool .fa { font-size: 16px; }
.um-header__devis:hover,
.um-header__tool:hover {
  color: var(--um-primary);
  box-shadow: var(--um-shadow-inset), inset 0 0 0 1px var(--um-primary);
}
/* La pastille "outil" est séparée du bloc devis par un léger retrait. */
.um-header__tool { margin-left: -6px; }
/* Bandeau UNILoc : n'apparait que sur les pages location-camion. */
.um-header__zone {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: var(--um-ink-strong);
  font-size: 15px;
}
.um-header__zone:only-of-type { text-align: right; }
.um-header__spacer { flex: 1 1 auto; }

.um-header__callback {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 22px;
  border-radius: var(--um-radius-pill);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: var(--um-ink-invert);
  background-color: var(--um-primary);
  background-image: var(--um-primary-gradient);
  box-shadow: var(--um-shadow-raised);
  transition: box-shadow .2s ease-in-out;
}
.um-header__callback:hover { box-shadow: var(--um-shadow-raised-hover); }
.um-header__callback img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

@media (max-width: 640px) {
  .um-header__inner { padding: 10px 14px; gap: 12px; }
  .um-header__logo img { height: 28px; }
  .um-header__zone { display: none; }
  .um-header__callback span { display: none; }
  .um-header__callback { padding: 10px; }
  .um-header__callback img { margin: 0; }
}

/* ---------- Pied de page ---------- */
.um-footer {
  margin-top: 80px;
  background: var(--um-bg-muted);
  color: var(--um-ink);
  border-top: 6px solid var(--um-primary);
  border-image: linear-gradient(90deg, #1865E0 10%, #199EF2 50%, #009AB3 100%) 1;
}
.um-footer a { color: var(--um-ink-muted); text-decoration: none; }
.um-footer a:hover { color: var(--um-primary); }

.um-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.um-footer h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--um-ink-strong);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.um-footer__brand p { margin: 0 0 18px; max-width: 34ch; line-height: 1.6; }
.um-footer__brand img[alt~="UNIMOVE"] { height: 30px; width: auto; margin-bottom: 18px; display: block; }
#img-paiement-5x { max-width: 220px; height: auto; }

.um-footer__col p { margin: 0 0 10px; line-height: 1.7; }
.um-footer__col .fa { color: var(--um-primary); margin-right: 6px; }
.um-footer__col ul { list-style: none; margin: 0; padding: 0; }
.um-footer__col li { padding: 5px 0; line-height: 1.5; }

.um-footer__bar {
  border-top: 1px solid var(--um-line-strong);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--um-ink-muted);
}
.um-footer__bar p { margin: 0; }
.um-footer__home { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.um-footer__home .fa { color: var(--um-primary); }

@media (max-width: 900px) {
  .um-footer__inner { grid-template-columns: 1fr 1fr; padding: 40px 18px 24px; gap: 28px; }
}
@media (max-width: 560px) {
  .um-footer__inner { grid-template-columns: 1fr; }
  .um-footer__bar { flex-direction: column; text-align: center; }
}

/* ---------- Pages de contenu SEO (liens du pied de page) ---------- */
/*
  Ces pages n'avaient aucun conteneur : le texte courait d'un bord a l'autre.
  Largeur de lecture confortable, rythme des titres, liens visibles.
*/
.page-seo {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.page-seo h1 {
  margin: 0 0 24px;
}
.page-seo h2 {
  margin: 40px 0 12px;
}
.page-seo h3 {
  margin: 28px 0 10px;
}
.page-seo p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--um-ink);
}
.page-seo a {
  color: var(--um-primary);
  text-decoration: underline;
}
.page-seo a:hover {
  color: var(--um-primary-active);
}
.page-seo ul,
.page-seo ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  line-height: 1.7;
}
.page-seo li {
  margin: 4px 0;
}

/* ---------- Page 404 ---------- */
.erreur-page {
  max-width: 520px;
  margin: 72px auto;
  padding: 0 24px;
  text-align: center;
}
.erreur-page svg { width: 56px; height: 56px; margin-bottom: 20px; }
.erreur-page h1 { font-size: 26px; margin: 0 0 12px; color: var(--um-ink-strong); }
.erreur-page p { margin: 0 0 8px; line-height: 1.6; color: var(--um-ink); }
.erreur-page__detail { color: var(--um-ink-muted); font-size: 14px; }
.erreur-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.um-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--um-radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--um-ink-invert);
  background-color: var(--um-primary);
  background-image: var(--um-primary-gradient);
  box-shadow: 0 6px 16px rgba(15, 101, 197, .28);
  transition: box-shadow .2s ease-in-out;
}
.um-btn:hover { box-shadow: 0 8px 22px rgba(15, 101, 197, .36); }
.um-btn--ghost {
  color: var(--um-primary);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--um-primary);
}
.um-btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--um-primary-active); color: var(--um-primary-active); }
