/* 
Theme Name: Grisild & Phebus
Theme URI: https://grisildandphebus.com
Description: Thème personnalisé pour les besoins de la BD "Grisild & Phebus".
Author: Félix Sintes
Author URI: https://grisildandphebus.com
Template: hello-elementor
Version: 1.0.0
Text Domain: grisildandphebus
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* Add your custom styles here */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

:root {
  --font-title: 'New Rocker', sans-serif;
  --font-special: 'Romans', sans-serif;
  --transition-delay: 500ms;
  --clr-primary: #F4E363;
  --clr-accent: #909090;
}

body {
  background: linear-gradient(
    to bottom,
    rgba(248, 230, 96, 1) 0%,
    rgba(31, 31, 31, 1) 900px
  );
}

.d-flex {
  display: flex;
}

.icon {
  --size: 50px;
  --color: #fff;
  --hover-color: var(--clr-primary);
  display: inline-block;
  vertical-align: middle;
  background-color: var(--color);
  width: var(--size);
  height: var(--size);
  mask-image: var(--svg);
  -webkit-mask-image: var(--svg);
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: background-color var(--delay) ease;
  -webkit-transition: background-color var(--delay) ease;
}

.grisild-chapitres-div1 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
}

.grisild-chapitres-div2 {
  text-align: center;
  background-color: black;
  max-width: 600px;
}

.grisild-chapitres-img {
  width: 100%;
}

.grisild-chapitres-ul {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grisild-chapitres-li {
  width: 100%;
  margin: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.grisild-chapitres-a {
  text-align: center;
  padding: 0.5rem 6rem;
  background-color: #666666;
  color: white;
  text-decoration: none;
  position: relative;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 30px;
}

.grisild-chapitres-a:hover {
  color: var(--clr-primary);
}

.grisild-chapitres-a::before {
  content: '';
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 21.5px 12px 21.5px 0;
  border-color: transparent #666666 transparent transparent;
  position: absolute;
  left: -11px;
  top: -1.25px;
}

.grisild-chapitres-a::after {
  content: '';
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 21px 0 21px 12px;
  border-color: transparent transparent transparent #666666;
  position: absolute;
  right: -11px;
  top: -1px;
}

.grisild-chapitres-icones {
  display: flex;
  padding: 0;
  margin: 0;
}

.grisild-chapitres-icones p {
  font-weight: bold;
  margin-right: 10px;
}

.fa-solid {
  color: white;
}

.fa-solid:hover {
  color: var(--clr-primary);
}

/* HEADER */
#header-closed,
#header-opened {
  width: 100% !important;
}

#header-closed.show,
#header-opened.show {
  display: flex;
}

#header-closed.hide,
#header-opened.hide {
  display: none;
}

#header-opened {
  display: none;
}

@media (max-width: 1024px) {
  #header-opened .header-logo,
  #header-opened #toggler-header-close {
    display: none;
  }

  #header-closed {
    display: flex !important;
  }

  #header-opened[style*="position: fixed"].show {
    top: 122px !important;
  }
}

@media (max-width: 782px) {
  #header-opened .header-logo,
  #header-opened #toggler-header-close {
    display: none;
  }

  #header-opened[style*="position: fixed"].show {
    top: 136px !important;
  }
}

#header-closed #toggler-header.active a .elementor-button-content-wrapper {
  background-image: url(./assets/images/btn-close.svg);
  background-size: 25px;
  background-position: center;
  background-repeat: no-repeat;
}

#header-closed #toggler-header.active a .elementor-button-content-wrapper .elementor-button-icon {
  opacity: 0;
}

/* ACTES */
@media (max-width: 580px) {
  .grisild-actes {
    padding-block: 20px 0;
  }
}

.grisild-actes .acte-item {
  text-align: center;
}

.grisild-actes .acte-heading {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
}

.grisild-actes .acte-heading::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
}

.grisild-actes .acte-heading .acte-title {
  position: relative;
  max-width: fit-content;
  margin-inline: auto;
  font-family: var(--font-title);
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
  margin-block: 0;
  color: rgba(255, 255, 255, 0.5);
  background-color: var(--e-global-color-secondary);
  padding-inline: 30px;
}

.grisild-actes .acte-heading .acte-title span {
  font-family: var(--font-special);
  color: var(--clr-primary);
}

@media (max-width: 991px) {
  .grisild-actes .chapter-toggler {
    display: block;
  }
}

.grisild-actes .chapter-toggler img {
  transform: rotate(180deg);
  transition: transform 350ms linear;
}

.grisild-actes .chapter-toggler.active img {
  transform: rotate(0);
}

.grisild-actes .chapter-list {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows 1s;
}

.grisild-actes .chapter-list .chapter-list-inner {
  min-height: 0;
  transition: visibility 1s;
  visibility: visible;
}

.grisild-actes .chapter-list .chapter-item {
  position: relative;
  margin-top: 10px;
}

.grisild-actes .chapter-list .chapter-item:last-of-type {
  margin-bottom: 20px;
}

@media (min-width: 581px) {
  .grisild-actes .chapter-list .chapter-item:last-of-type {
    margin-bottom: 40px;
  }
}

.grisild-actes .chapter-list .chapter-item .chapter-thumb {
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px 18px;
}

@media (max-width: 767px) {
  .grisild-actes .chapter-list .chapter-item .chapter-thumb {
    padding: 22px 10px;
  }
}

.grisild-actes .chapter-list .chapter-item .chapter-heading {
  font-family: var(--font-title);
  font-size: 26px;
  color: #fff;
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-delay) ease;
  -webkit-transition: color var(--transition-delay) ease;
}

.grisild-actes .chapter-list .chapter-item .chapter-heading > .d-flex {
  align-items: center;
  gap: 30px;
}

@media (max-width: 767px) {
  .grisild-actes .chapter-list .chapter-item .chapter-heading .chapter-heading-left {
    width: 100%;
  }
  .grisild-actes .chapter-list .chapter-item .chapter-heading 
  .chapter-heading-left .chapter-title {
    width: 100%;
    text-align: center;
  }
  .grisild-actes .chapter-list .chapter-item .chapter-heading 
  .chapter-heading-left .chapter-title .hover {
    opacity: 1;
    visibility: visible;
    display: block;
  }
  .grisild-actes .chapter-list .chapter-item .chapter-heading .chapter-heading-right {
    display: none;
  }
  .grisild-actes .chapter-list .chapter-item .chapter-heading .icon {
    display: none;
  }
}

.grisild-actes .chapter-list .chapter-item .chapter-heading .icon {
  background-color: #fff;
  transition: background-color var(--transition-delay) ease;
  -webkit-transition: background-color var(--transition-delay) ease;
}

.grisild-actes .chapter-list .chapter-item .chapter-heading .chapter-title {
  margin-bottom: 0;
}

.grisild-actes .chapter-list .chapter-item .chapter-heading .hover {
  /*opacity: 0;
  visibility: hidden;*/
  transition: all var(--transition-delay) ease;
  -webkit-transition: all var(--transition-delay) ease;
}

.grisild-actes .chapter-list .chapter-item .chapter-heading .hover img {
    filter: brightness(0) invert(1);
}

.grisild-actes .chapter-list .chapter-item a:hover .chapter-heading .hover img {
    filter: none;
}

.grisild-actes .chapter-list .chapter-item .chapter-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.grisild-actes .chapter-list .chapter-item a:hover .chapter-thumb .chapter-heading {
  color: var(--clr-primary);
}

.grisild-actes .chapter-list .chapter-item a:hover .chapter-thumb .chapter-heading .icon {
  background-color: var(--clr-primary);
}

.grisild-actes .chapter-list .chapter-item a:hover .chapter-thumb .chapter-heading .hover {
  opacity: 1;
  visibility: visible;
}

.grisild-actes .chapter-list.open {
  grid-template-rows: 1fr;
}

.grisild-actes .chapter-list.open .chapter-list-inner {
  visibility: visible;
}

/* HEADER MENU */
@media (min-width: 767px) {
  #header-menu .elementor-nav-menu > li {
    display: block;
  }

  #header-menu .elementor-nav-menu > li::after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin-inline: auto;
    margin-top: 16px;
    background-image: url(./assets/images/hearth-yellow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-delay) ease;
  }

  #header-menu .elementor-nav-menu > li.current_page_item::after {
    opacity: 1;
    visibility: visible;
    border-left: 0;
  }
}

@media (max-width: 766px) {
  #header-menu .elementor-nav-menu {
    gap: 20px;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 580px) {
  #header-menu .elementor-nav-menu {
    flex-direction: column;
    row-gap: 30px;
  }
}

/* FOOTER MENU */
#footer-menu .elementor-nav-menu .menu-item::after {
  height: 28px;
}

@media (max-width: 580px) {
  #footer-menu .elementor-nav-menu {
    flex-direction: column;
    align-items: center;
  }
  #footer-menu .elementor-nav-menu .menu-item::after {
    content: none;
  }
}

#footer-menu .elementor-nav-menu .menu-item:first-of-type::after {
  content: none;
}

#footer-menu .elementor-nav-menu .menu-item:first-of-type a {
  width: 225px;
  font-size: 20px;
  font-family: 'New Rocker', Sans-serif;
  text-transform: none;
  color: #1e1e1e;
  background-color: var(--clr-primary);
  display: grid;
  place-items: center;
  margin-right: 0;
  transition: background-color var(--transition-delay) ease;
}

#footer-menu .elementor-nav-menu .menu-item:first-of-type a:hover {
  background-color: var(--clr-accent);
}

@media (max-width: 580px) {
  #footer-menu .elementor-nav-menu .menu-item:first-of-type a {
    padding-block: 10px;
  }
}

/* FORM CF7 */
form.wpcf7-form label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-title) !important;
  font-size: 20px;
  line-height: 1 !important;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  form.wpcf7-form label {
    flex-direction: column;
    row-gap: 5px;
  }
}

form.wpcf7-form input:not([type='submit']),
form.wpcf7-form textarea {
  background-color: #fff !important;
  max-width: 100%;
}

@media (min-width: 768px) {
  form.wpcf7-form input:not([type='submit']),
  form.wpcf7-form textarea {
    width: 444px !important;
  }
}

form.wpcf7-form input[type='submit'] {
  display: block;
  max-width: 100%;
  width: 444px;
  margin-left: auto;
  font-family: var(--font-title) !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 1 !important;
  color: #1e1e1e !important;
  transition: background-color var(--transition-delay) ease;
}

@media (max-width: 767px) {
  form.wpcf7-form input[type='submit'] {
    width: 100%;
  }
}

form.wpcf7-form input[type='submit']:hover {
  background-color: var(--clr-accent);
}

form.wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 6px;
}

form.wpcf7-form .submit-group {
  position: relative;
}

form.wpcf7-form .submit-group .wpcf7-spinner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-inline: 0 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  color: #fff;
}