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

/* GLOBAL */
@font-face {
  font-family: "NeueHaasUnica";
  src: url("../font/neuehaasunicapromedium.woff") format("woff"),
         url("../font/neuehaasunicapromedium.woff2") format("woff2");
 }
 
 *{
  font-family: "NeueHaasUnica", sans-serif;
  box-sizing:border-box;
 }

  a{
    color: #000;
  }

   #prebody{
    background: url(../img/back-.jpg);
    background-position: center;
    background-size: cover;
    height: 100vh;
    padding: 30px 0 0 30px;
   }

   h1{
    font-size: 48px;
    line-height: 53px;
    font-weight: 300;
   }

   .title{
    width: 240px;
    height: 240px;
    background: #EADAC4;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 240px;
   }

   .textprincipal{
    background: #EADAC4;
    width: 406px;
    height: 406px;
    border-radius: 406px;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -50px;
    right: 0;
   }
   .textsecondaire{
    background: #EADAC4;
    width: 270px;
    height: 270px;
    border-radius: 406px;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 330px;
    right: 0;
   }

   .link{
    background: #EADAC4;
    width: 200px;
    height: 200px;
    border-radius: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top:310px;
    right: 262px;
   }
   h2{
    font-size: 48px;
    line-height: 53px;
    font-weight: 300;
    position: relative;
   }
   .link span{
    display: block;
    position: absolute;
    left: -8px;
    top: 0;
    width: 51px;
    height: 51px;
    border: 1px #000 solid;
    border-radius: 60px;
    transition: all .5s ease-out;
   }
   a:hover .link span{
    width: 60px;
    height: 60px;
    left: -12px;
    top: -4px;
    transition: all .5s ease-out;
   }

   footer{
    background: #EADAC4;
    position: absolute;
    height: 103px;
    bottom: 0;
    width: 100vw;
    left: 0;
    padding: 28px;
    column-count: 4;
   }

   footer img{
    width: 150px;
   }

   /* IPAD Portrait and Landscape */
@media screen
and (min-device-width: 639px) and  (max-device-width: 1023px), (min-width: 639px)  and (max-width: 1023px) {
  body{
    height: 1500px; 

  }
  #prebody {
    height: 650px;
      background-repeat: no-repeat;
      background-position: 0 150px;
    }
    .textprincipal {
      top: 600px;
    }
    .textsecondaire {
      top: 980px;
    }
    .link {
      top: 960px;
    }
    footer{
      column-count: initial;
      height: 290px;
      top: 1300px;
    }
  }

  /* IPHONE Portrait and Landscape */
@media screen
and (max-device-width: 639px), (max-width: 639px) {
  body{
    height: 1500px; 

  }
  #prebody {
    height: 560px;
    background-repeat: no-repeat;
    background-position: -176px 150px;
    }
    .textprincipal {
      top: 520px;
      background: #EADAC4;
      width: 350px;
      height: 350px;
      border-radius: 406px;
      padding: 41px;
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      right: 0;
      font-size: 15px;
    }
    .textsecondaire {
      background: #EADAC4;
      width: 212px;
      height: 212px;
      border-radius: 406px;
      padding: 34px;
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      right: 0;
      font-size: 15px;
      top: 840px;
    }
    .link {
      background: #EADAC4;
      width: 200px;
      height: 200px;
      border-radius: 240px;
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 1000px;
      right: 125px;
    }
    footer{
      column-count: initial;
      height: 290px;
      top: 1280px;
    }

}

/* mini mobile */
@media screen
and (max-device-width: 320px), (max-width: 320px) {
  .textprincipal {
    right: -15px;
  }
}



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

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

