/*-------Code pour format ecran ou general---------*/

.modal{
  display:none;
  position:fixed;
  z-index:1;
  top:0;
  left:0;
  width : 100vw;
  height : 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-dialog{
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  display : flex;
  align-items : center;
  justify-content: center;
  max-width: 40em;
  border-radius: 10px;
}

.modal-content{
  width : 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.modal-header{
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
  display : flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.modal-title {
margin: 0;
line-height: 1.42857143;
font-size: 18px;
font-weight: 500;
text-align: left;
}
.modal-date {
  margin: 0;
  line-height: 1;
  font-size: 8px;
  font-weight: 200;
  text-align: left;
  }

 button.close {
     padding: 0;
     cursor: pointer;
     background: 0 0;
     border: 0;
 }
 .close {
     float: right;
     font-size: 21px;
     font-weight: 700;
     line-height: 1;
     color: #000;
     text-shadow: 0 1px 0 #fff;
     filter: alpha(opacity=20);
     opacity: .2;
 }
 .close:hover,
.close:focus {
  opacity: .7;
  text-decoration: none;
  cursor: pointer;
}

.modal_btn {
  display: inline-block;
  color: white;
  padding: 6px 12px;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 4px;
  margin-right: 3px;
}

.mbtn-submit{
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da
}

.mbtn-del{
    color: #fff;
    background-color: #e7d72c;
    border-color: #46b8da
}

.mbtn-cancel{
    color: #000;
    background-color: #fff;
    border-color: #ccc
}

.modal-body {
  position: relative;
  padding: 15px;
}

.modal-body .ensemble{
  position: relative;
  padding: 5px;
  border: solid;
  border-color: #555;
  border-width: 2px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.modal-body .ensemble label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 900;
  font-size: large;
}

  .modal-body .form-group {
    margin-bottom: 15px;
  }

  .modal-body .form-group label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
  }

  .modal-body .form-group .form-control {
    display: block;
    width: 95%;
    /*height: 34px;*/
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0px;
  }

  .modal-body .form-group textarea{
    height : 4em;
  }

  .modal-body .form-line {
    margin-bottom: 15px;
    display: table;
    width: 100%;
  }
  
  .modal-body .form-line label {
    display: table-cell;
    table-layout: fixed;
    width: 10em;
    font-weight: 700;
    font-size: small;
  }

  .modal-body .form-line .form-control {
    display: table-cell;
    width: 23em;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0px;
  }
  .modal-body .form-line textarea{
    height : 12em;
    width: 23em;
  }

  .modal-body .form-line3 {
    margin-bottom: 15px;
    display: table;
    width: 100%;
  }
  .modal-body .form-line3 label {
    display: table-cell;
    table-layout: fixed;
    width: 4em;
    font-weight: 700;
    font-size: small;
  }

  .modal-body .form-line3 .form-control {
    display: table-cell;
    width: 4em;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0px;
  }

  .modal-body .form-radio {
    margin-bottom: 15px;
    display: table;
    width: 100%;
  }
  .modal-body .form-radio label {
    display: inline;
    table-layout: fixed;
    width: 4em;
    font-weight: 700;
    font-size: small;
  }

  .modal-body .help-block {
    height : 8em;
    color: red;
  }

  .modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
  }


  #myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  #myImg:hover {opacity: 0.7;}
  
  /* The Modal (background) */
  .imgModal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
  }
  
  /* Modal Content (image) */
  .imgModal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
  }
  
  /* Caption of Modal Image */
  #imgCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }
  
  /* Add Animation */
  .imgModal-content, #imgCaption {  
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
  }
  
  @keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
  }
  
  /* The Close Button */
  .imgClose {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .imgClose:hover,
  .imgClose:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }

/*------Code pour format de smartphone-----*/
@media screen and (max-width: 767px)
{
  .imgModal-content {
    width: 100%;
  }
}
