.mobileMenuToggleRow,
.mobileMenuPanelHeader,
.mobileMenuBackdrop {
  display: none;
}

@media (max-width: 860px) {
  html.has-mobile-menu body.mobile-menu-open {
    overflow: hidden;
  }

  html.has-mobile-menu #banniere {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 12px 16px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.has-mobile-menu #banniere .gauche,
  html.has-mobile-menu #banniere .droite {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  html.has-mobile-menu #banniere .gauche {
    margin-bottom: 10px;
  }

  html.has-mobile-menu #banniere .gauche h1 {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin: 0 0 6px !important;
    word-break: break-word;
  }

  html.has-mobile-menu #banniere p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  html.has-mobile-menu #banniere .droite {
    font-size: 14px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-break: break-word;
  }

  html.has-mobile-menu #banniere .droite * {
    white-space: normal !important;
    word-break: break-word;
  }

  html.has-mobile-menu #cadreAccueil,
  html.has-mobile-menu #cadreDegrade,
  html.has-mobile-menu #cadreAccueilCentre,
  html.has-mobile-menu #contenuBas {
    width: 100% !important;
  }

  html.has-mobile-menu #cadreAccueil {
    padding: 0 !important;
  }

  html.has-mobile-menu #cadreAccueilCentre {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu {
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu .contenuDroit {
    display: block !important;
    float: none !important;
    clear: both !important;
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 10px 10px !important;
    box-sizing: border-box !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu .contenuDroit .formga,
  html.has-mobile-menu #cadreAccueilCentre .contenu .contenuDroit .formdr {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 12px 0 !important;
  }

  html.has-mobile-menu .mobileMenuToggleRow {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 10px 10px 14px;
    box-sizing: border-box;
  }

  html.has-mobile-menu #contenuBas {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100% !important;
    padding: 14px 10px 18px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  html.has-mobile-menu #contenuBas > div {
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.32) !important;
    box-sizing: border-box !important;
  }

  html.has-mobile-menu #contenuBas > div:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  html.has-mobile-menu #contenuBas h3 {
    margin: 0 0 8px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    color: #e2e8f0 !important;
  }

  html.has-mobile-menu #contenuBas ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  html.has-mobile-menu #contenuBas li {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  html.has-mobile-menu #contenuBas a {
    display: block;
    padding: 4px 0;
    color: #f8fafc !important;
    text-decoration: none !important;
  }

  html.has-mobile-menu #contenuBas a:hover,
  html.has-mobile-menu #contenuBas a:focus {
    text-decoration: underline !important;
  }

  html.has-mobile-menu .mobileMenuToggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 12px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  }

  html.has-mobile-menu .mobileMenuToggleIcon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
  }

  html.has-mobile-menu .mobileMenuToggleIcon span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 9999px;
    background: currentColor;
  }

  html.has-mobile-menu .mobileMenuBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    z-index: 999;
  }

  html.has-mobile-menu .mobileMenuBackdrop:not([hidden]) {
    display: block;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu .contenuGauche {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 360px) !important;
    max-width: 360px !important;
    min-width: 0 !important;
    padding-bottom: 0 !important;
    transform: translateX(-105%);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    z-index: 1000;
  }

  html.has-mobile-menu body.mobile-menu-open #cadreAccueilCentre .contenu .contenuGauche {
    transform: translateX(0);
    box-shadow: 24px 0 48px rgba(15, 23, 42, 0.24);
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu .contenuGauche .menu {
    height: 100%;
    overflow-y: auto;
    padding: 0 20px 28px !important;
    border-radius: 0 20px 20px 0;
    background: #ffffff !important;
  }

  html.has-mobile-menu .mobileMenuPanelHeader {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -20px 18px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
  }

  html.has-mobile-menu .mobileMenuPanelHeader strong {
    font-size: 17px;
    line-height: 1.2;
    color: #0f172a;
  }

  html.has-mobile-menu .mobileMenuClose {
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 10px 14px;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul,
  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul ul {
    margin: 0 !important;
    padding-left: 0 !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul > li {
    margin: 0 0 14px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul > li:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul > li > ul {
    margin-top: 10px !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul > li > ul > li {
    margin: 0 !important;
    color: #334155 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul > li > ul > li > a {
    display: block;
    padding: 8px 0;
    color: #0f172a !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-decoration: none;
  }

  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul > li > ul > li > a:hover,
  html.has-mobile-menu #cadreAccueilCentre .contenu > .contenuGauche > .menu > ul > li > ul > li > a:focus {
    color: #1d4ed8 !important;
    text-decoration: underline;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  html.has-mobile-menu #contenuBas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  html.has-mobile-menu #contenuBas > div {
    padding: 0 0 12px !important;
  }

  html.has-mobile-menu #contenuBas > div:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}
