html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  min-height: 100vh;
  scroll-padding-top: var(--header-height);
}

body {
  overflow-x: hidden;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  margin: 0;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height));
  font-family: var(--main-font), sans-serif;
  color: var(--text);
}

* {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  min-width: 0;
  min-height: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
}

body.menu-open {
  overflow: hidden;
}

body.menu-open main,
body.menu-open footer {
  filter: blur(5px) brightness(0.8);
  backdrop-filter: blur(5px) brightness(0.8);
}

body.single-post,
body.single-publication {
  background: var(--white-light);
}

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

.content {
  tbody,
  td,
  tfoot,
  th,
  thead,
  tr {
    border-color: inherit;
    border-style: solid;
    border-width: 1px;
  }
}

p {
  margin-bottom: 0;
}

main section {
  padding: 40px 0;
}

main section.singular_post .container,
main section.singular_publication .container,
main section.content-old .container {
  /*padding: 20px 0 !important;*/
  max-width: 1000px;
  margin: auto;
}

main section.singular_post,
main section.singular_publication,
main section.content-old {
  padding: 20px 0 !important;
}

.content.singular_post ul li,
.content.singular_publication ul li {
  position: relative;
}

.content.singular_post ul li::before,
.content.singular_publication ul li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  margin: 0;
  background: var(--gold);
  box-shadow: 0 0 0 2px #b9a87829;
  border-radius: 100%;
}

main section.singular_post:not(.singular_post ~ .singular_post),
main
  section.singular_publication:not(
    .singular_publication ~ .singular_publication
  ) {
  @media (width >= 768px) {
    padding-top: 60px !important;
  }

  @media (width >= 992px) {
    padding-top: 80px !important;
  }

  @media (width >= 1200px) {
    padding-top: 100px !important;
  }

  @media (width >= 1400px) {
    padding-top: 120px !important;
  }
}

@media (width >= 768px) {
  main section {
    padding: 60px 0;
  }
}

@media (width >= 992px) {
  main section {
    padding: 80px 0;
  }
}

@media (width >= 1200px) {
  main section {
    padding: 100px 0;
  }
}

@media (width >= 1400px) {
  main section {
    padding: 120px 0;
  }
}

@media (width >= 992px) {
  .col-lg-fifth {
    flex-grow: 0;
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (width >= 1200px) {
  .col-xl-fifth {
    flex-grow: 0;
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (width >= 1400px) {
  .col-xxl-fifth {
    flex-grow: 0;
    flex: 0 0 20%;
    max-width: 20%;
  }
}

img,
video {
  height: auto;
  max-width: 100%;
}

figure {
  background: #f2f4fa;
  max-width: 100%;
  overflow: hidden;
}

figure img.size-full {
  border-radius: 0;
}

figure figcaption {
  padding: 10px 40px;
  text-align: center;
}

iframe {
  max-width: 100%;
}

iframe[src*="youtube"] {
  aspect-ratio: 16/9;
  border-radius: 8px;
  display: block;
  height: auto;
  overflow: hidden;
  width: 100%;
}

ul:not([class]),
ol:not([class]) {
  line-height: 1.5;
  margin-bottom: 24px;
  padding-left: 24px;
}

ul:not([class]) {
  list-style: none !important;
}

ul:not([class]) li::before {
  background: #28385a;
  border-radius: 100%;
  content: "";
  display: inline-block;
  height: 4px;
  margin: -2px 7px 0 -12px;
  vertical-align: middle;
  width: 4px;
}

b,
strong {
  font-weight: var(--bold);
}

[type="text"],
[type="email"],
[type="number"],
[type="tel"],
[type="password"],
textarea,
select {
  background: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  width: 100%;

  &::placeholder {
    color: #423f4754 !important;
  }
}

textarea {
  border: 1px solid var(--white);
  padding: 16px;
}

.aligncenter,
.alignleft,
.alignright {
  display: block;
  margin: 0 auto 15px;
}

.txtcenter {
  text-align: center;
}

.txtright {
  text-align: right;
}

.txtjustify {
  text-align: justify;
}

blockquote {
  border-left: 2px solid #28385a;
  color: #28385a;
  font-size: 1.5rem;
  font-weight: 600;
  max-width: calc(600px + 2rem);
  padding-left: 2rem;
}

blockquote p {
  line-height: 2.25rem;
}

.cta {
  margin-top: 32px;
}

@media (width <= 768px) {
  .cta {
    text-align: center;
  }
}

.wp-pagenavi .pages {
  border: 0px !important;
}

.wp-pagenavi {
  border-top: 0px solid;
  flex-grow: 0;
  flex: 0 0 100%;
  margin-top: 60px;
  padding-top: 40px;
  position: relative;
  text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
  border: 1px solid var(--dark-blue) !important;
  border-radius: 2rem;
  color: var(--dark-blue);
  display: inline-block;
  font-weight: 500;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0 5px 10px;
  text-align: center;
}

.wp-pagenavi .page,
.wp-pagenavi .current {
  height: 40px;
  padding: 8px 2px;
  width: 40px;
}

.wp-pagenavi .page:hover {
  background: var(--dark-blue);
  color: var(--white);
}

.wp-pagenavi .current {
  background: var(--dark-blue);
  color: var(--white);
}

.wp-pagenavi [class*="postslink"] {
  -ms-flex-align: center;
  align-items: center;
  border-color: var(--dark-blue);
  color: var(--dark-blue);
  display: -webkit-box;
  display: flexbox;
  display: flex;
  height: 40px;
  padding: 4px 1rem;
}

.wp-pagenavi [class*="postslink"]:hover {
  background: var(--dark-blue);
  color: var(--white);
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  margin: 0 auto 10px;
}

.socials {
  margin: 0;
  padding: 0;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-box;
  display: flexbox;
  display: flex;
  gap: 0.5rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.socials li {
  list-style: none;
}

.socials li::before {
  display: none;
}

.socials__item a {
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-box;
  display: flexbox;
  display: flex;
  height: 32px;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 3px;
  width: 32px;
}

.socials__item a:not(:hover) {
  /* color: #fff; */
}

.socials__item a::before {
  font-family: FontAwesome;
  font-size: 16px;
}

.socials__item a:hover {
  color: #28385a;
}

header .socials__item a[data-social*="X"]::before {
  background-image: url("../../img/social_x_red.svg");
  filter: invert(0);
}

.socials__item a[data-social*="facebook"]::before {
  content: "\f39e";
}

.socials__item a[data-social*="twitter"]::before,
.socials__item a[data-social*="X"]::before {
  content: "";
  background-image: url("../../img/social_x.svg");
  width: 16px;
  height: 16px;
  filter: invert(1);
  background-repeat: no-repeat;
}

.socials__item a[data-social*="linkedin"]::before {
  content: "\f0e1";
}

.socials__item a[data-social*="instagram"]::before {
  content: "\f16d";
}

.socials__item a[data-social*="youtube"]::before {
  content: "\f167";
}

.socials__item a[data-social*="vimeo"]::before {
  content: "\f27d";
}

.socials__item a[data-social*="whatsapp"]::before {
  content: "\f232";
}

.socials__item a[data-social*="tiktok"]::before {
  content: "\e07b";
}

.socials__item a[data-social*="mail"]::before {
  content: " \f0e0";
}

.sharing {
  -ms-flex-align: center;
  align-items: center;
  border-top: 1px solid #e8eaf0;
  display: -webkit-box;
  display: flex;
  gap: 15px;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 16px 12px 32px;
  text-align: right;
  max-width: 1000px;
  color: var(--dark-red);
}

.sharing__list {
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: flex;
  gap: 10px;
}

.sharing__list li {
  list-style: none;
}

.sharing__list li::before {
  display: none;
}

.sharing__list li a {
  text-decoration: none;
  background: var(--dark-red);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 100%;
  box-shadow: 0 0 0 4px var(--white-light);
  transition: all 0.3s ease-in-out;
}

.sharing__list li a:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--light-red);
}

.sharing__icon {
  color: var(--white);
}

.sharing__icon::before {
  content: "";
  display: block;
  font-family: FontAwesome;
  font-size: 1rem;
}

.sharing__item[data-rs*="facebook"] .sharing__icon::before {
  content: "\f39e";
}

.sharing__item[data-rs*="twitter"] .sharing__icon::before {
  content: "\e61b";
}

.sharing__item[data-rs*="linkedin"] .sharing__icon::before {
  content: "\f0e1";
}

.sharing__item[data-rs*="instagram"] .sharing__icon::before {
  content: "\f16d";
}

.sharing__item[data-rs*="youtube"] .sharing__icon::before {
  content: "\f167";
}

.sharing__item[data-rs*="vimeo"] .sharing__icon::before {
  content: "\f27d";
}

.twitter-tweet {
  margin-left: auto;
  margin-right: auto;
}

@media (width >= 992px) {
  .content .limited {
    max-width: 824px;
  }
}

@media (width >= 768px) {
  .alignleft {
    float: left;
    margin-right: 20px;
  }

  .alignright {
    float: right;
    margin-left: 15px;
  }

  .wp-pagenavi {
    padding-left: 150px;
    padding-right: 150px;
  }

  .wp-pagenavi [class*="postslink"] {
    position: absolute;
    top: 40px;
    width: 135px;
  }

  .wp-pagenavi .previouspostslink {
    left: 0;
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .wp-pagenavi .nextpostslink {
    margin-left: 1rem;
    margin-top: 0;
    right: 0;
  }

  ul:not([class]),
  ol:not([class]) {
    padding-left: 3rem;
  }
}

/* Font face pour la font Effra */

/* Normal */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Light */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-Light.woff2")
    format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Light Italic */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-LightItalic.woff2")
    format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Bold Italic */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-BoldItalic.woff2")
    format("woff2");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* Italic */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-Italic.woff2")
    format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Medium Italic */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-MediumItalic.woff2")
    format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Heavy */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/Effra-Heavy.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Heavy Italic */
@font-face {
  font-family: "Effra";
  src: url("/wp-content/themes/kn/fonts/effra/EffraHeavy-Italic.woff2")
    format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
