/* +P
  __      ____
 /\ \    /\  _`\  
 \_\ \___\ \ \L\ \
/\___  __\\ \ ,__/
\/__/\ \_/ \ \ \/ 
    \ \_\   \ \_\ 
     \/_/    \/_/ 
     plusproduit.com
     
     plusb theme 2024.02.09
*/

:root {
    /* Typo --------- */
    --bs-body-font-family: 'sofia-pro', helvetica, sans-serif;
    /* --bs-body-line-height: 1.5; */
    /* --bs-body-font-weight: 400; */
    --p-body-font-strong-weight: 700;
    --p-alt-font-family: 'Judson', serif;
    --p-alt-font-weight: 400;

    /* Colors --------- */
    --bs-body-color: #23211e;
    --bs-body-color-rgb: 35, 33, 30;
    --bs-body-bg: #fafafa;
    --bs-body-bg-rgb: 250, 250, 250;
    --bs-primary: #b2c4ca;
    --bs-primary-rgb: 178, 196, 202;
    --bs-secondary: #e44052;
    --rs-red: #e44052;
    --bs-secondary-rgb: 228, 63, 80;
    --bs-tertiary: #a49881;
    --bs-tertiary-rgb: 164, 152, 129;
    --bs-dark: #003c4d;
    --bs-dark-rgb: 0, 60, 70;
    --bs-light: #fff;
    --bs-light-rgb: 255, 255, 255;

    /* Link */
    --bs-link-color: var(--bs-primary);
    --bs-link-color-rgb: var(--bs-primary-rgb);
    --bs-link-hover-color-rgb: var(--bs-body-color-rgb);

    /* taille du header mobile */
    --p-header-height: 5rem;
    /* taille du logo mobile */
    --p-logo-width: 100px;

    /* Max width as a variable */
    --p-mw: 1320px;

    /* Borders */
    --bs-border-width: 2px;
    --bs-border-color: var(--bs-body-color);
    /* --bs-border-radius: 0; */

    /* Swiper JS */
    --swiper-navigation-size: 30px;
    --swiper-theme-color: var(--bs-primary);

    /* Book */
    --book-columns: 6;
    --petit-fond: 6rem;
    --grand-fond: 8rem;

    /* font size */
    --rs-xl: 2.5rem;
    --rs-l: 1.875rem;
    --rs-ml: 1.5rem;
    --rs-m: 1.1rem;
    --rs-initial: 1rem;
    --rs-s: .875rem;
}

a {
    text-decoration: none;
    color: var(--bs-body-color);
}

a:hover {
    text-decoration: underline;
}

.text-light {
    --bs-link-hover-color: var(--bs-white);
    --bs-link-hover-color-rgb: var(--bs-white-rgb);
}

.bg-primary {
    --bs-link-color: var(--bs-light);
    --bs-link-color-rgb: var(--bs-light-rgb);
}

.btn {
    --bs-border-radius: 0;
    --bs-btn-padding-x: 1em;
    --bs-btn-padding-y: .5em;
    --bs-btn-font-size: .8rem;
    --bs-btn-font-weight: var(--p-body-font-strong-weight);
    --bs-btn-line-height: 1;
    margin-bottom: .5rem;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-color: var(--bs-body-bg);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-body-color);
    --bs-btn-hover-color: var(--bs-body-bg);
    --bs-btn-hover-border-color: var(--bs-body-color);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

.text-light .btn-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-bg: var(--bs-light);
    --bs-btn-border-color: var(--bs-light);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-color: var(--bs-body-bg);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
}

@media (min-width: 992px) {
    :root {
        /* taille du header desktop */
        --p-header-height: 6rem;
        /* taille du logo desktop */
        --p-logo-width: 200px;
    }
}

/* >>>>>>>>>> Gouttières !!!!! */
:root,
.row,
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

.row.my-0>* {
    margin-top: 0rem !important;
}

/* #region SITE HEADER + NAV */
.menu--main {
    font-size: 1.25rem;
}

.menu--main .nav-link,
.underpink a {
    position: relative;
    padding-bottom: 0rem;
    text-decoration: none;
    color: var(--bs-dark);
}

.underpink a {
    padding-bottom: .15rem;
}

.menu--main .nav-link::before,
.underpink a::before {
    content: '';
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0px;
    background-color: rgba(var(--bs-secondary-rgb), .3);

    transition: height .25s ease-in-out;
}

.menu--main span.nav-link::before {}

.menu--main a.nav-link:hover::before,
.menu--main a.nav-link.is-active::before,
.menu--main .nav-link.active::before,
.underpink a:hover::before {
    height: 13px;
}

.dropdown-toggle::after {
    display: none;
}

.underpink a::before {
    height: 2px;
}

/* #endregion */



/* classe max-width */
.max-width {
    max-width: var(--p-mw);
}

main {
    padding-top: 6rem;
}

.placeholder {
    background: transparent;
}


.reading-red {
    color: var(--bs-secondary);
}

.reading-quote {
    font-size: 2rem;
}

h1 {
    font-size: var(--rs-xl);
    color: var(--bs-dark);
}

h2 {
    font-weight: 300;
    color: var(--bs-tertiary);
}

h3 {}

h4 {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
}

.reading-medium {
    font-size: var(--rs-m);
}

.reading-xl {
    font-size: var(--rs-xl);
    line-height: 1.1;
}

.reading-l {
    font-size: var(--rs-l);
    line-height: 1.1;
}

.reading-ml {
    font-size: var(--rs-ml);
    line-height: 1.1;
}

.reading-s {
    font-size: var(--rs-s);
}

.reading-initial {
    font-size: var(--rs-initial);
}

.bold {
    font-weight: 700;
}

.text-formatted table {
    margin-bottom: 1.5rem;
}

.text-formatted table td {
    padding-right: 1rem;
}

/* #region BOOK */

.book-author,
.book-title {
    text-align: center;
    font-style: italic;
}

.book-title,
.book-author {
    font-size: 1rem;
    display: inline-block;
    width: calc(50% - var(--petit-fond));
}

.book-author {
    margin-left: calc(2 * var(--petit-fond));
}

.book-pagenr {
    text-align: center;
}

.book-pagenr::before,
.book-pagenr::after {
    content: '–';
    margin: .5rem;

}

.book-page {
    display: none;
}

.book-item {
    position: relative;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 45%, rgba(220, 220, 220, 1) 50%, rgba(255, 255, 255, 1) 55%, rgba(255, 255, 255, 1) 100%);
    padding: 3rem var(--grand-fond) 4.5rem;
}

.book-text-wrapper {
    overflow: hidden;
}

.book-text,
.book-footer {
    column-count: var(--book-columns);
    width: calc(var(--book-columns) * 50% + (var(--book-columns) - 2) * var(--petit-fond));
    text-align: justify;
    column-gap: calc(2 * var(--petit-fond));
    column-fill: balance;
    font-size: 1.2rem;
}

.book-footer {
    margin-top: 1.5rem;
}

.book-pagenr {
    font-size: 1rem;
}

/* PAGINATION */
.page-flip {
    position: relative;
    position: absolute;
    width: var(--grand-fond);
    z-index: 2;
    transition: all .4s ease-in-out;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    opacity: .3;
    cursor: pointer;
}

.page-flip:hover {
    /* opacity: .8; */

}

.page-flip::after {
    content: '‹';
    position: absolute;
    width: 3rem;
    height: 4vw;
    font-size: 4rem;
    line-height: 4rem;
    top: calc(50% - 2rem);
    left: 1rem;
    font-family: 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.page-flip::hover {}

.page-flip-next {
    right: 0;
    left: auto;
}

.page-flip-next::after {
    content: '›';
    right: 10px;
    left: auto;
}

@media (max-width:1366px) {
    :root {
        --petit-fond: 3.5rem;
        --grand-fond: 5rem;
    }
}

@media (max-width:1280px) {
    :root {
        --petit-fond: 2.5rem;
        --grand-fond: 4rem;
    }
}

@media (max-width:992px) {
    .book-text p {
        font-size: 1rem;
    }

    :root {
        /* Book */
        --book-columns: 6;
        --petit-fond: 2rem;
        --grand-fond: 3rem;
    }

    .page-flip::after {
        font-size: 2rem;
        width: 2rem;
    }

    .page-flip-next::after {
        right: 0px;
    }

    .page-flip-prev::after {
        left: 10px;
    }
}

@media (max-width:768px) {
    :root {
        /* Book */
        --book-columns: 6;
        --petit-fond: 1rem;
        --grand-fond: 2rem;
    }


    .book-item {
        background: #FFF;
        padding: 3rem 1.5rem 2.5rem 2.5rem;
    }

    .book-text {
        width: calc(var(--book-columns) * 100% + (var(--book-columns) - 2) * var(--petit-fond));
    }

    .book-title-author {
        justify-content: space-around;
        flex-direction: column;
    }



    .book-author {
        /* text-align: right; */
        font-size: .85rem;
        line-height: 1.2;
        margin: 0;
        width: 100%;
    }

    .book-title {
        /* text-align: left; */
        font-size: .85rem;
        line-height: 1.2;
        width: 100%;
        /* max-width: 50%;
        flex: 1 1 50%; */
    }

    .book-footer {
        width: calc(var(--book-columns) * 100% + (var(--book-columns) - 2) * var(--petit-fond));
    }

    .book-pagenr {
        font-size: .85rem;
        line-height: 1.2;
    }

    .page-flip {
        width: 100px;
    }


}

.book-text p {
    margin: 0 0 1.8rem 0 !important;
    text-indent: 2rem;
}

.book-text p::first-line {
    /* margin-left: 2rem; */
}

/* #endregion book */

/* #region FRONT */
.path-frontpage main {
    background: #faf9f7;
    background-size: cover;
    background-attachment: fixed;
    padding-top: 4rem;
}

/* #endregion front */



/* #region HEADER */
.site-header {
    background-color: #FFF;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.site-logo {
    width: 200px;
    width: var(--p-logo-width);

    transition: all .5s ease;
}

.scrolled .site-logo {
    width: 130px;
}

#p-offcanvasbtn {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 502;
}

/* #endregion header */

/* #region PERSONS */
.person-tab {
    position: relative;
    cursor: pointer;
    padding-bottom: 1rem;
}

.person-tab.open {
    border-bottom: 2px solid var(--bs-secondary);
}


.person-tab::after {
    content: '+';
    position: absolute;
    right: 0;
    bottom: 1.5rem;
    font-size: 3rem;
    color: var(--bs-secondary);
    font-weight: 300;
}

.person-tab.open::after {
    content: '–';
}

.bio-target {
    padding: 1.5rem 0;
}



/* #endregion */

/* #region STUDIOS */
#studio-target {
    overflow: hidden;
    margin-top: 3rem;
}

.paragraph--type-country h3 {
    font-weight: 700;
    color: var(--bs-primary);
}

.studio-item a {
    text-decoration: none;
    color: var(--bs-dark);
    font-size: 1.5rem;
}

.studio-item a::before {
    height: 2px;
}

.link-to-studio,
.link-larger {
    font-weight: 700;
    display: block;
}

.link-to-studio a,
.link-larger a {
    margin: 1.5rem 0;
    padding-left: 1rem;
    padding-right: .25rem;
    font-size: 1.25rem;
}

.link-to-studio a::after,
.link-larger a::after {
    content: '>';
    color: rgba(var(--bs-secondary-rgb), .3);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    margin-right: .5rem;
}

.link-larger {
    font-weight: 400;
}

.logo-studio {}

.logo-studio img {
    max-width: 200px;
    max-height: 130px;
    object-fit: contain;
    object-position: 0 0;
}

.logo-studio img {
    mix-blend-mode: multiply;
    /* filter: saturate(0);
    position: relative;
    z-index: 2; */
}

.logo-studio+h4 {
    display: none;
}

/* #endregion */



/* #region PROGRAMS */
.views-exposed-form {
    margin-bottom: 2rem;

}

.views-exposed-form .form-item {
    max-width: 300px;
}

.views-exposed-form .form-item select {
    border-color: var(--bs-tertiary);
}

.form-label {
    color: var(--bs-tertiary);
}

.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(var(--bs-tertiary-rgb), .25);
}

/* #endregion */
/* #region PAGES & FIELDS */
.page-node-type-project .region-content-bottom {
    padding-bottom: 12vh;
}

.my-xl {
    margin-top: 12vh;
    margin-bottom: 12vh;
}

.py-xl {
    padding-top: 12vh;
    padding-bottom: 12vh;
}

.pb-xl {
    padding-bottom: 12vh;
}

.my-l {
    margin-top: 8vh;
    margin-bottom: 8vh;
}

.py-l {
    padding-top: 8vh;
    padding-bottom: 8vh;
}

.pb-l {
    padding-bottom: 8vh;
}

.reading-download {
    text-align: center;
}

.text-formatted a {
    color: var(--bs-tertiary);
}

.reading-download a,
.reading-banner-link a {
    color: var(--bs-dark);
    text-decoration: none;
    text-align: center;
    display: inline-block;
    line-height: 1rem;
    padding: 1rem 3rem 1rem 5rem;
    border-top: 1px solid var(--bs-secondary);
    border-bottom: 1px solid var(--bs-secondary);
    transition: all .4s ease-in-out;
    background: transparent url('images/icons/ph_book-light.svg') no-repeat 3rem 53%;
}

.reading-banner-link {
    text-align: center;
}

.reading-banner-link a {
    background: white;
    margin: auto;
    padding: 1rem 3rem 1rem 3rem;

}

.reading-download a:hover,
.reading-banner-link a:hover {
    color: var(--bs-secondary);
}

#reading-banner {
    min-height: 50vh;
}

/* #endregion MORE PROJECTS */
#more-projects h2 {
    text-align: center;
    color: var(--bs-secondary);
}

.swiper-projects {
    max-width: 600px;
    margin: auto;
    padding-left: var(--bs-gutter-x);
    padding-right: var(--bs-gutter-x);
}

.swiper-projects h3 {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-projects .view-content {
    display: flex;
    flex-flow: nowrap;
    align-items: stretch;
}

.swiper-projects .swiper-slide {
    aspect-ratio: 1 / 1;
    padding: 2rem;
    background-color: #edeae6;
}

.swiper-projects img {
    max-width: 140px;
}

/* #endregion */
/* #endregion */



/* #region CONTACT */
#block-contact a {
    font-size: 1.25rem;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-form {
    max-width: 720px;
}

/* #endregion */

/* #region FOOTER */


/* #endregion */
/* #region OFFCANVAS */
#p-offcanvas {
    background-color: #FFF;
}

.p-offcanvas-content {
    padding-top: 200px;
}

#p-offcanvas .nav-item .nav-link {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* #endregion */
/* #region MEDIA QUERIES */
@media (max-width: 768px) {

    /* nav mobile */
    .site-logo {
        width: 120px;
    }

    .reading-quote {
        font-size: 1.5rem;
    }

    .reading-download a {
        padding: 1rem .25rem 1rem 2.5rem;
        background-position-x: 0;
    }
}

@media (max-width : 575px) {

    .underpink a::before,
    .nav-item a.nav-link::before {
        /* display: none !important; */
    }

    .person-tab {
        border-bottom: 2px solid var(--bs-secondary);
        margin-bottom: 1rem;
    }

    .person-item img {
        max-width: 180px;
    }
}

/* #endregion */