/* =========================================================
   PUBLIC V2 - FOUNDATION
   Shared layout / header / buttons / footer
   ========================================================= */

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
  --color-primary: #164f84;
  --color-primary-dark: #08284d;
  --color-secondary: #0d8f9b;
  --color-secondary-dark: #0f6e75;

  --color-heading: #07345f;
  --color-text: #18344f;
  --color-text-muted: #64748b;

  --color-border: #dce7f2;
  --color-surface: #ffffff;
  --color-surface-muted: #f6f9fc;

  --shadow-sm: 0 10px 24px rgba(16, 36, 73, 0.04);
  --shadow-md: 0 16px 34px rgba(16, 36, 73, 0.07);
}

/* =========================================================
   02. BASE
   ========================================================= */

body.public-v2-page {
  margin: 0;
  color: var(--color-text);
  background: #ffffff;
  font-family: "Fira Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.public-v2-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--color-text);
  background: #ffffff;
}

.public-v2-main {
  flex: 1;
}

.container-ui {
  width: min(100% - 40px, 1320px);
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
}

@media (max-width: 767px) {
  .container-ui {
    width: min(100% - 28px, 1320px);
  }
}

/* =========================================================
   03. TYPOGRAPHY HELPERS
   ========================================================= */

.ui-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #1fc4d1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ui-page-title {
  margin: 0;
  color: var(--color-heading);
  font-size: 50px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ui-section-title {
  margin: 0;
  color: var(--color-heading);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ui-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 991px) {
  .ui-page-title {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .ui-page-title {
    font-size: 34px;
  }

  .ui-section-title {
    font-size: 24px;
    line-height: 1.18;
  }

  .ui-lead {
    font-size: 15px;
    line-height: 1.65;
  }
}

/* =========================================================
   04. BUTTONS
   ========================================================= */

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.ui-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.ui-btn--primary {
  color: #ffffff;
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.ui-btn--primary:hover {
  color: #ffffff;
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  box-shadow: 0 10px 24px rgba(21, 102, 113, 0.18);
}

.ui-btn--secondary {
  color: var(--color-primary);
  background: #ffffff;
  border-color: var(--color-border);
}

.ui-btn--secondary:hover {
  color: var(--color-primary);
  background: #f6f9fc;
  border-color: #cfdeeb;
}

.ui-btn--secondary-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(6px);
}

.ui-btn--secondary-light:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
}

.ui-btn--ghost {
  color: var(--color-primary);
  background: transparent;
  border-color: transparent;
}

.ui-btn--ghost:hover {
  color: var(--color-secondary);
  background: #eef8fa;
}

/* =========================================================
   05. HEADER / TOPBAR
   ========================================================= */

.public-v2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #dce7f2;
  box-shadow: 0 4px 18px rgba(16, 36, 73, 0.035);
}

/* ---------- topbar ---------- */

.public-v2-topbar {
  min-height: 34px;
  color: #ffffff;
  background: linear-gradient(90deg, #08284d 0%, #0f4f7c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.public-v2-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 34px;
}

.public-v2-topbar__ticker,
.public-v2-topbar__links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.public-v2-topbar__ticker {
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.public-v2-topbar__ticker i {
  flex: 0 0 auto;
  color: #1fc4d1;
  font-size: 14px;
}

.public-v2-topbar__ticker span,
.public-v2-topbar__ticker a {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.public-v2-topbar__ticker a:hover {
  color: #ffffff;
}

.public-v2-topbar__links {
  flex: 0 0 auto;
  gap: 18px;
}

.public-v2-topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.public-v2-topbar__links a:hover {
  color: #1fc4d1;
}

.public-v2-topbar__links i {
  color: currentColor;
  font-size: 13px;
}

@media (max-width: 991px) {
  .public-v2-topbar__inner {
    gap: 14px;
  }

  .public-v2-topbar__ticker {
    font-size: 12px;
  }

  .public-v2-topbar__links {
    gap: 12px;
  }

  .public-v2-topbar__links a {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .public-v2-topbar {
    min-height: 32px;
  }

  .public-v2-topbar__inner {
    min-height: 32px;
  }

  .public-v2-topbar__ticker {
    display: none;
  }

  .public-v2-topbar__links {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   06. NAVBAR
   ========================================================= */

.public-v2-navbar {
  min-height: 80px;
  padding: 10px 0;
}

.public-v2-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  color: inherit;
  text-decoration: none;
}

.public-v2-brand--full {
  gap: 12px;
  flex-shrink: 0;
}

.public-v2-brand__logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 58px;
  object-fit: contain;
}

.public-v2-brand__divider {
  flex-shrink: 0;
  width: 1px;
  height: 64px;
  border-radius: 999px;
  background: rgba(29, 142, 150, 0.72);
}

.public-v2-brand__title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 210px;
  line-height: 1.04;
}

.public-v2-brand__title-main {
  color: #2b4f78;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-v2-navbar__toggler {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.public-v2-navbar__toggler:focus {
  border-color: #cfe0ee;
  box-shadow: none;
}

.public-v2-navbar__collapse {
  align-items: center;
}

.public-v2-navbar__nav {
  gap: 8px;
}

.public-v2-navbar__nav .nav-link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
}

.public-v2-navbar__nav .nav-link:hover,
.public-v2-navbar__nav .nav-link:focus,
.public-v2-navbar__nav .nav-link.show,
.public-v2-navbar__nav .nav-link[aria-expanded="true"] {
  color: #0d8f9b;
  background: #eef8fa;
}

.public-v2-navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.public-v2-navbar__actions .ui-btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

@media (max-width: 1399px) {
  .public-v2-brand__logo {
    height: 52px;
  }

  .public-v2-brand__divider {
    height: 58px;
  }

  .public-v2-brand__title-group {
    max-width: 180px;
  }

  .public-v2-brand__title-main {
    font-size: 10px;
  }

  .public-v2-navbar__nav .nav-link {
    padding: 10px 8px;
    font-size: 13px;
  }
}

@media (max-width: 1199px) {
  .public-v2-navbar {
    min-height: 74px;
  }

  .public-v2-brand {
    margin-right: 0;
  }

  .public-v2-brand__logo {
    height: 46px;
  }

  .public-v2-brand__divider {
    height: 50px;
  }

  .public-v2-brand__title-group {
    max-width: 150px;
  }

  .public-v2-brand__title-main {
    font-size: 9px;
  }

  .public-v2-navbar__collapse {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 36, 73, 0.06);
  }

  .public-v2-navbar__nav {
    gap: 4px;
    margin-bottom: 14px;
  }

  .public-v2-navbar__nav .nav-link {
    padding: 12px 10px;
  }

  .public-v2-navbar__actions {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .public-v2-navbar__actions .ui-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .public-v2-navbar {
    min-height: 68px;
    padding: 8px 0;
  }

  .public-v2-brand--full {
    gap: 10px;
  }

  .public-v2-brand__logo {
    height: 40px;
  }

  .public-v2-brand__divider {
    height: 44px;
  }

  .public-v2-brand__title-group {
    max-width: 120px;
  }

  .public-v2-brand__title-main {
    font-size: 8px;
  }

  .public-v2-navbar__collapse {
    padding: 14px;
  }
}

/* =========================================================
   07. NAVBAR DROPDOWN
   ========================================================= */

.public-v2-navbar__dropdown-menu {
  min-width: 210px;
  padding: 10px;
  border: 1px solid #dce7f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(16, 36, 73, 0.10);
}

.public-v2-navbar__dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 700;
}

.public-v2-navbar__dropdown-menu .dropdown-item:hover,
.public-v2-navbar__dropdown-menu .dropdown-item:focus {
  color: #0d8f9b;
  background: #eef8fa;
}

.public-v2-navbar .dropdown-toggle::after {
  margin-left: 8px;
  vertical-align: 0.12em;
  border-top-color: currentColor;
}

@media (min-width: 1200px) {
  .public-v2-navbar__dropdown:hover .public-v2-navbar__dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* =========================================================
   08. FOOTER
   ========================================================= */

.public-v2-footer {
  margin-top: 0;
  padding: 48px 0 22px;
  border-top: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #031a3a 0%, #07244f 52%, #0b2f63 100%);
}

.public-v2-footer--rich {
  margin-top: 0;
}

.public-v2-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 0.9fr 1fr;
  gap: 44px;
}

.public-v2-footer__title {
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.public-v2-footer__title-line {
  display: inline-block;
  width: 34px;
  height: 4px;
  margin: 12px 0 20px;
  border-radius: 999px;
  background: #31c5d2;
}

.public-v2-footer__text,
.public-v2-footer__meta {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.75;
}

.public-v2-footer__meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.public-v2-footer__bullets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.65;
}

.public-v2-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.public-v2-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.public-v2-footer__socials a:hover {
  transform: translateY(-1px);
  color: #31c5d2;
  border-color: rgba(49, 197, 210, 0.48);
  background: rgba(49, 197, 210, 0.12);
}

.public-v2-footer__menu {
  display: grid;
}

.public-v2-footer__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  transition: color 0.18s ease;
}

.public-v2-footer__menu a:hover {
  color: #31c5d2;
}

.public-v2-footer__menu a span {
  color: #31c5d2;
  font-size: 20px;
  line-height: 1;
  transition: color 0.18s ease;
}

.public-v2-footer__menu a:hover span {
  color: #ffffff;
}

.public-v2-footer__contact-list {
  display: grid;
  gap: 16px;
}

.public-v2-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.6;
}

.public-v2-footer__contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.public-v2-footer__contact-item a:hover {
  color: #31c5d2;
}

.public-v2-footer__contact-icon {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}



.public-v2-footer__bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.public-v2-footer__copyright {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.public-v2-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.public-v2-footer__legal a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.18s ease;
}

.public-v2-footer__legal a:hover {
  color: #31c5d2;
}

@media (max-width: 1200px) {
  .public-v2-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 767px) {
  .public-v2-footer {
    padding: 40px 0 22px;
  }

  .public-v2-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

}

/* =========================================================
   09. ACCESSIBILITY / FOCUS
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(49, 197, 210, 0.72);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================================================
   10. MOBILE HOVER SAFETY
   ========================================================= */

@media (max-width: 767px) {
  .ui-btn:hover,
  .public-v2-footer__socials a:hover {
    transform: none;
  }
}
/* =========================================================
   EXEMPLES DE CARNETS
   ========================================================= */

.home-carnets-section {
  padding: 52px 0 30px;
  background: #ffffff;
}

.annonces-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.annonces-card:hover {
  transform: translateY(-2px);
  border-color: #dce7f2;
  box-shadow: 0 14px 30px rgba(16, 36, 73, 0.06);
}

.annonces-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.annonces-card__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.annonces-card__logo {
  width: 100%;
  height: 100%;
  padding: 7px;
  object-fit: contain;
}

.annonces-card__logo-fallback {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
}

.annonces-card__summary {
  min-width: 0;
}

.annonces-card__title {
  margin: 0;
  color: var(--color-heading);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.annonces-card__subtitle {
  margin: 3px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.annonces-card__stats {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.annonces-card__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: var(--color-surface-muted);
}

.annonces-card__stat-label {
  color: var(--color-text-muted);
  font-size: 12px;
}

.annonces-card__stat-value {
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.annonces-card__meta {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.annonces-card__footer {
  margin-top: auto;
}

.annonces-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--color-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.annonces-card__button:hover {
  color: #ffffff;
  background: #0f6e75;
  transform: translateY(-1px);
}
/* =========================================================
   HEADER ACCOUNT ACTIONS
   ========================================================= */

.public-v2-navbar__actions--account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-v2-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #dce7f2;
  border-radius: 10px;
  color: var(--color-heading);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.public-v2-icon-action i {
  color: var(--color-secondary);
  font-size: 17px;
  line-height: 1;
}

.public-v2-icon-action:hover {
  color: var(--color-secondary);
  border-color: #bde5ec;
  background: #f4fbfc;
}

.public-v2-icon-action--logout {
  color: #ffffff;
  border-color: var(--color-secondary);
  background: var(--color-secondary);
}

.public-v2-icon-action--logout i {
  color: #ffffff;
}

.public-v2-icon-action--logout:hover {
  color: #ffffff;
  border-color: #0d8f9b;
  background: #0d8f9b;
}

@media (max-width: 1199px) {
  .public-v2-navbar__actions--account {
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
  }

  .public-v2-icon-action {
    justify-content: flex-start;
    width: 100%;
  }
}

/* =========================================================
   OPTIONAL MAIN BACKGROUNDS
   ========================================================= */

.public-v2-main--soft {
  background: #eef5f9;
}

.ca-show-v2-page--light {
  background: #eef5f9;
  padding-bottom: 72px;
}

/* =========================================================
   FOOTER NEWSLETTER
   ========================================================= */

.newsletter-footer {
  min-width: 0;
}

.newsletter-footer .public-v2-footer__text {
  margin-bottom: 18px;
}

.newsletter-alert {
  max-width: 340px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.newsletter-alert-success {
  color: #dffdf7;
  background: rgba(31, 196, 209, 0.18);
  border: 1px solid rgba(31, 196, 209, 0.36);
}

.newsletter-alert-error {
  color: #ffe4e9;
  background: rgba(221, 72, 92, 0.16);
  border: 1px solid rgba(255, 125, 145, 0.34);
}

.public-v2-footer__newsletter {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 340px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.public-v2-footer__newsletter input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: #173458;
  background: #ffffff;
  font-size: 15px;
  line-height: 48px;
}

.public-v2-footer__newsletter input[type="email"]::placeholder {
  color: #6b7280;
  opacity: 1;
}

.public-v2-footer__newsletter button {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: #2bb4c4;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease;
}

.public-v2-footer__newsletter button:hover {
  background: #1fa6b3;
}

.newsletter-footer .form-error-message,
.newsletter-footer .invalid-feedback {
  display: block;
  max-width: 340px;
  margin-top: 8px;
  color: #ffd4d9;
  font-size: 13px;
  line-height: 1.4;
}

.public-v2-footer #footer-newsletter {
  min-width: 0;
}

@media (max-width: 767px) {
  .public-v2-footer__newsletter,
  .newsletter-alert {
    max-width: 100%;
  }

  .public-v2-footer__newsletter button {
    flex-basis: 58px;
    width: 58px;
  }
}
.public-v2-footer__mini-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.public-v2-footer__mini-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}
.public-v2-footer__col--contact-newsletter .public-v2-footer__contact-list {
  margin-bottom: 28px;
}

.public-v2-footer__newsletter-inline {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.public-v2-footer__newsletter-inline .public-v2-footer__title {
  font-size: 19px;
}
/* =========================================================
   ERROR PAGES
   ========================================================= */

.error-page {
  position: relative;
  padding: 72px 0 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(31, 196, 209, 0.12), transparent 32%),
    radial-gradient(circle at 84% 12%, rgba(22, 79, 132, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.error-page__card {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center;
  gap: 48px;
  padding: 54px;
  min-height: 420px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(8, 40, 77, 0.10);
}

.error-page__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(8, 40, 77, 0.96), rgba(22, 79, 132, 0.94)),
    var(--color-primary-dark);
  overflow: hidden;
}

.error-page__code {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(76px, 11vw, 150px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.error-page__orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(31, 196, 209, 0.28);
  filter: blur(1px);
}

.error-page__orb--one {
  width: 170px;
  height: 170px;
  right: -56px;
  top: -48px;
}

.error-page__orb--two {
  width: 130px;
  height: 130px;
  left: -44px;
  bottom: -38px;
  background: rgba(255, 255, 255, 0.14);
}

.error-page__content {
  max-width: 720px;
}

.error-page__title {
  margin: 12px 0 0;
  color: var(--color-heading);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.error-page__lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.75;
}

.error-page__note {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 9px 14px;
  color: var(--color-primary);
  background: #eef8fa;
  border: 1px solid #d4eef2;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-page__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.error-page__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--color-primary);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.error-page__links a:hover {
  color: var(--color-secondary);
  border-color: rgba(13, 143, 155, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.error-page__links i {
  color: var(--color-secondary);
  font-size: 18px;
}

@media (max-width: 991px) {
  .error-page {
    padding: 48px 0 64px;
  }

  .error-page__card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px;
  }

  .error-page__visual {
    min-height: 210px;
  }
}

@media (max-width: 575px) {
  .error-page__card {
    padding: 24px;
    border-radius: 22px;
  }

  .error-page__links {
    grid-template-columns: 1fr;
  }

  .error-page__actions {
    flex-direction: column;
  }

  .error-page__actions .ui-btn {
    width: 100%;
  }
}