/*
Theme Name: WebqamPress Child
Template: webqampress
Theme URI: https://www.webqam.fr
Author: Webqam
Author URI: https://www.webqam.fr
Description: Webqampress child theme made by and for Webqam.
Version: 1.0
License: Beerware http://fr.wikipedia.org/wiki/Beerware
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: WordPress, ACF, Gutenberg, custom
Text Domain: webqam
*/

html {
  color: #333333;
}
.wp-site-blocks {
  padding-top: 134px;
}
header.wp-block-template-part {
  position: fixed;
  top: 0;
}
header.wp-block-template-part > .wp-block-group.has-custom-orange-background-color {
  transition: height, padding 0.15s;
}
.is--scrolled header.wp-block-template-part > .wp-block-group.has-custom-orange-background-color {
  overflow: hidden;
  height: 0;
  padding: 0 !important;
}
.admin-bar header.wp-block-template-part {
  top: 32px;
}
.wp-block-search__button {
  color: white;
  background-color: var(--wp--preset--color--custom-orange);
}
.slider-fixed-content__container {
  background: transparent linear-gradient(77deg, #000000 0%, #00000000 100%) 0% 0% no-repeat padding-box;
}

.wq-search .wp-block-buttons .wp-block-button.open-search .wp-block-button__link {
  transition: all 0.15s;
  border-color: var(--wp--preset--color--custom-orange);
}
.wq-search .wp-block-buttons .wp-block-button.open-search .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--custom-orange);
  background: var(--wp--preset--color--custom-orange);
}

.squared-deco {
  position: relative;
}
.squared-deco::before,
.squared-deco::after {
  position: absolute;
  left: -20px;
  top: -20px;
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  border-style: solid;
  border-width: 7px 0 0 7px;
  border-color: white;
  clip-path: polygon(100% 0%, 15% 0%, -60% 100%, 100% 100%);
}
.squared-deco::after {
  left: auto;
  top: auto;
  bottom: -20px;
  right: -20px;
  transform-origin: center center;
  transform: rotate(180deg);
}

::selection {
  background-color: var(--wp--preset--color--custom-orange);
  color: #ffffff;
  text-shadow: none;
}


/* table */
.wp-block-table thead {
  border: none;
}
.wp-block-table th {
  color: #ffffff;
  background-color: var(--wp--preset--color--custom-orange);
  font-weight: bold;
  border: none;
  text-align: left;
}
.wp-block-table td {
  border: none;
}
.wp-block-table td,
.wp-block-table th {
  padding: 0.5em 1em;
}
.wp-block-table tbody tr:nth-child(even) {
  background-color: #F0F0F0;
}

.wp-block-group {
  scroll-margin-top: 134px;
}
/* tabs */
.mdc-tab-bar {
  border: 1px solid #F0F0F0;
  border-left: 0;
  border-right: 0;
}
.mdc-tab-scroller__scroll-content {
  scroll-margin-top: 134px;
  justify-content: center;
  width: 100%;
}
.mdc-tab-indicator .mdc-tab-indicator__content--underline {
  border-top-width: 3px;
  border-color: var(--wp--preset--color--custom-orange);
}
.mdc-tab {
  scroll-margin-top: 134px;
  flex: 0 0 auto;
}
.mdc-tab__text-label {
  color: #909090;
  text-transform: none;
}
.mdc-tab--active .mdc-tab__text-label {
  color: var(--wp--preset--color--custom-orange);
}
.mdc-tab__content,
.mdc-ripple-upgraded--background-focused,
.mdc-ripple-upgraded--foreground-activation,
.mdc-tab .mdc-tab__ripple::before,
.mdc-tab .mdc-tab__ripple::after {
  background: none !important;
}
.mdc-tab:hover .mdc-tab__content .mdc-tab__text-label {
  color: var(--wp--preset--color--custom-orange);
}
.wp-block-brand-tab {
  padding-top: 20px;
}

.home .tab-wrap {
  max-width: none !important;
}
.home .mdc-tab-bar {
  border: none;
}
.home .mdc-tab-scroller__scroll-content {
  justify-content: left;
}


/* Language switcher */
.wp-block-polylang-language-switcher .pll-switcher-select {
  font-size: 14px;
  border: 0;
  border-radius: 0;
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  color: white;
  text-transform: uppercase;
  background: var(--wp--preset--color--custom-orange);
}

.slider-fixed-content__container .swiper-pagination-bullet {
  border-color: white;
  background: white;
}
.slider-fixed-content__container .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: transparent;
}

.wp-block-polylang-language-switcher .lang-item a {
  text-transform: uppercase;
  font-size: 14px;
  color: white;
}

.wp-block-polylang-language-switcher .lang-item.current-lang a {
  color: white;
  font-weight: bold;
}

.wp-block-polylang-language-switcher li::after {
  color: white;
}



/* Decoration */
.wp-block-group.with-pattern {
  position: relative;
  overflow: visible;
  background-size: cover;
  background-image: url('assets/images/pattern.svg');
  background-repeat: no-repeat;
}
.wp-block-group.with-pattern::before {
  content: '';
  display: block;
  position: absolute;
  top: -9px;
  left: 0;
  width: 100%;
  height: 58px;
  background-color: var(--wp--preset--color--text-primary);
  -webkit-mask-image: url('assets/images/pattern-top.svg');
  mask-image: url('assets/images/pattern-top.svg');
}
.wp-block-group.with-pattern--orange::before {
  background-color: var(--wp--preset--color--custom-orange);
}

.arrow-deco {
  position: relative;
  display: inline-block;
}
.arrow-deco::after {
  content: '';
  position: absolute;
  top: -20px;
  right: calc(100% + 5px);
  width: 38px;
  height: 34px;
  background-color: black;
  transform: scaleX(-1);
  -webkit-mask-image: url(assets/images/arrow.svg);
  mask-image: url(assets/images/arrow.svg);
}
.arrow-deco--right::after {
  right: 0;
  left: auto;
  margin-right: -38px;
  transform: scaleX(1);
}
.arrow-deco--white::after {
  background-color: white;
}
.arrow-deco--orange::after {
  background-color: var(--wp--preset--color--custom-orange);
}


/* teaser */
.post--teaser {
  background-color: white;
  border-radius: 15px;
}


/* Footer */
footer .wp-block-navigation {
  gap: 5px;
}

footer .wp-block-navigation.is-style-underline .wp-block-navigation-item__label,
footer .wp-block-navigation.is-style-underline .wp-block-social-link-anchor {
  text-decoration: underline;
}

footer .wp-block-navigation-item:first-child {
  margin-bottom: 1em;
}

footer .wp-block-navigation-item:first-child .wp-block-navigation-item__label {
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 1em;
}

footer .wp-block-social-link:hover {
  /*transform: none;*/
}

footer .wp-block-social-link-anchor {
  display: flex;
  flex-direction: row-reverse;
}

footer .wp-block-social-links {
  font-size: 22px;
}

footer .wp-block-social-links.is-style-logos-only .wp-social-link-linkedin {
  color: #000;
}

footer .wp-block-social-links .wp-social-link span:not(.screen-reader-text) {
  margin: 0;
}

footer a[href]:hover,
footer a[href].wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--custom-orange);
}


/* Breadcrumbs */
.yoast-breadcrumbs {
  font-size: 14px;
}

.yoast-breadcrumbs a {
  color: var(--wp--preset--color--custom-orange);
  text-decoration: underline;
}

.yoast-breadcrumbs span {
  color: #808080;
}

/* File */
.wp-block-file {
  display: flex;
  align-items: center;
  color: var(--wp--preset--color--custom-orange);
  justify-content: space-between;
}

.wp-block-file a {
  color: black;
}

.wp-block-file .wp-block-file__button {
  background: none;
  color: var(--wp--preset--color--custom-orange);
  text-transform: uppercase;
  text-decoration: underline;
  font-size: 1em;
}

@media (min-width: 600px) {
  .wp-block-post-template.is-flex-container.is-flex-container.columns-4 > li {
    width: calc(50% - 0.9375em);
  }
}
@media (min-width: 960px) {
  .wp-block-post-template.is-flex-container.is-flex-container.columns-4 > li {
    width: calc(25% - 0.9375em);
  }
}

.template-part__container,
.template-part__container > .post--teaser {
  height: 100%;
}

.template-part__container > .post--teaser {
  position: relative;
  display: flex;
  flex-direction: column;
}

.template-part__container > .post--teaser .wp-block-cover {
  flex: 0 0 auto;
}

.template-part__container > .post--teaser .post--teaser-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
}

.template-part__container > .post--teaser .wp-block-buttons {
  margin-top: auto !important;
}

.title--full-link a {
  text-decoration: none;
  color: #000000;
}

.title--full-link a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.template-part__container > .post--teaser:hover .wp-block-button__link::after {
  margin-left: 10px;
  opacity: 1;
  width: 22px;
  transform: translateX(0);
}
