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

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

   @import url('../fonts/diglu-regular.css');
   @import url('../fonts/diglu-regular-italic.css');

html {
  color: #222;
  line-height: 1.4;
  width:100vw;
}

h2, p {
  margin:0;
}

a{
  color:#F32B1B;
  text-decoration:none;
}

body {
	padding: 0;
	font-family:'diglu-Regular', sans-serif !important;
	background: #F32B1B;
  overflow-x:hidden;
  position: relative;
  width:100%;
}

body::-webkit-scrollbar {
  width: 12px; /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background:#fff; /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color:#F32B1B; /* color of the scroll thumb */
  border: 2px solid #fff; /* creates padding around scroll thumb */
}

#background{
  position: fixed;
    top: 0px;
    left: 0px;
    width: 50%;
    height: 100%;
    background-color:#fff;
    z-index:0;
}

/*
  Sections
 */

section{
  padding:0;
  position: relative;
  height: 180vh;
  z-index:3;
  width:50vw;
}

.section2{
  height:200vh;
}

section div{
  position: relative;
}

section p{
  width:30vw;
  font-size:40px;
  text-align: center;
  line-height:50px;
  padding-top:5vh;
  color:#F32B1B;
  margin-left:10vw;
  margin-right:10vw;
}

.specialfont{
  -webkit-text-stroke: 1.5px #F32B1B;
  color:#fff;
}

.section p{
  width:30vw;
  position: absolute;
  font-size:100px;
  line-height: 120px;
  top:45vh;
  margin-top:-137px;
}

.section19{
  height:100vh;
  width:50vw;
  position: relative;
}

.section19 p{
  position: absolute;
  top:45vh;
  margin-top:-83px;
}

/*
  Scroll-Animation du milieu
 */

.animation-section{
  position: fixed;
  width:50%;
  height:100vh;
  top:0;
  left:50%;
  display: inline-block;
  padding-bottom: 100%;
  vertical-align: top;
  overflow: hidden;
}


svg {
  width:100%;
  transform-origin: center;
	display: flex;
  position: absolute;
  justify-content: center;
  margin: auto;
}

#allcarre{
  opacity: 0;
}

/*
  Boxes
 */

 .bouton{
   background:#F32B1B;
   border:1px solid #fff;
   width:120px !important;
   height:35px !important;
   color:#fff;
   font-size:20px;
   position: absolute;
   left:50%;
   cursor:pointer;
   margin-top:20px;
   margin-left:-60px;
   padding-top:5px;
   transition: all .3s ease-out;

 }

 .bouton span{
   text-align: center;
   display: block;
 }

 .bouton:hover{
   background: #fff;
   color:#F32B1B;
   transition: all .3s ease-out;
 }

 .boxes{
   background: #f6f6f6;
   display: block;
   width:50vw;
   position: fixed;
   right:0;
   top:0;
   height:100%;
  overflow-y:scroll !important;
  overflow-x: hidden;
  display: none;
  }

 .boxes div{
  margin:80px;
 }

 .boxes h2{
  font-size:40px;
  line-height:50px;
  color:#F32B1B;
  margin-bottom:20px;
 }

.boxes p{
  font-size:25px;
  line-height: 35px;
  color:#F32B1B;
  margin:0 auto;
  margin-bottom:20px;
  text-align: left;
}

.boxes .closebox{
  position: absolute;
  top:10vh;
  right:5vw;
  cursor:pointer;
}

.boxes .imagina{
  width:100%;
  margin-bottom:20px;
  float:left;
}


.boxes::-webkit-scrollbar {
  width: 12px; 
}

.boxes::-webkit-scrollbar-track {
  background:#F32B1B;
}

.boxes::-webkit-scrollbar-thumb {
  background-color:#fff; 
  border: 2px solid #F32B1B; 
}

.go{
  display: block !important;
}

.noscroll{
  overflow:hidden !important;
}

.copyright{
  position:absolute;
  font-size:10px;
  bottom:10px;
  right:20px;
  color:#fff;
  z-index:50;
}

/* ==========================================================================
   Mediaqueries
   ========================================================================== */

   /*
 Ipad Pro portrait
 */
 @media only screen 
 and (min-device-width: 1024px) 
 and (max-device-width: 1024px) 
 and (orientation: portrait) {

  section{
    padding:0;
    z-index:3;
    width:100vw;
  }

  section p {
    width: 80vw;
    margin-left: 10vw;
    margin-right: 10vw;
}

  .section p {
    width: 80vw;
    top: 16vh;
    margin-top: -137px;
}

.section19 p {
  height:100%;
  position: absolute;
  top: 14vh;
}

  .animation-section {
    position: fixed;
    width: 100vw;
    height: 50vh;
    top: 0;
    left: 0;
    z-index:5;
}

svg {
  width: 200%;
  display: block;
  margin: auto;
  top:29.2vh;
}

#background {
  width: 100%;
  height: 32vh;
}

#backanimvertical{
  background:#F32B1B;
  height:72vh;
  width:100%;
  position:fixed;
  bottom:0;
  z-index:4;
}

}

/* Ipad Portrait and Landscape */
@media only screen 
  and (min-device-width: 668px) 
  and (max-device-width: 1024px) 
 {

    section{
      padding:0;
      z-index:3;
      width:100vw;
    }
  
    section p {
      width: 80vw;
      font-size: 35px;
      line-height: 45px;
      margin-left: 10vw;
      margin-right: 10vw;
  }
  
    .section p {
      width: 80vw;
      font-size: 80px;
    line-height: 100px;
      top: 18vh;
      margin-top: -137px;
  }
  
  .section19 p {
    position: absolute;
    top: 16vh;
    margin-top: -83px;
  }
  
    .animation-section {
      position: fixed;
      width: 100vw;
      height: 50vh;
      top: 30vh;
      left: 0;
      z-index:5;
  }
  
  svg {
    width: 104%;
    display: block;
    margin: auto;
    top: -15vh;
    left: -2vw;
  }
  
  #background {
    width: 100%;
    height: 32vh;
  }
  
  #backanimvertical{
    background:#F32B1B;
    height:70vh;
    width:100%;
    position:fixed;
    bottom:0;
    z-index:4;
  }

  .boxes{
    background: #fff;
    z-index:6;
    display: block;
    width:100%;
    position: fixed;
    right:0;
    top:0;
    background:#fff;
   overflow-y:scroll !important;
   overflow-x: hidden;
   display: none;
   }
   .boxes div {
    margin: 80px;
  }
  .boxes .closebox {
    top: 3vh;
}
.boxes h2 {
  margin-left: 0;
}

}


/* Iphone grand Portrait and Landscape */
@media only screen 
  and (min-device-width: 1px) 
  and (max-device-width: 667px) { 

    section{
      padding:0;
      z-index:3;
      width:100%;
      height:1080px;
    }

  .section2{
    height: 1200px;
  }
  
    section p {
      width: 80%;
      font-size: 25px;
      line-height: 35px;
      margin-left: 10vw;
      margin-right: 10vw;
  }
  
    .section p {
      width: 80%;
      font-size: 60px;
    line-height: 80px;
      top: 0;
      margin-top: 0;
  }
  
  .section19{
    width:100%;
    height:600px;
  }

  .section19 p {
    position: absolute;
    top: 30%;
    margin-top: 0;
  }
  
    .animation-section {
      position: fixed;
      width: 100vw;
      height: 63%;
      top: 37%;
      left: 0;
      z-index:5;
  }
  
  svg {
    width: 104%;
    display: block;
    margin: auto;
    top: -18vh;
    left: -2vw;
  }
  
  #background {
    width: 100%;
    height: 40%;
  }
  
  #backanimvertical{
    background:#F32B1B;
    height:63%;
    width:100%;
    position:fixed;
    bottom:0;
    z-index:4;
  }

  .specialfont{
    -webkit-text-stroke: 1px #F32B1B;
    color:#fff;
  }

  .boxes{
    background: #fff;
    z-index:6;
    display: block;
    width:100%;
    position: fixed;
    right:0;
    top:0;
    background:#fff;
   overflow-y:scroll !important;
   overflow-x: hidden;
   display: none;
   }
   .boxes div {
    margin: 50px;
  }
  .boxes .closebox {
    top: 3vh;
}
.boxes h2 {
  margin-left: 0;
}

.boxes p{
  font-size:20px;
  line-height: 30px;
}
    
}

/* Big screen */
@media screen and (min-width: 1800px) {
  section p{
    font-size:65px;
    line-height:75px;
  }

}

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

