
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');



:root {
    --black: #000;
    --white: #f4f4f2;
    --text: #fff;
    --container: 1200px;
    /*  --intro-left: 415px;
  --copy-width: 415px;*/
    --desktop-gap: 70px;
    --gutter: 36px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: "Google Sans Flex", "Google Sans", Arial, sans-serif;
/*    font-size: 15px;*/
    font-weight: 300;
    line-height: 1.46;
    letter-spacing: -.01em;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

    a:hover,
    a:focus-visible {
        opacity: .68;
    }

p {
    font-size: 24px;
    font-weight: 200;
}

    p.small, ul li {
        font-size: 20px;
    }

/*.fondTrame {
    background: url(assets/tramefond.svg) center no-repeat;
    background-size: cover;
}*/


.site-header {
  /*  height: 170px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: var(--gutter);
}

.site-logo {
    width: 33%;
    padding: 120px 0;
/*    max-width: 42vw;*/
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img,
.hero-slider > img, .bandeauSlider img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    object-position: center;
}

.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    z-index: 10;
}

.hero-btn:hover {
    background: rgba(0,0,0,.6);
}

.hero-btn-prev { left: 20px; }
.hero-btn-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 680px) {
    .hero-slide img {
        height: 60vh;
    }
    .hero-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

main {
    position: relative;
    overflow: hidden;
}

.page-bg {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 86vw;
    height: 110vh;
    transform: translate(-50%, -50%);
    background: url(assets/tramefond.svg) center repeat-y;
    pointer-events: none;
}

.section,
.site-footer {
    position: relative;
    z-index: 1;
}

.container {
    width: min(calc(100% - var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

h1,
h2 {
    margin: 0;
    font-family: "Google Sans Flex", "Google Sans", Arial, sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    line-height: 1.27;
   /* letter-spacing: .12em;*/
}

h1 {
    font-size: clamp(42px, 9vw, 120px);
}

h2 {
    font-size: clamp(42px, 9vw, 120px);
}

.copy {
    width: 100%;
    max-width: var(--copy-width);
    color: var(--text);
}

    .copy p {
        margin: 0 0 0;
    }

        .copy p:last-child {
            margin-bottom: 0;
        }

    .copy strong {
        color: var(--white);
        font-weight: 600;
    }

.line,
.equals {
    display: block;
    width: 58px;
    height: 3px;
    background: var(--white);
}

.equals {
    box-shadow: 0 28px 0 var(--white);
}

.section-intro {
    padding-top: 118px;
}

.intro-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--desktop-gap);
}

.intro-left {
    /*  flex: 0 0 var(--intro-left);*/
    width: 40%;
}

.intro-copy {
    /*  flex: 0 0 var(--copy-width);*/
}

.intro-left h1 {
    margin-bottom: 25px;
}

.image-intro {
    width: 415px;
    max-width: 100%;
}

.intro-copy {
    width: 60%;
}

    .intro-copy .line {
        margin-left: 50%;
        margin-bottom: 280px;
        transform: translateX(-50%);
    }

.section-values {
    padding-top: 190px;
}

.values-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 70px;
}

.values-copy {
    /* flex: 0 0 285px;*/
    width: 40%;
}

.values-right {
    /*  flex: 0 1 734px;*/
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.values-copy {
    /* max-width: 285px;*/

    padding-top: 120px;
}

.values-right .equals {
    margin-left: auto;
    margin-bottom: 104px;
    margin-right: 35%;
}

.values-right h2 {
    /*  width: 620px;*/
    max-width: 100%;
    margin-bottom: 45px;
    text-align: right;
}

.image-values {
    width: 734px;
    max-width: 100%;
    transform:translateX()
}

.section-team {
    padding-top: 176px;
}

.team-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 140px;
}

.team-left {
    flex: 0 0 var(--intro-left);
}

.team-copy {
    flex: 0 0 var(--copy-width);
    width:40%;
}

.team-left .equals {
    margin-bottom: 104px;
    box-shadow: 0 28px 0 var(--white), 0 54px 0 var(--white);
}

.team-left h2 {
    margin-bottom: 48px;
}

.image-team {
    width: 415px;
    max-width: 100%;
}



.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 210px var(--gutter) 90px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 1.48;
    transition : all ease-in-out .3s;
}

.footer-logo {
    width: 170px;
}

.footer-address {
    font-style: normal;
}

@media (max-width: 1441px) {
    :root {
        /*  --container: 1120px;
    --desktop-gap: 120px;*/
    }

    body {
        font-size: 16px;
    }

    .site-header {
        height: 180px;
    }

    .site-logo {
        width: 305px;
    }

    .section-intro {
        padding-top: 128px;
    }
}

@media (max-width: 1180px) {
    :root {
        --container: 920px;
        --intro-left: 360px;
        --copy-width: 360px;
        --desktop-gap: 70px;
    }

    body {
        font-size: 14px;
    }

    .site-header {
        height: 140px;
    }

    p {
        font-size: 20px;

    }

        p.small {
            font-size: 16px;
        }

    .site-logo {
        width: 240px;
    }

    .intro-copy .line {
        margin-left: 150px;
    }

    .values-grid {
        gap: 56px;
    }

    .values-copy {
        flex-basis: 270px;
    }

    .values-right .equals {
        margin-left: 250px;
    }
}

@media (max-width: 900px) {
    :root {
        --container: 720px;
        --gutter: 32px;
    }

    body {
        font-size: 14px;
    }

    .site-header {
        height: 124px;
    }

    .site-logo {
        width: 220px;
    }

    .page-bg {
        top: 680px;
        width: 980px;
        height: 520px;
        opacity: .14;
    }

    .intro-grid,
    .team-grid {
        gap: 54px;
    }

    .intro-left,
    .team-left {
        flex: 1 1 0;
    }

    .intro-copy,
    .team-copy {
        flex: 1 1 0;
    }

    .section-intro {
        padding-top: 90px;
    }

    .intro-copy {
        padding-top: 94px;
    }

        .intro-copy .line {
            margin-left: 46%;
            margin-bottom: 72px;
        }

    .section-values {
        padding-top: 150px;
    }

    .values-grid {
        gap: 48px;
    }

    .values-copy {
        flex: .8 1 0;
    }

    .values-right {
        flex: 1.2 1 0;
    }

    .values-copy {
        max-width: none;
        padding-top: 20px;
    }

    .values-right .equals {
        margin-left: auto;
        margin-right: 30%;
        margin-bottom: 72px;
    }

    .values-right h2 {
        text-align: center;
    }

    .section-team {
        padding-top: 145px;
    }

    .team-left .equals {
        margin-bottom: 76px;
    }

    .team-copy {
        padding-top: 68px;
    }

    .team-left .equals, .image-team {
        margin-left: auto;
        margin-right: auto;
    }
    .team-left h2 {
        text-align: center;
    }

    .site-footer {
        padding-top: 160px;
    }
    .copy {
        max-width:100%;
    }
    .intro-left h1 {
        text-align: center;
    }
    .image-intro{
        margin-left:auto;
        margin-right:auto;
    }
    .values-right .equals {
        margin-left: auto;
        margin-right: auto;
    }

    .intro-grid,
    .team-grid {
        flex-direction: column;
        gap: 0;
    }
    .values-grid {
        flex-direction: column-reverse;
    }

    .intro-left,
    .intro-copy,
    .values-copy,
    .values-right,
    .team-left,
    .team-copy {
        flex: 0 1 auto;
        width: 100%;
        align-items: center;
    }

    .section-intro {
        padding-top: 68px;
    }
}

@media (max-width: 680px) {
    :root {
        --gutter: 24px;
    }

    body {
        font-size: 14px;
    }

    .site-header {
        height: 105px;
    }

    .site-logo {
        width: 166px;
        max-width: 58vw;
    }

    .page-bg {
       /* top: 680px;
        width: 960px;
        height: 620px;*/
   /*     opacity: .12;*/
    }

    .values-grid {
        flex-direction: column;
    }

    .container {
        width: min(calc(100% - var(--gutter) * 2), 460px);
    }


    .intro-left h1 {
        margin-bottom: 22px;
    }

    .intro-copy {
        padding-top: 54px;
    }

        .intro-copy .line {
            margin-bottom: 40px;
        }

    .section-values {
        padding-top: 104px;
    }

    .values-right {
        order: 1;
    }

    .values-copy {
        order: 2;
        max-width: none;
    }

    .values-right .equals {
        width: 46px;
        margin: 0 0 58px;
        box-shadow: 0 14px 0 var(--white);
    }

    .team-left .equals {
        width: 46px;
        box-shadow: 0 14px 0 var(--white), 0 28px 0 var(--white);
    }

    

    .section-team {
        padding-top: 112px;
    }

    .team-left h2 {
        margin-bottom: 34px;
    }

    .team-copy {
        padding-top: 48px;
    }

    .site-footer {
        gap: 28px;
        padding-top: 118px;
        padding-bottom: 64px;
        font-size: 11px;
    }

    .footer-logo {
        width: 140px;
    }
    .hero-slide img {
        height: 60vh;
    }
    .intro-copy .line{
        margin-left: auto;
        margin-right:auto;
        transform:none;
    }
}

/* ── Burger menu ── */

.burger-btn {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}



.burger-bar {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transform-origin: center;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, width .3s ease;
}

.burger-btn.active .burger-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.burger-btn.active .burger-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.burger-btn.active .burger-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s cubic-bezier(.4,0,.2,1);
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.nav-list li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .4s ease, transform .4s ease;
}

.nav-overlay.open .nav-list li:nth-child(1) { opacity: 1; transform: none; transition-delay: .12s; }
.nav-overlay.open .nav-list li:nth-child(2) { opacity: 1; transform: none; transition-delay: .22s; }
.nav-overlay.open .nav-list li:nth-child(3) { opacity: 1; transform: none; transition-delay: .32s; }

.nav-link {
    font-family: "Google Sans Flex", "Google Sans", Arial, sans-serif;
    font-weight: 200;
    font-size: clamp(32px, 7vw, 80px);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--white);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1.5px;
    background: var(--white);
    transition: width .35s cubic-bezier(.4,0,.2,1);
}

.nav-link:hover { opacity: 1; }
.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 680px) {
    .burger-btn {
        top: 12px;
        right: 12px !important;
    }
}

/* ── Fix décalage scrollbar ── */
body.nav-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}
.burger-btn {
    /* compense aussi le bouton fixe */
    right: calc(28px + var(--scrollbar-width, 0px));
}
body.nav-open .burger-btn {
    right: 28px;
}
