/* ================================ */
/* By Atypic - www.atypic.be
/* ================================ */

/* LG */
@media (min-width:1200px) {

}

/* MD */
@media only screen and (max-width : 1199px) {
    .square-box > *, .rectangle-box > * {
        /*line-height: 1em;*/
    }
    .font-size-24 {
        /*font-size: 2.1rem;*/
        font-size: 1.6rem;
    }
    .font-size-18 {
        font-size: 1.6rem;
    }
    #featured {
        margin: 0 auto 50px;
    }
    #featured-news article {
        margin-top: 15px;
    }
    #featured-news article h2 {
        font-size: 4.5rem;
    }
    #featured-news article h3 {
        font-size: 2.3rem;
    }
    #featured-news article {
        font-size: 2.1rem;
    }
    #donate {
        font-size: 2.2rem;
        margin: 15px;
    }
    #permis-bateau {
        background-position: 100% 0;
        padding-top: 0;
    }
    h1,.h1 {
        font-size: 4.1rem;
    }
    h2,.h2 {
        font-size: 3.7rem;
    }
    h3,.h3 {
        font-size: 2.8rem;
    }
    h4,.h4 {
        font-size: 2.5rem;
    }
    h5,.h5 {
        font-size: 2.2rem;
    }
    h6,.h6 {
        font-size: 1.9rem;
    }
    #introduction {
        margin-top: 0;
    }
}

/* SM */
@media only screen and (max-width : 991px) {
    #main {
        margin: 35px 0;
    }
    #patchwork {
        padding-top: 0;
    }
    #featured {
        margin: 0 auto 50px;
    }
    #featured > .row {
        display: block;
    }
    .square-box > *, .rectangle-box > * {
        width: 100%;
        position:static;
    }
    .square-box::before, .rectangle-box::before {
        display: none;
    }
    #patchwork  {
        height: auto;
        display: block;
        margin-top: 0;
    }
    /*    #patchwork #carousel {
            height: 300px;
            position: static;
        }
        #patchwork #carousel .bx-wrapper, #patchwork #carousel .bx-viewport, #patchwork #carousel .bxslider {
            height: auto !important;
        }*/
    #featured-squares > .row {
        display: initial;
        flex-direction: column;
    }
    #featured-squares #blood-donation-bloc {
        order: -5;
    }
    #featured-squares a.more::after {
        display: none;
    }
    .square-box > *, .rectangle-box > * {
        padding: 15px;
    }
    #donate {
        text-align: center;
    }
    #featured #donate .btn {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    #donate #bankaccount {
        margin-left: 0;
        margin-top: 0;
    }
    .font-size-24 {
        font-size: 2.4rem;
    }
    .font-size-18 {
        font-size: 1.8rem;
    }
    #quote {
        font-size: 2.4rem;
    }
    #featured-news article h2 {
        font-size: 4rem;
    }
    #featured-news article h3 {
        font-size: 2.6rem;
    }
    #testimony-text .author:first-child {
        margin-top: 0;
    }
    #donate {
        padding: 15px;
        padding-top: 90px;
        background-position: 50% 20px;
    }
    #donate {
        position: static;
    }

    #wall #twitter {
        min-height: 0;
    }
    #footer-contact {
        margin-top: 30px;
    }
    #footer-newsletter {
        margin-top: 30px;
    }
    #footer-menu div.col-sm-4:not(:first-child) ul.menu {
        margin-top: 20px;
    }
    #testimony-video {
        position: static;
        margin: 20px 0;
    }
    #testimony-text {
        font-size: 2.1rem;
    }
    #testimony-text .author {
        font-size: 4.5rem;
    }
    #testimony-text .heading {
        font-size: 3.2rem;
    }
    #wall .demi-article {
        height: 400px;
    }
    #wall #facebook h3{
        margin: 0;
    }
    #wall #facebook h3::before {
        display: none;
    }
    #wall-inside-pages {
        margin-top: 30px;
    }
    /*    #patchwork-inside-pages .brands {
            margin: 30px 0;
        }*/
    #footer-menu .col-xs-12:nth-child(n+1) {
        margin-top: 25px;
    }
    h1,.h1 {
        font-size: 2.8rem;
    }
    h2,.h2 {
        font-size: 2.6rem;
    }
    h3,.h3 {
        font-size: 3.4rem;
    }
    h4,.h4 {
        font-size: 2.2rem;
    }
    h5,.h5 {
        font-size: 2.0rem;
    }
    h6,.h6 {
        font-size: 1.8rem;
    }
    #masonry .grid-item {
        width: 33.3333333333333%;
    }
    #wall-inside-pages .product h2::after {
        display: none;
    }
}

/* XS */
@media only screen and (max-width : 767px) {
    #bassin-arcachon {
        font-size: 0.8em;
        text-align: center;
    }
    #bassin-arcachon span {
        display: block;
    }
    #bassin-arcachon #metier-passionnes {
        font-size: 2.5em;
    }
    .mega-dropdown {
        display: none !important
    }
    #header-logo img {
        transform: scale(0.8);
        /*width: 80%;*/
    }
    #header {
        height: 60px;
        line-height: 60px;
    }
    .square-box.focus {
        transform: scale(1);
    }
    #quote {
        font-size: 2rem;
    }
    #donate button {
    }

    #featured {
        margin: 0 auto 50px;
    }
    #featured #donate .btn {
        margin: 20px auto;
        display: block;
        width: 50%;
    }
    #footer-menu {
        padding: 45px 0;
    }

    .btn-bigger {
        font-size: 2.1rem;
    }
    .btn-bigger.btn-arrow::after {
        top: 10px;
    }
    #wall article.box-fading h2, #wall #facebook h3 {
        font-size: 3.5rem;
        line-height: normal;
    }
    #wall #facebook h3 {
        line-height: normal;
    }
    #wall-inside-pages > .row {
        display: flex;
        flex-direction: column;
    }
    #wall-inside-pages > .row > div:nth-child(2) {
        order: -1;
    }
    #wall-inside-pages {
        opacity: 1;
    }
    #wall-inside-pages .grid {
        width: 100% !important;
    }
    #wall-inside-pages .grid-item {
        width: 100% !important;
        height: auto !important;
        margin: 5px 0 !important;
        position: relative !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;
    }
    #wall-inside-pages .grid-item img {
        width: 100%;
        max-width: none;
    }
    #wall-inside-pages .grid-item a {
        position: static;
    }
    #characteristics-product {
        margin-top: 100px;
    }
    #characteristics-product li {
        margin: 0 0 15px;
        border-bottom: 0;
    }
    #characteristics-product li > span {
        display: block;
    }
    .characteristics-result {
        text-align: left;
        position: static;
    }
    .characteristics-result > span {
        padding-left: 0;
    }
    #wall-inside-pages .product h2::after{
        display: none;
    }
    #footer-menu .col-xs-12:not(:first-child) {
        margin-top: 25px;
    }
    #shiftnav-toggle-main.shiftnav-toggle-main-align-center .shiftnav-main-toggle-content img {
        transform: scale(.8);
    }
    /*    #main {
            margin-top: 40px;
        }*/
    .characteristics-title {
        text-decoration: underline;
    }
    #masonry {
        opacity: 1 !important;
    }
    body {
        background: url(../img/carousel/bg-neuf.jpg) no-repeat 50% 0;
    }
}

/* Other little things  */ 
@media only screen and (max-width : 480px) {
    #footer-menu .col-sm-4 {
        width: 100%;
    }
}