/*
 Theme Name:   Cie Les Pas Sages - 2022
 Description:  Theme enfant de lfi-2022
 Author:       La Fabrique Info
 Template:     lfi-2022
 Version:      1.0.0
 Text Domain:  clps-2022
*/

/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap");

/* GLOBALS */
html,
body {
    height: 100%;
}
body {
    font-family: "Nunito", sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: inherit;
    text-decoration: none;
}
.bg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.bg-contain {
    background-size: contain;
}
.font-josefin {
    font-family: "Josefin Sans", sans-serif;
}
.font-nunito {
    font-family: "Nunito", sans-serif;
}
.font-courier {
    font-family: "Courier Prime", monospace;
}
.font-curtive {
    font-family: "Curtive Mono", monospace;
}
.text-justify {
    text-align: justify;
}
.fit-cover {
    object-fit: cover;
}
.wp-block-image figure figcaption.wp-element-caption {
    text-align: center;
}
p img.aligncenter {
    display: block;
    margin: 0 auto;
}

/* Wordpress */
@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
        margin-bottom: 1rem;
    }
}

/* Nav - General */
nav.navbar ul.navbar-nav li a.nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: black;
    padding-top: 0;
    padding-bottom: 0;
}
nav.navbar ul.navbar-nav li {
    padding: 0 0.5rem;
}
nav.navbar ul.navbar-nav li:last-child {
    padding-right: 0;
}
nav.navbar ul.navbar-nav li a.nav-link {
    padding: 0;
}
nav.navbar ul li a.nav-link:hover,
/* nav.navbar ul li a.nav-link::after, */
nav.navbar ul li.current-menu-item a.nav-link,
nav.navbar ul li.current-menu-parent.active a.nav-link,
body.home nav.navbar ul li.current-menu-item a.nav-link:hover {
    font-weight: 700;
}
body.home nav.navbar ul li.current-menu-item a.nav-link {
    font-weight: normal;
}
nav.navbar .nav-desktop ul li a.nav-link::after {
    content: attr(title);
    display: block;
    height: 0;
    font-weight: 700;
    overflow: hidden;
    visibility: hidden;
    user-select: none;
    pointer-events: none;
}

/* Nav - Logo */
.navbar-brand {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
    width: 25%;
    min-width: 150px;
}
.navbar-brand .logo-container {
    position: relative;
    width: 100%;
}
.navbar-brand .logo-container .header-logo-bg {
    width: 100%;
    transform: translate(-10%, -40%);
}
.navbar-brand .logo-container .header-logo {
    width: 70%;
    height: auto;
    position: absolute;
    left: 40%;
    top: 25%;
    transform: translate(-50%, -50%);
}
body.home .navbar-brand {
    position: absolute;
    z-index: 80;
    width: 29%;
    min-width: 350px;
    max-width: 100%;
    top: 0;
    left: 50%;
    transform: translate(-50%, -56.3%);
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 1200px) {
    body.home .navbar-brand {
        left: 15%;
    }
}
@media (min-width: 1800px) {
    body.home .navbar-brand {
        left: 50%;
    }
}
body.home .navbar-brand .logo-container .header-logo-bg {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    transform: none;
    max-height: none;
    opacity: 1;
}
body.home .navbar-brand .logo-container .header-logo {
    position: absolute;
    top: 56.3%;
    left: 50%;
    transform: translate(-50%, -0%);
    width: 60%;
    height: auto;
    max-height: none;
}
/* Nav - Logo - Animation */
body.home .navbar-brand {
    transition: all 0.5s;
}
body.home .navbar-brand.scrolled {
    width: 19%;
    min-width: 240px;
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 1200px) {
    .navbar-brand .logo-container .header-logo-bg {
        opacity: 0;
        max-height: 330px;
        transition: all 0.5s;
    }
    .navbar-brand.scrolled .logo-container .header-logo-bg {
        opacity: 1;
        max-height: 280px;
        transform: translate(-10%, -50%);
    }
    .navbar-brand .logo-container .header-logo {
        max-height: 140px;
        transition: all 0.5s;
    }
    .navbar-brand.scrolled .logo-container .header-logo {
        transform: translate(-50%, -60%);
        max-height: 120px;
    }
}

/* Nav Mobile */
nav.navbar {
    z-index: 90;
}
div#header-menu-mobile {
    /* position: absolute; */
    position: fixed;
    z-index: 90;
    left: 0;
    top: 0;
    width: 100%;
}
div#header-menu-mobile .nav-item {
    text-align: center;
}
div#header-menu-mobile .nav-item .nav-link {
    color: white;
    font-weight: bold;
    font-size: 20px;
}
div#header-menu-mobile .nav-item a.nav-link:before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    margin: 6px auto;
}
nav button.navbar-toggler.collapsed {
    position: relative;
}
div#header-menu-mobile button.navbar-toggler,
nav button.navbar-toggler {
    /* position: absolute; */
    z-index: 95;
    /* right: 0; */
}
div#header-menu-mobile.collapsing button.navbar-toggler {
    display: none;
}
div#header-menu-mobile.show button.navbar-toggler {
    display: block;
}
div#header-menu-mobile button.navbar-toggler {
    position: absolute;
    right: 0;
    z-index: 95;
    top: 1rem;
}
div#header-menu-mobile button.navbar-toggler span {
    background-color: white !important;
}
nav button.navbar-toggler.collapsed span {
    background-color: black !important;
}
div#header-menu-mobile .path-1,
div#header-menu-mobile .path-2 {
    position: absolute;
    width: 100%;
    left: 0;
    z-index: 90;
}
div#header-menu-mobile .path-1 {
    top: 1rem;
}
div#header-menu-mobile .path-2 {
    bottom: 1rem;
}
div#header-menu-mobile .path-1 .path-container,
div#header-menu-mobile .path-2 .path-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
div#header-menu-mobile .path-1 .path-container,
div#header-menu-mobile .path-2 .path-container {
    height: 164px;
}
div#header-menu-mobile .path-1 .path-container img,
div#header-menu-mobile .path-2 .path-container img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
div#header-menu-mobile .path-2 .path-container img {
    transform: translateX(-50%) scaleX(-1);
}
div#header-menu-mobile #logo-menu-mobile {
    position: absolute;
    bottom: 0;
    z-index: 95;
}

/* Content */
.front-page-child-content,
.child-content {
    margin-top: -1rem;
}

/* Children Page Title - Path */
.title-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.title-path .image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.title-path .image-container.path-1 {
    /* height: 94px; */
}
.title-path .image-container.path-2 {
    /* height: 164px; */
}
.title-path .image-container.path-3 {
    /* height: 101px; */
}
.title-path .image-container.path-4 {
    /* height: 94px; */
}
.title-path .image-container .path {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.title-path.path-1 {
    /* margin-bottom: 0.5rem; */
}
.title-path .title-text.path-1 {
    /* margin-top: 0.5rem; */
}
.title-path.path-2 {
    /* margin-bottom: 3.6rem; */
}
.title-path .title-text.path-2 {
    margin-top: -5rem;
}
.title-path.path-3 {
    /* margin-bottom: 1.2rem; */
}
.title-path .title-text.path-3 {
    margin-top: -1.6rem;
}
.title-path.path-4 {
    /* margin-bottom: 0.5rem; */
}
.title-path .title-text.path-4 {
    margin-top: -0.8rem;
}
.title-path .title-text {
    letter-spacing: 0.2rem;
}
.page-child-content .title-path .title-text {
    color: black !important;
}
@media (min-width: 2200px) {
    .title-path {
    }
    .title-path .image-container img {
        /* width: 100%; */
    }
    .title-path .image-container.path-1,
    .title-path .image-container.path-2,
    .title-path .image-container.path-3,
    .title-path .image-container.path-4 {
        /* height: auto; */
    }
}

/* Old - title path figure */
.path-title.absolute-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.path-title .view-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.path-title .view-container .path-container {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}
.path-title .view-container .path-container .figure {
    position: absolute;
    height: 200px;
    width: auto;
    left: 0px;
}
.path-title .view-container .path-container .figure.figure-1 {
    top: -115px;
}
.path-title .view-container .path-container .figure.figure-2 {
    top: -130px;
}
.path-title .view-container .path-container .figure.figure-3 {
    top: -190px;
}
.path-title .view-container .path-container .figure.figure-4 {
    top: -180px;
}
.path-title .view-container .path-container .figure.figure-5 {
    top: -190px;
}
.path-title .view-container .title {
    position: absolute;
    bottom: 0;
    left: 50%;
    margin: 0;
    transform: translate(-50%, 0);
}

/* Page Title */
.page-title {
    z-index: 99;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    /* text-align: center; */
    pointer-events: none;
    letter-spacing: 0.2rem;
}
.page-title svg {
    margin: auto;
    transform: translateX(-61.5px);
}
/* Large devices (desktops, 768px and up) */
@media (min-width: 768px) {
    .page-title img {
        /* margin-right: 8rem; */
        transform: translateX(-9%);
    }
}
.page-title-sm .image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 94px;
    margin-top: -2rem;
}
.page-title-sm .image-container img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.event-title .image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.event-title .image-container.image-1 {
    height: 64px;
}
.event-title .image-container.image-2 {
    height: 77px;
}
.event-title .image-container.image-3 {
    height: 39px;
}
.event-title .image-container img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.event-title .event-title-circle span {
    background-color: black;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Featured Content */
.featured-content {
    position: relative;
    z-index: 10;
}

/* Featrued Content Image */
.feature-content-img {
    /* max-height: 250px; */
}
.feature-content-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .feature-content-img {
        /* max-height: 650px; */
    }
}

/* Agenda - Archive */
.carousel.agenda img.term-ico,
.agenda-archive img.term-ico {
    position: absolute;
    width: 75px;
    height: auto;
    display: none;
}
.agenda-archive .event {
    border-top-style: dashed;
    border-top-width: 1px;
    border-top-color: black;
}
.agenda-archive .event img.term-ico {
    bottom: -2rem;
    right: 1rem;
}
.agenda-archive .event img.term-ico.term-ico-portrait {
    right: 7rem;
}
/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    .agenda-archive .event .event-img img {
        height: 100% !important;
    }
}
.archive .events .event .event-img img,
.agenda-archive .event .event-img img {
    width: 100%;
    object-fit: cover;
}
/* Agenda - Carousel */
.carousel.agenda .carousel-item.event {
    border: none;
}
.carousel.agenda .event .event-img .poster-container {
    text-align: center;
}
.carousel.agenda .event .event-img img.poster {
    /* width: 100%; */
    object-fit: cover;
}
.carousel.agenda .event .event-img img.term-ico {
    bottom: 3rem;
    right: 1rem;
}

.carousel.agenda img.term-ico{
    position: absolute;
    width: 55px;
    height: auto;
}
.carousel.agenda img.term-ico.term-ico-portrait{
    
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    
}


/* Event Archive */
.archive-tax-event a .row {
    border-top: solid 1px black;
}

/* Event Single */
.single-event .header-img {
    position: relative;
}
.single-event .header-img img {
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}
.single-event .header-text {
    font-family: monospace;
}
.single-event .content {
    /* max-height: 370px; */
    max-height: 400px;
    padding-right: 15px;
    /* overflow-y: auto; */
}
/* ScrollBar */
/* width */
.single-event .content::-webkit-scrollbar {
    width: 4px;
}
/* Track */
.single-event .content::-webkit-scrollbar-track {
    background: rgba(236, 83, 97, 0.24);
}
/* Handle */
.single-event .content::-webkit-scrollbar-thumb {
    background: #ec5361;
}
/* Handle on hover */
.single-event .content::-webkit-scrollbar-thumb:hover {
    background: #ec5361;
}
.single-event .content iframe {
    width: 100%;
}

/* Gutenberg */
.wp-block-media-text .wp-block-media-text__media {
    height: 100%;
}
/* Wordpress breakpoint */
@media (min-width: 600.99px) {
    .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
        padding-right: 8%;
    }
    .wp-block-media-text.has-media-on-the-left .wp-block-media-text__media {
        padding-left: 8%;
    }
}
.wp-block-media-text .wp-block-media-text__media img {
    object-fit: cover;
    height: 100%;
}

/* Media */
.img-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
    text-align: center;
    font-size: 50%;
}
