/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* page and post text and list link style */
.content-area :is(p, li ) a {
  font-weight: 500;
  color: var(--accent);
  /* box-shadow: inset 0 -0.1em 0 0 var(--accent); */ /* Ligne commentée */
  box-shadow: inset 0 -0.1em 0 0 var(--accent);
  transition: all 0.6s ease 0s;
}
.content-area :is(p, li ) a:hover {
  /* box-shadow: inset 0 -0.2em 0 0 var(--accent); */ /* Ligne commentée */
  box-shadow: inset 0 -0.2em 0 0 var(--accent);
}

/* sidebar categories list style */
.wp-block-categories {
  list-style: none;
  margin-left: unset;
}

/* drop sidebar below content on tablet */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .site-content .content-area,
  .site-content .is-right-sidebar {
    width: 100%;
  }
}

/* space before a new title on blog posts */
.single-post :is(p, ul, ol) + :is(h2, h3, h4) {
  margin-top: 3rem;
}

/* wp search block style */
.wp-block-search__button.has-icon {
  background-color: var(--accent);
  border-radius: 2px;
  transition: all 0.5s ease 0s;
}

.wp-block-search__button.has-icon:hover {
  transform: translate3d(0px,-3px,0px);
  transition: transform 0.5s ease 0s;
}

.wp-block-search__button svg {
  min-height: 1.6em;
  min-width: 1.6em;
  vertical-align: text-bottom;
}

/* START FLUENT FORMS STYLES */

/* label style */
.fluentform .frm-fluent-form .ff-el-input--label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--contrast);
}

/* field style */
.fluentform .frm-fluent-form .ff-el-form-control {
  background-color: var(--base-3);
  color: var(--contrast);
  border: 1px solid  var(--accent-3);
  border-radius: 2px;
  font-size: 1rem;
  line-height: 27px;
  padding: 11px 20px;
}

/* focus field style */
.fluentform .frm-fluent-form .ff-el-form-control:focus {
  border: 1px solid  var(--accent-2);
  outline: none;
}

/* placeholder text style */
.fluentform .frm-fluent-form .ff-el-form-control::placeholder {
  color: var(--contrast-3);
  font-size: 16px;
}

/* placeholder focus text style */
.fluentform .frm-fluent-form .ff-el-form-control:focus::placeholder {
  color: var(--contrast-3);
}

/* contact form button style */
.fluentform .ff-btn-submit {
  background-color: var(--accent);
  color: var(--base-3);
  border-radius: 2px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  padding: 12px 24px;
  text-align: center;
  transition: all 0.5s ease 0s;
}


/* all buttons hover style */
.fluentform .frm-fluent-form .ff-btn-submit:hover {
  transform: translate3d(0px,-3px,0px);
  transition: transform 0.5s ease 0s;
}

/* full width email form buttons */
form.fluent_form_3 .ff-btn-submit, form.fluent_form_4 .ff-btn-submit {
  width: 100%;
}

/* form error text style */
.fluentform .ff-el-is-error .text-danger {
  font-size: 16px !important;
}

/* top align email form */
.frm-fluent-form .ff-t-cell .ff_submit_btn_wrapper_custom {
  margin-top: 0px !important;
}

/* contact form success message */
.fluentform .ff-message-success {
  position: relative;
  border: none;
  box-shadow: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  background-color: var(--base-3);
  padding: 24px 20px 2px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  color: var(--accent-2);
}

/* END FLUENT FORMS STYLES */

/* MEGA MENU CUSTOM */

@media (min-width: 769px) {
    nav .main-nav .mega-menu {
        position: static;
    }

    nav .main-nav .mega-menu > ul {
        position: absolute;
        width: 100%;
        left: 0 !important;
        display: flex;
        flex-wrap: wrap;
    }

    nav .main-nav .mega-menu > ul > li > a {
        font-weight: bold;
    }

    nav .main-nav .mega-menu>ul>li {
        display: inline-block;
        width: 25%;
        vertical-align: top;
    }

    nav .main-nav .mega-menu.mega-menu-col-2>ul>li {
        width: 50%;
    }

    nav .main-nav .mega-menu.mega-menu-col-3>ul>li {
        width: 33.3333%;
    }

    nav .main-nav .mega-menu.mega-menu-col-5>ul>li {
        width: 20%;
    }

    nav .main-nav .mega-menu > ul > li:hover > a,
    nav .main-nav .mega-menu > ul > li:focus > a,
    nav .main-nav .mega-menu > ul > li[class*="current-"] > a,
    nav .main-nav .mega-menu ul ul {
        background-color: transparent !important;
        color: inherit;
    }

    nav .main-nav .mega-menu ul .sub-menu {
        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: 0 0 0;
        left: 0;
        height: auto;
        pointer-events: auto;
        transform: scale(1);
    }

    nav .main-nav .mega-menu ul.toggled-on .sub-menu {
        pointer-events: auto;
    }

    nav .main-nav .mega-menu .sub-menu .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }
}

/* MEGA MENU CUSTOM */

/* === SUPPRESSION SOULIGNEMENTS LIENS === */
a {
    text-decoration: none !important;
    box-shadow: none !important;
}

.content-area :is(p, li) a,
.content-area :is(p, li) a:hover {
    box-shadow: none !important;
}
/* === FIN SUPPRESSION SOULIGNEMENTS === */