/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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
   ========================================================================== */
*:after,
*:before,
*{
  box-sizing: border-box;
}
html {
    color: #222;
    font-size: 1em;
    font-family: tahoma, sans-serif;
    line-height: 1.4;
}

body {
    color: #006db5;
}
/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * 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;
}

/* ==========================================================================
   Typographie
   ========================================================================== */
   h1 {
      margin:.7em 0 1em;
      text-transform: uppercase;
   }

   h2 {
    margin: 1.2em 0 .5em;
   }

   p {
    margin: .5em 0;
   }

   a {
    color: #006db5;
   }

    @media screen and (max-width: 768px) {

        h1 {
            font-size: 22px;
        }

        h2 {
            font-size: 18px;
        }
    }

    img {
      max-width: 100%;
      height: auto;
    }

    .text-right {
      text-align: right;
    }


/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
/* Wrapper */
.wrapper {
    min-height: 100vh;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(300px, #e0ebeb), color-stop(100%, #e0ebeb));
    background: -webkit-linear-gradient(top, #fff 0, #e0ebeb 300px, #e0ebeb 100%);
    background: linear-gradient(to bottom, #fff 0, #e0ebeb 300px, #e0ebeb 100%);
    text-align: center;
    width: 100%;

    -webkit-box-pack:center;

    -webkit-justify-content:center;

        -ms-flex-pack:center;

            justify-content:center;
    -webkit-box-align:center;
    -webkit-align-items:center;
        -ms-flex-align:center;
            align-items:center;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
    -webkit-flex-direction:column;
        -ms-flex-direction:column;
            flex-direction:column;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
}

.site-titre {
  width: 100%;
  margin: 0;
  padding: 10px;
  text-transform: none;
  font-size: 22px;
}

@media screen and (min-width: 500px) {
  .site-titre {
      font-size: 28px;
  }
}

@media screen and (min-width: 768px) {

  .site-titre {
      font-size: 30px;
  }
}



/* Main */
main {
  position: relative;
  overflow: hidden;
}

/* bloc-video */
.videos-wrapper {
   position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
  flex-wrap: wrap;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.close-player-container {
  text-align: right;
  margin: 0 20px -15px 0;
  position: relative;
  z-index: 10;
}

@media screen and (min-width: 500px) {
  .close-player-container {
    margin-right: 38px;
  }
}

.close-player {
  opacity: 0;
  pointer-events: none;

  position: relative;
  right: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('../img/icon-cross.png');
  -webkit-background-size: contain;
  background-size: contain;
  border-radius: 50%;
  -webkit-transition:  .3s;
  -o-transition:  .3s;
  transition:  .3s;
  z-index: 10;
}

.close-player.is-playing {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  -webkit-transition: opacity .3s 1.8s, transform .2s;
  -o-transition: opacity .3s 1.8s, transform .2s;
  transition: opacity .3s 1.8s, transform .2s;
}

.close-player:hover {
  -webkit-transform: scale(1.2) translateZ(0);
  -ms-transform: scale(1.2) translateZ(0);
  -o-transform: scale(1.2) translateZ(0);
  transform: scale(1.2) translateZ(0);
}

@media screen and (min-width: 768px) {
  .bloc-video {
    width:550px;
  }

}

@media screen and (min-width: 992px) {
  .videos-wrapper {
    -webkit-flex-wrap: nowrap;
    -moz-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    -o-flex-wrap: nowrap;
    flex-wrap: nowrap;
    max-width: 900px;
  }
}

@media screen and (min-width: 1100px) {
  .videos-wrapper {
    max-width: 1024px;
  }
}

.bloc-video {
  -webkit-flex: 1 1 auto;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
}

@media screen and (min-width: 500px) {
  .bloc-video {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.bloc-video-img {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  padding: 18px;
  background-color: #fff;
  -webkit-transform: translateY(0) translateZ(0);
  -ms-transform: translateY(0) translateZ(0);
  -o-transform: translateY(0) translateZ(0);
  transform: translateY(0) translateZ(0);
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}

/* bloc-img */
.bloc-video-img:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 37px;
  background-image: url('../img/icon-play.png');
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: auto 15px;
  background-size: auto 15px;
  background-color: rgba(0,0,0,.8);
  border-radius: 8px;
  -webkit-transform: translate(-50%, -50%) translateZ(0) scale(1);
  -ms-transform: translate(-50%, -50%) translateZ(0) scale(1);
  -o-transform: translate(-50%, -50%) translateZ(0) scale(1);
  transform: translate(-50%, -50%) translateZ(0) scale(1);
  -webkit-transition: transform .3s cubic-bezier(.43,1.5,.78,1.5);
  -o-transition: transform .3s cubic-bezier(.43,1.5,.78,1.5);
  transition: transform .3s cubic-bezier(.43,1.5,.78,1.5);
  z-index: 1;
}

.bloc-video-img:hover {
  cursor: pointer;
  box-shadow: 0 10px 40px 3px rgba(0,0,0,0.2);
  -webkit-transform: translateY(-3px) translateZ(0);
  -ms-transform: translateY(-3px) translateZ(0);
  -o-transform: translateY(-3px) translateZ(0);
  transform: translateY(-3px) translateZ(0);
}

.bloc-video-img:hover:before {
  -webkit-transform: translate(-50%, -50%) translateZ(0) scale(1.15);
  -ms-transform: translate(-50%, -50%) translateZ(0) scale(1.15);
  -o-transform: translate(-50%, -50%) translateZ(0) scale(1.15);
  transform: translate(-50%, -50%) translateZ(0) scale(1.15);
}

.bloc-video-img img {
  width: 100%;
}

.bloc-video-focus {
  box-shadow:0 0 0 0 transparent, 0 0  0 6px  #ef4b6c inset;
}

.bloc-video-focus:hover {
  box-shadow: 0 10px 40px 3px rgba(0,0,0,0.2), 0 0  0 6px  #ef4b6c inset;
}

/* video selectionnée */
.bloc-video.is-selected .bloc-video-texte {
  display: none;
}

/* iframe */
.bloc-video-img-container {
  position: relative;
  display: inline-block;
  transform:translateZ(0);
  background:#fff;
}

.bloc-video-img iframe {
  position: absolute;
  transform:translateZ(0);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}


/* bloc-texte */
.bloc-video-texte {
  font-size: 16px;
  max-width: 418px;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 500px) {
  .bloc-video-texte {
    font-size: 19px;
  }
}

.bloc-video-titre {
  font-style: italic;
  font-size: inherit;
  margin: 0;
}

@media screen and (min-width: 1100px) {
  .bloc-video-texte {
    padding: 0 10px;
  }
}


/* ------------------------------------------------



 ECRAN MOINS DE 640PX DE HAUT



------------------------------------------------ */
@media screen and (max-height: 639px) {

  .videos-wrapper {
    max-width: 850px;
  }

  .site-titre {
    font-size: 24px;
  }

  .bloc-video {
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .bloc-video-texte {
    font-size: 17px;
  }

}


/* ------------------------------------------------



 PULSE



------------------------------------------------ */
.bloc-video-focus {
  animation: pulse 1.4s ease 3 1s;
}

@keyframes pulse {
  0 {
    transform:scale(1);
    -webkit-transform:scale(1);
  }
  50% {
    /*box-shadow:0 0 0 0 transparent, 0 0  0 0  #ef4b6c inset;*/
   transform:scale(1.02);
    -webkit-transform:scale(1.02);
  }
/*
  20% {
    box-shadow:0 0 0 0 transparent, 0 0  0 6px  #ef4b6c inset;
  }*/
}

/* ------------------------------------------------



 ANIMATION



------------------------------------------------ */




/*BLOC VIDEO*/
.bloc-video {
  transition: .6s ease .3s;

  transform:  translateZ(0);
  will-change: width;
  overflow:   hidden;
}

.is-hidden {
  pointer-events: none;
  padding:0;
  width: 0;
}


.bloc-video-wrapper {
  transition: .3s ease;
  position: relative;
  transform: translateZ(0);
  opacity: 1;
}

.is-hidden .bloc-video-wrapper {
  transform:  translateZ(0);
  opacity: 0;

}


.is-visible {
  transition-delay: .3s;
  width:  703px;
  will-change:width;
}

.is-visible .bloc-video-img:before {
  display: none;
}

/*TEXTE*/
.bloc-video-texte  {
  transition:max-height .3s ease .3s, opacity .2s ease 0s;
  max-height: 100px;
  overflow: hidden;
  opacity: 1;
}


.is-visible .bloc-video-texte {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}


/*REMBOBINONS*/
.is-reset .bloc-video-texte {
  transition: max-height .9s ease .3s, opacity .4s ease 1.2s;
}

.is-reset .bloc-video-wrapper {
    transition-delay:.9s;
}
.is-reset.bloc-video  {
    transition-delay:.3s;
}


@media screen and (max-width:   991px) {
    .is-hidden {
      display: none;
    }
    .is-visible {
      width: 100% !important;
      max-width: 640px;
      display: block;
    }

    .close-player,
    .bloc-video,
    .bloc-video * {
      transition:none !important;
      transition-delay:0s !important;
    }
}


/* ------------------------------------------------



Iframe responsive




------------------------------------------------ */
.intrinsic-container {
  position: relative;
  height: 0;
  overflow: hidden;
}

/* 16x9 Aspect Ratio */
.intrinsic-container-16x9 {
  padding-bottom: 56.25%;
}

/* 4x3 Aspect Ratio */
.intrinsic-container-4x3 {
  padding-bottom: 75%;
}

.intrinsic-container iframe {
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* Footer */
footer {
  width: 100%;
  font-size: 12px;
  font-weight: bold;
}

.footer-texte {
  font-size: 11px;
  padding-left:8px;
  padding-right: 8px;
}

footer a{
  text-decoration: none;
  text-transform: uppercase;
  transition: .3s;
}

footer a:hover {
  text-decoration: underline;
}

.logo-footer {
  max-width: 100px;
  margin-top: 5px;
}






/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    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: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}


@media screen and (max-width: 540px) {
    .hidden-xs {
        display: none !important;
    }
}

@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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
