/*
Theme Name: whodunit-corporate
Theme URI: 
Author: whodunit
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whodunit-corporate
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
	box-sizing: inherit;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-block-button__link {
	/*transition: all 0.5s ease-in-out !important;*/

html {
	box-sizing: border-box;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
	box-sizing: inherit;
}

a,
button,
input:focus,
input[type="button"],
input[type="submit"],
textarea:focus,
.wp-block-button__link {
	/*transition: all 0.5s ease-in-out !important;*/
}


/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
@media screen and (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

 /* Inherit fonts for inputs and buttons */
 input,
 button,
 textarea,
 select {
   font: inherit;
 }

.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

.wp-block-table {
  /*
  * Tabular numbers (numeric) make this look so much better
  * Also, is that an O or a zero? (slashed-zero)
  */
  font-variant-numeric: slashed-zero tabular-nums;
}

/* variantes de boutons (sauf initial) */
/* hover bouton icon dark */
/*
.is-style-ico-dark .wp-element-button:hover,
.is-style-ico-dark .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--contrast-2-fonce);
}
*/

/* hover boutons outline */
.is-style-outline .wp-element-button:hover,
.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--contrast-2-fonce);
  color: var(--wp--preset--color--contrast-2-fonce);
}

/* hover boutons light */
.is-style-ico-light .wp-element-button:hover,
.is-style-ico-light .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--contrast-2-fonce);
  border-color: var(--wp--preset--color--contrast-2-fonce);
  color: #fff;
}

/* hover boutons outline dark */
.is-style-outline-dark-bg .wp-element-button:hover,
.is-style-outline-dark-bg .wp-block-button__link:hover {
  background-color: #575663;
  color: #fff;
}

/* boutons icon */
.is-style-ico-light .wp-block-button__link.wp-element-button,
.is-style-ico-dark .wp-block-button__link.wp-element-button {
  background-image: url('assets/images/star.svg');
  background-size: inherit;
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  padding-right: 4.2em;
}

.is-theme-style-variation-academy .is-style-ico-light .wp-block-button__link.wp-element-button,
.is-theme-style-variation-academy .is-style-ico-dark .wp-block-button__link.wp-element-button {
  background-image: url('assets/images/star-green.svg');
}
/* utilities */
.baseline {
align-items: baseline;
}

.is-style-btn-link .wp-block-button__link {
  color: #0F0D20;
  text-decoration: none;
  font-weight: 400;
}

.is-style-btn-link .wp-block-button__link:hover{
  color: #0F0D20;
  text-decoration: underline;
}

.is-style-btn-link .wp-block-button__link:after
{
  content: '';
  background-image: url('assets/images/pink-arrow.svg');
  width: 20px;
  height: 25px;
  display: inline-block;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-left: 10px;
}

.has-background .is-style-btn-link .wp-block-button__link {
  color: #fff;
}

.has-background .is-style-btn-link .wp-block-button__link:hover {
  color: #F5F5F6;
}

.wp-block-button__link.wp-element-button {
    position: relative;
    overflow: hidden;
    background-color: var(--wp--preset--color--base-3);
    color: #fff;
    /*border: 2px solid var(--wp--preset--color--contrast-2-fonce);*/
    transition: color 0.3s ease-in-out;
    z-index: 1;
}

.wp-block-button__link.wp-element-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -103%;
    width: 102%;
    height: 101%;
    background-color: var(--wp--preset--color--contrast-2-fonce);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: -1;
    transform: skewX(-15deg);
}

.wp-block-button__link.wp-element-button:hover {
    color: var(--wp--preset--color--base);
}

.wp-block-button__link.wp-element-button:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.is-style-btn-light .wp-block-button__link {
    position: relative;
    overflow: hidden;
    background-color: var(--wp--preset--color--white);
    border: 2px solid var(--wp--preset--color--contrast-2-fonce);
    color: var(--wp--preset--color--contrast);
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    z-index: 1;
}

.is-style-btn-light .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -103%;
    width: 102%;
    height: 101%;
    background-color: var(--wp--preset--color--contrast-2-fonce);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: -1;
    transform: skewX(-15deg);
}

.is-style-btn-light .wp-block-button__link:hover {
    color: #fff;
    border-color: var(--wp--preset--color--contrast-2-fonce);
}

.is-style-btn-light .wp-block-button__link:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

#wp--skip-link--target .is-style-btn-light .has-contrast-color:hover {
  color: #fff important;
}


/* custommize external icon (v/ plugin Customize External Links and add Icon) */
.link-external-icon{
  font-size: 0.7rem;
}
