*,
*:before,
*:after {
    box-sizing: border-box;
}

:root {

    --color-primary: #ffffbc;
    --color-secondary: #000015;
    --color-red: #d3142c;
    --color-secondary1: #191816;
    --border-radius: 25px;
    --body-font-size: 20px;
    --padding-section: 8em 0 8em 0;
    --padding-section-mobile: 3em 0 3em 0;
    --heading-font-family: 'nunito', sans-serif;
    --body-font-family: 'open sans', sans-serif;
    --shadow: 5px 5px 15px black;
    /*--accent-color: #fbaf30;*/
    /*--color-red: #ff0018;*/
    /*--color-red: #ff142c;*/
    /*--color-primary: #f0f1fa;*/
}

/* --------------------------------------- */
/* ----------- TYPOGRAPHIE   ------------- */
/* --------------------------------------- */

@font-face {
    font-family: 'nunito';
    src: url(../../../assets/fonts/nunito/nunito-variable.ttf),
        url(../../../assets/fonts/nunito/nunito-variable.woff),
        url(../../../assets/fonts/nunito/nunito-variable.woff2);
}

@font-face {
    font-family: 'open sans';
    src: url(../../../assets/fonts/open_sans/opensans-variable.ttf),
        url(../../../assets/fonts/open_sans/opensans.woff),
        url(../../../assets/fonts/open_sans/opensans.woff2);
}


/* --------------------------------------- */
/* ------------- GLOBAL ------------------ */
/* --------------------------------------- */


body {
    margin: 0;
    line-height: 1.5;
    font-size: var(--body-font-size);
    font-weight: 400;
    background-color: var(--color-secondary);
    font-family: 'open sans', sans-serif;
    color: var(--color-primary);
    font-size: var(--body-font-size);
}

h1,
h2,
h3,
h4 {
    font-family: 'nunito', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 5em;
}

h2 {
    font-size: 2.82em;
    color: var(--color-primary);
}

h3 {
    font-size: 1.999em;
}


img {
    width: 100%;
    /*border-radius: var(--border-radius);*/
    display: block;
    margin: 0;
    object-fit: cover;
}


a {
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

a:active {
    color: var(--color-red);
}


.btn {
    border-radius: 50px;
    padding: 2em 5em 2em 5em;
    text-transform: uppercase;
    background-color: var(--color-primary);
    border-color: var(--color-red);
    color: var(--color-red) !important;
    /*font-family: var(--tertiary-font);*/
    font-family: var(--body-font-family);
    font-weight: 700;
    font-size: 1em;
}

.btn-rond {
    border-radius: 20px;
    background-color: var(--color-red);
    width: 2em;
    height: 2em;
}

.wt-containercontenu {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.hide {
    display: none;
}

/* ----------------------------------------*/
/* ----------- ANIMATIONS -----------------*/
/* ----------------------------------------*/


@keyframes fade-down {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

@keyframes fade-left {
    0% {
        opacity: 0;
        transform: translatex(30px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translatex(0px) scale(1);
    }
}

@keyframes fade-right {
    0% {
        opacity: 0;
        transform: translatex(-90px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

.fade-left {
    animation: fade-left 0.6s 1s backwards;
}

.fade-right {
    animation: fade-right 1s backwards;
}

.fade-up {
    animation: fade-up 0.6s 1s backwards;
}

/* --------------------------------------- */
/* --------------- HEADER ---------------- */
/* --------------------------------------- */


header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em 0 1em 0;
    position: fixed;
    z-index: 100;
}

header .contenu-interne {
    width: 30%;
    display: flex;
    background-color: rgba(255, 20, 44, 0.6);
    backdrop-filter: blur(25px);
    box-shadow: 5px 5px 15px black;
    animation: fade-down 0.5s 0.4s backwards;
    padding: 1em 0 1em 0;
    border-radius: var(--border-radius);
}

header .contenu-interne nav {
    width: 100%;
}

header a {
    font-family: var(--heading-font-family);
    font-weight: 800;
}



header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}


header a {
    color: var(--color-secondary);
    font-family: var(--heading-font-family);
}


/* --------------------------------------------- */
/* ---------------- BUTTON --------------------- */
/* --------------------------------------------- */

.btn-custom {
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    margin: 2em 0 0 0;
    backdrop-filter: blur(25px);
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    font-family: var(--primary-font);
    font-weight: 800;
    font-size: var(--body-font-size);
    color: var(--color-red);
    box-shadow: var(--shadow);
}


.btn-custom a {
    text-decoration: none;
}

.btn-custom:hover {
    color: var(--color-secondary);
    background-color: var(--color-red);
}

/* --------------------------------------------- */
/* ---------------- HERO ----------------------- */
/* --------------------------------------------- */

#hero {
    text-align: center;
    padding: var(--padding-section);
    background-image: url(../../../assets/img/obbi/logo-OBBI.png);
    background-position: bottom;
    background-repeat: no-repeat;
    padding: var(--padding-section);
    height: 50vh;
}


/* --------------------------------------------- */
/* ---------------- INTRO ---------------------- */
/* --------------------------------------------- */

#intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2em;
    justify-content: space-evenly;
    padding: var(--padding-section);
}

#intro h1 {
    color: var(--color-primary);
}

#intro div:first-child {
    width: 50%;
}

#intro div:nth-child(2) {
    width: 30%;
}

/* --------------------------------------------- */
/* --------------- MAIN TEXT ------------------- */
/* --------------------------------------------- */

#maintext {
    display: flex;
    padding: var(--padding-section);
    gap: 2em;
    align-items: center;
}

#maintext div:first-child {
    width: 40%;
}

#maintext div:nth-child(2) {
    width: 60%;
}

/* --------------------------------------------- */
/* -------------- TRIPTYQUE -------------------- */
/* --------------------------------------------- */

#triptyque {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 2em;
    padding: var(--padding-section);
}

#triptyque>div {
    display: flex;
    width: 100%;
    gap: 2em;
}

#triptyque>div>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
}

.custom-width img {
    width: 20em;
}

.custom-height img {
    height: 20em;
}

/* --------------------------------------- */
/* ---------- BTN SCROLL UP   ------------ */
/* --------------------------------------- */


.option {
    position: fixed;
    bottom: 4em;
    right: 1em;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    z-index: 99;
}

.option button {
    color: var(--color-primary);
    background-color: var(--color-primary);
    border: 0;
    box-shadow: 0px 0px 10px #000015;
    width: 4em;
    height: 4em;
    border-radius: 50px;
    margin: 0.5em;
}

#scrollUp {
    background-image: url(../../../assets/img/global/fleche.svg);
    background-repeat: no-repeat;
    background-position: center;
    animation: fade-up 0.5s 0.4s backwards;
    background-size: 2em;
}

#scrollUp:hover {
    cursor: pointer;
}

#scrollUp a {
    color: var(--color-secondary);
}

/* --------------------------------------- */
/* ------------- FOOTER   ---------------- */
/* --------------------------------------- */


footer {
    align-items: center;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 20, 44, 0.6);
    backdrop-filter: blur(25px);
    border-radius: 25px 25px 0 0;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow: 5px -1px 15px black;
}

footer a {
    color: var(--color-secondary);
}

footer a:hover p {
    color: var(--color-primary);
}

footer p {
    color: var(--color-secondary);
}

footer>div {
    display: flex;
    justify-content: space-between;
    width: 95%;
}


footer div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 10%;
}

footer div:nth-child(2) a {
    display: flex;
    align-items: center;
    width: 1.5em;
}

footer div:nth-child(2) a:hover svg path {
    fill: var(--color-primary);
}


footer svg {
    width: 2em;
}

footer svg path {
    stroke: var(--color-secondary);
    stroke-width: 0;
    fill: var(--color-secondary);
}

/* ---------------------------------------- */
/* ----------- MEDIA QUERIES PHONE -------- */
/* ----------------------------------------*/


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

    /* --------------------------------------- */
    /* ------------- GLOBAL   ---------------- */
    main {
        text-align: center;
    }

    main li {
        text-align: left;
    }

    h2 {
        margin: 0;
    }

    /* --------------------------------------- */
    /* ------------- HEADER   ---------------- */
    header .contenu-interne {
        width: 75%;
    }

    /* --------------------------------------- */
    /* ------------- HERO   ---------------- */
    #hero {
        background-size: 12em;
        background-position: center;
    }

    /* --------------------------------------- */
    /* ------------- INTRO   ---------------- */
    #intro {
        flex-direction: column;
        padding: var(--padding-section-mobile);
    }

    #intro h2 {
        font-size: 2.5em;
    }

    #intro div:first-child,
    #intro div:nth-child(2) {
        width: 100%;
    }

    /* --------------------------------------- */
    /* ------------- MAINTEXT   ---------------- */
    #maintext {
        flex-direction: column-reverse;
        padding: var(--padding-section-mobile);
    }

    #maintext div:first-child,
    #maintext div:nth-child(2) {
        width: 100%;
    }

    /* --------------------------------------- */
    /* ------------- TRIPTYQUE   ---------------- */
    #triptyque {
        flex-direction: column;
        padding: var(--padding-section-mobile);
        gap: 3em;
    }


    #triptyque>div {
        flex-direction: column;
    }

    #triptyque>div>div {
        width: 100%;
    }

    .custom-height img {
        height: unset;
        object-fit: contain;
    }

    /* --------------------------------------- */
    /* ------------- OPTION BUTTON   ---------------- */
    .option {
        right: 1em;
        bottom: 2em;
    }

    /* --------------------------------------- */
    /* ------------- FOOTER   ---------------- */
    footer>div {
        flex-direction: column;
        text-align: center;
    }

    footer div:nth-child(2) {
        margin: auto;
        gap: 1em;
        width: 100%;
        justify-content: center;
    }
}




/* ---------------------------------------- */
/* ----------- MEDIA QUERIES Tablet  ------ */
/* ----------------------------------------*/

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

    header .contenu-interne {
        width: 50%;
    }

    /* ---------------------------------------- */
    /* ---------------- HERO  --------------- */
    #hero {
        background-position: center;
        background-size: 22em;
    }

    /* ---------------------------------------- */
    /* ---------------- INTRO  --------------- */
    #intro {
        justify-content: space-between;
        padding: var(--padding-section-mobile);
    }

    #intro div:nth-child(2) {
        width: 50%;
    }

    /* ---------------------------------------- */
    /* ---------------- MAINTEXT  --------------- */
    #maintext {
        padding: var(--padding-section-mobile);
    }

    #maintext div:first-child {
        width: 50%;
    }

    #maintext div:nth-child(2) {
        width: 50%;
    }

    /* ---------------------------------------- */
    /* ---------------- TRIPTYQUE  --------------- */
    #triptyque {
        padding: var(--padding-section-mobile);
    }

    .custom-height img {
        height: 10em;
        object-fit: cover;
    }

    /* ---------------------------------------- */
    /* ---------------- FOOTER  --------------- */
    footer>div {
        flex-direction: row;
    }

    footer div div {
        width: 34%;
    }

    footer div:nth-child(2) {
        margin: auto;
        gap: 1em;
        justify-content: center;
    }
}