html,
body {
  height: 100%;
  padding: 0;
  margin: 0;
}

.page {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100vh;
  height: auto;
  line-height: normal;
  text-align: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.1em;
  color: #2B2E34;
  background-color: #f0f0f0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.3;
  font-weight: normal;
}

.bg-position-top {
  background-position: 50% 0;
}

.bg-position-middle {
  background-position: 50% 50%;
}

.bg-position-bottom {
  background-position: 50% 100%;
}

.page:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  filter: alpha(opacity=40);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
  opacity: 0.4;
}

img {
  max-width: 100%;
  width: auto\9;
  height: auto;
}

a,
a:link {
  color: inherit;
  filter: alpha(opacity=85);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
  opacity: 0.85;
}

a:hover,
a:focus,
a:active {
  filter: alpha(opacity=100);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.content ul,
.content ol {
  display: inline-block;
  text-align: left;
  max-width: 50%;
}

.container {
  position: relative;
  display: block;
  width: auto;
  height: auto;
  padding: 1.5rem 2rem 2rem 320px;
  z-index: 1;
}

.content {
  max-width: 900px;
  margin: 0 auto;
}

.logo img {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.logo_up_left img {
  max-width: 80px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0; /* pas de centrage */
}


.social-links:empty {
  outline: 1px solid yellow;
}

.social-links {
  padding: 1em 0;
  vertical-align: middle;
}

.social-links a {
  padding: 0 0.3em;
  line-height: normal;
}

.hosting-info {
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1em;
  font-size: 0.8em;
}

.hosting-info p {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.overlay-dark {
  background-color: #333;
}

.overlay-dark:before {
  background-color: #333;
}

.overlay-bright {
  background-color: white;
}

.overlay-bright:before {
  background-color: white;
  filter: alpha(opacity=70);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  opacity: 0.7;
}

@media screen {
  .page[class] {
    background-color: #F4F5F3;
  }
}

body.debug:after {
  content: "default";
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: white;
  color: black;
  padding: 0.5em;
  font-size: 10px;
  text-transform: uppercase;
}

@media screen and (max-width: 640px) {
  body.debug:after {
    content: "small";
  }

  h1 {
    font-size: 2em;
  }

  .content ul,
  .content ol {
    max-width: none;
  }

  .page {
    min-width: 300px;
  }

  .page .container {
    padding: 3em;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px),
  (min-height: 500px) and (max-height: 1199px) {
  body.debug:after {
    content: "medium";
  }
}

@media screen and (min-width: 1200px) {
  body.debug:after {
    content: "large";
  }
}

.page .fallback-bg {
  display: none;
}

.ie8 .page .fallback-bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: inherit;
  z-index: 0;
}

.page[class]:before {
  filter: alpha(opacity=0);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  opacity: 0;
}
/* =========================
   Menu latéral (bandeau gauche)
   ========================= */


/* Menu fixé à gauche */
.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  max-width: none;
  margin: 0;
  padding: 1.25rem 1rem;
  text-align: left;
  overflow: auto;
  z-index: 10;

  background: #ffffff;
  border-right: 1px solid rgba(43, 46, 52, 0.12);
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: block;
}

.main-menu > ul {
  display: flex;
  gap: 0.5rem;
}

/* Desktop uniquement : menu en colonne */
@media screen and (min-width: 901px) {
  .main-menu > ul {
    flex-direction: column;
    height: 100%;
  }

  .menu-documents {
    margin-top: auto;
  }
}

.main-menu a,
.main-menu summary {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  text-decoration: none;
}

.main-menu a:hover,
.main-menu summary:hover {
  background: rgba(43, 46, 52, 0.06);
}

.main-menu details > ul {
  margin: 0.25rem 0 0.75rem 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.main-menu details[open] summary {
  font-weight: 600;
}

/* Mobile : menu en haut (plus simple), plus de sidebar fixe */
@media screen and (max-width: 900px) {
  .main-menu {
    position: static;
    width: auto;
    border-right: none;
    border-bottom: 1px solid rgba(43, 46, 52, 0.12);
    border-radius: 0;
  }

  /* En mobile (menu en haut) : items sur une ligne si possible */
  .main-menu > ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* Ne pas pousser "Documents" en bas en mobile */
  .menu-documents {
    margin-top: 0;
  }

  .container {
    padding: 1.5rem 1.25rem 2rem 1.25rem;
  }
}

/* =========================
   Bandeau haut
   ========================= */

/* bandeau caché par défaut */
.top-banner { display: none; }

@media screen and (min-width: /*90*/1px) {
  .top-banner { display: block; top:0; z-index:20; background:#fff; border-bottom:1px solid rgba(43,46,52,.12); }

  .top-banner .top-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
  }

  .top-banner-inner .logo_up_left { margin-right: auto; }

  .logo_up_left img { display:block; margin:0; max-width:80px; width:100%; height:auto; }

  .top-banner nav ul {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
  }
}