@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

:root{
--green: #82bc40;
--blue: #2a92c5;
--white: #fffff9;
--blue-component-background: var(--blue);
--green-component-background: var(--green);
--link: orange;
--black: #333;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: url("../images/background-dfyk31N.jpg") 0 0;
  font-size: 1em;
}

p {
  padding: 5px;
}

a {
  color: var(--link);
  text-decoration: none;
}

img {
  vertical-align: middle;
}

header {
        background-color: var(--white);
        color: var(--white);
        padding: 10px 30px 10px 30px;
        height: 130px;
        box-shadow: 1px 1px 13px #333;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;

  h1 {
    display: inline;
    color: var(--blue);
    font-weight: 200;
  }

  .logo-card {
    height: 100%;
    margin-left: 106Px;
  }
;

}

.block-blue {
    background-color: var(--blue-component-background);
    padding: 10px;
    color: var(--white);
    text-align: center;
}

.block-green {
    background-color: var(--green-component-background);
    padding: 10px;
    color: var(--white);
    text-align: center;
}

.blue {
  color: var(--blue);
  font-weight: bold;
}

div.explain span.break {
  display: block;
}

.container, footer {
  background-color: var(--white);
  box-shadow: 1px 1px 13px #333;
  padding-bottom: 20px;
}

.container {
  width: 70%;
  margin: 40px auto auto auto;
  min-height: 660px;
  padding: 10px;

  h2, h3 {
    font-weight: 200;
    text-transform: uppercase;
    display: inline;
  }

  .result {
    background-color: orange;
    margin: 50px auto auto auto;
    padding: 20px;
    width: 50%;
    strong {
      background-color: var(--white);
      padding: 5px 10px;
      border-radius: 4px;
    }

    h2 {
      display: block;
      text-decoration:underline;
      width: 100%;
    }
  }

}

.btn {
    background-color: var(--link);
    color: var(--black);
    border-radius: 8px;
    box-shadow: 1px 1px 10px #333;
    font-weight: bold;
    padding: 20px 60px;
}

.btn:visited {
  color: var(--white);
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.w-52-pc {
  width: 52%;
}

.mt-50 {
  margin-top: 50px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.ta-c {
  text-align: center;
}

.cl {
  clear: both;
}

form  {
  margin-top:10px;

  input {
    color:var(--blue);
    width: 400Px;
    height: 40px;
    font-size: 1.1em;
    padding-left: 8px;
    vertical-align: middle;
    border: var(--link) 1px solid;
  }

  button.validation{
      background-color: var(--link);
      color: var(--black);
      font-weight: bold;
      padding:10px;
      height: 44px;
      border:0;
      width: 100px;
      vertical-align: middle;
      font-size: 1em;
      cursor: pointer;
  }

  button.validation:active, a:active{
    position: relative;
    top:-1px;
    left:-1px;
  }
  div ul {
    list-style-type: none;
    color: red;
    margin: auto;
    position: absolute;
    top:400px;
  }

  div.form {
    display: flex;
    justify-content: center;
  }
}

.flash {
  padding: 16px;
  width: 70%;
  margin: -50px auto auto auto;
  border-radius: 8px;
  font-weight: 500;
  text-shadow: 1px 1px 2px var(--black);
}

.flash-error {
  background-color: indianred;
  border: darkred 1px solid;
  color: var(--white);
}

@media (max-width: 768px) {
  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  /* passer body (et tous les éléments de largeur fixe) en largeur automatique */
  body {
    width: auto;
    margin: 0;
    padding: 0;

  }
  main {
    width: 100%;
  }

  /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */

  img,
  table,
  td,
  blockquote,
  code,
  pre,
  textarea,
  input,
  iframe,
  object,
  embed,
  video,
  header,
  .wrapper,
  #slider {
    max-width: 100%;
  }

  /* conserver le ratio des images */

  img {
    height: auto;
  }
  /* gestion des mots longs */

  textarea,
  table,
  td,
  th,
  code,
  pre,
  samp {
    -webkit-hyphens: auto; /* césure propre */
    -moz-hyphens: auto;
    hyphens: auto;
    word-wrap: break-word; /* passage à la ligne forcé */
  }
/*
  code, pre, samp {
    white-space: pre-wrap; /* passage à la ligne spécifique pour les éléments à châsse fixe
  }

 */
/*
  header img {
    display: block;
  }

 */

  header img.logo-card {
    height: 100px;
  }

  .hide_mobile {
    display: none !important;
  }

  .container {
    width: 80%;
  }

  .w-52-pc {
    width: 100%;
    margin-top: 10px;
  }
  .btn {
    padding: 20px 40px;
  }

  div.form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  button.validation{
    margin-top: 10px;
    width: 100%;
  }
}


