.teaser {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.teaser[data-fully-clickable="true"] {
  cursor: pointer;
}
.teaser-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: flex-start;
}
.teaser-title {
  font-size: var(--font-size--normal);
  text-transform: none;
  font-weight: 700;
  line-height: var(--font-lh--narrow);
  margin: var(--layout--spacing--20) 0;
}
.teaser-title .event-type {
  color: var(--color--accent--medium);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.02em;
}
.teaser-title a {
  color: inherit;
  text-decoration: none;
}
.teaser-description {
  font-size: var(--font-size--smaller);
  margin: 0 0 var(--layout--spacing--10);
}
.teaser figure {
  overflow: hidden;
}
.teaser img {
  width: 100%;
  transition: transform 0.3s;
}

.teaser-title a:hover,
.teaser[data-fully-clickable="true"]:hover .teaser-title a {
  text-decoration: underline;
}
.teaser[data-fully-clickable="true"] .teaser-title a:focus {
  outline: none;
}
.teaser a:hover img,
.teaser[data-fully-clickable="true"]:focus-within img,
.teaser[data-fully-clickable="true"]:hover img {
  transform: scale(1.05);
}
.teaser .cta {
  margin-top: auto;
}
.teaser[data-fully-clickable="true"]:hover .cta {
  text-decoration: none;
}
.teaser[data-fully-clickable="true"] .cta svg {
  transition: transform 0.15s;
}
.teaser[data-fully-clickable="true"]:hover .cta-type-ghost svg.icon-before {
  transform: translateX(12.5%);
}
.teaser[data-fully-clickable="true"]:hover .cta-type-ghost svg.icon-after {
  transform: translateX(-12.5%);
}

.teaser .badge {
  position: absolute;
  top: var(--layout--spacing--30);
  left: var(--layout--spacing--30);
  z-index: 2;
}
.teaser svg.badge {
  width: var(--font-size--small);
  color: var(--color--accent--medium);
}
.teaser .badge.opposite {
  left: unset;
  right: var(--layout--spacing--30);
}
.teaser .content-type-badge {
  display: block;
  background-color: var(--color--accent--medium);
  color: var(--color--neutral--highest);
  padding: 0 var(--layout--spacing--20);
  border-radius: var(--layout--spacing--10);
  font-size: var(--font-size--smaller);
  font-weight: 700;
}

/* Specific : Structure */
.teaser-bundle-structure.teaser-special .teaser-title {
  margin-top: 0;
}
.teaser-bundle-structure.teaser-special .structure-coordonnnes {
  margin-bottom: auto;
}
.teaser-bundle-structure.teaser-special .structure-meta {
  margin-top: var(--layout--spacing--50);
  font-size: var(--font-size--small);
}
.teaser-bundle-structure.teaser-special .structure-meta .structure-type {
  color: var(--color--neutral--low);
  font-weight: 700;
}

/* Specific : Portrait */
.teaser-bundle-portrait.teaser-special .teaser-title {
  font-style: italic;
  font-family: var(--font-family--serif);
  font-size: var(--font-size--large);
  font-weight: 400;
  color: var(--color--accent--medium);
}
.teaser-bundle-portrait.teaser-special figure {
  position: relative;
}
.teaser-bundle-portrait.teaser-special img {
  filter: saturate(0);
  transition:
    filter 0.3s,
    transform 0.3s;
}

.teaser-bundle-portrait.teaser-special figure::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color--accent--high);
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}
.teaser-bundle-portrait.teaser-special[data-fully-clickable="true"]:focus-within
  img,
.teaser-bundle-portrait.teaser-special[data-fully-clickable="true"]:hover img {
  filter: none;
}
.teaser-bundle-portrait.teaser-special[data-fully-clickable="true"]:focus-within
  figure::after,
.teaser-bundle-portrait.teaser-special[data-fully-clickable="true"]:hover
  figure::after {
  opacity: 0;
}

/* Specific : Publication */
.teaser-bundle-publication.teaser-special {
  display: grid;
}
.teasers-slider .teaser-bundle-publication.teaser-special {
  max-width: 18rem;
}
.teaser-bundle-publication.teaser-special > * {
  grid-row: 1;
  grid-column: 1;
}
.teaser-bundle-publication.teaser-special .teaser-title {
  font-style: italic;
  font-family: var(--font-family--serif);
  font-size: var(--font-size--large);
  font-weight: 400;
}
.teasers-slider .teaser-bundle-publication.teaser-special .teaser-title {
  font-size: var(--font-size--medium-large);
}
.teaser-bundle-publication.teaser-special .teaser-content {
  opacity: 0;
  text-align: center;
  position: relative;
  background-color: #ffffffe0;
  backdrop-filter: blur(0.25em);
  transition: opacity 0.3s;
  align-items: center;
  justify-content: center;
  padding: var(--layout--spacing--40);
}
.teaser-bundle-publication.teaser-special .teaser-content .cta {
  margin-top: var(--layout--spacing--30);
}
.teaser-bundle-publication.teaser-special:hover .teaser-content,
.teaser-bundle-publication.teaser-special:focus-within .teaser-content {
  opacity: 1;
}
/* .teaser-bundle-publication.teaser-special img {
  transition: filter 0.3s;
}*/
.teaser-bundle-publication.teaser-special a:hover img,
.teaser-bundle-publication.teaser-special[data-fully-clickable="true"]:focus-within
  img,
.teaser-bundle-publication.teaser-special[data-fully-clickable="true"]:hover
  img {
  transform: none;
  /* filter: contrast(0.7) brightness(1.3) saturate(0.9); */
}

/* Specific : offre */
.teaser-bundle-offre.teaser-special .offre-info-list {
  margin-top: auto;
  border-top: 1px solid var(--color--neutral--high);
  padding-top: var(--layout--spacing--20);
}
.teaser-bundle-offre.teaser-special .teaser-title {
  margin-bottom: var(--layout--spacing--50);
}

/* Variants :
- default : affichage en texte
- card : carte
- frame : cadre accent
*/
/* Variant - Default */
.teaser-type-default figure {
  border-radius: var(--layout--spacing--30);
}

/* Variant - Card */
.teaser-type-card {
  border-radius: var(--layout--spacing--30);
  overflow: hidden;
  box-shadow: var(--fx--shadow--card);
  transition: box-shadow 0.3s;
}
.teaser-type-card[data-fully-clickable="true"]:focus-within {
  outline: 4px solid;
}

.teaser-type-card[data-fully-clickable="true"]:focus-within,
.teaser-type-card[data-fully-clickable="true"]:hover {
  box-shadow: var(--fx--shadow--card-hover);
}
.teaser-type-card[data-fully-clickable="true"] a:focus {
  outline: none;
}
.teaser-type-card .teaser-content {
  padding: var(--layout--spacing--40);
  background-color: var(--color--neutral--highest);
}
.teaser-type-card .cta {
  margin-bottom: calc(-1 * var(--layout--spacing--20));
}
.teaser-type-card .teaser-title {
  margin-top: 0;
}

/* Variant - Frame */
.teaser-type-frame {
  border: 1px solid var(--color--accent--medium);
  border-radius: var(--layout--spacing--40);
  padding: var(--layout--spacing--40);
  background-color: var(--color--neutral--highest);
}
.teaser-type-frame[data-fully-clickable="true"]:focus-within,
.teaser-type-frame[data-fully-clickable="true"]:hover {
  background-color: var(--color--accent--highest);
}
.teaser-type-frame[data-fully-clickable="true"]:focus-within {
  outline: 3px solid var(--color--accent--medium);
}
.teaser-type-frame .badge {
  position: absolute;
  top: var(--layout--spacing--40);
  left: var(--layout--spacing--40);
  z-index: 2;
}
.teaser-type-frame svg.badge {
  width: var(--font-size--base);
  color: var(--color--accent--medium);
}
.teaser-type-frame .badge.opposite {
  left: unset;
  right: var(--layout--spacing--40);
}

.teaser-category {
  font-size: var(--font-size--smaller);
  font-weight: 500;
  margin: 0;
}
