:root {
  --main-bg-color: rgba(255,255,255,0.85);
}

fieldset {
        margin: 0 auto;
        width: 50%;
        padding: 1em;
    font-size: 18px;
    font-weight: 400;
}

h1 {
  position: relative;
        margin: 0 auto;
        width: 85%;
/*    width: 50%;*/
        padding: 0.1em;
        text-align: center;
}

fieldset, h1 {
  box-shadow: 0px 0px 10px 10px rgba(0,0,0,0.2);
  border-radius: 30px;
  background-color: var(--main-bg-color);
  border: 1px solid #CCC;
}

div {
  text-align:justify;
  text-justify:inter-word;
}

@media screen and (max-width: 1024px) {
  fieldset, h1 {
        width: 100%;
  }
}
/*@media screen and (orientation:landscape) {
  fieldset {
        width: 50%;
  }
}*/

legend {
        width: 50%;
}

html {
   min-height: 100%;
}

body {
        margin: 0;
        display: grid;
        grid-template-rows: auto 1fr auto;
        background: url(background.jpg);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-attachment:fixed; /* just for buggy Android ? must be the last */
}

/*th {
    text-align: center;
}*/

label {
    padding: 7px;
}

/* pour la pagination */

.pagination {
  display: inline-block;
}

.pagination a:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 2px 2px;
}

.pagination a:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 2px 2px;
}

.pagination a {
  color: black;
  float: left;
  padding: 2px 10px;
  text-decoration: none;
  border: 1px solid #ddd;
}

.pagination a.active {
  background-color: #4CAF50;
  color: white;
}

.pagination a.disable {
    background-color: #ddd;
}

.pagination a:hover:not(.disable) {
    background-color: #b2f079;
}

.pagination a {
  transition: background-color .3s;
}

/* FIN pour la pagination */

/* pour le tri */
.sortable a {text-decoration: none;color: black;}
.sortable a:hover {
    background-color: #b2f079;
}

.ascending a:before {
    content: url(../png/sort_ascending.png);
}

.descending a:before {
    content: url(../png/sort_descending.png);
}

/* FIN pour le tri */

label.required:after {
    content: "*";
}

tbody.maintab tr:nth-child(odd){
  background-color: #FFFFFF;
}

/*    https://getbootstrap.com/docs/5.0/forms/floating-labels/   */
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
  opacity: .90;
  transform: scale(.95) translateY(-1rem) translateX(.15rem);
  color: #239981;
}

textarea, input, select {
    border-radius: 30px !important;
    box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.2) inset;
    padding: 0.5rem;
}

textarea:invalid, input:invalid, select:invalid {
  border: 1px dashed orange;
  background-color: #fff;
}

textarea:valid, input:valid, select:valid {
  border: 1px solid green;
  background-color: #fff;
}

textarea, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select {
  width:100%;
}

.btn {
    line-height: 1.2!important;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0em;
    border-radius: 30px;
    padding: 0.7em 1em;
    font-size: 18px;
    box-shadow: 0px 0px 5px 2px rgba(0,0,0,0.2);
}

.btn-success:hover {
    color: #239981;
    background-color: #fff;
    border-color: #239981;
}

.btn-success{
   border-color: #239981;
   background-color: #239981;
}

.btn-outline-success {
    color: #239981;
    border-color: #239981;
}

.btn-outline-success:hover{
   border-color: #239981;
   background-color: #239981;
}

/* le probleme c'est que ca force le maximize, alors qu'il faudrait uniquement le faire si ca tasse trop ... */
.container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 100%;
}

/* The navigation bar */
.navbar {
/*   overflow: hidden; */
/*   background-color: #333; */
/*  position: fixed; /* Set the navbar to fixed position */
  top: 0; /* Position the navbar at the top of the page */
  width: 100%; /* Full width */
   border:2px ridge black;
}

.container {
/*  margin-top: 60px; /* Add a top margin to avoid content overlay */
}

.alert {
  position: static; /* pour empecher les flashbag de passer au dessus des menus */
    font-size: 18px;
    box-shadow: 0px 0px 10px 10px rgba(0,0,0,0.2);
}
