@import url("./font.css");

* {
    --text_hr: rgb(219, 218, 216);
    --h_barre:  rgb(196, 196, 196);
    --barre: #252525;

    --text: rgb(95, 99, 104);
    --text2: rgb(32, 33, 36);

    --header-height: 50px;
    
    --color-primary: #F4911D;

    scroll-behavior: smooth;
    color: var(--text);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 15px;
    font-weight: 100;
    font-family: 'Nunito', Arial, sans-serif;
    letter-spacing: 0.8px;
    background: rgb(244, 245, 247);
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

a {
    position: relative;
    color: var(--text);
}

a:hover {
    text-decoration: none;
    color: var(--color-terssiaire);
}
/* 
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    border-radius: 50px;
    background: rgb(207, 206, 206);
} */

strong {
    font-weight: bold;
    color: var(--color-primary);
    font-family: "Nunito Black", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.15;
    color: var(--text2);
    font-family: 'Nunito Black', Arial, sans-serif;
}

p {
    font-weight: 400;
    line-height: 1.5;
}

.block {
    margin: 5px 0;
    border-radius: 5px;
    background: #fff;
}

.block-sh {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.10);
}

.video-container iframe {
    margin: 10px;
    border-radius: 10px;
}

/* card-present */
.card-present {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 5px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    background: #000;
    overflow: hidden;
}

.card-present::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000077;
    z-index: 1;
}

.card-present img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.card-present .text-block {
    padding: 20px;
    z-index: 2;
}

.card-present .text-block * {
    color: #fff;
}

/* header */

.logo-block {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    background: #fff;
    width: 100px;
    height: 200px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

#logo img {
    width: auto;
    margin-top: 30px;
    height: 75px;
}

.icon-hamburger {
    padding: 8px;
    font-size: 40px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    color: #fff;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    display: flex;
    padding: 0 40px;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    z-index: 100;
    border-bottom: 1px solid rgb(154, 162, 164);
    transition: background .5s;
}

#header.scroll {
    background: #fff;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#header.scroll .menu-items > a {
    color: initial;
}

#header.scroll .icon-hamburger {
    color: initial;
}

.menu-header {
    height: 100%;
}

.menu-wrapper, .menu-wrapper .menu-items {
    position: relative;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.menu-wrapper .menu-items {
    margin: 0 15px;
    cursor: pointer;
}

.menu-items > a {
    color: #fff;
    text-transform: uppercase;
}

.menu-items:hover .menu-sub-items {
    transform: translateY(0);
    opacity: 1;
    z-index: 0;
}

.menu-sub-items {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    position: absolute;
    top: 72px;
    width: 200px;
    padding: 10px 20px;
    background: #fff;
    border-top: 2px solid var(--color-terssiaire);
    transform: translateY(-100%);
    opacity: 0;
    z-index: -4;
    transition: transform .3s, opacity .3s
}

.menu-sub-items a {
    display: inline-block;
    margin: 6px 0;
    text-transform: uppercase;
}

/* mobile nav */
.menu-header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 102;
    overflow: auto;
    transform: translateX(-100%);
    transition: transform .3s;
}

.menu-header-mobile.show {
    transform: translateX(0);
}

.menu-header-mobile .custum-list-child {
    height: auto;
    border: none;
}


/* baniere */

.baniere, 
.baniere-title,
.baniere-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.baniere-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    z-index: -1;
    overflow: hidden;
}

.baniere-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.baniere-bg-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.baniere-title {
    margin-top: 120px;
    margin-bottom: 20px;
}

.baniere-content {
    width: 60%;
    padding: 20px;
    margin: 15px auto;
    background: #fff;
    border-radius: 10px;
}

/* mise en forme texte */

.hero-text {
    font-size: 3em;
    color: #fff;
    font-weight: bold;
    z-index: 2;
    line-height: 60px;
    text-transform: uppercase;
}

.hero-text strong {
    padding: 3px;
    border-radius: 5px;
    color: var(--color-primary);
}

/* section-margin */

.section-margin {
    position: relative;
    min-height: 300px;
    margin-top: -150px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    z-index: 2;
}


/* content */

.custum-list {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.custum-list-items {
    padding: 10px;
    width: clamp(360px, 45.33%, 100%);
}

.custum-list-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 72px;
    padding: 5px 10px;
    border-bottom: 1px solid #8d8d8f;
    text-transform: uppercase;
}

.custum-list-child a i {
    margin: 10px;
}

/* blog-presentation */

.blog-presentation {
    position: relative;
    margin: 10px 0;
    padding: 8px;
    width: 100%;
    min-height: 550px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    background: #ffffff;
}


/* cadre */
.cadre {
    width: 340px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.cadre-border {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 8px;
    border: 1px solid #000000;
}

.cadre-border * {
    text-align: center;
    color: #000000 !important;
}

/* articles-blog */

.grid-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    place-items: center;
    grid-gap: 1px;
}

.title-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 15px auto;
}

.article-card {
    max-height: 300px;
}

.article-card .article-card-head {
    width: 100%;
    height: 150px;
}

.article-card-body h6 {
    font-size: 13px;
    word-break: break-word;
}

.action-article {
    width: 100%;
    height: 30px;
    justify-content: space-around;
    align-items: center;
}

.action-article i {
    font-size: 20px;
}

/* partenaire */
.partenaire img {
    width: 250px;
    margin: 5px 0;
}

.partenaire {
    margin: 5px;
    width: 260px;
}

/* footer */
footer {
    width: 100%;
    min-height: 400px;
    background: #252525;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
}

footer p {
    color: #fff;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 20px;
    border-bottom: 1px solid gray;
}

.footer-content * {
    color: #fff;
}

.footer-items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin: 10px 20px;
}

.footer-items a {
    padding: 8px;
}

/* loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 200;
}

#loader img {
    width: 150px;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    0% {
        transform: scale(1, 1);
    }

    50% {
        transform: scale(.95, .95);
    }

    100% {
        transform: scale(1, 1);
    }
}

/* Autre page */
.profil-artisan {
    width: 100%;
    height: 100%;
}

.avatar {
    width: 150px;
    height: 150px;
    display: flex;
    margin: 10px 0 !important;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    border-radius: 100%;
    background: #fff;
}

.profil-body {
    font-size: 14px;
}

.profil-artisan-items {
    display: flex;
    padding: 10px;
    margin: 10px 0;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.profil-artisan-items > * {
    margin: 0 5px;
}

.certificat {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-bottom: 10px;
}

/* btnfloat */
.btnfloat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #00000014;
    border-radius: 50px;
    z-index: 100;
}

.btnfloat a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 6px 0;
    padding: 10px;
    border-radius: 50px;
    background: var(--blue);
}

.btnfloat a:nth-child(2) {
    background: var(--indigo);
}

.btnfloat a:nth-child(3) {
    background: var(--teal);
}

.btnfloat a i {
    font-size: 20px;
    color: #fff;
}


/* chat */
.chat,
.chat-content {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.chat {
    height: calc(100vh - 50);
}

.chat-content {
    overflow-y: auto;
    max-height: 400px;
    min-height: 300px;
    border-radius: 5px;
}

#avatar {
    width: 30px;
    height: 30px;
    margin: 0 8px;
    border-radius: 50px;
}

.conver {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 10px 0;
}

.conver span {
    font-size: 12px;
    width: auto;
    display: inline-block;
    padding: 10px 15px;
    background: #f4901d2c;
    border-radius: 0 20px 20px 20px;
}

.conver * {
    color: #000;
}

.conver.user {
    margin-left: auto;
}

.conver.user span {
    border-radius: 20px 0 20px 20px;
    background: #0000001b;
}

.user-questions {
    display: flex;
    flex-wrap: wrap;
    max-height: 100px;
    overflow-y: auto;
}

.user-questions span {
    padding: 8px;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    font-size: 12px;
    margin: 5px;
    cursor: pointer;
}