/***** TYPOGRAPHIE *****/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');


/***** VARIABLE *****/

:root {
    --font-color: #151515;
    --background-color: #F5F5F5;
}


/***** PARAMETRE GENERAUX *****/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: 'Instrument Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--font-color);
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1.2vw;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: var(--font-color);
    margin: 0;
    font-size: 1.2vw;
    font-weight: 500;
}

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

p {
    font-size: 1.2vw;
    font-weight: 500;
}

img {
    object-fit: cover;
}

button {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--font-color);
    font-size: 1.2vw;
    font-weight: 500;
}

/***** TXT *****/

.alinea {
    text-indent: 20%;
}

.txt {
    line-height: 2vw;
}

/***** HEADER *****/

header {
    position: fixed;
    z-index: 998;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1em 1.3em;
    background: var(--background-color);
}

.anchor {
    cursor: pointer;
}

.burger-btn, .burger-menu {
    display: none;
}

nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.nav-links, .nav-links-box, .slider-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.comma::after {
    content: ",";
    position: absolute;
    bottom: 0;
    right: -0.3vw;
}

.link, .link-active, .comma {
    position: relative;
}
  
.link:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}
  
.link::before {
    content: " ";
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    display: block;
    background: var(--font-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform .7s cubic-bezier(.21,.82,.21,1);
}

.link-active::before {
    content: " ";
    position: absolute;
    z-index: -1;
    bottom: -0.4vw;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.3vw solid transparent;
    border-right: 0.3vw solid transparent;
    border-bottom: 0.4vw solid var(--font-color);
    animation: animBefore;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(.11,.84,.13,1);
}

/***** FOOTER *****/

footer {
    position: absolute;
    z-index: 998;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1em 1.3em;
    background: var(--background-color);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.footer-tables {
    display: flex;
}

.footer-tables-container {
    overflow: hidden;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/***** HOME *****/

.home {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8vw 1.3em 20vw 1.3em;
}

.home-1, .home-2, .home-3 {
    display: grid;
}
.home-1 {
    grid-template-columns: 1fr 3fr;
}
.home-2 {
    grid-template-columns: 1fr 2fr 1fr;
    padding-top: 4vw;
}
.home-3 {
    padding-top: 10vw;
    grid-template-columns: 2fr 1fr 1fr;
}

.home-1-container, .home-2-container, .home-3-container {
    display: flex;
    flex-direction: column;
}
.home-1-container {
    gap: 3vw;
}
.home-2-container {
    gap: 10vw;
}
.home-3-container {
    gap: 2vw;
}

.title-box {
    overflow: hidden;
    display: flex;
    height: fit-content;
}

.home-title {
    font-size: 12vw;
    letter-spacing: -0.4vw;
    margin-left: -0.4vw;
    height: 13vw;
    animation: animIn;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(.11,.84,.13,1);
}

.home-img, .about-img {
    width: 100%;
}

.img-box {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.img-txt {
    font-size: 1vw;
}

.home-txt {
    font-size: 3.3vw;
    letter-spacing: -0.05vw;
}

/***** ABOUT *****/

.about {
    display: flex;
    flex-direction: column;
    gap: 15vw;
    width: 100%;
    padding: 15vw 1.3em 20vw 1.3em;
}

.about-1, .about-1-txt-container, .about-2-container-txt {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.portrait {
    width: 90%;
}

.about-1-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-1-txt-1 {
    font-size: 2.8vw;
    letter-spacing: -0.05vw;
    line-height: 3.5vw;
}

.about-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
}

.about-2-container {
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

/***** CONTACT *****/

.contact {
    display: flex;
    flex-direction: column;
    gap: 10vw;
    width: 100%;
    padding: 15vw 1.3em 20vw 1.3em;
}

.contact-1, .contact-1-txt-container, .contact-2-container-txt {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-img {
    width: 70%;
}

.contact-1-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-1-txt-1 {
    font-size: 3.3vw;
    letter-spacing: -0.05vw;
    width: 90%;
}

.link-contact {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.link-mail {
    width: fit-content;
}

.contact-2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/***** TABLES *****/

.tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 1px;
    height: 100%;
    padding: 1.3em;
}

.tables-card-link {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tables-img {
    overflow: hidden;
    width: 100%;
    height: 30.5vw;
    display: flex;
}

.tables-card:hover .tables-image {
    transform: scale(1.05);
}

.img-sbm, .img-sbs {
    width: 100%;
    height: 100%;
    transition: 1.5s cubic-bezier(.21,.82,.21,1);
}

.img-sbm {
    object-position: top center;
}

.img-sbs {
    object-position: bottom center;
}

.sbm-card, .sbs-card {
    position: relative;
    cursor: pointer;
}


/***** SBM & SBS *****/

.slider {
    position: relative;
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 100%;
    height: 100%;
    padding: 1em 1.3em;
}

.slider-nav {
    position: fixed;
    z-index: 998;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1em 1.3em;
    display: grid;
    grid-template-columns: 3fr 1fr;
}

.slider-action {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.slider-btn {
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.icon {
    transition: .7s cubic-bezier(.21,.82,.21,1);
}

.icon-next {
    opacity: 0;
    transform: translate(100%, 0.1vw);
    width: 0;
    height: 0;
    border-top: 0.3vw solid transparent;
    border-bottom: 0.3vw solid transparent;
    border-left: 0.4vw solid var(--font-color);
}

.icon-prev {
    opacity: 0;
    transform: translate(100%, 0.1vw);
    width: 0;
    height: 0;
    border-top: 0.3vw solid transparent;
    border-bottom: 0.3vw solid transparent;
    border-right: 0.4vw solid var(--font-color);
}

.slider-btn:hover .icon {
    transform: translate(0, 0.1vw);
    opacity: 1;
}

.slider-counter {
    padding-bottom: 1vw;
}

.slider-img {
    position: absolute;
    z-index: 0;
    top: 1em;
    left: 1em;
    opacity: 0;
    transition: .7s cubic-bezier(.21,.82,.21,1);
}

.img-h {
    width: 70vw;
    height: calc(100vh - 2em);
}

.img-v {
    width: 35vw;
    height: calc(100vh - 2em);
}

.slider-img.active-slide {
    opacity: 1;
    transition: .7s cubic-bezier(.21,.82,.21,1);
}

/***** SCROLL *****/


.line-box {
    display: inline-block;
    overflow: hidden;
    height: fit-content;
}

.l-m {
    margin-top: -10%;
}

.line {
    display: inline-block;
    white-space: nowrap;
    transform: translateY(110%);
    transition: 2s cubic-bezier(.11,.84,.13,1);
}

.txt-start {
    padding-left: 18%;
}

/***** TRANSITION *****/

.anim-out {
    opacity: 0;
    transform: translateY(-1vw);
    transition: .4s cubic-bezier(.65,0,.77,.22);
}

.anim-in  {
    animation: animIn;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(.11,.84,.13,1);
}

@keyframes animIn {
    from {
        transform: translateY(105%);
    }

    to {
        transform: translateY(0);
    }
}

.anim-intro  {
    animation: animIntro;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(.11,.84,.13,1);
}

@keyframes animIntro {
    from {
        opacity: 0;
        transform: translateY(4%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animBefore {
    from {
        opacity: 0;
        transform: translate(-50%, 100%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.anim-intro-small  {
    animation: animIntroSmall;
    animation-duration: 2s;
    animation-timing-function: cubic-bezier(.11,.84,.13,1);
}

@keyframes animIntroSmall {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/***** MOBILE *****/


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

    /***** PARAMETRE GENERAUX *****/

    h1, h2, h3, h4, h5, h6 {
        font-size: 1em;
    }

    a {
        font-size: 1em;
    }

    p {
        font-size: 1em;
    }

    button {
        font-size: 1em;
    }

    .grid-space {
        display: none;
    }

    /***** TXT *****/

    .alinea {
        text-indent: 20%;
    }

    .txt {
        line-height: 1.5em;
    }

    /***** SCROLL *****/


    .line-box {
        display: contents;
        overflow: normal;
        height: fit-content;
    }

    .l-m {
        margin-top: 0;
    }

    .line {
        display: contents;
        white-space: inherit;
        transform: translateY(0);
        transition: 2s cubic-bezier(.11,.84,.13,1);
    }

    .txt-start {
        padding-left: 20%;
    }

    /***** HEADER *****/

    .burger-btn {
        position: relative;
        z-index: 1000;
        display: block;
        width: 2em;
        height: 1em;
    }

    .burger-bar-1, .burger-bar-2 {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 1px;
        background: var(--font-color);
        transition: .7s cubic-bezier(.21,.82,.21,1);
    }

    .burger-bar-1 {
        transform: translate(-50%, 0.2em);
    }

    .burger-bar-2 {
        transform: translate(-50%, -0.2em);
    }

    .burger-bar-1-active {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .burger-bar-2-active {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .burger-menu {
        visibility: hidden;
        position: fixed;
        z-index: -1;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        padding: 7em 1.3em 1.3em 1.3em;
        background: var(--background-color);
        opacity: 0;
        transition: 1s visibility,
            opacity 1s cubic-bezier(.21,.82,.21,1);
    }

    .burger-menu.burger-menu-active {
        visibility: visible;
        opacity: 1;
        transition: 1s visibility,
            opacity 1s cubic-bezier(.21,.82,.21,1);
    }

    .burger-links {
        display: flex;
        flex-direction: column;
    }

    .link-burger-el {
        font-size: 3.5em;
        letter-spacing: -0.02em;
        font-weight: 500;
        transform: translateY(105%);
        transition: 1s cubic-bezier(.21,.82,.21,1);
    }

    .link-burger-focus {
        opacity: 30%;
    }

    .link-burger {
        overflow: hidden;
        display: flex;
        margin-top: -0.2em;
        height: 3.7em;
    }

    .link-burger-el.active-link-burger {
        transform: translateY(0);
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav h2 {
        display: none;
    }

    .nav-links, .nav-links-box {
        display: none;
    }

    /***** FOOTER *****/

    footer {
        z-index: 995;
    }

    footer, .footer-tables-container {
        display: flex;
        justify-content: end;
    }

    .footer-txt {
        display: none;
    }

    .footer-tables {
        display: flex;
    }

    /***** HOME *****/

    .home {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 5em 1.3em 10em 1.3em;
    }

    .home-1, .home-2, .home-3 {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 1em 0;
    }

    .home-1-container, .home-2-container, .home-3-container {
        gap: 2em;
    }

    .title-box {
        overflow: hidden;
        display: flex;
        height: fit-content;
    }

    .home-title {
        font-size: 21vw;
        letter-spacing: -0.4vw;
        margin-left: -0.4vw;
        height: 21vw;
    }

    .img-box {
        gap: 0.5em;
    }

    .img-txt {
        font-size: 0.7em;
    }

    .home-txt {
        text-indent: 20%;
        font-size: 6vw;
        letter-spacing: 0;
        line-height: 8vw;
    }

    /***** ABOUT *****/

    .about {
        gap: 2em;
        padding: 5em 1.3em 5em 1.3em;
    }

    .about-1, .about-1-txt-container, .about-2-container-txt {
        display: flex;
        flex-direction: column;
        gap: 2em;
    }

    .portrait {
        width: 100%;
        height: 110vw;
    }

    .about-1-txt {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 2em;
    }

    .about-1-txt-1 {
        text-indent: 20%;
        font-size: 1em;
        letter-spacing: 0;
        line-height: 1.5em;
    }

    .about-2, .about-2-container {
        display: flex;
        flex-direction: column;
        gap: 2em;
    }

    /***** TABLES *****/

    .tables {
        display: flex;
        flex-direction: column;
        align-items: normal;
        gap: 2em;
        height: auto;
        padding: 7em 1.3em 10em 1.3em;
    }

    .tables-img {
        overflow: hidden;
        width: 100%;
        height: 70vw;
        display: flex;
    }

    .tables-card:hover .tables-image {
        transform: scale(0);
    }

    .img-sbm {
        object-position: center center;
    }

    .img-sbs {
        object-position: center center;
    }

    /***** CONTACT *****/

    .contact {
        display: flex;
        flex-direction: column;
        gap: 7em;
        width: 100%;
        padding: 8em 1.3em 10em 1.3em;
    }

    .contact-1, .contact-1-txt-container, .contact-2-container-txt {
        display: flex;
        flex-direction: column;
        gap: 4em;
    }

    .contact-img { 
        display: none;
    }

    .contact-1-txt {
        display: flex;
        flex-direction: column;
        justify-content: normal;
        gap: 7em;
    }

    .contact-1-txt-1 {
        font-size: 10vw;
        letter-spacing: 0;
        width: 100%;
        line-height: 11vw;
    }

    .link-contact {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }

    .link-mail {
        width: fit-content;
    }

    .contact-2 {
        display: flex;
        justify-content: space-between;
        width: 100%; 
    }

    /***** SBM & SBS *****/

    .slider {
        display: flex;
        flex-direction: column;
        gap: 1em;
        width: 100%;
        height: auto;
        padding: 3em 1em 1em 1em;
    }

    .slider-nav {
        position: relative;
        display: flex;
        justify-content: end;
    }

    .slider-action {
        display: none;
    }

    .slider-img {
        position: initial;
        z-index: 0;
        top: 0;
        left: 0;
        opacity: 1;
    }

    .img-h {
        width: 100%;
        height: auto;
    }

    .img-v {
        width: 100%;
        height: auto;
    }

}