@font-face {
	font-family: 'Avenir';
	src: url('fonts/Avenir/Avenir-Roman.ttf') format('truetype');
}

body {
  font-size: 1rem;
}

section, .photo, .dossier {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

h1, h2, h3 {
  font-family: 'Avenir';
  font-weight: bold;
  font-size: 4rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.2rem;
  border-bottom: 2px double rgba(22,83,241);
}

.hidden {
	display: none !important;
}

.container, .full, .fullSeul {
  width: 100%;
  padding: 5px;
}

.box .full {
	display: flex;
	justify-content: space-between;
	max-height: 120px;
}

.flex {
	display: flex;
	flex-direction: column;
}

.alert {
  color: green;
  margin: 5px;
  padding: 5px;
  border: solid red 1px;
  text-align: center;
  justify-content: center;
}

.alertmessage {
  width: 100%;
  color: green;
  text-align: center;
  justify-content: center;
  font-size: 1.75rem;
}

.right {
  display: flex;
  justify-content: flex-end;
  margin-right: 5px;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nouveau {
	display: flex;
	align-items: center;
	border: dashed 1px blue;
	color: red;
	font-size: 1.5rem;
	padding: 5px;
	margin: 5px;
}

/* formulaire*/
fieldset {
  display: flex;
  justify-content: center;
  border: 2px silver solid;
  border-radius: 15px;
}

legend {
    font-family: 'Avenir';
    text-align: center;
    padding: 5px;
    font-style: oblique;
    font-weight: bold;
    text-transform: uppercase;
}

label {
    display: table-cell;
}
input {
  display: table-cell;
  font-size: 1rem;
  border: solid rgba(22,83,241) 1px;
  border-radius: 15px;
}

p.row {
    display:table-row;
}

input[type=text], input[type=password] {
  padding-left: 5px;
  margin: 5px;
}

input[type=submit] {
  padding: 5px;
}

select {
  font-size: 1rem;
  margin-top: 5px;
  margin-left: 5px;
  border-radius: 5px;
  padding-left: 5px;
  max-width: 50%;
  min-width: 30%;
  border: solid rgba(22,83,241) 1px;
}

/* formulaire ajout photo*/
input[type=file] {
  text-align: center;
  width: 100%;

  margin: 5px;
}

/* photo */
section h2 {
  width: 100%;
}

.photo {
  margin: 5px;
}

.box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    border: rgba(22,83,241) solid 1px;
    border-radius: 15px;
    height: 600px;
    width: auto;
    max-width: 150px;
    margin: 5px;
    padding: 5px;
}

.photo img {
  max-height: 300px;
  /* min-height: 250px; */
  width: auto;
  max-width: 145px;
  border: silver 1px solid;
}

.photo h3 {
  text-align: center;
}

.action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.action div {
  margin: 5px;
}

.dossier {
	width: 100%;
}

/*drag and drop*/
#drop_file_zone {
    background-color: #EEE;
    border: #999 3px dashed;
    width: 33%;
    height: auto;
    padding: 4px;
    font-size: 1rem;
}
#drag_upload_file {
  width:100%;
  margin:0 auto;
}
#drag_upload_file p {
  text-align: center;
}
#drag_upload_file #selectfile {
  display: none;
}
.img-content img {
	max-height: 300px;
}

@media only screen and (min-width: 481px) {
    
    @font-face {
	font-family: 'Avenir';
	src: url('fonts/Avenir/Avenir-Roman.ttf') format('truetype');
    }

    body {
      font-size: 1.5rem;
    }
    
    section, .photo, .dossier {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
    }
    
    h1, h2, h3 {
      font-family: 'Avenir';
      font-weight: bold;
      font-size: 4.5rem;
      text-align: center;
    }
    
    h2 {
      font-size: 3rem;
    }
    
    h3 {
      font-size: 2.25rem;
      border-bottom: 3px double rgba(22,83,241);
    }
    
    .hidden {
    	display: none !important;
    }
    
    .container, .full, .fullSeul {
      width: 100%;
      padding: 15px;
    }
    
    .box .full {
    	display: flex;
    	justify-content: space-between;
    	max-height: 120px;
    }
    
    .flex {
    	display: flex;
        flex-direction: column;
        min-width: 15%;
        align-items: center;
    }
    
    .alert {
      color: green;
      margin: 10px;
      padding: 10px;
      border: solid red 1px;
      text-align: center;
      justify-content: center;
    }
    
    .alertmessage {
      width: 100%;
      color: green;
      text-align: center;
      justify-content: center;
      font-size: 2.25rem;
    }
    
    .right {
      display: flex;
      justify-content: flex-end;
      margin-right: 15px;
    }
    
    .center {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .nouveau {
    	display: flex;
    	align-items: center;
    	border: dashed 2px blue;
    	color: red;
    	font-size: 2rem;
    	padding: 15px;
    	margin: 10px;
    }
    
    /* formulaire*/
    fieldset {
      display: flex;
      justify-content: center;
      border: 3px silver solid;
      border-radius: 15px;
    }
    
    legend {
        font-family: 'Avenir';
        text-align: center;
        padding: 15px;
        font-style: oblique;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    label {
        display: table-cell;
    }
    input {
      display: table-cell;
      font-size: 1.5rem;
      border: solid rgba(22,83,241) 1px;
      border-radius: 15px;
    }
    
    p.row {
        display:table-row;
    }
    
    input[type=text], input[type=password] {
      padding-left: 15px;
      margin: 15px;
    }
    
    input[type=submit] {
      padding: 15px;
    }
    
    select {
      font-size: 1.5rem;
      margin-top: 15px;
      margin-left: 15px;
      border-radius: 15px;
      padding-left: 15px;
      max-width: 50%;
      min-width: 30%;
      border: solid rgba(22,83,241) 1px;
    }
    
    /* formulaire ajout photo*/
    input[type=file] {
      text-align: center;
      width: 100%;
    
      margin: 10px;
    }
    
    /* photo */
    section h2 {
      width: 100%;
    }
    
    .photo {
      margin: 15px;
    }
    
    .box {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        border: rgba(22,83,241) solid 2px;
        border-radius: 10px;
        height: 500px;
        width: auto;
        max-width: 500px;
        margin: 15px;
        padding: 15px;
    }
    
    .photo img {
      max-height: 300px;
      /* min-height: 250px; */
      width: auto;
      max-width: 310px;
      border: silver 2px solid;
    }
    
    .photo h3 {
      text-align: center;
    }
    
    .action {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
    }
    
    .action div {
      margin: 10px;
    }
    
    .dossier {
    	width: 100%;
    }
    
    /*drag and drop*/
    #drop_file_zone {
        background-color: #EEE;
        border: #999 5px dashed;
        width: 33%;
        height: auto;
        padding: 8px;
        font-size: 1.5rem;
    }
    #drag_upload_file {
      width:100%;
      margin:0 auto;
    }
    #drag_upload_file p {
      text-align: center;
    }
    #drag_upload_file #selectfile {
      display: none;
    }
    .img-content img {
    	max-height: 300px;
    }
}