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

/**
 * CONTENTS..............You’re reading it!
 * FRONTEND EDITING .......................
 * CARDS STYLE DEFAULT ....................
*/

.paragraph.paragraph--type--card-expand figure {
  margin-bottom: 0;
}

.paragraph--type--card-expand.bg--cyan .card__body {
  background-color: var(--bs-cyan);
}

.paragraph--type--card-expand.bg--jaune .card__body {
  background-color: var(--bs-yellow);
}

.paragraph--type--card-expand.bg--orange .card__body {
  background-color: var(--bs-orange);
}

.paragraph--type--card-expand.bg--pink .card__body {
  background-color: var(--bs-pink);
}

.paragraph--type--card-expand.bg--vert .card__body {
  background-color: var(--bs-green);
}

.paragraph--type--card-expand.bg--violet .card__body {
  background-color: var(--bs-violet);
}

.paragraph--type--card-expand.bg--coral .card__body.card__body--plus:after,
.paragraph--type--card-expand.bg--coral .card__body * {
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--coral .card__body {
  background-color: var(--bs-p-coral);
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--coral .card__body *,
.paragraph--type--card-expand.bg--coral
  a.card__link
  ~ .card__body.card__body--plus:after {
  color: var(--bs-white);
  background-color: unset;
  text-transform: unset;
}

.paragraph--type--card-expand.bg--darkblue .card__body.card__body--plus:after,
.paragraph--type--card-expand.bg--darkblue .card__body * {
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--darkblue .card__body {
  background-color: var(--bs-dark-blue);
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--darkblue .card__body *,
.paragraph--type--card-expand.bg--darkblue
  a.card__link
  ~ .card__body.card__body--plus:after {
  color: var(--bs-white);
}

.paragraph.paragraph--type--card-expand.bg--darkblue
  .card__body
  .card__title
  h2,
.paragraph.paragraph--type--card-expand.bg--darkblue
  .card__body
  .card__title
  h3,
.paragraph.paragraph--type--card-expand.bg--darkblue
  .card__body
  .card__title
  h4,
.paragraph.paragraph--type--card-expand.bg--darkblue
  .card__body
  .card__title
  h5 {
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--black .card__body.card__body--plus:after,
.paragraph--type--card-expand.bg--black .card__body * {
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--black .card__body {
  background-color: var(--bs-black);
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--black .card__body *,
.paragraph--type--card-expand.bg--black
  a.card__link
  ~ .card__body.card__body--plus:after {
  color: var(--bs-white);
}

.paragraph--type--card-expand.bg--white .card__body {
  background-color: var(--bs-white);
  color: var(--bs-black);
}

.paragraph--type--card-expand.bg--black .card__body .cta--link:after {
  color: var(--bs-yellow);
}

/* ------------------------------------ *\
  ==FRONTEND EDITING
\* ------------------------------------ */
.layout-paragraphs-component-form .media-library-item__remove {
  background-color: var(--bs-white);
}

/* ------------------------------------ *\
  ==CARD STYLE
\* ------------------------------------ */
.paragraph.paragraph--type--card-expand {
  background: #fff 0 0 no-repeat padding-box;
  border: 0;
  border-radius: 0;
}

.paragraph.paragraph--type--card-expand .image-style-image-card {
  width: 100%;
}

.paragraph.paragraph--type--card-expand
  .card__link.collapsed
  ~ .card__body.card__body--plus {
  display: flex;
  flex-direction: column;
  align-content: space-between;
  justify-content: space-between;
  transition: all 0.5s;
  position: absolute;
  bottom: -1px;
  right: 0;
  height: auto;
  width: 91%;
  padding-inline: 1rem 2.5rem;
  padding-block: 1.5rem;
}

.paragraph.paragraph--type--card-expand
  .card__link:not(.collapsed)
  ~ .card__body.card__body--plus {
  display: flex;
  flex-direction: column;
  align-content: space-between;
  justify-content: space-between;
  padding-inline: 1rem 3.5rem;
  padding-block: 1.5rem;
  transition: all 0.5s;
  position: absolute;
  bottom: -1px;
  right: 0;
  height: auto;
  width: 92%;
  max-height: 100%;
  overflow-y: auto;
}

.paragraph.paragraph--type--card-expand .card__body.card__body--plus:after {
  font: var(--fa-font-light);
  content: '\2b';
  position: absolute;
  right: 1.5rem;
  top: 2.2rem;
  font-size: 2rem;
  transform: translate(50%, -50%);
  transition:
    right 0.3s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.paragraph.paragraph--type--card-expand
  .card__link:not(.collapsed)
  ~ .card__body.card__body--plus::after {
  top: 2.2rem;
}

.paragraph.paragraph--type--card-expand .card__image {
  overflow: hidden;
  transition: all 0.5s;
}

.paragraph.paragraph--type--card-expand .cta__button {
  border-color: var(--bs-white);
  z-index: 999;
}

.paragraph.paragraph--type--card-expand.bg--coral .cta__button:hover,
.paragraph.paragraph--type--card-expand.bg--coral .cta__button:focus,
.paragraph.paragraph--type--card-expand.bg--coral .cta__button:active {
  background-color: var(--bs-blue);
  border-color: var(--bs-blue);
}

.paragraph.paragraph--type--card-expand.bg--darkblue .cta__button:hover,
.paragraph.paragraph--type--card-expand.bg--darkblue .cta__button:focus,
.paragraph.paragraph--type--card-expand.bg--darkblue .cta__button:active {
  background-color: var(--bs-p-coral);
}

.paragraph.paragraph--type--card-expand .card__image img {
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.paragraph.paragraph--type--card-expand .card__link:hover ~ .card__image img {
  transform: translateY(-14.2135px) scale(1.15);
}

.paragraph.paragraph--type--card-expand .card__link.stretched-link {
  cursor: pointer;
}

.paragraph.paragraph--type--card-expand .card__body .card__text a:focus,
.paragraph.paragraph--type--card-expand .card__body .card__text a:active,
.paragraph.paragraph--type--card-expand .card__body .card__text a:hover {
  text-decoration: none;
}

.paragraph.paragraph--type--card-expand .card__body .card__title h2,
.paragraph.paragraph--type--card-expand .card__body .card__title h3,
.paragraph.paragraph--type--card-expand .card__body .card__title h4,
.paragraph.paragraph--type--card-expand .card__body .card__title h5 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 0;
  background-color: unset;
  color: var(--bs-black);
}

.paragraph--type--card-expand h2 p:first-child {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.paragraph--type--card-expand h2 p:last-child strong {
  font-size: 1.375rem;
  font-weight: 900;
  margin-top: 1rem;
}

.paragraph--type--card-expand h2 p:last-child {
  margin-top: 0;
  line-height: 1;
}

.paragraph--type--card-expand .card__text {
  position: relative;
  padding-left: 1.5rem;
}

.paragraph--type--card-expand .card__text:before {
  font: var(--fa-font-thin);
  content: '\f061';
  position: absolute;
  left: 0;
  top: 0.2rem;
}

.paragraph.paragraph--type--card-expand .card__body .card__text p {
  font-weight: 400;
  font-size: 1.188rem;
  line-height: 1.25;
  z-index: 1;
  margin-top: 1.5rem;
}

.paragraph.paragraph--type--card-expand .card__body a.stretched-link {
  text-decoration: none;
}

.paragraph.paragraph--type--card-expand .collapsing > * {
  opacity: 0;
}

.paragraph.paragraph--type--card-expand .card__body .collapse {
  z-index: 2;
}

.paragraph.paragraph--type--card-expand .card__body {
  z-index: 3;
}

.paragraph.paragraph--type--card-expand
  .card__link:not(.collapsed)
  ~ .card__body.card__body--plus:after {
  content: '\f068';
  transform: rotate(180deg) translateY(50%);
}

.paragraph.paragraph--type--card-expand .collapse > * {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.paragraph.paragraph--type--card-expand .card__body .card__cta {
  margin: 2rem 0 0;
}

.card__body {
  position: relative;
  z-index: 1;
}

.paragraph.paragraph--type--card-expand .card__text a {
  color: var(--bs-blue);
  font-size: 1rem;
  text-decoration: none;
}

.paragraph.paragraph--type--card-expand
  .card__text
  a:where(:hover, :focus, :active) {
  text-decoration: underline;
}

@media screen and (max-width: 1540px) {
  .paragraph--type--card-expand h2 p:last-child strong {
    font-size: 1rem;
    font-weight: 900;
    margin-top: 1rem;
  }

  .paragraph--type--card-expand h2 p:last-child {
    margin-top: 0;
    line-height: 1;
  }
}

@media screen and (max-width: 768px) {
  .paragraph.paragraph--type--card-expand .card__body .card__title h2,
  .paragraph.paragraph--type--card-expand .card__body .card__title h3,
  .paragraph.paragraph--type--card-expand .card__body .card__title h4,
  .paragraph.paragraph--type--card-expand .card__body .card__title h5 {
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1;
  }

  .paragraph.paragraph--type--card-expand .card__body .card__text p {
    font-size: 1rem;
    line-height: 1.25;
  }
}
