/* LiveSea V58 — structured branding, intelligent loader and refined home preview. */
html body img.ls-agency-logo {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: 38px !important;
  flex: 0 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Desktop application sidebar. */
html body .app-brand {
  min-width: 0 !important;
}

html body .app-brand > img.ls-agency-logo {
  width: 68px !important;
  max-width: 68px !important;
  height: 38px !important;
  flex: 0 0 68px !important;
}

html body .app-brand-copy {
  min-width: 0 !important;
}

/* Public header: the grid column always matches the actual logo width. */
html body .marketing-header .marketing-brand {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  min-width: 0 !important;
  max-width: calc(100% - 58px) !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: hidden !important;
}

html body .marketing-brand > img.ls-agency-logo {
  width: 64px !important;
  max-width: 64px !important;
  height: 36px !important;
  flex: 0 0 64px !important;
}

html body .marketing-brand-copy {
  min-width: 0 !important;
  overflow: hidden !important;
}

html body .marketing-brand-copy strong,
html body .marketing-brand-copy small {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html body .marketing-brand-copy strong {
  font-size: 0.96rem !important;
  letter-spacing: -0.035em !important;
}

html body .marketing-brand-copy small {
  font-size: 0.52rem !important;
  letter-spacing: 0.1em !important;
}

/* Mobile drawers: flex layout prevents the horizontal logo from entering the copy column. */
html body .ls-mobile-drawer .app-drawer-header {
  overflow: hidden !important;
}

html body .app-drawer-heading {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 58px) !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  gap: 14px !important;
  overflow: hidden !important;
}

html body .app-drawer-heading > img.ls-agency-logo,
html body .app-drawer-brand-mark.ls-agency-logo {
  width: 62px !important;
  max-width: 62px !important;
  height: 35px !important;
  flex: 0 0 62px !important;
}

html body .app-drawer-heading > div {
  display: grid !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  gap: 2px !important;
  overflow: hidden !important;
}

html body .ls-mobile-drawer .app-drawer-header span,
html body .ls-mobile-drawer .app-drawer-header h2 {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html body .ls-mobile-drawer .app-drawer-header span {
  font-size: 0.58rem !important;
  letter-spacing: 0.105em !important;
}

html body .ls-mobile-drawer .app-drawer-header h2 {
  font-size: 1.08rem !important;
  line-height: 1.08 !important;
}

/* Other brand placements. */
html body .portal-preview-user img.ls-agency-logo {
  width: 58px !important;
  max-width: 58px !important;
  height: 32px !important;
  flex: 0 0 58px !important;
}

html body .home-cta-mark img.ls-agency-logo {
  width: min(260px, 34vw) !important;
  max-width: 260px !important;
  height: auto !important;
  aspect-ratio: 1.76 / 1 !important;
  object-fit: contain !important;
}

html body .site-footer-brand img.ls-agency-logo {
  width: 58px !important;
  max-width: 58px !important;
  height: 32px !important;
  flex: 0 0 58px !important;
}

html body .ls-auth-gate-brand img.ls-agency-logo,
html body .access-denied-card img.ls-agency-logo,
html body .offline-card img.ls-agency-logo {
  width: 76px !important;
  max-width: 76px !important;
  height: 41px !important;
}

@media (max-width: 640px) {
  html body .marketing-header .marketing-brand {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    width: calc(100% - 48px) !important;
    max-width: calc(100% - 48px) !important;
    flex: 1 1 auto !important;
    gap: 10px !important;
  }

  html body .marketing-brand > img.ls-agency-logo {
    width: 60px !important;
    max-width: 60px !important;
    height: 34px !important;
    flex-basis: 60px !important;
  }

  html body .marketing-brand-copy strong {
    font-size: 0.9rem !important;
  }

  html body .marketing-brand-copy small {
    font-size: 0.48rem !important;
  }

  html body .app-drawer-heading {
    max-width: calc(100% - 54px) !important;
    gap: 12px !important;
  }

  html body .app-drawer-heading > img.ls-agency-logo,
  html body .app-drawer-brand-mark.ls-agency-logo {
    width: 58px !important;
    max-width: 58px !important;
    height: 33px !important;
    flex-basis: 58px !important;
  }

  html body .home-cta-mark img.ls-agency-logo {
    width: 180px !important;
    max-width: 46vw !important;
  }
}

@media (max-width: 380px) {
  html body .marketing-header .marketing-brand {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html body .marketing-brand > img.ls-agency-logo {
    width: 54px !important;
    max-width: 54px !important;
    height: 31px !important;
    flex-basis: 54px !important;
  }

  html body .marketing-brand-copy strong {
    font-size: 0.84rem !important;
  }

  html body .app-drawer-heading {
    gap: 10px !important;
  }

  html body .app-drawer-heading > img.ls-agency-logo,
  html body .app-drawer-brand-mark.ls-agency-logo {
    width: 54px !important;
    max-width: 54px !important;
    height: 31px !important;
    flex-basis: 54px !important;
  }
}

/* =========================================================
   LiveSea V58 — accueil : pictogrammes plus lisibles.
   Aucun élément supplémentaire : uniquement deux règles CSS ciblées.
========================================================= */
body:not(.ls-app-page) .portal-preview-card {
  display: flex !important;
  min-height: 128px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

body:not(.ls-app-page) .portal-preview-card .app-icon {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 auto !important;
  stroke-width: 1.7 !important;
}

body:not(.ls-app-page) .portal-preview-card strong {
  margin-top: 14px !important;
}

@media (max-width: 720px) {
  body:not(.ls-app-page) .portal-preview-card {
    min-height: 122px !important;
    padding: 16px 12px !important;
  }

  body:not(.ls-app-page) .portal-preview-card .app-icon {
    width: 38px !important;
    height: 38px !important;
  }
}

@media (max-width: 420px) {
  body:not(.ls-app-page) .portal-preview-card {
    min-height: 112px !important;
  }
}

body:not(.ls-app-page) .news-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: 100%;
  min-width: 0;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
}

/* Aucun halo ni sous-bloc derrière l’image de la rubrique infos. */
body:not(.ls-app-page) .news-preview::before {
  display: none !important;
  content: none !important;
}

body:not(.ls-app-page) .news-preview-head {
  display: grid;
  min-width: 0;
  gap: 14px;
}

body:not(.ls-app-page) .news-preview-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.9rem, 2.7vw, 2.8rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f8f2ff 0%, #f1cb78 55%, #d7a24f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 34px rgba(215, 162, 79, 0.18);
}

body:not(.ls-app-page) .news-preview-caption {
  max-width: 860px;
  margin: 0 auto;
  color: rgba(232, 238, 247, 0.86);
  font-size: 1rem;
  line-height: 1.65;
  text-align: center;
}

body:not(.ls-app-page) .news-preview-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0cb7a 0%, #d8a94a 100%);
  box-shadow: 0 18px 36px rgba(216, 169, 74, 0.18);
  color: #221637;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

/* La photo est affichée seule, centrée et découpée proprement sur ses quatre angles. */
body:not(.ls-app-page) .news-preview-image {
  display: block;
  place-self: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 788px;
  height: auto;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  clip-path: inset(0 round 20px);
}

@media (max-width: 640px) {
  body:not(.ls-app-page) .news-preview {
    gap: 14px;
    padding: 18px;
  }

  body:not(.ls-app-page) .news-preview-title {
    font-size: 1.75rem;
  }

  body:not(.ls-app-page) .news-preview-caption {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body:not(.ls-app-page) .news-preview-badge {
    padding: 11px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
  }

  body:not(.ls-app-page) .news-preview-image {
    border-radius: 16px;
    clip-path: inset(0 round 16px);
  }
}
