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


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

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* =========================================================================
   Author's custom styles
   ========================================================================= */
body {
  font-family: 'Montserrat', sans-serif;
  background-color:#fff;
  color: #1f1f1f;
  font-size: 1em;
  line-height: 1.4;
}

* {
  -webkit-tap-highlight-color: transparent;
  white-space: normal;
  word-break: keep-all !important;
  -webkit-hyphens: manual !important;
  -moz-hyphens: manual !important;
  -ms-hyphens: manual !important;
  -o-hyphens: manual !important;
  hyphens: manual !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  transition:color 0.2s linear, background 0.2s linear, border 0.2s linear;
  color:#97C234;
}
a:visited,
a:focus,
a:link {
  text-decoration: underline;
  color:#97C234;
}
a:hover {
  text-decoration: underline;
  color:#97C234;
}

.no-outline,
.no-outline:focus,
.no-outline:hover,
.no-outline:active {
  outline:0;
}

img {
  max-width:100%;
  height:auto;
}
.min-padding-top {
  padding-top:60px;
}
.padding-top {
  padding-top:140px;
}
.big-padding-top {
  padding-top:220px;
}
.min-padding-bottom {
  padding-bottom:60px;
}
.padding-bottom {
  padding-bottom:140px;
}
.big-padding-bottom {
  padding-bottom:220px;
}
.page-content {
  color:#1f1f1f;
  font-size:14px;
}
@media (min-width:768px) {
  .page-content {
  }
}
.the-content .text {
  text-align:left;
}
.the-content .text h3 {
  color:#c42720;
  text-transform:uppercase;
  font-size:18px;
}
.page-standard .the-content .text h3 {
  color:#707070;
  text-transform:none;
  font-size:18px;
}
.the-content .text a {
  font-weight:bold;
}
@media (max-width:575px) {
  .padding-top {
    padding-top:80px;
  }
  .padding-bottom {
    padding-bottom:80px;
  }
}
/*** medias ***/
.video-responsive {
  width:100%;
  height:0;
  padding-bottom:56.25%;
/*  overflow:hidden;*/
  position:relative;
  margin-bottom: 40px;
}
.video-responsive iframe, 
.video-responsive embed, 
.video-responsive object,
.video-responsive .video-js {
  width:100%!important;
  height:100%!important;
  position:absolute!important;
  top:0;
  left:0;
}

.back-to-top {
  position:fixed;
  z-index:100;
  right:0px;
  bottom:0px;
  background-color:#97C234;
  color:#fff;
  width:40px;
  height:40px;
  text-align:center;
  opacity:0;
  transition:opacity 0.6s;
}
.back-to-top.visible {
  opacity:0.8;
}
.back-to-top a {
  height: 40px;
  position: relative;
  width: 40px;
  display: block;  
}
.back-to-top a::before {
  position:absolute;
  text-align:center;
  content:"\f139";
  font-family:"FontAwesome";
  color:#fff;
  font-size:20px;
  line-height:20px;
  left:calc(50% - 9px);
  top:calc(50% - 10px);
}
@media (min-width:992px) {
  .back-to-top {
    width:80px;
    height:80px;
  }
  .back-to-top a {
    height: 80px;
    width: 80px;
  }
  .back-to-top a::before {
    font-size:40px;
    line-height:40px;
    left:calc(50% - 17px);
    top:calc(50% - 20px);
  }
}
.cookiebanner {
  font-family: 'Montserrat', sans-serif!important;
  margin: 10px;
  padding:10px;
  height:auto!important;
  font-size:14px!important;
  color:#838383;
  height:100%;
  padding: 5% 0% 10% 0%;
  background: -moz-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 100%)!important; /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%)!important; /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%,rgba(255,255,255,1) 50%,rgba(255,255,255,1) 100%)!important; /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=1 )!important; /* IE6-9 fallback on horizontal gradient */
  transition:all 0.5s ease;
  opacity:0.9!important;
  border:solid 1px rgba(74, 181, 193, 0.3)!important;
  top:auto!important;
  left:0!important;
  bottom:0;
  border-radius:3px;
}
.cookiebanner:hover {
  opacity:1!important;
  background: rgb(255,255,255)!important; /* Old browsers */
  background: -moz-linear-gradient(-45deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%)!important; /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 100%)!important; /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 100%)!important; /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=1 )!important; /* IE6-9 fallback on horizontal gradient */
}
.cookiebanner span {
  display:inline-block;
  margin:10px 10px 70px;
  line-height:1em;
  color:#838383;
  text-align:justify;
}
.cookiebanner span a {
  display:inline-block;
  float:none;
  margin: 10px 0px 0px 0px;
  text-transform: uppercase;
  font-size: 14px;
  width:100%;
  color: #4AB5C1 !important;
}
.cookiebanner span a:hover {
  color: #4AB5C1 !important;
  text-decoration: underline;
}
.cookiebanner span a::after {
  font-family: 'FontAwesome';
  content: "\f105";
  margin-left:5px;
}
.cookiebanner img.emoji {
  opacity:0.75;
}
.cookiebanner-close {
  position:absolute;
  bottom: 10px;
  transform: translateX(-50%);
  left: 50%;
  background-color: #fff;
  padding: 5px 10px !important;
  text-align: center;
  width: calc(100% - 40px);
  border-radius: 3px;
  text-transform: uppercase;
  font-weight:700;
  transition: 0.2s ease-in all;
  color:#4AB5C1;
  border:solid 1px #4AB5C1;
}
.cookiebanner-close:hover {
  background-color:#4AB5C1;
  color:#fff!important;
}
@media (min-width: 992px) {
  .cookiebanner {
    font-size:16px!important;
    width:30%;
  }
}
@media (min-width: 1200px) {
  .cookiebanner {
    width:25%;
  }
}
@media (min-width: 1500px) {
  .cookiebanner {
    width:20%;
  }
}

footer {
  position: relative;
  padding:50px 0;
  text-align:left;
  background-color:#fff;
  min-height:500px;
  background-image:url(../img/pattern-footer.svg);
  background-repeat:no-repeat;
  background-size:100%;
  background-position:bottom right;
}
footer .footer-container {
  position:absolute;
  bottom:100px;
  left:0;
  width:100%;
}
footer h2 {
  margin-bottom:100px;
}
footer .navbar-brand {
  float:none;
  display:block;
  max-width:300px;
}
footer .sitename {
  display:none;
}
footer .copyrights {
  display:inline-block;
  margin-top:0px;
  font-size:12px;
  color:#fff;
  text-transform:uppercase;
  font-weight:700;
}
footer .footer-partenaires-logos {
  padding:0;
  list-style: none;
  float:left;
  display:flex;
  padding-top:10px;
  border-top:solid 1px #9CCA58;
}
footer .footer-partenaires-logos li {
  padding:10px 20px;
  height:70px;
  width:160px;
  display: flex;
  justify-content: space-between;
  text-align:center;
  float:left;
}
footer .footer-partenaires-logos li:first-child {
  padding-left:0;
}
footer .footer-partenaires-logos li:last-child {
  padding-right:0;
}
footer .footer-partenaires-logos li a {
  margin:0 auto;
  display:flex;
}
footer .footer-partenaires-logos li img {
  width:120px;
  max-height:60px;
  height:auto;
  margin:0 auto;
}
footer .menu-footer {
  float:left;
  width:100%;
}
footer .menu-footer ul {
  list-style: none;
  padding:0;
}
footer .menu-footer li {
  display:inline-block;
  position:relative;
  padding:0 10px;
}
footer .menu-footer li::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 6px;
  height: 12px;
  width: 3px;
  background-color: #97C234;
}
footer .menu-footer li:last-child::after {
  display:none;
}
footer .menu-footer li a {
  text-transform:uppercase;
  color:#838383;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
}
footer .menu-footer li a:hover {
  text-decoration:underline;
}


@media (max-width:600px) {
  footer .moderation {
    text-align:left;
  }
}
@media (min-width: 768px) {
  .page-content h1 {
    font-size:26px;
  }
  .page-content h2 {
    font-size:20px;
  }

  footer .adresse, 
  footer .liens-footer {
    font-size:12px;
  }

}

@media (min-width: 992px) {
  .page-content h1 {
    font-size:30px;
  }
  .page-content h2 {
    font-size:24px;
  }
  footer .adresse, 
  footer .liens-footer {
    font-size:inherit;
  }
}

@media (min-width: 1200px) {
  .page-content h1 {
    font-size:34px;
  }
  .page-content h2 {
    font-size:28px;
  }
}
@media (min-width:1700px) {
  footer {
    min-height:550px;
  }
}
@media (min-width:1800px) {
  footer {
    min-height:575px;
  }
}
@media (min-width:1900px) {
  footer {
    min-height:600px;
  }
}
@media (min-width:2000px) {
  img.banner, .bg-banner img.banner {
    width:100%;
  }
  footer {
    min-height:625px;
  }
}
@media (min-width:2100px) {
  footer {
    min-height:650px;
  }
}
@media (min-width:2200px) {
  footer {
    min-height:675px;
  }
}
@media (min-width:2300px) {
  footer {
    min-height:700px;
  }
}
@media (min-width:2200px) {
  footer {
    min-height:675px;
  }
}
@media (min-width:2300px) {
  footer {
    min-height:700px;
  }
}
@media (min-width:2400px) {
  footer {
    min-height:725px;
  }
}
@media (min-width:2500px) {
  footer {
    min-height:750px;
  }
}
@media (min-width:2600px) {
  footer {
    min-height:775px;
  }
}
@media (min-width:2700px) {
  footer {
    min-height:800px;
  }
}

@media (max-width:1199px) {
  footer .footer-container {
    bottom:80px;
  }
}

@media (max-width:991px) {
  footer {
    min-height:600px;
  }
  footer .footer-container {
    bottom:80px;
  }
  footer .navbar-brand {
    margin-left:auto;
    margin-right:auto;
  }
  footer h2 {
    text-align:center;
    margin-bottom:20px;
  }
  footer .footer-partenaires-logos {
    flex-direction:column;
    text-align:center;
    width:100%;
  }
  footer .footer-partenaires-logos li {
    height:90px;
    width:100%;
  }
  footer .footer-partenaires-logos li:first-child,
  footer .footer-partenaires-logos li:last-child {
    padding:10px 20px;
  }
  footer .footer-partenaires-logos li img {
    width:auto;
  }
  footer .menu-footer li {
    display:block;
    text-align:center;
  }
  footer .menu-footer li::after {
    display:none;
  }
  footer .copyrights {
    color:#838383;
    width:100%;
    text-align: center;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

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

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * 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;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

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

/* ==========================================================================
   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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        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 {
        white-space: pre-wrap !important;
    }
    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;
    }

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

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