/*
Theme Name: Rudy Rigoudy & No code
Author: Rudy Rigoudy
Author URI: https://www.instagram.com/rudyrigoudy/?hl=fr
Description: Thème développé sur-mesure pour le site web de Rudy Rigoudy et de No code.
Version: 1.0
Text Domain: rudyrigoudy-nocode
*/

/* Importation de la police d'écriture (et de ses différents styles) */

/* Gras (et italique) */

@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Bold-Oblique.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Moyen (et italique) */

@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Medium-Oblique.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Normal (et italique) */

@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Book.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Book-Oblique.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Léger (et italique) */

@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "FuturaStd";
    src: url("assets/fonts/FuturaStd/FuturaStd-Light-Oblique.woff2") format("woff2");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Réinitialisation CSS */

*, ::before, ::after {
    margin: 0;
    padding: 0;
}

/* Propriétés globales */

html {
    scroll-behavior: smooth;
}
body {
    font-family: "FuturaStd", sans-serif;
    font-size: 20px;
    color: #000000;
    background: #FFFFFF;
    height: 100vh;
}

/* Mise en page générale */

.site-wrapper-inner, .site-footer {
    padding: 110px 85px;
}
.site-wrapper-inner {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.site-content {
    flex-grow: 1;
}

/* Footer (pied de page) */

.site-footer {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 60px;
    color: #FFFFFF;
    background: #000000;
}
.home .site-footer {
    display: none;
}
.footer-socials {
    display: flex;
    gap: 60px;
    flex-grow: 1;
}
.site-footer .footer-socials {
    flex-wrap: wrap;
    row-gap: 60px;
}
.footer-socials > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.footer-socials > div > div {
    display: flex;
    gap: 12px;
}
.footer-socials > div > p {
    margin-bottom: 0px;
}
.footer-socials > div > div a {
    display: contents;
}
.footer-socials > div > div svg {
    width: 30px;
}
.front-page-content .footer-socials {
    flex-direction: column;
    gap: 120px;
    color: #FFFFFF;
}
.front-page-content {
    display: flex;
    align-items: center;
    height: calc(100vh -  110px * 2);
}
.footer-menu {
    list-style-type: none;
}
.footer-menu a {
    text-decoration: none;
    color: #FFFFFF;
}

/* Autres */

.page-background img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.9);
    transition: opacity 2s ease-in-out;
    user-select: none;
    pointer-events: none;
}
.page-background-hidden {
    opacity: 0;
}
.site-header {
    z-index: 1;
}
.site-header > div {
    display: flex;
    align-items: center;
    gap: 20px;
}
body.home .navbars-logos {
    margin-bottom: 20px;
}
.navbars-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.navbars-logos svg {
    width: 50px;
}
.navbars-logos path, .navbars-logos circle {
    fill: #000000;
}
.home .navbars-logos path, .home .navbars-logos circle {
    fill: #FFFFFF;
}
.navbars-logos a:has(svg.separator) {
    display: contents;
}
.navbars-logos svg.separator {
    width: 29px;
}
.navbars-logos svg:last-of-type:not(.separator) {
    width: 60px;
}
.navbars-liens {
    display: flex;
    flex-direction: column;
}
.navbars-liens > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 25px;
    min-width: fit-content;
    max-height: fit-content;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    border-radius: 15px;
    text-align: end;
    transition: opacity 0.2s ease-in-out;
}
.navbars-liens > div:first-of-type {
    margin-bottom: 50px;
}
.navbars-liens > div:last-of-type {
    margin-top: 50px;
}
.navbars-liens-hidden {
    opacity: 0;
    user-select: none;
    pointer-events: none;
}
.navbars-liens ul {
    list-style-type: none;
}
.navbars-liens a {
    text-decoration: none;
    color: #000000;
}
.navbars-liens:has(ul.menu) li {
    margin-bottom: 10px;
}
.navbars-liens:has(ul.menu) li:last-of-type {
    margin-bottom: 0px;
}
body:not(.home) .page-info {
    position: fixed;
}
.page-info {
    padding: 75px 50px;
    margin-right: 200px;
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    border-radius: 15px;
    transition: opacity 0.3s ease-in-out;
}
.page-info-hidden {
    opacity: 0;
    user-select: none;
    pointer-events: none;
}
.infos {
    fill: white;
    transition: fill 0.2s linear;
}
.infos .circle {
    fill: transparent;
    transition: fill 0.2s linear;
}
.infos .borders {
    stroke: white;
    transition: stroke 0.2s linear;
}
.infos:hover {
    fill: transparent;
}
.infos:hover .circle {
    fill: white;
}
.infos, .croix {
    cursor: pointer;
}
.navbars-logos .infos {
    width: 35px;
    fill: black;
    transform: translateY(-40px);
}
.navbars-logos .infos .borders {
    stroke: black;
}
.page-info-start {
    display: flex;
    justify-content: space-between;
}
.page-info-start-text p:first-of-type {
    margin-bottom: 0px;
}
.page-info-start-close svg {
    width: 40px;
}
.page-info-paragraph {
    max-height: 400px;
    overflow-y: scroll;
}
.page-info-paragraph p {
    margin-top: 30px;
}
body:not(.home) .site-header {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 85px;
}
body:not(.home) .navbars-liens > div {
    min-width: max-content;
}
.single #main {
    display: flex;
}
.single #main > section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /*margin-right: 170px;*/
}
.single #main > section > div img, .single #main > section > div p {
    width: 400px;
}
.single #main > section > div p {
    font-size: 16px;
    text-align: end;
}
.single #main > section > article {
    margin-top: 30px;
}
.single #main > section > article .content p {
    margin-top: 30px;
}
.single #main > section > article .content .liste-images {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.single #main > section > article .content .liste-images img {
    width: 100%;
}
.single #main > section > article .content .liste-images-legende {
    font-size: 16px;
}
p {
    margin-bottom: 35px;
}
article:has(div.content) p {
    margin-bottom: 0px;
}
.bold {
    font-weight: 700;
}
body.single-galerie #main > section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 30px;
}
body.single-galerie #main > section div img {
    max-width: 400px;
    transition: 0.3s ease;
}
body.single-galerie #main > section div:hover img {
    filter: opacity(0.7);
}
.navigation-projets {
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-40px);
}
.navigation-projets a {
    display: contents;
}
.navigation-projets a svg {
    width: 30px !important;
}

@media screen and (min-width: 1020px) {
    body:not(:has(.single-galerie)) main#content {
        margin-right: 170px;
    }
}
@media screen and (max-width: 1020px) {
    body {
        height: auto;
    }
    .site-wrapper-inner, .site-footer {
        padding: 200px 50px;
    }
    .site-footer {
        padding: 110px 50px;
        justify-content: flex-end;
    }
    .site-wrapper-inner {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .site-header {
        position: fixed;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%) !important;
        top: auto !important;
        right: auto !important;
    }
    .site-header > div {
        flex-direction: column;
    }
    .navbars-logos {
        flex-direction: row;
        justify-content: center;
    }
    body:not(.home) .navbars-logos {
        background: #FFFFFF;
        padding: 20px 50vw;
    }
    .navbars-logos .infos {
        order: 1;
        transform: none;
    }
    .navbars-liens {
        position: relative;
    }
    .navbars-liens > div {
        width: max-content;
    }
    .navbars-liens > div:first-of-type {
        margin-bottom: 0;
        position: absolute;
        width: -webkit-fill-available;
        bottom: 0;
    }
    .navbars-liens > div:last-of-type {
        margin-top: 0;
    }
    .front-page-content {
        height: auto;
    }
    .page-info {
        margin-right: 50px;
    }
    .single #main > section {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        margin-right: 0;
    }
    .site-footer .menu-menu-footer-container {
        margin-bottom: 100px;
    }
    .navigation-projets {
        order: 1;
        transform: none;
    }
}
@media screen and (max-width: 930px) {
    body.single-galerie #main > section {
        justify-content: center;
    }
}
@media screen and (max-width: 500px) {
    .footer-socials img {
        height: 35px;
    }
    .single #main > section {
        display: block;
    }
    .single #main > section > div img, .single #main > section > div p {
        width: 100%;
    }
    .single #main > section > div p {
        text-align: start;
    }
}
@media screen and (max-height: 800px) {
    .site-wrapper-inner, .site-footer {
        padding: 75px 50px;
    }
}