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

/* main.css 2.1.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
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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
   ========================================================================== */
  
   body{
    font-family: "Nunito",sans-serif;
   }

   /* hero */

   #hero {
    background-image: linear-gradient(to right top,#113e55,#155371,#18698e,#1a80ad,#1a97cc);
    color: white;
    position: relative;
    height: 100vh;
  }

  #hero .brand-wrapper {
    padding: 1rem;
    z-index: 10;
  }

  img{
    width: 100%;
  }

  #cloud{
    background-image: url('../img/hero/cloud.png');
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100%;
  }

  #hero .brand-wrapper img {
    width: 150px;
  }

  #header-content{
    display: flex;
    justify-content: flex-start;
    gap: 5em;
  }
  
  #header-text{
    background-image: url("../img/hero/rocket.png");
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    bottom: 10em;
  }

  #hero .hero-title {
    color: white;
    font-size: 2em;
    text-shadow: 2px 2px 1px #000;
  }

  #hero .hero-slogan {
    color: white;
    font-size: 1.5em;
    text-shadow: 2px 2px 1px #000;
  }

  .header-text-wrapper{
    text-align: center;
    position: relative;
    bottom: 4em;
  }

  /* formulaire */

  #inscription-form{
    /*padding: 3em;*/
    padding-top: 10em;
    background-image: url("../img/background_form.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 26em;
    text-align: center;
    z-index: 1;
  }

  #hero #inscription-form form {
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    place-items: center;
    position: relative;
  }

  #hero #inscription-form form .input-icon {
    background-color: #a0a0a0;
    width: 25px;
    height: 25px;
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    place-items: center;
  }

  #hero #inscription-form form .single-input {
    width: 80%;
    display: inline-flex;
    margin: 1em 0 0.5em 0;
    height: 2.3em;
  }

  #hero #inscription-form form .single-input input {
    width: 100%;
    height: 100%;
  }

  #hero #inscription-form form .single-input .input-wrapper {
    width: 100%;
  }

  #hero #inscription-form form .single-input .input-icon{
    height: 115%;
    width: 2.5em;
  }

  #hero #inscription-form form .double-input{
    display: flex;
    gap: 0.3em;
    width: 80%;
  }

  #hero #inscription-form form .double-input .single-input:first-of-type {
    width: 60%;
    margin-right: 0.3em;
  }

  #hero #inscription-form form .double-input .single-input:last-of-type {
    width: 38%;
  }

  #hero #inscription-form p{
    margin: 0;
  }

  .cgv-wrapper{
    /*position: relative;
    right: 4em;*/
    margin-top: 5%;
    width:80%;
    font-size:80%;
  }

  .button-wrapper{
    width: 100%;
    height: 10em;
    background-image: url('../img/hero/button.png');
    background-size: 100% 100%;
    background-position: bottom;
  }

  .button-wrapper .button-content{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .button-wrapper .button-content button{
    position: relative;
    top: 1em;
    outline: none;
    border: none;
    background-color: transparent;
    text-transform: uppercase;
    color: #1A97CC;
    font-weight: 800;
    font-size: 1.1rem;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  #hero #inscription-form form .cgv-wrapper label a {
    text-decoration: none;
    color: white;
  }

  #sea{
    position: absolute;
    bottom: 0;
  }

  #error-container{
    color: #f0932b;
    font-style: italic;
    text-align: left;
    margin-top: 1rem;
    width: 80%;
  }



  /* about */
  #about{
    width: 100%;
    position: relative;
    margin-top: 10em;
  }

  #about .informations.container{
    display: flex;
    justify-content: space-around;
  }

  #about .informations .information .icon-wrapper {
    width: 30%;
    text-align: center;
    margin-bottom: 1rem
  }

  #about .informations .information {
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    place-items: center;
    width: 26%;
    text-align: center;
    margin: 1rem 0;
  }

  #about .informations .information .information-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 0;
  }

  #about .informations .information p {
    color: #1A97CC;
    font-size: 1.1rem;
  }

  #about-bird{
    width: 15em;
    position: absolute;
    top: -15em;
    left: 5em;
  }

  /* SpecJob */

  #specJob{
    display:flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  #imageContainerSpecJob{
    display:flex;
    flex-direction:column;
    width: 35%;

  }

  #imageContainerSpecJob h3{
    text-align: center;
    color: #1A97CC;
    text-shadow: 1px 1px 1px #D3D3D3;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
  }

  #pointsSpecJob{
    display:flex;
    flex-direction:column;
    width: 35%;
  }

  #specJob div{
    margin: 4%;
  }

  #pointsSpecJob p{
    white-space: pre-wrap;
    font-weight: 400;
  }

  #pointsSpecJob p:first-child{
    font-size: 1.75rem;
    text-decoration: 12% underline #1A97CC;
  }

  #pointsSpecJob p:nth-child(2){
    font-size:1.55rem;
  }

  #pointsSpecJob p:nth-child(2) strong{
    color:#1A97CC;
  }


  #pointsSpecJob a {
    background-color: #1A97CC;
    border: none;
    color: white;
    padding: 4%;
    width: 45%;
    margin: 4% auto;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
  }


  /* Accompagnement */
  #accompaniment {
    background-image: linear-gradient(to bottom right,#113e55,#155371,#18698e,#1a80ad,#1a97cc);
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    place-items: center;
    color: white;
    position: relative;
    padding: 4rem 0;
    text-align: center;
  }

  #accompaniment {
    color: white;
    text-align: center;
  }

  .container {
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .accompaniment-button a {
    width: 14em;
    display: inline-block;
    height: 3em;
    background-image: url('../img/accompaniment/button.png');
    background-size: 100% 100%;
    padding-top: 3em;
  }

  #accompaniment .accompaniment-cta {
    text-transform: uppercase;
    color: #1A97CC;
    text-decoration: none;
  }

  /* features */

  #features {
    display: flex;
    flex-flow: column wrap;
    place-content: center;
    place-items: center;
    position: relative;
    padding: 4rem 0 2rem 0;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
  }

  #features .features-title {
    font-weight: 900;
    font-size: 1.6rem;
  }

  #features table {
    font-size: 0.9rem;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
  }

  #features table thead th {
    height: 50px;
    place-content: center;
    place-items: center;
    color: white;
    vertical-align: middle;
  }

  #features table td, #features table th {
    padding: 0.5rem 0.2rem;
    text-align: center;
    vertical-align: middle;
    font-size: 1rem;
  }

  #features table thead th:nth-of-type(2) {
    background-color: #1A97CC;
    border-top-left-radius: 5px;
    font-size: 1.8rem;
    text-transform:uppercase;
    text-shadow: 5px 5px 0px rgba(0,0,0,0.2);
    width:20%;
  }

  #features table thead th:nth-of-type(3) {
    background-color: #14769f;
    font-size: 1.8rem;
    text-transform:uppercase;
    text-shadow: 5px 5px 0px rgba(0,0,0,0.2);
    width:20%;
  }

  #features table thead th:nth-of-type(4) {
    background-color: #0e5472;
    border-top-right-radius: 5px;
    font-size: 1.8rem;
    text-transform:uppercase;
    text-shadow: 5px 5px 0px rgba(0,0,0,0.2);
    width:20%;
  }

  .fa-check{
  color: #2ecc71;
  }

  #features table tbody {
    box-shadow: 0 0 0 1px #1A97CC;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
  }

  #features table tr td:first-of-type {
    text-align: left;
    font-size: 0.99rem;
    font-weight: bolder;
    padding: 1rem;
  }

  #features table tr:nth-of-type(2n) {
    background-color: #ececec;
  }

  #features table tr:nth-of-type(2n) td:nth-of-type(2n) {
    background-color: #d1d1d1;
  }

  .features-rocket{
    position: absolute;
    top: -3em;
    width: 30em;
    z-index: -1;
  }

  /* footer */
  footer {
    background-color: #1A5F83;
    display: flex;
    flex-flow: column wrap;
    justify-content: space-around;
    padding: 1rem;
  }

  footer .brand-wrapper img {
    width: 100px;
  }
  img {
    max-width: 100%;
    height: auto;
  }

  footer ul {
    display:flex;
    flex-direction: row;
    justify-content: center;
    overflow:hidden;

  }

  footer ul li {
    list-style: none;
    margin:0.5%;
  }
  
  footer ul li a {
    text-decoration:none;
    color: #FFFFFF;
  }

  footer .copyright {
    color: #FFFFFF;
  }



  

/* ==========================================================================
   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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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 screen and (max-width: 720px) {

    /* hero */
    #hero {
      text-align: center;
      height: 100%;
    }


    .brand-wrapper{
      display: none;
    }

    #header-content {
      display: flex;
      flex-direction: column-reverse;
      justify-content: center;
      gap: 0;
      align-items: center;
    }

    #header-text {
      background-size: 100% 100%;
      width: 100%;
      bottom: 0em;
    }

    .header-text-wrapper{
      bottom: 0;
    }

    #inscription-form {
      width: 100%;
    }

    #sea {
      position: relative;
      bottom: 0;
    }

    #about-bird {
      width: 8em;
      top: -10em;
    }

    /* about */
    #about .informations.container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    #about .informations .information {
      width: 100%;
    }

    /* SpecJobs */
    #specJob{
      display:flex;
      flex-direction: column;
    }

    #imageContainerSpecJob{
      width: 90%;
    }

    #pointsSpecJob{
      width: 90%;
    }

    /* features */
    #features table {
      display:none;
    }
  }

  @media screen and (max-width: 1500px) {
    #inscription-form {
      font-size: 12px;
    }

    .button-wrapper .button-content button{
      font-size: 0.9rem;
    }

  }   

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

@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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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

