html, body {
  *{
    color:rgb(0,66,138);
  }
  h4 {
    font-weight: normal;
  }
}

#wrapper {
  font-size: 1.2rem
}

#wrapper #topbanner #top {
  display: flex;
  justify-content: space-between;
  > div {
    display: flex;
    flex: 1 1 0;
    height: 75px;
    margin: 5px;
    padding: 5px;
    border-radius: 5px;
    cursor:pointer;
    background: white;
  }
}

#top  > div:last-child {
  justify-content: end;
}

#footer {
  display: flex;
  flex-direction: column;
  position: sticky;
  z-index:  2;
  bottom: 0;
  background: rgb(0,66,138);
  color: white;
  padding: 20px 10px;
  > h2 {
    position: relative;
    top: 15px;
    margin: 0;
    text-align: center;
    color: white;
    span {
      color: white;
    }
  }
  > div {
    position: relative;
    top: 45px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: rgb(0,66,138);
    > div {
    /*  display: grid;*/
      display: flex;
      flex: 1 1 0;
      justify-content: space-around;
      align-items: center;
      height: 75px;
      margin: 5px;
      padding: 5px;
      border-radius: 5px;
      font-weight: bold;
      text-transform: uppercase;
      cursor:pointer;
      background: white;
      transition: all .3s;
    }
    > div:hover, .menu_actif {
      background: #d0d9e6;
    }
    img{
      height: 50px;
    }
  }
}

div#Accueil {
  font-size: 1.2rem;
}

div#FAQ {
  details {
    margin: 10px;
    padding: 5px;
    font-size: large;
    summary {
      background: #d0d9e6;
      font-size: 1.2rem;
      padding: 10px;
      cursor: pointer;
      margin-bottom: 10px;
    }
  }
  li {
    margin: 10px
  }
}

div#Partenaires{
  margin: 10px;
  padding: 10px;
  font-size: 1.2rem;
}

.blue {
  font-weight: bold;
  color:blue
}

.toggle{
  position: relative;
  padding: 0 1rem;
}

.toggle:not(.active){
  background: white;
  opacity: 0;
  height: 0;
  z-index: 1;
  transition: all .3s;
  * {
    padding: 0;
    margin: 0;
  }
}

.active{
  opacity: 1;
  z-index: 2;
  height: auto;
}

#global:not(:has(.perror)){
  /*[id^="qtext_"],[id^="qbody_"],[id^="qerror_"], div#navtab, p {
    display: none;
    background: white;
    transition: all .3s;
  }*/
  [id^="qtext_"].zerror {
    display: table-cell
  }
  [id^="qtext_"].piedform {
    display: block;
    margin-top: 30px;
    font-size: smaller;
    color: grey;
    font-style: italic;
  }
}

#global {
  .qtext, .qbody, .qerror {
    padding: 5px;
  }

  :is([id^="qtext_"],[id^="qbody_"]).next2respond {
     background: aliceblue;
     padding: 15px;
  }

  .qtext:has(#next)/*,
  #qtext_CIV, #qerror_CIV, #qbody_CIV*/
  {
    display: block;
    margin-top: 30px;
  }
  .qtext span{
    color: blue;
    font-weight: bold;
  }
  #next {
    display:flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: paleturquoise;
    cursor: pointer;
  }

  #qtext_DATE_ACCOUC,#qtext_DETEMPSENQACC,#qtext_DECSAPRES,#qtext_DECSAPRESNSP,
  #qbody_DATE_ACCOUC,#qbody_DETEMPSENQACC,#qbody_DECSAPRES,#qbody_DECSAPRESNSP {
    display: table-cell;
    position: absolute;
    top: -1000px;
  }
}

#global:has(.pghome) > :is(.intro,p) {
  display: none;
}

#global.active > p {
  display: block
}

form:has(input[name="CW_page"][value="0"]) #footer{
  display: none;
}

form:has(input[name="CW_page"]:is([value="0"],[value="bye"])) #global p{
  display: block;
}

/*#global table tr td#qtext_MSG001 {
  display: table-cell;
}*/

input {
  max-width: 250px;
}

@media screen and (max-width: 640px) {
  table.main {
    width: 98%;
  }
  #footer {
    > div {
      font-size: 0;
      > div {
        justify-content: center;
      }
    }
    .menu_actif {
      flex-direction: column;
      gap: 1em;
      div {
        font-size: 1rem;
      }
    }
  }
  #wrapper #topbanner #top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    margin: 0;
    div {
      display: grid;
      height: auto;
      img {
        max-height: 75px;
      }
    }
  }
}

.masked {
  width: 60px;
  height: 60px;
  background: rgb(0,66,138);
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.zerror {
  display: block!important;
  background: pink!important;
  padding: 10px!important;
  margin: 20px!important;
  border: solid red;
  ul {
    margin 15px 0;
  }
}

.piedform {
  display: block;
  margin-top: 30px;
  font-size: smaller;
  color: grey;
  font-style: italic;
}
.perror {
  display: none;
}
