.c-sc-hero-portail {
  margin-top: var(--c-block-margin-top, 0);
  margin-bottom: var(--c-block-margin-bottom, 0);
  padding-block: 64px 80px;
  background-color: #FFFFFF;
}
.c-sc-hero-portail__container {
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 64px;
}
.c-sc-hero-portail__entete {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.c-sc-hero-portail__title {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
  color: #000000;
}
.c-sc-hero-portail__body {
  max-width: 700px;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #000000;
}
.c-sc-hero-portail__body p {
  margin: 0;
}
.c-sc-hero-portail__body p + p {
  margin-top: 1.5em;
}
.c-sc-hero-portail__cartes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-sc-hero-portail__cartes--1 {
  grid-template-columns: minmax(0, 1fr);
}
.c-sc-hero-portail__cartes--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.c-sc-hero-portail__cellule {
  min-width: 0;
  margin: 0;
}
.c-sc-hero-portail__carte {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4/3;
  padding: 16px;
  border-radius: 5px;
  background-color: #DCDDDE;
  color: #000000;
  text-decoration: none;
}
.c-sc-hero-portail__carte:link, .c-sc-hero-portail__carte:visited {
  color: #000000;
  text-decoration: none;
}
.c-sc-hero-portail__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.c-sc-hero-portail__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.c-sc-hero-portail__encart {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 340px;
  padding: 20px 24px;
  background-color: #FFFFFF;
  border-radius: 5px;
}
.c-sc-hero-portail__libelle {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5C5E5F;
}
.c-sc-hero-portail__carte-titre {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #000000;
  transition: color 0.2s ease;
}
.c-sc-hero-portail__carte-texte {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}
.c-sc-hero-portail__decouvrir {
  margin-top: 4px;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #DE2120;
}
.c-sc-hero-portail__fleche {
  display: inline-block;
  transition: transform 0.2s ease;
}
.c-sc-hero-portail__carte--lien:hover .c-sc-hero-portail__image, .c-sc-hero-portail__carte--lien:focus-visible .c-sc-hero-portail__image {
  transform: scale(1.04);
}
.c-sc-hero-portail__carte--lien:hover .c-sc-hero-portail__carte-titre, .c-sc-hero-portail__carte--lien:focus-visible .c-sc-hero-portail__carte-titre {
  color: #DE2120;
}
.c-sc-hero-portail__carte--lien:hover .c-sc-hero-portail__fleche, .c-sc-hero-portail__carte--lien:focus-visible .c-sc-hero-portail__fleche {
  transform: translateX(4px);
}
.c-sc-hero-portail__carte--lien:focus-visible {
  outline: 3px solid #DE2120;
  outline-offset: 3px;
}
.c-sc-hero-portail__bandeau {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  margin: 16px 0 0;
  padding: 18px 32px;
  border-radius: 5px;
  background-color: #DE2120;
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  color: #FFFFFF;
}
.c-sc-hero-portail__bandeau-lien {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.c-sc-hero-portail__bandeau-lien:link, .c-sc-hero-portail__bandeau-lien:visited {
  color: #FFFFFF;
}
.c-sc-hero-portail__bandeau-lien:hover, .c-sc-hero-portail__bandeau-lien:focus-visible {
  color: #000000;
}
.c-sc-hero-portail__bandeau-lien:hover .c-sc-hero-portail__fleche, .c-sc-hero-portail__bandeau-lien:focus-visible .c-sc-hero-portail__fleche {
  transform: translateX(4px);
}
.c-sc-hero-portail__bandeau-lien:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .c-sc-hero-portail__title {
    font-size: 45px;
  }
}
@media (max-width: 1024px) {
  .c-sc-hero-portail {
    padding-block: 56px 64px;
  }
  .c-sc-hero-portail__container {
    padding-inline: 40px;
  }
  .c-sc-hero-portail__title {
    font-size: 44px;
  }
  .c-sc-hero-portail__cartes--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .c-sc-hero-portail__carte-titre {
    font-size: 24px;
  }
}
@media (max-width: 768px) {
  .c-sc-hero-portail {
    padding-block: 48px;
  }
  .c-sc-hero-portail__container {
    padding-inline: 24px;
  }
  .c-sc-hero-portail__entete {
    margin-bottom: 40px;
  }
  .c-sc-hero-portail__title {
    font-size: 32px;
  }
  .c-sc-hero-portail__cartes, .c-sc-hero-portail__cartes--3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-sc-hero-portail__carte {
    aspect-ratio: auto;
    padding: 0;
    background-color: #F1F2F2;
  }
  .c-sc-hero-portail__media {
    position: static;
  }
  .c-sc-hero-portail__image {
    height: auto;
    aspect-ratio: 3/2;
  }
  .c-sc-hero-portail__encart {
    max-width: none;
    padding: 20px 24px 24px;
    border-radius: 0;
    background-color: transparent;
  }
  .c-sc-hero-portail__bandeau {
    padding: 16px 20px;
    font-size: 18px;
  }
}
.c-sc-hero-portail__entete:last-child {
  margin-bottom: 0;
}
