/**
 * Lot 005 - pied de page global sur mobile.
 * La portée .injected-footer-gs évite de modifier les autres sections Salient.
 */

@media only screen and (max-width: 690px) {
  .injected-footer-gs {
    --moliner-mobile-footer-gutter: 5vw;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  /* Bloc principal : mêmes bords à 5vw et respiration régulière. */
  .injected-footer-gs > .wpb_row:first-child > .row_col_wrap_12 {
    width: 100% !important;
    max-width: none !important;
    padding: 40px var(--moliner-mobile-footer-gutter) 38px !important;
  }

  .injected-footer-gs
    > .wpb_row:first-child
    > .row_col_wrap_12
    > .wpb_column {
    width: 100% !important;
    margin: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .injected-footer-gs > .wpb_row:first-child .inner_row,
  .injected-footer-gs
    > .wpb_row:first-child
    .inner_row
    > .row_col_wrap_12_inner {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .injected-footer-gs
    > .wpb_row:first-child
    .row_col_wrap_12_inner
    > .wpb_column {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  /* Supprime les 15 % verticaux du bloc newsletter prévus pour tablette. */
  .injected-footer-gs
    > .wpb_row:first-child
    > .row_col_wrap_12
    > .wpb_column:nth-child(2) {
    margin-top: 32px !important;
    padding-top: 30px !important;
    border-top-width: 1px !important;
  }

  .injected-footer-gs
    > .wpb_row:first-child
    > .row_col_wrap_12
    > .wpb_column:nth-child(2)
    .inner_row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .injected-footer-gs > .wpb_row:first-child h3,
  .injected-footer-gs > .wpb_row:first-child h4,
  .injected-footer-gs > .wpb_row:first-child p {
    overflow-wrap: anywhere;
  }

  /* Bandeau légal : retour à la ligne propre, centré et sans dépassement. */
  .injected-footer-gs > .wpb_row:last-child > .row_col_wrap_12 {
    width: 100% !important;
    max-width: none !important;
    padding: 16px var(--moliner-mobile-footer-gutter) 18px !important;
  }

  .injected-footer-gs > .wpb_row:last-child .wpb_column,
  .injected-footer-gs > .wpb_row:last-child .vc_column-inner,
  .injected-footer-gs > .wpb_row:last-child .inner_row,
  .injected-footer-gs
    > .wpb_row:last-child
    .inner_row
    > .row_col_wrap_12_inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .injected-footer-gs > .wpb_row:last-child p {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    color: inherit;
    font-size: 11px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal;
  }

  .injected-footer-gs > .wpb_row:last-child a {
    display: inline;
    white-space: normal;
  }
}
