.node--type-homepage .node__content {
  margin-top: 0 !important;
}

.node--type-homepage header {
  display: none;
}

.homepage-cdc-paragraph-container {
  width: 1200px;
  margin: auto;
  padding-bottom: 20px;
}

.column-container {
  display: flex;
}

.four-column {
  width: 21%;
  margin: 0 2%;
}

.two-column {
  width: 46%;
  margin: 0 2%;
}

.homepage-cdc-card {
  width: 100%;
  height: 400px;
  overflow: hidden;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s, transform 1s;
}

.homepage-cdc-card.animate {
  animation: slideUpFadeIn 1s forwards;
}

.homepage-cdc-card-top {
  height: 100%;
  overflow: hidden;
  text-align: center;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
}

.homepage-cdc-card-title {
  font-size: 28px;
  line-height: 32px;
  font-weight: lighter;
  text-shadow: 2px 0 2px rgba(0, 0, 0, 0.5);
}

.homepage-cdc-card-image {
  width: 100%;
}

.homepage-cdc-card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  text-decoration: none;
}

.homepage-cdc-card-image .field--name-field-image-card, .homepage-cdc-card-image img, .homepage-cdc-card-image .field--type-image  {
  margin: 0;
}

.homepage-cdc-card-image img, .homepage-cdc-card-image .field--name-field-media-image {
  width: 100%;
}

.homepage-tout-comprendre-title div {
  padding-top: 80px;
  padding-bottom: 60px;
  text-align: center;
  font-size: 32px;
  font-weight: 300;
  font-style: normal;
  color: var(--color--text-cdc);
  font-family: 'Oxygen', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
  color: var(--color--text-cdc);
}

.tout-comprendre .text-container {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s, transform 1s;
}

.tout-comprendre .text-container.animate {
  animation: slideUpFadeIn 1s forwards;
}

.tout-comprendre .text-container p {
  font-family: 'Oxygen', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
  font-size: 15px;
  line-height: 24px;
  font-weight: 300;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  color: var(--color--text-cdc);
}
.tout-comprendre .text-container p a {
  font-weight: bold;
}

.tout-comprendre .text-container h1,
.tout-comprendre .text-container h2,
.tout-comprendre .text-container h3,
.tout-comprendre .text-container h4,
.tout-comprendre .text-container h5,
.tout-comprendre .text-container h6 {
  font-family: 'Oxygen', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
  font-size: 22px;
  line-height: 34px;
  font-weight: 300;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
  color: var(--color--text-cdc);;
}




@media (max-width: 1440px) {
  .homepage-cdc-paragraph-container {
    width: 980px;
  }
}

@media (max-width: 1024px) {
  .column-container {
    flex-wrap: wrap;
  }

  .four-column {
    width: 46%;
    margin-left: 2%;
    margin-right: 2%;
    margin-bottom: 20px;

  }
  .homepage-cdc-card {
    width: 250px;
  }

  .four-column > .field {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .homepage-cdc-paragraph-container {
    width: 100%;
  }

  .four-column,
  .two-column {
    width: 96%;
    margin-bottom: 20px;
    margin-right: 0;
    margin-left: 0;
    padding: 0 20px;
  }
}


.tout-comprendre {
  display: flex;
  position: relative;
  min-height: 280px;
}

.tout-comprendre a {
  text-decoration: none;
  color: black;
  transition: color .3s ease-in-out;
}

.tout-comprendre-icon {
  min-width: 80px;
  height: 80px;
  font-size: 32px;
  background-color: white;
  border: solid 1px rgba(229, 232, 236, 1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.7s ease-in-out;
}

.tout-comprendre-icon.animate {
  animation: growFadeIn 0.7s forwards;
}

.line {
  position: absolute;
  top: 80px;
  right: 40px;
  width: 1px;
  height: 100%;
  border-right-width: 1px;
  border-right-style: solid;
  border-color: #e1e1e1;
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.line.animate {
  animation: growFadeIn 0.7s forwards;
}

.two-column .field:first-child .tout-comprendre{
  padding-bottom: 60px;
}

.homepage-cdc-paragraph-container .left-col .tout-comprendre-icon {
  margin-left: 30px;
}

.homepage-cdc-paragraph-container .right-col .tout-comprendre-icon {
  margin-right: 30px;
}

.homepage-cdc-paragraph-container .right-col .tout-comprendre {
  flex-direction: row-reverse;
}

.homepage-cdc-paragraph-container .right-col .tout-comprendre .line {
  left: 40px;
}

.left-col .field--name-field-left-bottom-column:last-child .line,
.right-col .field--name-field-right-bottom-column:last-child .line{
  display: none;
}

.homepage-cdc-bottom-col {
  width: 100%;
}

.homepage-cdc-bottom-list,
.homepage-cdc-bottom-list a {
  color: white;
  font-family: 'Oxygen', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-style: normal;
  text-transform: none;
}

.homepage-cdc-bottom-list a:hover {
  color: white;
  text-decoration: none;
}

.homepage-cdc-bottom-title {
  min-height: 50px;
  color: white;
  font-family: 'Oxygen', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 300;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
}

.homepage-cdc-bottom-list ul li {
  margin-bottom: 10px;
}

.homepage-cdc-bottom-list ul {
  list-style: none;
  padding-left: 0;
}

.homepage-cdc-bottom-list ul li {
  position: relative;
  padding-left: 20px;
}

.homepage-cdc-bottom-list ul li::before {
  content: ">";
  position: absolute;
  left: 0;
}

.parallax-background {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 40px 0 20px 0;
}

.homepage-cdc-paragraph-container {
  position: relative;
  z-index: 1;
}

.parallax-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  z-index: -1;
}

.banner-background {
  position: relative;
  width: 100%;
}

.banner-img {
  width: 100%;
  filter: blur(3px);
  animation: unblur 1.5s ease-in-out forwards;
}

@keyframes unblur {
  from {
    filter: blur(3px);
  }
  to {
    filter: blur(0);
  }
}

.banner-text {
  z-index: 2;
  position: absolute;
  top: 45%;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 48px;
  font-family: 'Oxygen';
  font-weight: 300;
}

.banner-icon {
  z-index: 2;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(180deg) rotateY(180deg) scale(0); /* Rotation initiale et échelle réduite */
  opacity: 0;
  animation: rotate-in 1s ease-out 0.8s forwards;
  width: 36px;
}

@media screen and (max-width: 1920px) {
  .banner-icon {
    width: calc(1.25vw + 18px);
    height: calc(1.25vw + 18px);
  }
  .banner-text {
    font-size: calc(1.8vw + 16px);
  }
}

@media screen and (max-width: 1440px) {
  .banner-icon {
    width: 36px;
    height: 36px;
  }
  .banner-text {
    font-size: calc(2vw + 12px);
  }
}

@media screen and (max-width: 1024px) {
  .banner-icon {
    width: calc(2vw + 10px);
    height: calc(2vw + 10px);
  }
  .banner-text {
    font-size: calc(2.5vw + 8px);
  }
}

@media screen and (max-width: 768px) {
  .banner-icon {
    width: calc(3vw + 6px);
    height: calc(3vw + 6px);
  }
  .banner-text {
    font-size: calc(3vw + 6px);
  }
}

@media screen and (max-width: 480px) {
  .banner-icon {
    width: calc(5vw + 4px);
    height: calc(5vw + 4px);
  }
  .banner-text {
    font-size: calc(3vw + 3px);
  }
}

@keyframes rotate-in {
  0% {
    transform: translate(-50%, -50%) rotateX(180deg) rotateY(180deg);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
    opacity: 1;
  }
}

.banner-link-1 {
  opacity: 0;
  animation: fade-in-link 1s ease-out 0.5s forwards;
}

.banner-link-2 {
  opacity: 0;
  animation: fade-in-link 1s ease-out 0.8s forwards;
}

#page {
  overflow: hidden;
}

@keyframes fade-in-link {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
