@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@100;200;300&display=swap');

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.darjust-home,
.darjust-home * {
    box-sizing: border-box;
}

.darjust-home {
    --mint: #65cbb5;

    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    font-family: 'Libre Franklin', sans-serif;
    font-weight: 200;
    color: #fff;

    background:
            linear-gradient(
                    90deg,
                    rgba(0, 13, 18, .90) 0%,
                    rgba(0, 19, 25, .58) 42%,
                    rgba(0, 19, 25, .12) 100%
            ),
            url('/assets/img/home.png')
            center center / cover no-repeat;
}

/* HEADER */

.darjust-header {
    flex: 0 0 auto;

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

    padding: 30px 6%;
}

.darjust-logo {
    width: 200px;
    height: auto;
}

.darjust-intranet {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 18px;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 0;

    color: #fff;
    text-decoration: none;

    font-size: 11px;
    font-weight: 300;
    letter-spacing: .12em;
    text-transform: uppercase;

    background: rgba(0,0,0,.18);
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.darjust-intranet:hover,
.darjust-intranet:focus {
    color: #182126;
    text-decoration: none;
    border-color: #fff;
    background: #fff;
}

/* CONTENU */

.darjust-content {
    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 4vh 6% 5vh;
}

.darjust-eyebrow {
    margin-bottom: 15px;
    font-size: 15px;
    letter-spacing: .65em;
    font-weight: 300;
}

.darjust-intro h1 {
    margin: 0;

    font-size: clamp(42px, 5.5vw, 85px);
    font-weight: 100;
    line-height: 1.08;
    letter-spacing: -.055em;
}

.darjust-accent {
    width: 80px;
    height: 3px;
    margin: 28px 0 22px;
    background: var(--mint);
}

.darjust-intro p {
    margin: 0;

    font-size: clamp(15px, 1.5vw, 22px);
    font-weight: 200;
    line-height: 1.55;
}

/* BAS DE PAGE : ARGUMENTS + SIGNATURE */

.darjust-bottom {
    width: 100%;
}

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

.darjust-pillar {
    position: relative;
    padding: 0 20px;
    text-align: center;
}

.darjust-pillar:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;

    width: 1px;
    height: 80%;

    background: rgba(255,255,255,.25);
}

.darjust-pillar i {
    display: block;
    margin-bottom: 15px;
    font-size: 30px;
    font-weight: 300;
}

.darjust-pillar h2 {
    margin: 0 0 10px;

    font-size: clamp(15px, 1.5vw, 21px);
    font-weight: 200;
    line-height: 1.3;
}

.darjust-pillar p {
    margin: 0;

    font-size: clamp(11px, 1vw, 15px);
    font-weight: 200;
    line-height: 1.5;
}

/* SIGNATURE — PAS UN FOOTER */

.darjust-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;

    margin-top: 5vh;
}

.darjust-signature span {
    width: 110px;
    height: 1px;
    background: var(--mint);
}

.darjust-signature p {
    margin: 0;

    font-size: 12px;
    font-weight: 200;
    letter-spacing: .35em;
    line-height: 1.8;
    text-align: center;
}

/* MOBILE */

@media (max-width: 768px) {

    .darjust-home {
        background:
                linear-gradient(
                        180deg,
                        rgba(0,13,18,.55) 0%,
                        rgba(0,19,25,.28) 42%,
                        rgba(0,19,25,.18) 72%,
                        rgba(0,13,18,.60) 100%
                ),
                url('/assets/img/home-mobile.png')
                58% bottom / auto 122% no-repeat;
    }

    .darjust-header {
        padding: 20px;
    }

    .darjust-logo {
        width: 115px;
    }

    .darjust-intranet {
        padding: 9px 12px;
        font-size: 11px;
        gap: 6px;
    }

    .darjust-content {
        padding: 5vh 22px 4vh;
    }

    .darjust-eyebrow {
        font-size: 11px;
        letter-spacing: .5em;
    }

    .darjust-intro h1 {
        font-size: clamp(34px, 8vw, 52px);
    }

    .darjust-accent {
        width: 55px;
        margin: 20px 0;
    }

    .darjust-intro p {
        max-width: 340px;
        font-size: 13px;
        line-height: 1.6;
    }

    .darjust-intro p br {
        display: none;
    }

    .darjust-pillars {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
        margin-top: 24px;
    }

    .darjust-pillar {
        min-width: 0;
        padding: 0 10px;
    }

    .darjust-pillar:nth-child(odd)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 4px;
        width: 1px;
        height: calc(100% - 8px);
        background: rgba(255,255,255,.24);
    }

    .darjust-pillar:nth-child(even)::after {
        content: none;
    }

    .darjust-pillar i {
        margin-bottom: 6px;
        font-size: 19px;
    }

    .darjust-pillar h2 {
        margin: 0;
        font-size: 11px;
        font-weight: 300;
        line-height: 1.35;
    }

    .darjust-pillar p {
        display: none;
    }

    .darjust-signature {
        gap: 12px;
        margin-top: 18px;
    }

    .darjust-signature span {
        width: 25px;
    }

    .darjust-signature p {
        font-size: 9px;
        letter-spacing: .18em;
    }
}

/* PETITS ÉCRANS EN HAUTEUR */

@media (max-height: 700px) and (min-width: 769px) {

    .darjust-header {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .darjust-content {
        padding-top: 1vh;
        padding-bottom: 2vh;
    }

    .darjust-intro h1 {
        font-size: clamp(38px, 4.5vw, 65px);
    }

    .darjust-accent {
        margin: 15px 0;
    }

    .darjust-pillar i {
        margin-bottom: 8px;
    }

    .darjust-signature {
        margin-top: 3vh;
    }
}

.darjust-pillar > i {
    display: block;
    width: 100%;
    text-align: center;
}
