@media screen and (max-width: 990px) {
  .navbar-munu-item.active {
    color: var(--bs-primary) !important;
    background-color: white !important;
  }
  .navbar.nav-site {
    background-color: white !important;
  }

  .navbar.nav-site .navbar-collapse .navbar-nav {
    box-shadow: 5px 0px 12px 1px rgba(142, 165, 210, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-site .custom-mobile-navbar {
    background-color: white;
    border-radius: 20px;
    margin-top: 20px;
    padding: 0 20px;
  }

  .nav-site a.nav-link.active {
    border: 0;
    color: var(--bs-primary) !important;
    font-weight: bolder;
  }

  .nav-site a.nav-link {
    font-size: 1.2em;
  }

  .nav-site .bb-light {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-site .bt-light {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-site .dropdown-menu {
    border: none;
    box-shadow: none;
  }

  .custom-mobile-navbar > .nav-item {
    -webkit-align-items: center;
  }

  .nav-site .dropdown-item {
    padding: 10px 0 !important;
    color: var(--bs-nav-link-color);
  }

  .nav-site .close-navbar-minus-icon {
    -webkit-appearance: button-bevel;
    font-size: 3em;
    opacity: 0.7;
  }
}

@media screen and (min-width: 990px) {
  .navbar.nav-site {
    background-color: white !important;
  }
  .nav-site .dropdown-menu > .dropdown-item {
    color: var(--bs-nav-link-color);
  }
}

/*  */

.twitter-typeahead {
  width: 100%;
}
.nav-site {
  height: 75px;
}
.dropdown-menu-user {
  width: 300px;
}
/* Spécifique à cette page : priorité sur Bootstrap */
:where(body) .dropdown-item.active,
:where(body) .dropdown-item:active {
  background-color: #e2eaf1 !important;
  color: var(--bs-gray-700);
}

@media (max-width: 990px) {
  /* Bootstrap md breakpoint */
  .nav-site {
    height: auto;
  }
  .nav-link-active {
    display: none;
  }
  a.nav-link:has(.nav-link-active) {
    color: var(--bs-primary);
    font-weight: bold;
  }
  a.nav-link.activate {
    color: var(--bs-primary);
    font-weight: bold;
  }
  .navbar-munu-item .active {
    color: var(--bs-primary);
  }
  #container-toggle {
    width: 100%;
  }
  #container-user {
    width: 100%;
  }
  .dropdown-user {
    width: 100%;
  }
  .dropdown-menu-user {
    width: 100%;
  }
}

@media (min-width: 990px) {
  /* Bootstrap md breakpoint */
  a.nav-link:has(.nav-link-active) {
    color: var(--bs-gray-900);
    font-weight: normal;
  }
}

.nav-link-active {
  background-color: var(--bs-primary);
  height: 8px;
}
.navbar-badge {
  border-radius: 4px;
  color: white;
  background-color: var(--bs-primary);
  font-size: 12px;
  padding: 1px 5px;
  font-weight: bold;
}
.dropdown-toggle::after {
  display: none;
}

/* Partie FAQ */
.custom-faq-modal {
  display: none;
  top: 110%;
  right: 20px;
  transition: all 350ms ease-in-out;
  max-width: 100vw;
  min-width: 300px;
}

.custom-faq-modal .faq-question-item {
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  z-index: 1;
  font-weight: bold;
  background-color: transparent;
}

.custom-faq-modal .faq-question-item:hover {
  background-color: #dee2e684;
}

.custom-faq-modal.active {
  display: block;
}

.faq-modal-background-toggler {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
}

.faq-modal-background-toggler.active {
  opacity: 1;
  pointer-events: all;
}

.custom-support-modal {
  display: none;
  top: 110%;
  right: 20px;
  transition: all 350ms ease-in-out;
  max-width: 100vw;
  min-width: 300px;
}

.custom-support-modal.active {
  display: block;
}

.support-modal-background-toggler {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
}

.support-modal-background-toggler.active {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Annonces en bandeau ----------
   Fond blanc et liseré de couleur, icône par thème. Couleurs tirées des variables du thème :
   chaque marque garde sa couleur primaire. Gabarit : views-ejs/pages/annonces/partials/handler.ejs */
.ann-zone { display: flex; flex-direction: column; gap: 8px; }
.ann {
  --ann-accent: var(--bs-primary); --ann-soft: var(--bs-primary-bg-subtle); --ann-ink: var(--bs-primary-text-emphasis);
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px;
  padding: 12px 12px 12px 14px; background: #fff; border: 1px solid #e3e8ed; border-left: 4px solid var(--ann-accent);
  border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); color: #3d454c;
}
.ann--info    { --ann-accent: var(--bs-info);    --ann-soft: var(--bs-info-bg-subtle);    --ann-ink: var(--bs-info-text-emphasis); }
.ann--warning { --ann-accent: var(--bs-warning); --ann-soft: var(--bs-warning-bg-subtle); --ann-ink: var(--bs-warning-text-emphasis); }
.ann--danger  { --ann-accent: var(--bs-danger);  --ann-soft: var(--bs-danger-bg-subtle);  --ann-ink: var(--bs-danger-text-emphasis); }
.ann--incident { background: #fdf4f5; border-color: #f0cdd2; border-left-color: var(--bs-danger); }
.ann--incident .ann-icon { background: var(--bs-danger); color: #fff; }
.ann-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--ann-soft); color: var(--ann-ink); display: grid; place-items: center; }
.ann-icon svg { width: 17px; height: 17px; }
.ann-main { min-width: 0; }
.ann-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ann-theme { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ann-ink); }
.ann-title { margin: 0; font-size: .975rem; font-weight: 600; color: #212529; }
.ann-body { margin-top: 4px; font-size: .925rem; line-height: 1.5; color: #3d454c; overflow-wrap: anywhere; }
.ann-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-body p { margin: 0 0 .5rem; }
.ann-body p:last-child, .ann-body ul:last-child, .ann-body ol:last-child { margin-bottom: 0; }
.ann-body ul, .ann-body ol { margin: 0 0 .5rem; padding-left: 1.25rem; }
.ann-body a { color: var(--bs-primary-dark, var(--bs-primary)); }
.modal-body.ann-body { margin-top: 0; font-size: .95rem; line-height: 1.6; }
.ann-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; }
.ann-actions:empty { display: none; }
.ann-link-btn, .ann-dismiss { background: none; border: 0; padding: 0; font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }
.ann-link-btn { color: var(--bs-primary-dark, var(--bs-primary)); font-weight: 600; }
.ann-dismiss { color: #4d555c; }
.ann-dismiss:hover { color: #212529; }
.ann-help { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: .85rem; font-weight: 600; text-decoration: none;
  color: var(--bs-primary-dark, var(--bs-primary)); background: #fff; border: 1px solid var(--bs-primary); border-radius: 6px; }
.ann-help:hover { color: #fff; background: var(--bs-primary-dark, var(--bs-primary)); border-color: var(--bs-primary-dark, var(--bs-primary)); }
.ann-help--solid { color: #fff; background: var(--bs-primary-dark, var(--bs-primary)); border-color: var(--bs-primary-dark, var(--bs-primary)); }
.ann-help--solid:hover { filter: brightness(.88); color: #fff; }
.ann-help svg { width: 14px; height: 14px; }
.ann-status { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: #5b636a; font-variant-numeric: tabular-nums; }
.ann-status svg { width: 13px; height: 13px; }
.ann-status--due { color: var(--bs-danger-text-emphasis); font-weight: 600; }
.ann-side { display: flex; flex-direction: column; align-items: flex-end; }
.ann-x { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: #5b636a; background: transparent; border: 0; border-radius: 6px; }
.ann-x:hover { color: #212529; background: rgba(0, 0, 0, .05); }
.ann-x svg { width: 16px; height: 16px; }
.ann button:focus-visible, .ann a:focus-visible { outline: 3px solid rgba(var(--bs-primary-rgb), .45); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 576px) {
  .ann-zone { margin-left: 12px !important; margin-right: 12px !important; }
  .ann { grid-template-columns: auto minmax(0, 1fr); padding: 12px 10px 12px 12px; }
  .ann-side { position: absolute; top: 6px; right: 6px; }
  .ann-head { flex-direction: column; gap: 0; padding-right: 34px; }
  .ann-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .ann-help { justify-content: center; padding: 8px 10px; }
  .ann-link-btn, .ann-dismiss { text-align: left; padding: 4px 0; }
}
