:root {
    --main-color: #FFAB2D;
    --bg-color: #F3F3F3;
    --menu-color: #FFFFFF;
    --header-text-color: #434343;
    --text-color: #1E1E1E;
    --shadow-color: rgba(0,0,0,0.1);
    --header-svg-active-color: #FFFFFF;
    --header-svg-color: #434343;
}

[data-theme="dark"] {
    --main-color: #FFAB2D;
    --bg-color: #303030;
    --menu-color: #212121;
    --header-text-color: #C5C5C5;
    --text-color: #FFFFFF;
    --shadow-color: rgba(100, 100, 100, 0.1);
    --header-svg-active-color: #FFFFFF;
    --header-svg-color: #C5C5C5;
}

*{
    transition: .3s;
}

main b{
    color: var(--main-color);
}

a:link,
a:visited {
    text-decoration: none;
    color: var(--text-color);
}

.bold {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--bg-color);
    min-height: 100vh;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-color);
}

header {
    display: flex;
    position: fixed;
    width: 100%;
    height: 60px;
    background-color: var(--menu-color);
    justify-content: center;
    box-shadow: 0 10px 15px -3px var(--shadow-color);
    user-select: none;
    z-index: 100;
}

/* SLIDER DE CHANGEMENT DE THEME */

header .switch {
    display: inline-block;
    width: 60px;
    height: 34px;
}
  
header .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
  
header .slider {
    display:flex;
    position: absolute;
    cursor: pointer;
    width: 60px;
    height: 34px;
    top: 13px;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
  
}
  
header .slider div {
    display: flex;
    align-items:center;
    justify-content:center;
    position: absolute;
    height: 26px;
    width: 35px;
    left: 4px;
    bottom: 4px;
    background-color: var(--menu-color);
    transition: .4s;
    border-radius:100px;
    transition: .2s;
}

header .slider:hover div img {
    rotate: 30deg;
}
  
header input:checked + .slider {
    background-color: var(--main-color);
}

#theme-moon{
    opacity: 0;
}

header input:checked + .slider > div#theme-moon {
    transform: translateX(17px);
    opacity: 1;
}
  
header input:checked + .slider > div#theme-sun {
    transform: translateX(17px);
    opacity: 0;
}

/* FIN SLIDER */

header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 68.75%;
}

header div#header-home a {
    position: absolute;
    top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    border-radius: 10px;
    width: 100px;
    height: 70px;
    transition: .2s;
}

header div#header-home a:hover {
    top: 10px;
}

header div#header-home a img {
    width: 91px;
    height: 39px;
}

header nav {
    display: flex;
    gap: 15px;
    max-width: 554px;
    align-items: center;
    width: 90%;
    justify-content: space-between;
}

header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 5px;
    gap: 5px;
    border-radius: 10px;
}

header nav a:hover {
    background-color: var(--bg-color);
}

header nav a#active-link {
    background-color: var(--main-color) !important;
    color: var(--header-svg-active-color);
}

header nav a svg {
    height: 30px;
    aspect-ratio: 1;
}

header nav a#active-link svg path {
    fill: var(--header-svg-active-color);
}

header nav a svg path {
    fill: var(--header-svg-color);
}

main{
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 100px;
    padding: 0 200px;
}

main #title{
    display: flex;
    padding: 20px;
    border-radius: 20px;
    flex-direction: column;
    background-color: var(--menu-color);
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

main #title h2, main #title p{
    margin: 5px 0;
}

main div#container{
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 50px;
}

main article.groupe{
    display: flex;
    flex-direction: column;
    background-color: var(--menu-color);
    padding: 20px;
    border-radius: 40px;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}

main article.groupe div.container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

main article.groupe div.container a.item{
    display: flex;
    background-position: center;
    background-size: cover;
    align-items: end;
    overflow: hidden;
    width: 32%;
    aspect-ratio: 1.42;
    background-color: var(--main-color);
    box-shadow: 0 4px 6px -1px rgbavar(--shadow-color);
    border-radius: 20px;
}

main article.groupe div.container a.item div{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffab2dcb;
    width: 100%;
    height: 0;
    opacity: 0;
}

main article.groupe div.container a.item:hover div{
    height: 100%;
    opacity: 1;
}

main article.groupe div.container a.item div h2{
    text-transform: uppercase;
    color: var(--text-color);
}


footer {
    display: flex;
    background-color: var(--menu-color);
    margin-top: auto;
    min-height: 145px;
    box-shadow: 0 -10px 15px -3px var(--shadow-color);
}

footer p,footer h2, footer h3{
    margin: 0;
}

footer h3{
    font-weight: 400;
}

footer > div{
    display: flex;
    margin: 30px;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

footer > div img{
    display: flex;
    height: 80%;
    max-height: 85px;
}

footer > div > div{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer > div > div hr{
    width: 100%;
    border: 1px solid var(--main-color);
}

@media screen and (max-width: 1000px){
    #header-home{
        display: none;
    }
    
    header > div{
        justify-content: center;
    }
}

@media screen and (max-width: 650px){
    header {
        bottom: 0;
        box-shadow: 0 -10px 15px -3px var(--shadow-color);
    }

    header > div{
        width: 100%;
    }

    header nav{
        gap: 0;
        justify-content: space-evenly;
        width: 100%;
        margin: 0 10px;
    }

    header div#header-home{
        display: none;
    }
    
    header nav a{
        width: 20%;
    }

    header nav a b{
        display: none;
    }

    footer{
        margin-bottom: 60px;
    }

    footer > div{
        width: 100%;
        flex-wrap: wrap;
    }

    footer > div img{
        width: 85%;
    }
}