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

/**
 * CONTENTS..............You’re reading it!
 * CARD TEASER .............................
 * FULL ....................................
 * MEDIA QUERIES ...........................
*/

/* ------------------------------------ *\
  ==FRONT END EDITING
\* ------------------------------------ */
.node--type-actu.node--view-mode-teaser > .frontend-editing-actions {
  margin-top: 68.7%;
}

/* ------------------------------------ *\
  ==CARD TEASER
\* ------------------------------------ */
.actus-wrapper .actus {
  list-style: none;
  padding-left: 0;
}

.node--type-actu.card {
  height: 100%;
  border: 0;
  border-radius: unset;
  box-shadow: 0 3px 6px #00000029;
  position: relative;
}

.node--type-actu.card .actu__cat,
.node--type-actu.card .field--name-field-actu-date-text {
  position: absolute;
  z-index: 1;
  padding: 0.2rem 0.4rem;
  font-size: 1.25rem;
}

.node--type-actu.card .actu__cat {
  background-color: var(--bs-purple);
  color: var(--bs-white);
  top: 0;
  right: 0;
}

.node--type-actu.card .field--name-field-actu-date-text {
  background-color: var(--bs-yellow);
  color: var(--bs-black);
  top: 17rem;
  left: 0;
}

.node--type-actu.card .card-title {
  font-size: clamp(1rem, calc(1rem + 0.7vw), 2.3rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.node--type-actu.card .card-body {
  background-color: var(--bs-white);
  padding: 1rem 2.125rem;
  border-left: 2px solid #3cf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.node--type-actu.card .card-body .card-text {
  font-size: 1.25rem;
  font-weight: 300;
}

.node--type-actu.card .card-body .card-text em {
  font-style: normal;
}

.node--type-actu.card .card-link-picto i {
  color: var(--bs-blue);
  font-size: 2rem;
  transition: all 0.5s;
}

.node--type-actu.card
  .card-link:where(:hover, :focus, :active)
  ~ .card-img-top
  img {
  transform: scale(1.3);
}

.node--type-actu.card
  .card-link:where(:hover, :focus, :active)
  ~ .card-body
  .card-link-picto
  i {
  margin-left: 1rem;
}

.node--type-actu.card .card-img-top img {
  transition: all 0.5s;
}

.node--type-actu.card .field--name-field-actu-img {
  overflow: hidden;
}

/* ------------------------------------ *\
  ==FULL
\* ------------------------------------ */
.header-block__subtitle {
  margin-top: -3rem;
  padding: 5rem 0 1rem 8.75rem;
  background-color: var(--bs-gray);
}

.subheader-block .region-page-title h1,
.header-block__subtitle > p {
  font-size: 3.125rem;
  font-family: var(--bs-font-sans-serif);
  font-weight: 500;
  line-height: 1.3;
}

.region-subheader {
  display: flex;
}

.page-node-type-actu .region-subheader div {
  padding: 0.5rem;
  font-weight: 400;
}

.region-subheader .field--name-field-actu-categorie {
  background-color: var(--bs-purple);
  color: var(--bs-white);
  width: fit-content;
}

.region-subheader .field--name-field-actu-date-text {
  background-color: var(--bs-yellow);
  color: var(--bs-black);
  width: fit-content;
}

.page-header .subheader-block {
  padding: 3rem 9rem 1.5rem;
  margin-top: -2rem;
}

.actu__summary--full {
  border-left: 1px solid var(--bs-purple);
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.563rem;
  color: var(--bs-gray-dark);
}

.node--type-actu.node--view-mode-full {
  margin: 0 0.9rem;
}

.node--type-actu.node--view-mode-full .field--name-body ul li {
  padding-left: 0.3rem;
}

.node--type-actu.node--view-mode-full .field--name-body ul li::marker {
  content: '◗';
  color: var(--bs-purple);
}

.node--type-actu.node--view-mode-full h3 {
  position: relative;
}

.node--type-actu.node--view-mode-full h3:before {
  content: '';
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  background-color: var(--bs-yellow);
  position: absolute;
  z-index: -1;
  left: -0.8rem;
  top: -0.3rem;
}

.node--type-actu.node--view-mode-full
  .paragraph.paragraph-accordion-item
  h3:before {
  content: none;
}

.block-social-sharing-block {
  margin: 1.5rem 1rem 0;
}

.block-social-sharing-block h2 {
  font-size: 1.5rem;
}

.social-media-sharing .share img {
  width: 30px;
}

.social-media-sharing li {
  margin-right: 0.5rem;
}

.social-media-sharing li:hover {
  box-shadow: 0 0 8px #00000026;
  border-radius: 50%;
}

/* ------------------------------------ *\
  ==MEDIA QUERIES
\* ------------------------------------ */
@media screen and (max-width: 991.98px) {
  .page-header .subheader-block {
    padding: 3rem 0 1rem 1rem;
  }
}

@media screen and (max-width: 399.98px) {
  .node--type-actu.card .field--name-field-actu-date-text {
    top: 8rem;
  }
}

@media screen and (min-width: 400px) and (width <= 575.98px) {
  .node--type-actu.card .field--name-field-actu-date-text {
    top: 10rem;
  }
}

@media screen and (max-width: 575.98px) {
  .subheader-block .region-page-title h1 {
    font-size: 1.875rem;
  }

  .node--type-actu.card .card-title {
    font-size: 1.375rem;
  }

  .node--type-actu.card .actu__cat,
  .node--type-actu.card .card-body .card-text,
  .node--type-actu.card .field--name-field-actu-date-text {
    font-size: 1rem;
  }

  .node--type-actu.card .card-body .card-link-picto i {
    font-size: 1.25rem;
  }

  body.actu .page.page-header {
    padding-bottom: 0;
  }
}

@media screen and (min-width: 992px) and (width <= 1699.98px) {
  .node--type-actu.card .field--name-field-actu-date-text {
    top: 11rem;
  }
}

@media screen and (max-width: 767.98px) {
  .actus-wrapper .actus li {
    margin-top: 1rem;
  }
}
