@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Zilla+Slab:wght@700&display=swap');

:root {
  --color-bg-dark: rgba(22,38,53,1);
  --color-accent: rgba(82,135,153,1);
  --color-text-light: lightgrey;
  --color-text-white: #fff;
  --width--wrapper-header: 20%;
  --height-menu-nav: auto;
}

html {
    height: auto;
    margin: 0;
    padding:0;
}


body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    display: flex;
}

h1, h2, h3, .title_type, #header_name h1, .menu-nav li a{
    font-family: 'Zilla Slab', serif;

}

a, p, li, .content_type {
    font-family: 'Lato', sans-serif;
}

/* Wrapper Header */
#wrapper_header {
    width: var(--width--wrapper-header);
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
}

/* Header */
#header {
    flex: 0 0 auto;
    display: flex;
    width:100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    background: linear-gradient(rgba(22,38,53,0.6), rgba(22,38,53,0.6)), url(../img/background/painting.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 1.5rem;
    gap: 0.5rem;
}

#header #header_img {
    display: flex;
    justify-content: center;
}

#header #header_name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

#header #header_name h1 {
    font-size: 1.8rem;
    padding: 0;
    color: white;
}

#header #header_img img {
    width: 9rem;
    border-radius: 100%;
    background-color: var(--color-text-light);
    border: solid 0.1rem var(--color-text-light);
}

#header_logo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    width:100%;
}

#header_logo .logo {
    text-align: center;
}


.logo i {
  color: #ffffff;
  font-size: 2.5rem;
  transition: transform 0.5s ease;

}

.logo i:hover {
  transform: scale(1.2);
  color: var(--color-accent);
}


.menu-nav {
    background-color: var(--color-bg-dark);
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-nav ul {
    list-style: none;
    display: grid;
    text-align: center;
    align-items: center;
    height: var(--height-menu-nav);
    padding: 0;
    margin: 0;
    gap:1rem;
}

.menu-nav li{
    border-bottom: solid lightgrey;
    border-width:thin;
}

.menu-nav li a {
    font-size: 1.5rem;
    color: var(--color-text-light);
    text-decoration: none;
    padding: 1rem;
    display: inline-block;
    transition: color 0.5s ease, text-decoration-thickness 0.5s ease;
}

.menu-nav li a:hover,
.menu-nav li a:focus {
    color: var(--color-text-white);
    text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-underline-offset: 0.4rem;
}

.menu-nav li a.active{
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 0.15rem;
    text-underline-offset: 0.4rem;
}

#main_content {
    margin: 0;
    margin-left: var(--width--wrapper-header);
    min-height: 100vh;
    background: url(../img/background/abstract_background.svg);
    background-attachment: fixed;
    background-repeat: repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width:100%;
}

#text_zone {
    background-color: var(--color-text-white);
    margin: 10% 15% 10% 15%;
    border-left: 0.5rem solid var(--color-bg-dark);
    font-size: 1.2rem;
}

#text_zone_content {
    margin: 3.5rem;
    display: grid;
    gap: 2.5rem;
}

#text_zone h2.title_type {
    text-decoration: underline;
    font-size: 1.8rem;
    font-weight: normal;
    margin:0;
    padding: 0;
}

#text_zone p.content_type{
    margin:0;
    padding:0;
}

#text_zone a {
    text-decoration: none;
    color: var(--color-accent);
    padding: 0.1rem;
}

#text_zone a:hover {
    background-color: var(--color-accent);
    color: var(--color-text-white);
    transition: 0.5s;
}

.bloc_contact{
    display:flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap:0.5rem;
}


.bloc_contact i{
    font-size: 1.5rem;
}

#keywords {
    margin:0;
    display: grid;
    gap: 1rem;
}

#scrollTopBtn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: none;
    background-color: var(--color-bg-dark);
    border: none;
    border-radius: 100%;
    padding: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#scrollTopBtn i {
    font-size: 1.5rem;
    width:1.5rem;
    height:1.5rem;
    color:white;
}

#scrollTopBtn:hover {
    background-color: var(--color-accent);
}
