/* ------------------------------------ *\
  CONTENTS
\* ------------------------------------ */

/**
 * CONTENTS..............You’re reading it!
 * LANG SWITCHER .........................
 * CTA  ..................................
 * REGION SEPARATOR ......................
 * HIGHLIGHTS ............................
 * NIVEAUX DE TITRES .....................
 * REGION FULL WIDTH .....................
 * RESEAUX SOCIAUX .......................
*/

.stretched-link::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: auto;
  content: "";
}

/* ------------------------------------ *\
  ==LANG SWITCHER
\* ------------------------------------ */
.dropbutton-wrapper {
  padding-top: 2.5rem;
  padding-left: .125rem;
}

.dropbutton-action:first-child {
  border: 0;
}

[dir="ltr"] .dropbutton-action:first-child {
  margin-right: 2px;
  text-align: center;
}

.dropdown-language-item .dropbutton-toggle button,
.dropdown-language-item .dropbutton-action:first-child {
  background: var(--gray-4);
}

/* ------------------------------------ *\
  ==REGION SEPARATOR
\* ------------------------------------ */
.region-separator {
  position: relative;
  padding-top: 0;
}

.region-separator::before {
  content: " ";
  position: absolute;
  overflow: hidden;
  height: 9rem;
  bottom: 100%;
  left: 0;
  filter: var(--separator-color);
  background-image: url("../images/regionSeparator.svg");
  width: 100%;
  background-repeat: no-repeat;
  background-size: 101%;
  background-position: bottom;
}

.site-footer.region-separator::before {
  filter: var(--separator-color-footer, saturate(0) hue-rotate(0) brightness(64%) contrast(204%));
}

.site-footer.region-separator {
  position: relative;
  padding-top: 0;
}

/* ------------------------------------ *\
  ==HIGHLIGHTS
\* ------------------------------------ */
.highlights--style1:nth-of-type(even) {
  background-color: var(--primary-4);
}

.highlights--style1:nth-of-type(odd) {
  background-color: var(--primary-3);
}

.highlights--style1 {
  display: inline-block;
  padding: 2rem 1rem;
  border-radius: 20px;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 3px 6px #00000029;
  font-family: Lora, georgia, serif;
  min-height: 10rem;
  margin-left: auto;
  margin-right: auto;
}

.highlights--style1::first-line {
  font-family: metropolis, sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

@media screen and (min-width: 101em) {
  .layout-main .text-content p.highlights--style1,
  .layout-main .cke_editable p.highlights--style1 {
    width: calc(100% / var(--highlights-cols-xl, 4) - 2.5rem);
  }
}

@media screen and (min-width: 40em) and (max-width: 100em) {
  .layout-main .text-content p.highlights--style1,
  .layout-main .cke_editable p.highlights--style1 {
    width: calc(100% / var(--highlights-cols-m, 3) - 2.5rem);
  }
}

@media screen and (max-width: 39.9375em) {
  .layout-main .text-content p.highlights--style1,
  .layout-main .cke_editable p.highlights--style1 {
    min-width: calc(100% - 2.5rem);
  }
}

/* ------------------------------------ *\
  ==NIVEAUX DE TITRES
\* ------------------------------------ */
.block-page-title-block h1,
.block h1.block__title {
  font-size: var(--font-h1);
  line-height: 1.3;
}

.block h2.block__title {
  font-size: var(--font-h2);
  line-height: 1.3;
}

.block h3.block__title {
  font-size: var(--font-h3);
  line-height: 1.4;
}

.block h4.block__title {
  font-size: var(--font-h4);
  line-height: 1.4;
}

.layout-main .text-content > *,
.layout-main .cke_editable > * {
  width: 100%;
}

.layout-main .text-content,
.layout-main .cke_editable {
  line-height: 1.4;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.form--inline .form-actions,
.form--inline .edit-actions .form-actions {
  margin-top: 0;
}

body:not(.path-frontpage) .layout-main {
  padding-bottom: 5rem;
}

/* ------------------------------------ *\
  ==REGION FULL WIDTH
\* ------------------------------------ */
.page-wrapper .after-content--full-width {
  padding-bottom: 7rem;
  margin-top: 5rem;
}

/* ------------------------------------ *\
  ==RESEAUX SOCIAUX
\* ------------------------------------ */
.page-wrapper .social-bar__inner {
  padding-top: 0;
}

.rs-list > li {
  display: inline-block;
}

.social-bar .view-reseaux-sociaux > div {
  margin-bottom: 0;
}

.node--type-rs-item.node--view-mode-teaser {
  margin: 0;
}

.node--type-rs-item.node--view-mode-teaser .rs-link {
  position: relative;
  margin: 0 .5rem;
  display: flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: 10px;
  background-color: var(--social-icon-bg);
  box-shadow: 0 3px 6px #00000029;
  color: var(--social-icon-font-color);
  text-decoration: none;
}

.node--type-rs-item.node--view-mode-teaser .rs-link:focus,
.node--type-rs-item.node--view-mode-teaser .rs-link:active,
.node--type-rs-item.node--view-mode-teaser .rs-link:hover {
  background-color: var(--social-icon-font-color);
  color: var(--social-icon-bg);
}

.node--type-rs-item.node--view-mode-teaser::after {
  content: unset;
}

.node--type-rs-item.node--view-mode-teaser .rs-link-title,
.node--type-rs-item.node--view-mode-teaser .rs-icon {
  display: inline-block;
}

.rs-icon i {
  font-size: 1.4rem;
  margin-right: .5rem;
}

.pager__items.js-pager__items {
  justify-content: center;
}

.pager__link:hover {
  color: var(--black);
}

main .pager__item--active {
  background-color: var(--primary-1);
}

@media screen and (max-width: 75rem) {
  .rs-list {
    text-align: center;
    margin-bottom: 3rem;
  }

  .page-wrapper .social-bar__inner {
    padding-top: 1rem;
  }

  .rs-list li {
    margin: .5rem;
  }

  .social-bar .rotate > div {
    margin-bottom: 0;
  }

  .page-wrapper .after-content--full-width {
    margin-top: 2rem;
  }
}

/* small */
@media screen and (max-width: 39.9375em) {
  .rs-list {
    margin-bottom: 1rem;
  }
}
