/*
 Theme Name:   GeneratePerf Child Theme
 Theme URI:    https://agencewebperformance.fr/prestations/creation-site-performant/
 Author:       Agence Web Performance
 Author URI:   https://agencewebperformance.fr/
 Template:     generatepress
 Text Domain:  generateperf_child
 Version:      1.0.4
 License: GPLv3
 License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/**
 * Custom font.
 */

@font-face {
  font-family: 'Merriweather';
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/merriweather-bold.woff2') format('woff2');
}

@font-face {
  font-family: "Merriweather-fallback";
  size-adjust: 122.79999999999995%;
  ascent-override: 75%;
  src: local("Times New Roman");
}

/**
 * Beautiful lists.
 */

li::marker {
  color: var(--primary);
}

/**
 * Beautiful inputs.
 */

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
}

/**
 * Beautiful Blockquotes.
 */

 blockquote cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  margin-top: 1rem;
  color: var(--dark);
}

/**
 * Add missing space.
 */

.wp-block-image,
.wp-block-embed {
  margin-bottom: 1.5em;
}

/**
 * Prevent footer rendering on initial rendering.
 */

.site-footer {
  content-visibility: auto;
  contain-intrinsic-height: 400px;
}

@media(min-width: 768px) {
  .site-footer {
    contain-intrinsic-height: 300px;
  }
}

/**
 * Add external icons to _blank links.
 */

.entry-content p a[target="_blank"]::after,
.entry-content li a[target="_blank"]::after {
   display: inline-block;
   margin-left: .25em;
   content: "\2197";
   font-size: .8em;
   font-weight: 700;
   border: 1.5px solid currentColor;
   border-radius: 4px;
   line-height: 1.1em;
   speak: never;
 }

/**
 * Improve default links style
 */

body:not(.home) .entry-content a:not(.simple):not(.wp-block-latest-posts__post-title) {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--darkest);
  text-underline-offset: .25em;
}

body:not(.home) .entry-content a:not(.simple):not(.wp-block-latest-posts__post-title):hover {
  text-decoration-color: var(--primary);
}

/**
 * Separator.
 */

.separator {
  background-color: var(--lines);
}

/**
 * Simple lists in footer.
 */

.site-footer ul {
	list-style-type: none;
	margin-left: 0;
}

/**
 * Beautiful SVGs in menus.
 */

.menu-item-icon {
  width: 22px;
  height: 22px;
  margin-right: .5em;
  fill: currentColor;
  vertical-align: sub;
}

/**
 * Featured images full width.
 */

.featured-image img {
	width: 100%;
}

/**
 * Custom design for main images captions.
 */

.featured-image figcaption::before {
  content: "";
  display: block;
  position: absolute;
  top: -24px;
  left: 25px;
  height: 0px;
  width: 0px;
  border-right: solid 25px transparent;
  border-left: solid 25px transparent;
  border-bottom: solid 25px var(--light);
}

/**
 * Custom subtitles styling.
 */

p[role="doc-subtitle"] {
  font-size: 20px;
  font-family: Merriweather, Merriweather-fallback, serif;
  border-bottom: 1px solid var(--lines);
  padding-bottom: 34px;
}

/**
 * Reduce titles size for mobile.
 */

@media(max-width: 768px) {
  h1 {
    font-size: 34px;
  }
}

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px
  }

  h5 {
    font-size: 18px
  }


/**
 * Éléments greffés avant et après le logo en position centrale
 */

 @media(min-width: 768px) {
  .header-aligned-center:not([class*=nav-float-]) .inside-header {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
  }
}

@media(max-width: 767px) {
  .inside-header > div.gb-container {
    display: none;
  }
}

.inside-header > div {
  margin-top: 0 !important;
}

/**
 * Masquage de la recherche du menu principal
 */

@media(min-width: 768px) {
  .menu-bar-item:not(.gb-container) {
    display: none !important;
  }
}

/**
 * Menu mobile.
 */

@media(min-width: 768px) {
  .sub-menu {
    border-left: 1px solid var(--lines);
  }
}

@media(max-width: 768px) {
  .menu > .menu-item {
    border-bottom: 1px solid var(--lines);
  }
  .sub-menu > .menu-item a::before {
    content: "\0023AF";
    display: inline-block;
    margin-right: .75em;
    color: var(--lines);
  }
}

.site-logo.mobile-header-logo img {
  max-width: 240px;
}

.menu-toggle {
  order: -1 !important;
}

.mobile-header-navigation .site-logo {
  margin-left: auto !important;
}

/**
 * Custom code.
 */

.main-navigation {
  border: solid var(--lines);
  border-width: 1px 0 0;
  box-shadow: 0 5px 7px -6px #00000080;
}

@media(max-width: 940px) {
  .menu-bar-item.custom {
    display: none;
  }
}

.featured-topics > p {
  text-wrap: nowrap;
}

.entry-header .byline {
  vertical-align: text-bottom;
}

.cat-label {
  position: absolute;
  left: 0;
  bottom: -1px;
}

.gb-block-image:has(.cover-image) {
  aspect-ratio: 16/10;
}

body.home .menu-item-349,
.menu-item-349 .menu-item-label {
  display: none;
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: unset !important;
}
.meta-separator {opacity: .5;margin-inline: .15rem;}
