/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

html {
  font-family: 'Roboto', sans-serif;
}

body{
  background-image: url('../img/fond.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: 0;
  padding: 0;
  /* Permet de pousser le pied de page en bas de la fenêtre du navigateur */
  min-height: 100vh;
}

/* Version before 03/09/2023
main section {
  /* height: 60em; */
  /*
  display: flex;
  justify-content:flex-end;
  gap: 5em;
  padding: 0em 5em;
  align-items: center;
  /* flex-wrap: wrap; *//*
}
*/

main{
  overflow: hidden;
}

main section {
  height:100vh;
  display:flex;
  justify-content: space-between;
  align-items: center;
}

/* Version before 03/09/2023
main section > div{
  width: 25%;
  /* padding-right: 5em; *//*
  transform: translateX(-30%);
  z-index: -1;
}
*/

main section > div{
  width: 20%;
  transform: translateX(-14%);
  z-index: -1;
}

/* Version before 03/09/2023
main section > div img{
  /* width: 120%; */
  /*Ajout pour redimension preview JF aguille client*//*
  position:relative;
  top:5rem;
  left:3rem;
  width:60rem;
}*/

main section > div img{
  position:relative;
  top:5.5rem;
  left:3rem;
  width:57em;
}

main section > div > h1{
  font-size: 4em;
  font-family: 'Oooh Baby', cursive;
  text-decoration: underline;
}

/*Version before 03/09/2023
main section > article{
  width: 25%;
  /* transform: translateX(20em); *//*
}*/

main section > article{
  width: 25%;
  /* transform: translateX(20em); */
}

main section > article h1{
  font-size: 2em;
  text-align: center;
  white-space: pre-line;
  font-weight: normal;
}

main section > div > p{
  margin: 0;
}

main section > article p{
  font-size: 1.25em;
  text-align:left;
  white-space: pre-line;
  margin-top: 2em;
  margin-bottom: 0em;
}

main section > div > p{
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 0em;
}

/* Version before 03/09/2023
main section>form {
  color: white;
  background-color: #80C28F;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2em 2em;
  margin:0.25%;
  width: 35em;
  border: 5px #659f73 solid;
  box-shadow: -20px 3px 30px 0px rgba(0,0,0,0.25);
  /*Ajout pour redimension preview JF aguille client*//*
  height: 56.25rem;
}*/

main section>form {
  color: white;
  background-color: #80C28F;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2em 2em;
  margin: 2% 3% 2% 2%;
  width: 28%;
  border: 5px #659f73 solid;
  box-shadow: -20px 3px 30px 0px rgba(0,0,0,0.25);
  /*Ajout pour redimension preview JF aguille client*/
  height: 90%;
}

main section>form >h1{
  text-align: center;
  white-space: pre-line;
  margin: 0em 0em .5em 0em;
  font-size: 2.5em;
  font-weight: bold;
  border-bottom: white 2px solid;
  /*effet sur le texte :*/
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#hello{
 margin:0 auto;
}

main section>form>input,
main section>form>label{
  margin: .2em 0em;
}

main section>form>label {
  font-size: 1.5em;
}

main section>form>input {
  height: 2.5em;
  font-size: 1.5em;
  border-radius: 10px;
  border: none;
}

main section>form>textarea{
  font-size: 1.25em;
  border-radius: 10px;
  resize: both;
  /*min-width: 200px;*/
  min-height: 11.5%;
  /*max-width: 100%;*/
  max-height: 16%;
  margin: .2em 0em 2em 0em;
}

main section>form input[name = "condition"]{
  width: 1em;
  height: 1em;
}

main section>form> button{
  margin-top: 5.8%;
  /* background-color: #e74c3c; */
  background-image: linear-gradient(to right, #ff3838, #ff4d4d);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: none;
  border-radius: 10px;
  /* margin-top: 2em; */
  height: 5em;
  width: 100%;
  padding: 1em;
  box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.37)  ;
}

main section>form> button h1{
  margin: 0;
  color: white;
}

main section>form div{
  display: flex;
  align-items: center;
  gap: 1em;
  font-size:83%;
}

@media screen and (max-width: 600px) {
  main > div{
    display: none;
  }

  main section {
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0em;
  }

  main section > article:first-child{
    width: 90%;
  }

  main section>form {
    width: 75%;
    margin: 2em;
  }

  main section > article:first-child h1{
    font-size: 2em;
  }

  main section > article:first-child p{
    font-size: 1.25em;
  }

  main section>form >h1{
    font-size: 2.5em;
  }

  main section>form>input,
  main section>form>label  {
    font-size: 1em;
  }
}

footer{
    /* Fixe le pied de page en bas de la fenêtre */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    margin: 0;
    padding: 0;
}

footer nav ul{
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer nav li {
  color:black;
  margin: 0em 1em 0em 0em;
  text-decoration: none;
}

footer nav li a{
  color:black;
  font-size:0.75em;
  text-decoration:none;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

/* Ci dessous pour les laptops */
@media only screen and (max-width: 1600px) {

main section > article h1{
    font-size:1.75em;
  }

/* form full-page */
/*
main section {
  align-items:start;
  margin:1em 0em 0em 0em;
}*/

main section > div{
  transform: translateX(-16%);
}
main section > div img{
  width:48em;
  top:4rem;
}

main section > article{
  width: 30%;
  /* transform: translateX(20em); */
}


main section>form{
  height:88%;
}

main section>form >h1{
    font-size:2em;
  }

main section>form>label {
  font-size: 1em;
}

main section>form>textarea{
  margin: 0.2em 0em 1em 0em;
}

}

@media only screen and (max-width: 1200px) {
  /* Styles pour les écrans de largeur maximale de 1200 pixels */

main section{
    flex-direction:column-reverse;
    height: auto;
  }

main section > div{
    display:none;
  }

main section>form{
  width:75%
}

main section>form >h1{
  font-size:2em;
}

main section>form>label{
  font-size:1.7em;
}

main section>form div{
  font-size:1.45em;
}

main section > article{
  width:90%;
}

main section > article h1{
  font-weight:bold;
}
[type="checkbox"]{
transform: scale(2);
}

}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}