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

@font-face {
    font-family: 'Gotham Book';
    src: url('Gotham-Book.eot');
    src: url('Gotham-Book.eot?#iefix') format('embedded-opentype'),
        url('Gotham-Book.woff2') format('woff2'),
        url('Gotham-Book.woff') format('woff'),
        url('Gotham-Book.ttf') format('truetype'),
        url('Gotham-Book.svg#Gotham-Book') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('Gotham-Bold.eot');
    src: url('Gotham-Bold.eot?#iefix') format('embedded-opentype'),
        url('Gotham-Bold.woff2') format('woff2'),
        url('Gotham-Bold.woff') format('woff'),
        url('Gotham-Bold.ttf') format('truetype'),
        url('Gotham-Bold.svg#Gotham-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
}

html {
    color: #ffffff;
    font-family: 'Gotham Book';
    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: none;
}

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

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background-color: #272727;
}

.bloc-container {
    padding: 2rem 5rem 2rem 5rem;
    position: relative;
}

header {
    position: relative;
    padding-top: 4rem !important;
}

header .mainlogo {
    height: 41px;
    width: 158px;
}

.footerlogo {
    width: 162px;
    height: 42px;
}

#menu {
    position: absolute;
    left: 240px;
    top: 3.8rem;
    width: calc(100% - 280px);
}

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

h2 {
    font-size: 3.1rem;
}

h3 {
    font-size: 1.8rem;
}

ul {
    list-style: none;
}

form {
    margin: 2rem 0;
}

input, textarea {
    border: none;
    border-bottom: 1px solid rgba(221, 221, 221, 0.4);
    background-color: #E53436;
    padding: 1rem;
    color: white;
    font-size: 1.2rem;
    width: 100%;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: white;//rgba(255, 255, 255, 0.7);
    opacity: 1; /* Firefox */
}

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

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

#menu ul {
    list-style: none;
    width: 100%;
}

#menu li {
    display: inline-block;
    margin-right: 2rem;
}

.button {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
}

#menu li.contact-menu {
    background-color: #E23B31;
    position: absolute;
    top: 0px;
    right: -2rem;
}

#background-container {
    height: 100%;
    width: 100%;
    position: absolute;
    overflow: hidden;
    z-index: 0;
    top: 0;
}

.bglogo {
    position: absolute;
    top: 0;
    right: -4rem;
}

.page {
    min-height: 100vh;
    position: relative;
}

.page-min {
    min-height: 50vh;
}

.accroche {
    font-size: 3.1rem;
}


.light {
    font-family: 'Gotham Book';
}

.txtdarkgrey {
    color: #626262;
}

.txtred {
    color: #E23B31;
}

.txtcenter {
    text-align: center;
}

.whitebg {
    background-color: #F6F6F6;
}

.redbg1 {
    background-color: #E53436;
}

.redbg2 {
    background-color: #D22E30;
}

.vertical-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#page-container {
    min-height: 100%;
    z-index: 1;
    position: relative;
}

.main {
    width: 70%;
}

.scroll-bloc {
    font-size: 0.8rem;
}

.scroll-bloc img {
    padding-right: 5px;
}

.list-icones ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    max-width: 100%;
    text-align: center;
}

.list-icones li {
    flex: 1;
}

#home {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#customers .bloc-container {
    text-align: center;
}

#customers .list-icones li {
    display: flex;
    flex-wrap: wrap;
    margin-right: 2rem;
    margin-bottom: 2rem;
}

#customers .list-icones li img {
    align-self: center;
}

#technology > .bloc-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.bloc-left {
    flex: 1;
}

.bloc-right {
    flex: 2;
}

.bloc-app .bloc-right {
    flex: 1;
}

.bloc-app {
    display: flex;
}

.bloc-left .paragraph {
    padding-right: 4rem;
}

.last-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.fullwidth {
    width: calc(100% - 2rem);
}

.row {
    margin-bottom: 1rem;
}

.col-4 {
    width: 33%;
    float: left;
}

.sep {
    height: 1px;
    width: 100%;
    background-color: #DDDDDD;
    opacity: 0.1;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn-large {
    padding-left: 4rem;
    padding-right: 4rem;
}

.fright {
    float: right;
}

.thumbnail {
    height: 150px;
    width: 150px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.thumbnail > div:nth-child(2) {
    margin-top: 2rem;
}

#bloc-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    background-color: #272727;
}

#contact {
    padding-bottom: 150px;
}

#address .bloc-container {
    display: flex;
    flex-direction: row;
}

#address .bloc-container:first-child {
    padding-bottom: 0;
}

#address {
    padding-bottom: 2rem;
}

.btn-line {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
}

form .infos {
    padding: 1rem;
    color: black;
}

form .infos .content {
    display: none;
}

#success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 10rem);
    height: 100%;
    background-color: #E23B31;
    padding: 2rem 5rem 2rem 5rem;
    font-size: 3rem;
    display: none;
}

@media only screen and (max-width: 768px) {
    /* Style adjustments for viewports that meet the condition */

    #page-container {
        min-height: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
    }

    header .mainlogo {
        height: 66px;
        width: 243px;
    }

    .main {
        width: auto;
    }

    .accroche {
        font-size: 8vw;
    }

    #menu li {
        display: none;
    }

    #menu li.contact-menu {
        display: inline-block;
        padding: 0.5rem;
        top: 0.3rem;
    }
    
    .bglogo {
        height: 120vw;
    }

}

@media only screen and (max-width: 54.4em) {
    /* Style adjustments for viewports that meet the condition */

    header .mainlogo {
        height: 44px;
        width: 162px;
    }

    .col-4 {
        width: 100%;
        margin-left: -1rem;
    }

    .bloc-container {
        padding: 1rem 2rem 1rem 2rem;
    }

    .large-bloc .bloc-container {
        padding: 1rem 2rem 1rem 2rem;
    }

    #home {
        justify-content: flex-start;
    }

    header {
        padding-top: 3rem !important;
    }

    #menu {
        left: 240px;
        top: 2.8rem;
        width: calc(100% - 280px);
    }

    .accroche {
        font-size: 7vw;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .scroll-bloc {
        padding-bottom: 3rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    input, textarea {
        padding: 0.8rem;
        font-size: 1.2rem;
    }

    .bloc-left .paragraph {
        padding-right: 0;
    }

    #technology > .bloc-container {
        flex-direction: column;
        text-align: center;
    }

    #contact form button {
        float: none;
        width: 100%;
    }

    #bloc-footer > footer > div {
        text-align: center;
    }

    .last-footer {
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: center;
    }

    .last-footer .link {
        margin-bottom: 0.5rem;
    }

    .vertical-center {
        justify-content: flex-start;
    }

    .thumbnail {
        height: 100px;
        width: 100px;
        margin-bottom: 1.5rem;
    }

    .list-icones ul {
        margin-top: 2rem;
    }

    .list-icones li {
        display: flex;
        justify-content: center;
    }

    #success-message {
        width: calc(100% - 6rem);
        padding: 2rem 3rem 1rem 3rem;
        font-size: 2.1rem;
    }
    
    #address .bloc-container {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    #address .bloc-container .bloc-left {
        margin-bottom: 2rem;
    }

    .map-responsive{
        overflow:hidden;
        padding-bottom:56.25%;
        position:relative;
        height:0;
    }
    .map-responsive iframe{
        left:0;
        top:0;
        height:100%;
        width:100%;
        position:absolute;
    }

}

@media only screen and (max-width: 320px) {
    /* Style adjustments for viewports that meet the condition */

    header .mainlogo {
        height: 34px;
        width: 120px;
    }

    #menu {
        top: 2.5rem;
    }
}

/* ANIMATIOND */
.rotating {
    animation: rotating 120s linear infinite;
}

@keyframes rotating {
    from {
            transform: rotate(0deg);
    }
    to {
            transform: rotate(359deg);
    }
}

.float {
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-10px);
	}
	100% {
		transform: translatey(0px);
	}
}

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

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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;
    }
}
