/*! HTML5 Boilerplate v9.0.1 | 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
   ========================================================================== */


   @font-face {
    font-family: "FactorAregular";
    src: url("../font/FactorA-Regular.otf") format("opentype");
   }

   @font-face {
    font-family: "FactorAbold";
    src: url("../font/FactorA-Bold.otf") format("opentype")
       }

*{
 font-family: "FactorAbold", sans-serif;
 color: #fff;
 }

   *{
    margin: 0 auto;
   }

   a, a:hover, a:visited, a:focus, a:active{
    color: #fff;
   }

   .grid-x{
    margin: 0 5vw;
   }

   h1, h2, h3, h4, p{
    margin: 0 auto;
   }

   h2{
    font-size: 60px;
    line-height: 70px;
   }

   h3{
    font-size: 30px;
    line-height: 40px;
   }

   #burger{
    cursor: pointer;
   }

   #burger div{
    background: #FF301C;
    width: 35px;
    height: 4px;
    display: block;
   }
   #burger div::before{
    margin-top: 10px;
   }

   #burger div{
    background: #FF301C;
    width: 35px;
    height: 4px;
    margin-bottom: 5px;
   }

   header{
    position: relative;
   }

   .link{
    display: flex;
    justify-content: center;
   }
   .link img{
    width: 35px;
    margin: -12px 10px 0 0;
   }
   .link a{
    font-size: 30px;
   }

   #menu{
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 100vw;
    background: #FFC697;
    z-index: 5;
   }
   #menu p{
    font-size: 60px;
    line-height: 70px;
    color: #fff;
    margin: 60px 0 0 60px;
   }

   #menu .menucours{
    background: #FFE4AA;
    position: absolute;
    top: 0;
    width: 50%;
    height: 45.5%;
   }
   #menu .menucours p{
    color: #4B43F8;
   }
   #menu .menuevent{
    background: #FF7900;
    position: absolute;
    top: 45%;
    width: 50%;
    height: 33.75%;
   }
   #menu .menuteam{
    background: #4B43F8;
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 33.75%;
   }
   #menu .menudancefloor{
    background: #FF301C;
    position: absolute;
    left: 50%;
    top: 33.75%;
    width: 50%;
    height: 45%;
   }
   #menu .menucontact{
    background: #A4A4F8;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 21.25%;
   }
   #menu .closemenu{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10%;
    height: 21.25%;
    display: flex;
    justify-content: center;
    align-items: center;
   }

   #menu .closemenu div div{
    background: #4B43F8;
    width: 75px;
    height: 4px;
    transform-origin: center;
   }
   #menu .closemenu div div:first-child{
    transform: rotate(45deg);
   }
   #menu .closemenu div div:nth-child(2){
    transform: rotate(-45deg);
    margin-top: -4px;
   }

   /*
    * HOME
    */

  #home{
    background: #4B43F8;
  }

  #home #burger{
    position: absolute;
    right: 5vw;
    top: 48%;
  }

   #home header{
    width: 100vw;
    height: 100vh;
    min-height: 500px;
   }

   #home header h1{
    height: 100vh;
    position: relative;
   }

   #home header h1 svg{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 96vh;
    transform: translateX(2.5vw);
   }

   #home header #videocontain{
    overflow: hidden;
    width: 50vw;
    height: 100vh;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    z-index: -1;
    border-radius: 0 30px 30px 30px;
   }
   #home header #videocontain video{
    min-width: 50vw;
    object-fit: cover;
    padding-top: 5%;
    object-position: center;
   }

   #home #logototal{
    width: 22vw;
    position:absolute;
    bottom: 30px;
    right: 3vw;
   }

   #home #logototal svg{
    width: 100%;
   }

   #home #lastnews{
    padding: 215px 0;
   }

   #home #lastnews .event h2{
    margin-top: -10px;
   }

   #home .event h2 p{
    display: inline;
   }
   #home .event h2 img{
    margin-top: -12px;
    margin-right: 15px;
   }
   #home .event h3 p{
    margin-left: 75px;
   }

   #home #homecours{
    margin: 50px 0 200px 0;
    padding-top: 100px;
   }
   #home #homecours ul li{
    list-style-type: none;
    font-size: 60px;
    line-height: 70px;
    text-transform: uppercase;
    margin-bottom: 90px;
    position: relative;
    overflow: visible;
  }
  #home #homecours ul li span img{
    margin-top: -12px;
    margin-left: 15px;
    transition: all .5s ease-out;
  }
  #home #homecours ul li a:hover span img{
    margin-left: 45px;
    transition: all .5s ease-out;
  }
  #home #homecours ul li div{
    width: 260px;
    height: 260px;
    position: absolute;
    left: calc(50% - 130px);
    top: calc(50% - 130px);
    z-index: -2;
  }
  #home #homecours ul li:nth-child(1) div{
    background: radial-gradient(closest-side, #FF301C, #4c43f800);
    left: 0;
  }
  #home #homecours ul li:nth-child(2) div{
    background: radial-gradient(closest-side, #FF7900, #4c43f800);
    left: calc(50% - 60px);
  }
  #home #homecours ul li:nth-child(3) div{
    background: radial-gradient(closest-side, #A4A4F8, #4c43f800);
    left: -45px;
  }
  #home #homecours ul li:nth-child(4) div{
    background: radial-gradient(closest-side, #FFC697, #4c43f800);
    left: calc(50% - 150px);
  }
  #home #homecours .teaserprive{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #home #homecours .teaserprive div p{
    font-size: 30px;
    line-height: 40px;
    font-family: "FactorAregular";
    margin-top: -100px;
  }
  #home #homecours .link{
    margin-top: 50px;
  }

  #home .linkprogramme p{
    display: inline;
  }


  #home #hometeam{
    height: 100vh;
    position: relative;
  }
  #home #hometeam #videocontain{
    overflow: hidden;
    width: 50vw;
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    border-radius: 30px 30px 30px 30px;
   }
   #home #hometeam #videocontain video{
    min-width: 50vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
   }
   #home #hometeam .link{
    height: 100vh;
    align-items: center;
   }

   footer{
    padding: 250px 0 50px 0;
   }

   footer p{
    margin-bottom: 20px;
   }

   footer .link{
      justify-content: left;
   }

   footer p{
      font-family: "FactorAregular";
   }

   footer .logofoot{
     height: 100%;
     position: relative;
   }

   footer .logofoot svg{
    position: absolute;
    bottom: 70px;
   }

     /* IPAD Portrait and Landscape */
@media screen and (min-width: 640px) and (max-width: 1023px) {
  #home header #videocontain {
    width: 100vw;
    border-radius: 0;
  }
  #home #logototal svg path{
    fill: #fff;
  }
  #home #logototal svg rect{
    fill: #fff;
  }
  #home #homecours .teaserprive div p {
    margin-top: 0;
}
.link {
    justify-content: left;
}
footer .logofoot {
    height: 80%;
  }
}

     /* Iphone Portrait and Landscape */
 @media screen and (max-width: 639px) {
  #home header #videocontain {
    width: 100vw;
    border-radius: 0;
  }
  #home #logototal svg path{
    fill: #fff;
  }
  #home #logototal svg rect{
    fill: #fff;
  }
  #home #homecours .teaserprive div p {
    margin-top: 0;
}
.link {
    justify-content: left;
}
footer .logofoot {
    height: auto;
  }
  #home #logototal {
    width: 50vw;
  }
  #home #homecours ul li {
    font-size: 30px;
    line-height: 20px;
  }
  #home #homecours .teaserprive div p {
    font-size: 20px;
    line-height: 30px;
  }
  .link a {
    font-size: 20px;
}
#home #homecours {
    margin: 50px 0 100px 0;
  }
  .link img {
    width: 29px;
    margin: -7px 10px 0 0;
}
#home #hometeam #videocontain {
        width: 90vw;
        top: 0;
        left: 5vw;
}
#home header #videocontain video {
    height: 100%;
    padding-top: 0;
}
footer .logofoot  {
    margin-top: 50px;
}
footer .logofoot svg {
    position: relative;
    bottom: 0;
}
footer .linkprogramme{
  margin-top: 30px;
}
#home #logototal {
    left: 50vw;
    margin-left: -25vw;
  }
}

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

