* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background-color: #FFFFFF;
  margin: 0;
}
.navtop {
  background-color: #6195a8;
  height: 60px;
  width: 100%;
  border: 0;
}
@media (max-width: 864px) {
  .navtop {
    height: 30px;
  }
}
.navtop div {
  margin: auto auto;
  width: 1000px; 
  height: 100%;
  text-align: right;
  padding-top : 18px; 
}
@media (max-width: 864px) {
  .navtop div {
    text-align: left; 
    padding-top : 4px;
  }
}

.navtop div a {
  padding: 0 20px;
  text-decoration: none;
  color: #c5d2e5;
  font-weight: bold;
}
.navtop div a i {
  padding: 2px 8px 0 0;
}
.navtop div a:hover {
  color: #ecf0f6;
}

h1 {
  font-size: 46px;
  padding: 0;
  margin: 40px 0 0 0;
  color: #6195a8;
  font-weight: bold;
}
  
.content {
  width: 1000px;
  margin: 0 auto;
  padding: 10px 10px;
  position: relative;
}
@media (max-width: 864px) {
  .content {
    width: 100%;
  }
}
.content h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 22px;
  border-bottom: 1px solid #ebebeb;
  color: #666666;
}
.content h3 {
  margin: 0;
  padding: 0 0;
  font-size: 18px;
  color: #6195a8;
}

.logo_cp {
  margin-top: 10px;
}
.logo_sndp {
  margin: 10px 10px 0 10px; 
  float: right;
}
.visuel_trophee {
  background: url('https://trophees.culturepresse.fr/images/visuel_trophee_v6.png') 0 60px no-repeat;
  /*padding: 0 0 80px 90px;*/
  height: 600px;
}

/* link / button */
.main-action {
  display: inline-block;
  text-decoration: none;
  background-color: #e85252;
  font-weight: bold;
  font-size: 14px;
  border-radius: 5px;
  color: #FFFFFF;
  padding: 10px 15px;
  margin: 15px 0;
}
.main-action:hover {
    background-color: #234650;
}

.select_trophee {
  background-color: #b1d6dd;
  border: 1px solid #6195a8;
  padding: 6px; 
  margin-bottom: 10px;
  display: inline-block;
}

.back-dashboard {
  display: inline-block;
  text-decoration: none;
  background-color: #1f667a;
  font-weight: bold;
  font-size: 14px;
  border-radius: 5px;
  color: #FFFFFF;
  padding: 10px 15px;
  margin: 15px 0;
}
.back-dashboard:hover {
  background-color: #234650;
}

.vote-btn {
  display: inline-block;
  text-decoration: none;
  background-color: #22829d;
  font-weight: bold;
  font-size: 14px;
  border-radius: 5px;
  color: #FFFFFF;
  padding: 10px 15px;
  margin: 15px 0;
}
.vote-btn:hover {
  background-color: #234650;
}

.results-btn {
  display: inline-block;
  text-decoration: none;
  background-color: #219ec1;
  font-weight: bold;
  font-size: 14px;
  border-radius: 5px;
  color: #FFFFFF;
  padding: 10px 15px;
  margin: 15px 0;
}
.results-btn:hover {
  background-color: #234650;
}

/* dashboard table */
.home table {
  width: 100%;
  padding-top: 30px;
  border-collapse: collapse;
}
.home table thead {
  background-color: #ebeef1;
  border-bottom: 1px solid #d3dae0;
}
.home table thead td {
  padding: 10px;
  font-weight: bold;
  color: #767779;
  font-size: 14px;
}
.home table tbody tr {
  border-bottom: 1px solid #d3dae0;
}
.home table tbody tr:nth-child(even) {
  background-color: #fbfcfc;
}
.home table tbody tr:hover {
  background-color: #6195a8;
}
.home table tbody tr:hover td {
  color: #FFFFFF;
}
.home table tbody tr:hover td:nth-child(1) {
  color: #FFFFFF;
}
.home table tbody tr td {
  padding: 2px;
}
.home table tbody tr td:nth-child(1) {
  color: #a5a7a9;
}
.home table tbody tr td:nth-child(3),
.home table tbody tr td:nth-child(4) { /*statut + on/off */
  color: red;
  padding-left: 12px; 
}
.home table tbody tr td.actions {
  padding: 8px;
  text-align: right;
  width: 100px;
}
.home table tbody tr td.actions .view, .home table tbody tr td.actions .edit, .home table tbody tr td.actions .trash {
  display: inline-flex;
  text-align: right;
  text-decoration: none;
  color: #FFFFFF;
  padding: 10px 12px;
  border-radius: 5px;
}
.home table tbody tr td.actions .trash {
  background-color: #b73737;
}
.home table tbody tr td.actions .trash:hover {
  background-color: #a33131;
}
.home table tbody tr td.actions .edit {
  background-color: #37afb7;
}
.home table tbody tr td.actions .edit:hover {
  background-color: #319ca3;
}
.home table tbody tr td.actions .view {
  background-color: #37b770;
}
.home table tbody tr td.actions .view:hover {
  background-color: #31a364;
}
.home table tbody tr td img.trophee {
  width: 100px;
  height: auto;
  margin: 1em 0.5em;
}
.home table tbody tr td img.competitor { /* logo */
  width: 200px;
  height: auto;
}

/* button on/off */
.home table tbody tr td a {
  background-color: #b1d6dd;
  padding: 6px 12px; 
  border-radius: 5px;
}
.home table tbody tr td a:hover {
  background-color: #FFCC33;
  padding: 6px 12px; 
  border-radius: 5px;
}

/* modify */
.update form {
  padding: 15px 0;
  display: flex;
  flex-flow: column;
  width: 700px;
}
.update form label {
  display: inline-flex;
  width: 100%;
  padding: 10px 0;
  margin-right: 25px;
}
.update form input, .update form textarea {
  padding: 10px;
  width: 100%;
  margin: 0 15px 25px 0;
  border: 1px solid #cccccc;
}
.update form textarea {
  height: 200px;
}
.update form input[type="submit"] {
  display: block;
  background-color: #6195a8;
  border: 0;
  font-weight: bold;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
  width: 200px;
  margin-top: 15px;
  border-radius: 5px;
}
.update form input[type="submit"]:hover {
  background-color: #234650;
}

/* recurrent form elements and images */ 
label.required:after,
.required:after  {
  content: '*'; 
  font-size: 1.2em;
  color: red; 
  margin: 0;
  padding-left: 0.2em
} 

#registered_logo {
  display: inline-block;    
}

.registered_visuel {
  width: 400px;
  height: auto;
  padding-bottom: 20px;
}

img.thumbnail {
  width: 200px;
  height: auto;
  padding: 0.2em 0.2em;
}

.offview {
  visibility: hidden;
  height: 0;    
}
.nodisplay {
  display: none;
}

#change_logo_button input {
  width: 200px;
}

/* button 'retirer image', etc + 'rafraîchir la page'  */
.styled {
  border: 0;
  line-height: 1;
  padding: 0 12px;
  font-size: 1rem;
  text-align: center;
  color: #333;
  border-radius: 10px;
  background-color: #F8F8F8;
  cursor: pointer;
}
.styled:hover {
  background-color: rgba(255, 0, 0, 1);
  color: #FFF;
}

/* deletion */
.delete .yesno {
      display: flex;
}
.delete .yesno a {
      display: inline-block;
      text-decoration: none;
      background-color: #38b673;
      font-weight: bold;
      color: #FFFFFF;
      padding: 10px 15px;
      margin: 15px 10px 15px 0;
      border-radius: 5px;
}
.delete .yesno a:hover {
      background-color: #234650;
}

/* FRONT office = vote page */
img.vote {
  /*width: 200px;*/
  width: 300px;
  float: right; 
  margin: 10px 0 10px 30px;
  clear-both;
}
.page-vote h2 {
  font-size: 36px;	
}
.vote form {
  display: flex;
  flex-flow: row wrap;
}

.vote form label {
  padding-bottom: 10px;
}

[type=radio] { /* hide radio */ 
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

[type=radio] + img {
  cursor: pointer;
  width: 180px;
  height: auto;
}
[type=radio]:checked + img {
  outline: 4px solid #f00;
  padding: 4px 4px;
}

.vote img {
  width: 300px;
  height: auto; 
}

div.competitor_presentation {
  float: left;
  width: 310px;
  height: 550px;
  padding: 0.5em 1em 1em 0.3em;
  border: 1px solid #6195a8;
  margin-left: 10px;
  margin-bottom: 20px;
}
@media (max-width: 864px) {
  div.competitor_presentation {
    display: block;
    float: none;
    clear: both;
    width: 90%;
  }
}
div.competitor_presentation p.coord {
  border-bottom: 1px solid #6195a8;
}

label img { /* for IE */
    pointer-events: none;
}
label { /* for IE */
    display: inline-block;
}

input.vote-save[type="submit"] {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  width: 310px;
  background-color: #6195a8;
  border-radius: 5px;
  padding: 15px 15px;
  margin: 0 0 20px 10px;
}
input.vote-save[type="submit"]:hover {
  background-color: #234650;
}

/* results */
.poll-result img.logo_result {
  width: 300px;
  float: right; 
  margin-top: 10px;
} 
.poll-result .wrapper {
  display: flex;
  flex-flow: column;
}
.poll-result .wrapper .competitor {
  width: 50%;
  padding-bottom: 5px;
}
.poll-result .wrapper .competitor p {
  margin: 0;
  padding: 5px 0;
}
.poll-result .wrapper .competitor p span {
  font-size: 14px;
}
.poll-result .wrapper .competitor .result-bar {
  display: flex;
  height: 25px;
  min-width: 5%;
  background-color: #38b673;
  border-radius: 5px;
  font-size: 14px;
  color: #FFFFFF;
  justify-content: center;
  align-items: center;
}
.poll-result .wrapper .competitor .no-result-bar {
  display: flex;
  height: 25px;
  min-width: 5%;
  background-color: #6195a8;
  border-radius: 5px;
  font-size: 14px;
  color: #FFFFFF;
  justify-content: center;
  align-items: center;
}

/* messages */
.success {
  font-size: 1.4em;
  color: green;
  border: 1px solid green;
  background-color: #F8F8F8;
  width: 700px;
  padding: 0.2em 1em;
}
.error {
  font-size: 1.2em;
  color: red;
}

/* electors */
table.electors tbody tr td:nth-child(3), 
table.electors tbody tr td:nth-child(4) {
  color: #333;
}
.pager {
  background-color: #F8F8F8;
  text-align: center;
  margin-bottom: 10px;
}
.pager a {
  color: #e85252;
  background-color: #F8F8F8;
  border: 1px solid #666;
  padding: 2px 6px;
  text-decoration: none;
}
