/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.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
 *
 * 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
   ========================================================================== */

/* ===================== 
   VALLABREGUES COLORS
   ===================== */
/*
	--- 1st theme
	#D1D700 (vert)
	#84294E (violet)
	#535A68 (gris)

	--- 2nd theme
	#0570B3 (bleu)
	#F7E91E (jaune)
*/

*, :after, :before {
   box-sizing: border-box; /* Opera/IE 8+ */
   -moz-box-sizing: border-box; /* Firefox, autres Gecko */
   -webkit-box-sizing: border-box; /* Safari/Chrome, autres WebKit */
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
	opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
}

::-ms-input-placeholder { /* Microsoft Edge */
}

html {
	font-family: 'Roboto', 'Open Sans', sans-serif;
}

body {
    background-color: #e3e7ed;
    padding-top: 160px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    color: #84294E;
}

main h2 {
    margin: 0 0 20px;
    color: #84294E;
    text-align: center;
    font-size: 28px;
}

header {
    box-shadow: 0px 0px 1px rgba(0,0,0,0.1);
}

header,
footer .wrap {
    background-color: #535A68;
    color: #fff;
}

header, .search-form {
    height: 120px;
    padding-top: 16px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.search-form {
    display: none;
    width: 100%;
    background-color: #535A68;
    z-index: 999;
}

.search-form form {
    position: relative;
}

.search-form form:before {
    position: absolute;
    left: 0;
    content: "\f002";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    pointer-events: none;
}

.search-form .close-form:before {
    position: absolute;
    right: 0;
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    font-size: 22px;
    cursor: pointer;
    pointer-events: all;
} 

.search-form form input[type=text] {
    border: none;
    width: 100%;
    line-height: normal;
    font-size: 18px;
    padding: 10px 35px;
    background-color: transparent;
    outline: none;
    color: #fff;
}

nav.responsive-menu,
.responsive-menu-icon {
    display: none;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #D3D3D3;
    opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #D3D3D3;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: #D3D3D3;
}

.wrap {
    max-width: 1280px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: inherit;
    font-size: inherit!important;
}

header .hidden {
    overflow: hidden;
    border: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
}

main.wrap,
footer .wrap {
    padding: 30px 60px 70px;
}

footer {
    font-size: 14px;
}

footer h3 {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.4px;
    margin-bottom: 20px;
}

main {
    background-color: #fff;
    min-height: 46vh;
}

.container-row {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.container-column {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: flex-end;
    -ms-flex-line-pack: end;
    align-content: flex-end;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.main-logo {
    max-height: 90px;
    max-width: 247px;
}

nav.main-menu,
.search-nav,
.search-form {
    float: right;
    line-height: 88px;
}

nav.main-menu ul li {
    margin-right: 30px;
    float: left; 
}

nav.main-menu ul li a {
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.4px;
    transition: color 0.2s ease-in-out; 
}

nav.main-menu ul li a:hover {
    color: #D1D700;
}

nav.main-menu ul li a:hover:after {
    content: "";
    height: 2px;
    width: 100%;
    display: block;
    position: absolute;
    top: 20px;
    background-color: #D1D700;
}

.search-nav {
    line-height: 88px;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: #D1D700;
}

footer .footer-column {
    width: 33%;
}

footer p.footer-info {
    padding-top: 20px;
}

footer p.caption,
footer form li {
    font-size: 13px;
    color: #D3D3D3;
}

footer .wait {
    display: none;
    background: url('../img/ajax_loader.gif');
    background-repeat: no-repeat;
    height: 16px;
    width: 16px;
    margin-bottom: 13px;
}

footer form {
    padding-top: 5px; 
}

footer form input {
    width: calc(100% - 79px);
    padding: 10px 12px;
    border: none;
    color: #333;
}

footer form button {
    min-width: 79px;
    padding: 10px 18px;
    margin-left: -4px;
    border: none;
    background-color: #D1D700;
    color: #fff;
}

footer form input:hover,
footer form input:focus,
footer form input:active,
footer form button:hover,
footer form button:focus,
footer form button:active {
    outline: 0;
}

footer form button:hover {
    cursor: pointer;
}

footer .main-logo {
    max-height: 75px!important;
    max-width: 187px!important;
    display: inline-block;
}

footer .copyright {
    padding-top: 20px;
    height: 95px;
}

footer .copyright .text {
    margin-left: 20px;
    display: inline-block;
    max-width: calc(100% - 167px);
}

.notice, .flash-notice {
    width: 100%;
    padding: 25px;
    margin-bottom: 25px;
    -webkit-justify-content: flex-start!important;
    -ms-flex-pack: start!important;
    justify-content: flex-start!important;
    -webkit-align-items: center!important;
    -ms-flex-align: center!important;
    align-items: center!important;
}

.notice {
    background-color: #84294E;
}

.flash-notice {
    background-color: #D1D700;
}

.notice-img {
    display: block;
    text-align: center;
    margin-right: 15px; 
}

.notice-img img {
    max-width: 150px;
    max-height: 150px;
}

.notice p {
    color: #F6F6F6;
    margin: 0; 
}

.notice .notice-text {
    max-width: calc(100% - 165px);
}

.notice .notice-text.alone-text {
    max-width: 100%;
}

.slideshow-container, .about-preview, .gallery-preview, .map {
    margin-bottom: 50px!important;
}

.slideshow-container {
    max-width: 100%;
    height: 600px;
    position: relative;
    margin: auto;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide .image {
    width: 100%;
    height: 100%;
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
}

.slide h3 {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    text-align: center;
    position: absolute;
    bottom: 70px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.6);
    font-weight: 700;
    font-size: 36px;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.6s ease;
    letter-spacing: 0.4px;
}

.prev, .next, .circles i {
    color: #fff;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover, .active, .circles i:hover, .slide h3:hover {
    color: #D1D700!important;
}

.name {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.circles {
    line-height: 45px;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    z-index: 2;
}

.circles i {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    border-radius: 50%;
    display: inline-block;
    transition: color 0.6s ease;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.docaposte {
    background-color: lightblue;
    max-width: 37%;
    width: 37%;
    height: 300px;
    padding: 120px;
    text-align: center;
}

.breadcrumb {
    color: #D1D700;
    margin-bottom: 15px;
}

.breadcrumb a {
    color: #D1D700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.about-preview {
    text-align: justify;
}

.map {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map iframe{
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.about-preview a,
.gallery-preview a {
    display: block;
    text-align: center;
    color: #D1D700;
    text-decoration: underline;
}

.logos {
    width: 100%;
    -webkit-justify-content: space-around!important;
    -ms-flex-pack: distribute!important;
    justify-content: space-around!important;
    -webkit-align-items: center!important;
    -ms-flex-align: center!important;
    align-items: center!important;
}

.logos figure {
    margin: 0;
}

.logos img {
    max-width: 150px;
    max-height: 150px;
}

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

.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: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

/* LAPTOP L */
@media only screen and (max-width: 1440px) {
    .wrap {
        width: 1180px;
    }
}

/* LAPTOP M */
@media only screen and (max-width: 1280px) {
    .wrap {
        width: 100%;
    }

    main.wrap {
        padding-top: 150px;
        padding-bottom: 40px;
    }

    header .wrap,
    .search-form {
        padding: 0 60px;
    }

    .search-form {
        padding-top: 16px;
    }

    body {
        background-color: inherit;
        padding-top: 0px; 
    }

    .search-form form input[type=text] {
        padding: 0;
    }
}

/* LAPTOP S */
@media only screen and (max-width: 1024px) {
    header .wrap, .search-form {
        padding: 0px 40px;
    }

    main.wrap, footer .wrap {
        padding: 30px 40px 70px;
    }

    main.wrap {
        padding-top: 130px;
        padding-bottom: 30px;
    }

    header,
    .search-form {
        height: 100px;
        padding-top: 9px;
    }

    header h1 {
        display: block;
        width: 100%;
        margin: 0 auto;
    }

    header img.main-logo {
        display: block;
        margin: 0 auto;
        max-height: 80px;
    }

    .slideshow-container {
        height: 500px;
    }

    .logos img {
        max-width: 130px;
        max-height: 130px;
    }

    nav.main-menu {
        display: none;
    }

    nav.responsive-menu {
        display: block;
        position: fixed;
        width: 333px;
        height: 100%;
        left: -333px;
        -webkit-transition: .4s;
        -o-transition: .4s;
        transition: .4s;
        background-color: #535A68;
        color: #fff;
        overflow-y: auto;
        overflow-x: hidden;
    }

    nav.responsive-menu ul {
        margin: 55px 0;
        padding: 0 40px;
    }

    nav.responsive-menu ul li {
        margin-bottom: 30px;
        text-align: center;
    }

    nav.responsive-menu ul li a {
        color: #fff;
        text-transform: uppercase;
        font-size: 18px;
        font-weight: 600;
        position: relative;
        letter-spacing: 0.4px;
    }

    nav.responsive-menu ul li a:hover {
        color: #D1D700;
        transition: color 0.2s ease-in-out;
    }

    nav.responsive-menu ul li a:hover:after {
        content: "";
        height: 2px;
        width: 100%;
        display: block;
        position: absolute;
        top: 20px;
        background-color: #D1D700;
        left: 0;
        right: 0;
    }

    .responsive-menu-icon {
        display: block;
        z-index: 999;
        padding-top: 6px;
        top: 30px;
        left: 40px;
        width: 50px;
        height: 50px;
        text-align: center;
        line-height: 50px;
        background-color: #535A68;
        color: #fff;
        -webkit-transition: .4s;
        -o-transition: .4s;
        transition: .4s;
    }

    .responsive-menu-icon,
    .close-responsive-menu {
        position: fixed;
        cursor: pointer;
    }

    .search-nav {
        cursor: pointer;
        position: absolute;
        display: block;
        z-index: 10;
        top: 30px;
        right: 36px;
        line-height: 50px;
        background-color: #535A68;
        color: #fff;
    }

    .search-nav i.fa-fw,
    .search-form form:before {
        font-size: 1.5em;
    }

    .search-form span.close-form:before {
        font-size: 2em;
    }

    .close-responsive-menu {
        display: none;
        width: 100%;
        height: 100%;
        background-color : rgba(0,0,0,.8);
        z-index: 990;
    }

    .responsive-menu-toggle .close-responsive-menu {
        display: block;
    }

    .responsive-menu-toggle nav.responsive-menu {
        left: 0px;
        z-index: 999;
    }

    .responsive-menu-toggle .responsive-menu-icon {
        left: 350px;
    }
}

/* TABLET */
@media only screen and (max-width: 768px) {
    header {
        position: fixed;
        z-index: 9;
    }

    header, .search-form {
        height: 90px;
    }

    header .wrap, .search-form {
        padding: 0px 20px;
    }

    .search-form {
        padding-top: 4px;
    }

    .search-form form input[type=text] {
        padding: 10px 20px;
    }

    header img.main-logo {
        max-height: 70px;
    }

    .responsive-menu-icon {
        top: 25px;
    }

    .search-nav {
        top: 28px;
    }

    nav.responsive-menu ul {
        margin: 42px 0;
        padding: 0 30px;
    }

    main.wrap, footer .wrap {
        padding-left: 15px;
        padding-right: 15px;
    }

    main.wrap {
        padding-top: 120px;
    }

    main h2 {
        font-size: 26px;
    }

    .slideshow-container {
        height: 400px;
    }

    .slide h3 {
        bottom: 60px;
        font-size: 30px;
    }

    .prev, .next {
        font-size: 16px;
    }

    .circles i {
        font-size: 15px;
    }

    .gallery-sizer, .gallery-item {
        width: 33.33%!important;
    }

    .logos img {
        max-width: 120px;
        max-height: 120px;
    }

    .search-nav {
        right: 16px;
    }

    .responsive-menu-icon {
        left: 10px;
    }

    .responsive-menu-icon.search-form-active {
        display: none;
    }
}

/* MOBILE */
@media only screen and (max-width: 500px) {
    header, .search-form {
        height: 80px;
    }

    header img.main-logo {
        max-height: 60px;
    }

    .responsive-menu-icon {
        top: 17px;
    }

    .search-nav {
        top: 20px;
    }

    .responsive-menu-icon i {
        font-size: 1.7em;
    }

    .search-nav i.fa-fw, .search-form form:before {
        font-size: 1.3em;
    }

    .search-form {
        padding-top: 0px;
    }

    .search-form span.close-form:before {
        font-size: 1.8em;
    }

    .search-form form input[type=text] {
        font-size: 16px;
    }

    nav.responsive-menu {
        width: 250px;
    }

    nav.responsive-menu ul {
        margin: 35px 0;
        padding: 0 25px;
    }

    .responsive-menu-toggle .responsive-menu-icon {
        left: 267px;
    }

    main.wrap, footer .wrap {
        padding-bottom: 50px;
    }

    main.wrap {
        padding-top: 110px;
        padding-bottom: 25px;
    }

    main h2 {
        font-size: 24px;
    }

    .notice {
        padding: 20px 30px;
    }

    .notice-img {
        display: none;
    }

    .notice .notice-text {
        max-width: 100%;
    }

    .slideshow-container, .gallery-preview, .map {
        margin-bottom: 35px!important;
    }

    .slideshow-container {
        height: 300px;
    }

    .slide h3 {
        bottom: 40px;
        font-size: 26px;
    }

    .prev, .next {
        font-size: 14px;
    }

    .circles i {
        font-size: 14px;
        height: 13px;
        width: 13px;
    }

    .gallery-sizer, .gallery-item {
        width: 50%!important;
    }

    .logos img {
        max-width: 100px;
        max-height: 100px;
    }

    footer .wrap {
        position: relative;
        padding-top: 95px;
    }

    footer .main-logo {
        position: absolute;
        top: 55px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    footer .container-row {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
    }

    footer .footer-column {
        width: 80%;
        text-align: center;
    }

    footer h3 {
        margin-bottom: 10px;
    }

    footer ul {
        line-height: 30px;

    }

    footer ul li {
        display: inline-block;
        margin-bottom: 0px;
    }

    footer ul li:not(:last-child):after {
        content: "\f111";
        font-family: "Font Awesome 5 Free";
        font-weight: 900; 
        font-size: 6px;
        display: inline-block;
        vertical-align: middle;
        padding: 0px 1px 0px 5px;
    }

    footer .copyright {
        padding-top: 25px;
        height: inherit;
    }

    footer .copyright .text,
    footer p.footer-info {
        font-size: 13px;
    }

    footer .copyright .text {
        display: block;
        max-width: 100%;
        text-align: center;
    }

    footer p.footer-info {
        padding: 10px 30px 0;
        text-align: justify;
    }
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
	background: transparent !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;
  }
}

