@charset "UTF-8";

:root {
    --color-green: #159C49;
    --color-light-green: 230,237,230;
	--color-black: 0,0,0;
    --color-dark-grey: 29,29,27;
	--color-white: 255,255,255;
        
    --transition-duration-bt: 0.4s;
	--transition-timing-linear: linear;
	--transition-timing-ease-out: cubic-bezier(0,0.6,0.4,1);
	--transition-timing-ease-in-out: cubic-bezier(0.6,0,0.4,1);
}

::selection {
	color: #fff;
	background: var(--color-green);
}
::-moz-selection {
	color: #fff;
	background: var(--color-green);
}

html {
	height: 100%;
    font-family: neue-haas-unica, sans-serif;
	/*font-size: 62.5%;*/
    /*scroll-behavior: smooth;*/
}

body {
	width: 100%;
	height: 100%;
	background-color: rgb(var(--color-light-green));
	overflow-y: scroll;
}

body.noscroll {
	overflow: hidden;
}

* {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

img, iframe, video {
	display: block;
}

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, hr, p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figure, figcaption, hgroup, menu, footer, header, nav, button, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: none;
}

ul, li {
	list-style: none;
}

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

h1, h2, h3, h4, h5 {
	font-weight: normal;
}

button {
	background: none;
	border-radius: 0;
	cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0
}

*:focus {
    outline: 0;
}


/*************************************
	Header
 *************************************/


header {
    display: block;
    position: fixed;
    width: 100%;
    background: rgba(var(--color-light-green),0.95);
    z-index: 100;
}

header nav {
    display: block;
    position: relative;
    width: min(1280px, 100vw);
    margin: 0 auto;
}

header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 25px 35px;
}

header nav ul li {
    position: relative;
    min-height: 0vh;
    color: rgb(var(--color-dark-grey));
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2em;
    text-transform: uppercase;
}

header nav ul li a {
    white-space: nowrap;
}

header nav ul li:not(.home) > a:hover,
header nav ul li:not(.home) > a.active {
    border-bottom: solid 1px rgb(var(--color-dark-grey));
}

header nav ul li:not(.home):not(.flex-grow):not(.contact) + li:not(.home):not(.flex-grow):not(.contact):before {
    content: "/";
    display: inline-block;
    margin: 0 0.5em;
}

header nav ul li.home {
    font-size: 0;
}

header nav ul li.home a {
    display: inline-block;
    width: 250px;
    height: 150px;
    background: url("../images/logo-placementsfm.png") center center no-repeat;
    background-size: contain;
    font-size: 0;
    margin-right: 50px;
    transition: width 0.4s, height 0.4s;
}

/*header.minimized nav ul li.home a {
    width: calc((196 / 79) * 40px);
    height: 40px;
}*/

header nav ul li.flex-grow {
    flex-grow: 1;
}

header nav ul li.contact {
    font-weight: 500;
    text-transform: none;
    margin-right: 50px;
}

 @media (max-width: 1024px) {
    header nav ul li.home a {
        margin-right: 0;
        width: 225px;
        height: 125px;
    }
    header nav ul li.contact {
        margin-right: 0;
        max-width: 250px;
    }
    header nav ul li.contact p {
        font-size: 14px;
    }
}

 @media (max-width: 900px) {
    header nav ul li.home a {
        margin-right: 0;
        width: 225px;
        height: 125px;
    }
    header nav ul li.contact {
        margin-right: 0;
        max-width: 200px;
    }
    header nav ul li.contact p {
        font-size: 13px;
    }
}

 @media (max-width: 768px) {
    header nav ul li.home a {
        width: 196px;
        height: 79px;
    }
}

/*header.minimized nav ul li.contact p:first-of-type {
    display: none;
}

header.minimized nav ul li.contact p {
    margin-top: 0;
}*/

body:not(.nav-open) header nav ul {
    min-height: 0 !important;
}


/*************************************
	Sections
 *************************************/


.container {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
}

.page {
	flex: 1 0 auto;
	display: block;
	position: relative;
    overflow: hidden;
}

section {
	display: block;
	position: relative;
	width: 100%;
    max-width: 1280px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 35px;
}

section > div {
	display: block;
	position: relative;
    min-height: calc(100vh - 70px);
    padding-top: 130px;
}

h2 {
    font-family: adobe-caslon-pro, serif;
    font-weight: 600;
    font-size: 40px;
    letter-spacing: -0.02em;
    line-height: 1em;
    color: #159C49;
    max-width: 22em;
}

p {
    font-size: 16px;
    line-height: 1.2em;
}

p + p {
    margin-top: 1.2em;
}

strong {
    font-weight: 500;
}

sup {
	display: inline-block;
	position: relative;
	font-size: 0.6em;
	vertical-align: top;
	margin-top: -0.3em;
}

.text-transform-none {
	text-transform: none;
}

.text-transform-uppercase {
	text-transform: uppercase;
}

.white-space-nowrap {
	white-space: nowrap;
}

@keyframes kf-fadein {
    0%   {opacity: 0;}
    100%  {opacity: 1;}
}


/*************************************
	Home
 *************************************/


section.accueil > div {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    color: rgb(var(--color-dark-grey));
}


/*************************************
	Nos produits
 *************************************/


section.nos-produits > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

section.nos-produits > div > div {
    padding-right: 35px;
}

section.nos-produits p {
    margin-top: 35px;
}

section.nos-produits p:first-child {
    margin-top: 0;
}

section.nos-produits p strong {
    display: block;
    color: var(--color-green);
}


/*************************************
	Notre équipe
 *************************************/


section.notre-equipe > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    grid-gap: 35px;
    justify-content: space-between;
}

section.notre-equipe figure img {
    display: block;
    width: 100%;
    height: auto;
    background-color: #ddd6cc;
    border: solid 10px rgb(var(--color-white));
}

section.notre-equipe figure figcaption {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2em;
    margin-top: 1.2em;
}


/*************************************
	Footer
 *************************************/


div.tsf {
    display: flex;
    justify-content: flex-end;
    position: sticky;
    width: 100%;
    max-width: 1280px;
    bottom: 0;
    margin: 0 auto;
    padding: 35px;
    z-index: -1;
}

div.tsf img {
    max-width: 250px;
}

footer {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-row-gap: 1.2em;
    width: 100%;
    max-width: 1210px;
    border-top: solid 1px rgba(var(--color-dark-grey),0.25);
    font-size: 16px;
    margin: 0 auto;
    padding: 35px 0;
}

footer img.logo {
    width: auto;
    height: 60px;
}

footer p:nth-child(n+2) {
    grid-column-start: 2;
    padding-right: 50px;
}

footer p + p {
    margin-top: 0;
}


/*************************************
	404
 *************************************/


/*section.erreur-404 {
    text-align: center;
    background: url("../images/img-header-404.svg") center 60px no-repeat;
    padding-top: 242px;
    padding-bottom: 280px;
}

section.erreur-404 h1 {
    color: rgb(var(--color-green));
}

section.erreur-404 h2,
section.erreur-404 p {
    color: rgb(var(--color-cyan));
}

section.erreur-404 a {
    display: inline-block;
    text-decoration: underline;
}

section.erreur-404 a:after {
    content: "";
    display: block;
    position: absolute;
    width: 127px;
    height: 220px;
    background: url("../images/img-404-lien.svg") center center no-repeat;
}*/



@keyframes kf-fade-in {
    0%   {opacity: 0;}
    100%  {opacity: 1;}
}

@media screen and (max-width: 1280px) {
    footer {
        width: calc(100vw - 70px);
    }
}

@media screen and (max-width: 768px) {
    header nav {
        min-height: 0;
        transition: min-height 0.8s cubic-bezier(0.2,0.6,0.4,1), background-color 0.6s 0.2s linear;        
    }

    header nav ul {
        padding: 20px;
    }
    
    header nav ul li {
        font-size: 21px;
        line-height: 1.6em;
    }

    header nav ul li:not(.home):not(.flex-grow):not(.contact) + li:not(.home):not(.flex-grow):not(.contact):before {
        content: none;
    }

    header nav ul li:not(.home) {
        display: none;
    }
    
    /*header.minimized nav ul li.home a {
        width: calc((196 / 79) * 37px);
        height: 37px;
    }*/
    
    body.nav-open {
        overflow: hidden;
    }
    
    /*body:not(.nav-open) header nav {
        height: 0 !important;
        min-height: 0 !important;
    }*/
    
    body.nav-open header nav {
        width: 100vw;
        min-height: 100vh;
        background-color: rgb(var(--color-white));
        overflow: hidden;
        transition-delay: 0s;
    }
    
    body.nav-open header nav ul {
        flex-flow: column nowrap;
        position: absolute;
        width: 100vw;
        min-height: 100vh;
        /*background: url("../images/logo-tremblay-services-financiers-tsf-beige.svg") left bottom no-repeat;*/
        padding-bottom: 40px;
    }
   
    body.nav-open header nav ul li {
        display: block;
    }
    
    body.nav-open header nav ul li.home {
        padding-bottom: 20px;
    }
    
    /*body.nav-open header.minimized nav ul li.home a {
        width: 196px;
        height: 79px;
    }
    
    body.nav-open header.minimized nav ul li.contact p:first-of-type {
        display: block;
    }
    
    body.nav-open header.minimized nav ul li.contact p {
        margin-top: 1.2em;
    }*/
    
    header div.ico {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        flex-flow: column nowrap;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        pointer-events: auto;
        z-index: 10;
    }

    header div.ico > div {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
    }

    header div.ico span {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background: rgb(var(--color-dark-grey));
        border-radius: 9999px;
        transition: background 0.3s 0.3s, opacity 0.3s 0.3s, top 0.3s 0.3s, transform 0.3s;
    }

    body.nav-open header div.ico span {
        transition: background 0.3s, opacity 0.3s, top 0.3s, transform 0.3s 0.3s;
    }

    header div.ico span:nth-child(1) {
        top: 0px;
    }

    header div.ico span:nth-child(2) {
        top: calc(50% - 1.5px);
    }

    header div.ico span:nth-child(3) {
        top: calc(100% - 3px);
    }

    body.nav-open header div.ico span:nth-child(1) {
        top: calc(50% - 1.5px);
        transform: rotate(45deg);
    }

    body.nav-open header div.ico span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open header div.ico span:nth-child(3) {
        top: calc(50% - 2px);
        transform: rotate(-45deg);
    }

    body.nav-open header nav ul {
        background-position: left 20px bottom 20px;
        background-size: calc(100vw - 40px) calc((210 / 476) * (100vw - 40px));
    }    
    
    
    /*************************************
        Sections
     *************************************/

    
    section {
        padding: 20px;
    }
    
    section > div {
        min-height: calc(100vh - 40px);
    }
    
    h2 {
        min-height: 0vh;
        font-size: 36px;
    }
    
    h2 br {
        display: none;
    }
    
    p {
        font-size: 18px;
    }
    
    section.nos-produits > div {
        grid-template-columns: auto;
        grid-gap: 20px;
    }

    section.nos-produits > div > div {
        padding-right: 0;
    }
    
    section.notre-equipe > div {
        grid-template-columns: 1fr;
        grid-gap: 50px;
        padding-right: 30px;
        padding-left: 30px;
    }
    
    section.notre-equipe figure img {
        border-width: 12px;
    }
    
    section.notre-equipe figure figcaption {
        font-size: 16px;
    }
    
    div.tsf {
        padding: 20px;
    }
    
    div.tsf img {
        width: 100%;
        height: auto;
    }
    
    footer {
        width: calc(100vw - 40px);
        padding: 20px 0;
    }
    
    footer p,
    footer p:nth-child(n+2) {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}