/* ==========================================================================
   Uberdem — homepage polish (2026-11-19)
   Scope: ONLY .uberdem-home-steps / -why / -locations / -payment /
          -passengers / -price / -press and .uberdem-card(-grid) descendants.
   Brand: Inter, navy #0B1033, orange #F7941D. No content changes.
   Overrides legacy Elementor post-9.css (selectors .elementor-9
   .elementor-element.elementor-element-XXXX = specificity 0,3,0 to 0,4,0)
   → doubled class selectors + !important where legacy sets the property.
   ========================================================================== */

:root {
  --ub-navy: #0B1033;
  --ub-orange: #F7941D;
  --ub-orange-dark: #E07F0A;
  --ub-orange-soft: #FEF1E1;
  --ub-ink: #1F2433;
  --ub-muted: #5B6275;
  --ub-line: #E6E8EF;
  --ub-panel: #F5F6F9;
  --ub-card-radius: 16px;
  --ub-card-shadow: 0 1px 2px rgba(11, 16, 51, .04), 0 8px 24px rgba(11, 16, 51, .06);
  --ub-card-shadow-hover: 0 2px 4px rgba(11, 16, 51, .05), 0 14px 32px rgba(11, 16, 51, .10);
  --ub-section-y: 60px;
  --ub-grid-gap: 24px;
}
@media (max-width: 767px) {
  :root { --ub-section-y: 36px; --ub-grid-gap: 16px; }
}

/* --------------------------------------------------------------------------
   1. Section rhythm — 60px desktop / 36px mobile, no pure spacers
   -------------------------------------------------------------------------- */
.uberdem-home-steps.uberdem-home-steps,
.uberdem-home-why.uberdem-home-why,
.uberdem-home-locations.uberdem-home-locations,
.e-parent:has(.uberdem-home-passengers, .uberdem-home-price) {
  --padding-top: var(--ub-section-y) !important;
  --padding-bottom: var(--ub-section-y) !important;
  padding-top: var(--ub-section-y) !important;
  padding-bottom: var(--ub-section-y) !important;
}

.uberdem-home-steps .elementor-widget-spacer,
.uberdem-home-why .elementor-widget-spacer,
.uberdem-home-locations .elementor-widget-spacer,
.e-parent:has(.uberdem-home-passengers, .uberdem-home-price) .elementor-widget-spacer {
  display: none !important;
}

/* Spacers removed in the services/text section: restore a measured rhythm */
.e-parent:has(.uberdem-home-passengers, .uberdem-home-price) > .e-con-inner {
  row-gap: 40px !important;
}
.e-con:has(> .e-con > .uberdem-home-passengers),
.e-con:has(> .e-con > .uberdem-home-price),
.e-con:has(> .uberdem-home-passengers),
.e-con:has(> .uberdem-home-price) {
  --gap: 16px !important;
  row-gap: 16px !important;
}
@media (max-width: 767px) {
  .e-parent:has(.uberdem-home-passengers, .uberdem-home-price) > .e-con-inner { row-gap: 28px !important; }
}

/* --------------------------------------------------------------------------
   2. Centered section headers (kicker + H2 + intro) — direct children only,
      editorial paragraphs elsewhere stay as they are.
   -------------------------------------------------------------------------- */
.uberdem-home-steps > .e-con-inner > .elementor-widget-heading,
.uberdem-home-steps > .elementor-widget-heading,
.uberdem-home-why > .e-con-inner > .elementor-widget-heading,
.uberdem-home-why > .elementor-widget-heading,
.uberdem-home-why > .e-con-inner > .elementor-widget-text-editor,
.uberdem-home-why > .elementor-widget-text-editor,
.uberdem-home-locations > .e-con-inner > .elementor-widget-heading,
.uberdem-home-locations > .elementor-widget-heading {
  text-align: center !important;
  align-self: center !important;
  width: 100% !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.uberdem-home-steps > .e-con-inner > .elementor-widget-heading .elementor-heading-title,
.uberdem-home-steps > .elementor-widget-heading .elementor-heading-title,
.uberdem-home-why > .e-con-inner > .elementor-widget-heading .elementor-heading-title,
.uberdem-home-why > .elementor-widget-heading .elementor-heading-title,
.uberdem-home-why > .e-con-inner > .elementor-widget-text-editor,
.uberdem-home-why > .e-con-inner > .elementor-widget-text-editor p,
.uberdem-home-why > .elementor-widget-text-editor p,
.uberdem-home-locations > .e-con-inner > .elementor-widget-heading .elementor-heading-title,
.uberdem-home-locations > .elementor-widget-heading .elementor-heading-title {
  text-align: center !important;
}
/* Space between header block and first grid */
.uberdem-home-steps > .e-con-inner > .elementor-widget-heading:has(+ .e-con) > .elementor-widget-container,
.uberdem-home-locations > .e-con-inner > .elementor-widget-heading:has(+ .e-con) > .elementor-widget-container {
  margin-bottom: 28px !important;
}
.uberdem-home-why > .e-con-inner > .elementor-widget-text-editor { margin-bottom: 4px !important; }

/* --------------------------------------------------------------------------
   3. Card grids — real CSS grid, single-card wrappers flattened so every
      .uberdem-card is a grid item (no broken alignment, equal heights).
   -------------------------------------------------------------------------- */
.uberdem-card-grid.uberdem-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ub-grid-gap) !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  --padding-top: 0px !important;
  --padding-bottom: 0px !important;
  padding: 0 !important;
}
.uberdem-home-why .uberdem-card-grid + .uberdem-card-grid,
.uberdem-home-why .uberdem-card-grid { margin-top: 28px !important; }
.uberdem-home-why .uberdem-card-grid + .uberdem-card-grid { margin-top: var(--ub-grid-gap) !important; }
.uberdem-home-locations .uberdem-card-grid { margin-top: var(--ub-grid-gap) !important; }

/* Intermediate Elementor wrappers (row / single-card holders) */
.uberdem-card-grid .e-con:not(.uberdem-card):has(.uberdem-card) {
  display: contents !important;
}

.uberdem-card-grid .uberdem-card.uberdem-card {
  --width: 100% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  --gap: 12px !important;
  text-align: center !important;
  padding: 32px 26px !important;
  --padding-top: 32px !important;
  --padding-bottom: 32px !important;
  --padding-left: 26px !important;
  --padding-right: 26px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--ub-line) !important;
  border-radius: var(--ub-card-radius) !important;
  box-shadow: var(--ub-card-shadow) !important;
  position: relative !important;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.uberdem-card-grid .uberdem-card > .elementor-widget,
.uberdem-card-grid .uberdem-card > .e-con {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  text-align: center !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.uberdem-card-grid .uberdem-card .elementor-heading-title,
.uberdem-card-grid .uberdem-card .elementor-widget-text-editor,
.uberdem-card-grid .uberdem-card .elementor-widget-text-editor p {
  text-align: center !important;
}
.uberdem-card-grid .uberdem-card .elementor-widget-text-editor p:last-child { margin-bottom: 0 !important; }

/* Fixed-width widgets (step number badges…) centered */
.uberdem-card-grid .uberdem-card > .elementor-widget__width-initial,
.uberdem-card-grid .uberdem-card > .elementor-widget-mobile__width-initial {
  width: auto !important;
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Icons (icon widget + icon-box) centered, brand-tinted */
.uberdem-card .elementor-widget-icon,
.uberdem-card .elementor-icon-wrapper {
  text-align: center !important;
  align-self: center !important;
  width: auto !important;
  line-height: 0;
}
.uberdem-card .elementor-icon-box-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 16px !important;
}
.uberdem-card .elementor-icon-box-icon {
  margin: 0 auto !important;
  display: inline-flex !important;
  justify-content: center;
}
.uberdem-card .elementor-icon-box-content { width: 100%; text-align: center !important; }
.uberdem-card .elementor-icon-box-title { margin: 0 0 8px !important; text-align: center !important; }
.uberdem-card .elementor-icon-box-description { margin: 0 !important; text-align: center !important; }
.uberdem-card .elementor-view-stacked .elementor-icon {
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 1px rgba(247, 148, 29, .18);
}

/* Buttons inside cards centered */
.uberdem-card .elementor-widget-button,
.uberdem-card .elementor-button-wrapper {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
}

/* ---- 3a. Steps (Déménagez en toute simplicité) ---- */
.uberdem-home-steps .uberdem-card.uberdem-card {
  padding: 30px 24px 28px !important;
  gap: 14px !important;
}
.uberdem-home-steps .uberdem-card > .elementor-widget__width-initial > .elementor-widget-container {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: var(--ub-navy) !important;
  box-shadow: 0 0 0 6px rgba(247, 148, 29, .14);
}
.uberdem-home-steps .uberdem-card > .elementor-widget__width-initial .elementor-heading-title {
  line-height: 1 !important;
  color: #FFFFFF !important;
}
.uberdem-home-steps .uberdem-card .elementor-widget-heading:not(.elementor-widget__width-initial) .elementor-heading-title {
  font-size: 17px !important;
  line-height: 1.35 !important;
}

/* ---- 3b. Why us (icon-box cards + image service cards) ---- */
.uberdem-home-why .uberdem-card.uberdem-card { padding: 32px 26px !important; }

.uberdem-home-why .uberdem-service-cards .uberdem-card.uberdem-card {
  padding: 0 !important;
  --padding-top: 0px !important;
  --padding-bottom: 0px !important;
  --padding-left: 0px !important;
  --padding-right: 0px !important;
  gap: 0 !important;
  overflow: hidden !important;
}
.uberdem-home-why .uberdem-service-cards .uberdem-card > .elementor-widget-image,
.uberdem-home-why .uberdem-service-cards .uberdem-card > .elementor-widget-image .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}
.uberdem-home-why .uberdem-service-cards .uberdem-card > .elementor-widget-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  border-radius: 0 !important;
  background: var(--ub-panel);
}
.uberdem-home-why .uberdem-service-cards .uberdem-card > .e-con {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  --gap: 8px !important;
  padding: 24px 24px 26px !important;
  --padding-top: 24px !important;
  --padding-bottom: 26px !important;
  --padding-left: 24px !important;
  --padding-right: 24px !important;
}
/* keep the CTA at the bottom so the three cards line up */
.uberdem-home-why .uberdem-service-cards .uberdem-card .elementor-widget-button {
  margin-top: auto !important;
  padding-top: 6px;
}
.uberdem-home-why .uberdem-service-cards .uberdem-card:hover,
.uberdem-home-why .uberdem-service-cards .uberdem-card:focus-within {
  box-shadow: var(--ub-card-shadow-hover) !important;
  border-color: rgba(247, 148, 29, .45) !important;
  transform: translateY(-2px);
}

/* Phone CTA under the why grids: centered, no extra whitespace */
.uberdem-home-why .e-con:has(> .elementor-widget-button):not(.uberdem-card):not(.uberdem-card-grid *) {
  --justify-content: center !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 28px !important;
  padding: 0 !important;
}
.uberdem-home-why .e-con:has(> .elementor-widget-button):not(.uberdem-card):not(.uberdem-card-grid *) .elementor-button-wrapper,
.uberdem-home-why .e-con:has(> .elementor-widget-button):not(.uberdem-card):not(.uberdem-card-grid *) .elementor-widget-button {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
}

/* ---- 3c. Locations / payment cards ---- */
.uberdem-home-payment.uberdem-home-payment {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.uberdem-home-payment .uberdem-card.uberdem-card {
  padding: 26px 20px !important;
  gap: 14px !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFBFD 100%) !important;
}
.uberdem-home-payment .uberdem-card .elementor-heading-title {
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: var(--ub-ink) !important;
}

/* --------------------------------------------------------------------------
   4. Passengers / price boxes (section d36525d) — centered encarts
   -------------------------------------------------------------------------- */
/* flatten the bordered legacy wrapper so the styled box is the only frame */
.e-con:not(.uberdem-home-passengers):has(> .uberdem-home-passengers),
.e-con:not(.uberdem-home-price):has(> .uberdem-home-price) {
  display: contents !important;
}
.uberdem-home-passengers.uberdem-home-passengers,
.uberdem-home-price.uberdem-home-price {
  --width: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  --gap: 12px !important;
  text-align: center !important;
  padding: 26px 24px !important;
  --padding-top: 26px !important;
  --padding-bottom: 26px !important;
  --padding-left: 24px !important;
  --padding-right: 24px !important;
  border: 1px solid var(--ub-line) !important;
  border-radius: var(--ub-card-radius) !important;
  box-shadow: var(--ub-card-shadow) !important;
  background: #FFFFFF !important;
}
.uberdem-home-price.uberdem-home-price {
  background: var(--ub-orange-soft) !important;
  border-color: rgba(247, 148, 29, .35) !important;
}
.uberdem-home-passengers > .elementor-widget,
.uberdem-home-price > .elementor-widget {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}
.uberdem-home-passengers > .elementor-widget-icon,
.uberdem-home-price > .elementor-widget-icon { width: auto !important; align-self: center !important; }
.uberdem-home-passengers .elementor-icon-wrapper,
.uberdem-home-price .elementor-icon-wrapper { text-align: center !important; line-height: 0; }
.uberdem-home-price .elementor-view-stacked .elementor-icon { background-color: #FFFFFF !important; }
.uberdem-home-passengers .elementor-heading-title,
.uberdem-home-price .elementor-heading-title {
  text-align: center !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: var(--ub-ink) !important;
}
@media (max-width: 767px) {
  .uberdem-home-passengers .elementor-heading-title,
  .uberdem-home-price .elementor-heading-title { font-size: 16px !important; }
}

/* --------------------------------------------------------------------------
   5. Press (native markup)
   section.uberdem-home-press > .uberdem-home-press__inner >
     .uberdem-home-press__copy (h2, h3, p, a.uberdem-press-link)
     + a.uberdem-home-press__article (img, span)
   -------------------------------------------------------------------------- */
.uberdem-home-press {
  background: #FFFFFF;
  padding: var(--ub-section-y) 32px;
  font-family: "Inter", sans-serif;
}
.uberdem-home-press__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--ub-panel);
  border: 1px solid var(--ub-line);
  border-radius: 20px;
  box-sizing: border-box;
}
.uberdem-home-press__copy {
  text-align: left;
  min-width: 0;
}
.uberdem-home-press__copy h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ub-ink);
  letter-spacing: -.01em;
}
.uberdem-home-press__copy h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ub-ink);
}
.uberdem-home-press__copy p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ub-muted);
}
.uberdem-home-press .uberdem-press-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--ub-navy);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .2s ease, transform .2s ease;
}
.uberdem-home-press .uberdem-press-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
  transition: transform .2s ease;
}
.uberdem-home-press .uberdem-press-link:hover,
.uberdem-home-press .uberdem-press-link:focus-visible {
  background: #1A2150;
  color: #FFFFFF !important;
}
.uberdem-home-press .uberdem-press-link:hover svg { transform: translateX(3px); }
.uberdem-home-press .uberdem-press-link:focus-visible,
.uberdem-home-press__article:focus-visible {
  outline: 3px solid var(--ub-orange);
  outline-offset: 3px;
}

.uberdem-home-press__article {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 40px 28px;
  background: #FFFFFF;
  border: 1px solid var(--ub-line);
  border-radius: var(--ub-card-radius);
  box-shadow: var(--ub-card-shadow);
  text-align: center;
  text-decoration: none !important;
  color: var(--ub-ink) !important;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.uberdem-home-press__article img {
  position: static !important;
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto;
  transform: none !important;
}
.uberdem-home-press__article span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ub-orange-dark);
}
.uberdem-home-press__article svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform .2s ease;
}
.uberdem-home-press__article:hover {
  box-shadow: var(--ub-card-shadow-hover);
  border-color: rgba(247, 148, 29, .45);
  transform: translateY(-2px);
}
.uberdem-home-press__article:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .uberdem-home-payment.uberdem-home-payment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uberdem-card-grid .uberdem-card.uberdem-card { padding: 26px 20px !important; }
  .uberdem-home-press__inner { gap: 32px; padding: 36px; }
}

@media (max-width: 767px) {
  .uberdem-card-grid.uberdem-card-grid,
  .uberdem-home-payment.uberdem-home-payment {
    grid-template-columns: minmax(0, 1fr);
  }
  .uberdem-card-grid .uberdem-card.uberdem-card { padding: 24px 20px !important; }
  .uberdem-home-why .uberdem-service-cards .uberdem-card.uberdem-card { padding: 0 !important; }
  .uberdem-home-why .uberdem-service-cards .uberdem-card > .e-con { padding: 20px 20px 22px !important; }
  .uberdem-home-payment .uberdem-card.uberdem-card {
    padding: 20px 18px !important;
    gap: 10px !important;
  }
  .uberdem-home-steps > .e-con-inner > .elementor-widget-heading:has(+ .e-con) > .elementor-widget-container,
  .uberdem-home-locations > .e-con-inner > .elementor-widget-heading:has(+ .e-con) > .elementor-widget-container {
    margin-bottom: 20px !important;
  }
  .uberdem-home-why .uberdem-card-grid { margin-top: 20px !important; }
  .uberdem-home-why .e-con:has(> .elementor-widget-button):not(.uberdem-card):not(.uberdem-card-grid *) { margin-top: 20px !important; }
  .uberdem-home-passengers.uberdem-home-passengers,
  .uberdem-home-price.uberdem-home-price { padding: 22px 18px !important; }

  .uberdem-home-press { padding: var(--ub-section-y) 20px; }
  .uberdem-home-press__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 20px;
    border-radius: 16px;
  }
  .uberdem-home-press__copy h2 { font-size: 26px; }
  .uberdem-home-press__copy h3 { font-size: 18px; }
  .uberdem-home-press__copy p { font-size: 15px; margin-bottom: 20px; }
  .uberdem-home-press .uberdem-press-link { width: 100%; justify-content: center; box-sizing: border-box; }
  .uberdem-home-press__article { padding: 28px 20px; gap: 14px; }
  .uberdem-home-press__article img { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .uberdem-card,
  .uberdem-home-press__article,
  .uberdem-home-press .uberdem-press-link,
  .uberdem-home-press .uberdem-press-link svg,
  .uberdem-home-press__article svg { transition: none !important; }
  .uberdem-card:hover,
  .uberdem-home-press__article:hover { transform: none !important; }
}

/* Two benefits per row at phone widths, including iPhone 15. */
.uberdem-benefits-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;align-items:stretch}
.uberdem-benefits-pair>.uberdem-home-passengers,.uberdem-benefits-pair>.uberdem-home-price{min-width:0!important;height:100%;padding:22px 14px!important}
@media(max-width:767px){
 .uberdem-card-grid.uberdem-home-payment.uberdem-home-payment{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .uberdem-home-locations .uberdem-card-grid.uberdem-home-payment .uberdem-card.uberdem-card{width:100%!important;max-width:100%!important;min-width:0!important;flex-basis:auto!important;justify-self:stretch!important;min-height:168px!important;padding:18px 12px!important;gap:12px!important}
 .uberdem-home-payment .uberdem-card .elementor-heading-title{font-size:13px!important;line-height:1.5!important}
 .uberdem-benefits-pair{gap:12px!important}
 .uberdem-benefits-pair .elementor-heading-title{font-size:14px!important;line-height:1.45!important}
 .uberdem-benefits-pair .elementor-icon{font-size:23px!important;padding:12px!important}
}
