
/* ========================================
   STYLES GÉNÉRAUX
======================================== */

html,
body {
    padding: 0;
    margin: 0;
}

h1,
h2,
h3 {
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
}

h1 {
    font-size: 64px;
    margin: 24px 0 36px;
}

h2 {
    font-size: 48px;
}

p,
a {
    font-family: 'Roboto', sans-serif;
}


/* ========================================
   COULEURS DE FOND
======================================== */

.bgcolor-blanc {
    background-color: #fff !important;
}

.bgcolor-noir {
    background-color: #333 !important;
}

.bgcolor-gris {
    background-color: #444 !important;
}

.bgcolor-grisPix {
    background-color: #202020 !important;
}

.bgcolor-vertGC {
    background-color: #7db220 !important;
}

.bgcolor-bleuCJI {
    background-color: #033166 !important;
}

.bgcolor-orangeCD {
    background-color: #ea7c3a !important;
}

.bgcolor-bleuCD {
    background-color: #3c9eb8 !important;
}

.bgcolor-jauneAlpha {
    background-color: #eca43d !important;
}

.bgcolor-rougeFundky {
    background-color: #e90448 !important;
}


/* ========================================
   COULEURS DE TEXTE
======================================== */

.color-noir {
    color: #333 !important;
}

.color-gris {
    color: #444 !important;
}

.color-grisPix {
    color: #202020 !important;
}

.color-blanc {
    color: #fff !important;
}

.color-vertGC {
    color: #7db220 !important;
}

.color-bleuCJI {
    color: #033166 !important;
}

.color-orangeCD {
    color: #ea7c3a !important;
}

.color-bleuCD {
    color: #3c9eb8 !important;
}

.color-jauneAlpha {
    color: #eca43d !important;
}

.color-rougeFundky {
    color: #e90448 !important;
}


/* ========================================
   HEADER
======================================== */

header {
    background-color: #00101F;
    background-image: url("../images/bg-top.png");
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 80px 320px;
    position: relative;
}

header p {
    font-size: 20px;
    line-height: 28px;
    max-width: 800px;
    font-weight: 100;
}

header .content {
    padding-left: 30px;
    position: relative;
    z-index: 10;
}


/* Logo */

header .logo {
    position: relative;
    left: -30px;
}

header .logo img {
    width: 134px;
    height: auto;
}


/* Éléments décoratifs */

header .francis div {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 2.8em;
    line-height: 1.2em;
    text-align: right;
    color: rgba(53, 168, 224, 0.235294);
    margin: 0;
    padding: 0;
    position: absolute;
    display: block;
    z-index: 12;
    width: 100%;
    top: 0;
    overflow: hidden;
}

header .francis div span {
    margin: 0;
    display: block;
    position: absolute;
}

header .francis div:first-child {
    margin-top: 5px;
    height: 0.7em;
}

header .francis div:first-child span {
    right: 0;
    top: 0;
}

header .francis div:last-child {
    height: 0.7em;
}

header .francis div:last-child span {
    right: 24px;
    bottom: 0;
    color: #35A8E01F;
}


/* Boutons */

header .buttons {
    display: flex;
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: 60px;
}

header .buttons li {
    margin-right: 24px;
}

header .buttons li a {
    text-decoration: none;
    color: #35A8E0;
    font-size: 18px;
    padding: 12px 18px;
    border: 1px solid #35A8E0;
    border-radius: 6px;
    transition: all 300ms;
}

header .buttons li a:hover {
    color: #fff;
    border-color: #fff;
}

header .buttons li a.cv {
    color: #00101F;
    background-color: #35A8E0;
}

header .buttons li a.cv:hover {
    background-color: #fff;
    border-color: #fff;
}


/* ========================================
   CONTENEURS
======================================== */

.content {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 12;
}

.overlap {
    margin-top: -90px;
}


/* SVG décoratifs seulement */

.decorative-svg {
    fill: #00101F;
    opacity: 0.1;
    width: 100%;
    height: 100%;
}


/* ========================================
   SECTION RÉALISATIONS
======================================== */

.real h2 {
    font-size: 2em;
    font-weight: 200 !important;
    color: #333;
    max-width: 1120px;
    margin: 50px auto 30px;
    padding-left: 15px;
}


/* ========================================
   GRILLE MASONRY
======================================== */

.grid {
    position: relative;
}

.grid:after {
    content: '';
    display: block;
    clear: both;
}

/*
 * Le grid-sizer représente une colonne entière.
 * Chaque vignette retire 20px pour ses marges.
 */

.grid-sizer {
    width: 33.333333%;
}

.grid-item {
    position: relative;
    width: calc(33.333333% - 20px);
    height: 350px;
    margin: 10px;
    padding: 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    float: left;
    z-index: 1;
    box-sizing: border-box;
}


/* Effets au survol */

.grid-item:hover img {
    transition: all 0.5s ease-out;
    transform: scale(1.12);
}

.grid-item:hover .grid-item-text {
    transition: all 0.5s ease-out;
    transform: translateY(0%);
}


/* Texte superposé aux images */

.grid-item-text {
    width: calc(100% - 32px);
    position: absolute;
    bottom: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-out;
    z-index: 10;
    color: #fff;
    background-color: #000000BE;
    padding: 16px;
}

.grid-item-text h3 {
    margin: 0 0 12px;
    font-size: 14px;
}

.grid-item-text p {
    margin: 0;
    font-weight: 300;
    font-size: 14px;
}


/* Contenu des vignettes */

.grid-item h3 {
    font-size: 16px;
}

.grid-item img {
    transition: all 0.5s ease-out;
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100%;
}

.grid-item span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 48px;
    font-weight: 700;
}


/* Variantes de dimensions */

.grid-item--height2 {
    height: 720px;
}

.grid-item--width2 {
    width: calc(66.666667% - 20px);
}

.grid-item--spacer {
    height: 50px;
    width: calc(100% - 20px);
    display: block;
}


/* Blocs de texte */

.grid-text {
    padding: 3px 12px;
}

.grid-text h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.6em;
    line-height: 1.1em;
}

.grid-text p {
    line-height: 1.4em;
    font-size: 1.03em;
    font-weight: 300;
}


/* ========================================
   SECTION CONTACT
======================================== */

.contact {
    margin-top: 120px;
    padding-bottom: 48px;
    background-color: #00101F;
    color: #fff;
    position: relative;
}

.contact h2 {
    display: block;
    width: auto;
    padding-top: 48px;
    margin-top: 0;
    text-align: center;
    font-size: 36px;
}

.contact p {
    text-align: center;
    font-size: 28px;
}

.contact p a {
    color: #fff;
    margin: 0 12px;
}

.contact__icon {
    display: inline-block;
    font-size: 40px;
    width: auto;
    padding: 8px 12px;
    margin: 0;
    color: #00101F;
    background-color: #fff;
    border: 2px solid #00101F;
    border-radius: 50px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* ========================================
   RESPONSIVE — TABLETTE ET MOBILE
======================================== */

@media screen and (max-width: 780px) {

    header {
        padding: 30px 20px 200px;
    }

    header .content {
        padding: 0;
    }

    header .content .logo {
        position: static;
    }

    header .content .logo img {
        display: block;
        margin: 0 auto;
        position: relative;
        left: 10px;
    }

    header h1 {
        font-size: 1.7em;
        text-align: center;
    }

    .real {
        margin: 0;
    }

    .real h2 {
        font-size: 1.5em;
        top: -45px;
        margin: 0 20px;
    }

    /*
     * Masonry sur une seule colonne.
     */

    .real .grid-sizer {
        width: 100%;
    }

    .real .grid-item {
        width: calc(100% - 40px);
        margin: 20px 20px 0;
    }
}
