/**
 * Affichage téléphone : le texte reste dans son bloc,
 * les titres passent à la ligne, rien ne recouvre le pied de page.
 */
html {
  color-scheme: light;
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  svg,
  canvas,
  iframe {
    max-width: 100%;
    height: auto;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  p,
  li,
  label,
  legend,
  td,
  th,
  .section-title,
  .step-title,
  .form-label,
  .partenareat-text,
  .contu-pièces,
  .titre-tex {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }

  .section-title {
    display: block;
    height: auto;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    box-sizing: border-box;
  }

  .content-box,
  .contenu-pièce,
  .service-informatique,
  .restauration-content {
    overflow: visible;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contu-pièces {
    width: 100%;
    max-width: 100%;
  }

  .min-vh-100.d-flex {
    display: block !important;
    min-height: 0 !important;
  }

  .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .process-flow {
    max-width: 100%;
  }

  .process-step {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .step-title {
    max-width: 18rem;
    line-height: 1.35;
  }

  .sliderr {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: 240px;
    box-sizing: border-box;
  }

  .slidee .text {
    left: 4%;
    right: 4%;
    width: auto;
    max-width: 92%;
    height: auto;
    margin-left: 0;
    transform: none;
    font-size: 0.95rem;
    line-height: 1.3;
    bottom: 12px;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  .EVENEMENT,
  .Panel-section {
    top: auto;
  }

  .suite-new {
    position: static;
    left: 0;
  }

  .suite-new .new {
    position: static;
    right: auto;
  }

  .buttont {
    position: relative;
    left: 0;
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .footer-container {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  .listnavigation ul ul,
  .Sous-service-Sante,
  .Sous-service-GRH,
  .Sous-service-offres,
  .Sous-service-DIRECTIONS,
  .Sous-service-Rattacher,
  .sous-residences,
  .SOUS-AD,
  .SOUS-LOGE,
  .SOUS-ACTION,
  .sous-menuD,
  .sous-demade,
  .sous-patrimoine,
  .sous-direction-des-affaire,
  .sous-direction-Accueil-logement,
  .sous-direction-Social-et-culturelles {
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}
