:root {
  /* Official colors - style guide */
  --afp-blue: #325aff;
  --afp-black: #000;
  --afp-white: #fff;
  
  /* sub main colors */
  --afp-pink: #FF6E6E;
  --afp-yellow: #FFD223;
  --afp-orange: #FFA050;
  --afp-turquoise: #7DFAAF;
  --afp-purple: #CD73FA;
  --afp-light-blue: #87EBFA;
  --afp-darker-white: #F5F5F7;
  
  /* secondary colors */
  --afp-secondary-grey-100: #9B9187;
  --afp-secondary-grey-80: #AFA79F;
  --afp-secondary-grey-60: #C3BDB7;
  --afp-secondary-grey-40: #D7D3CF;
  --afp-secondary-grey-20: #EBE9E7;
  --afp-secondary-grey-10: #F5F4F3;
  
  
  /* Additional colors - custom */
  --afp-light-green: #7DFAAF;
  --afp-darker-green: #65ce8f;
  --afp-lighter-bleu: #E8F8EB;
  --afp-darker-orange: #e06f12;
  --afp-darker-pink: #d96e6e;
  --afp-blue-darker: #2544bf;
  --extremely-light-gray: rgba(0, 0, 0, 0.1);
  /* Others */
  --max-height-landing-presentation-container: 1280px;
  --min-height-landing-presentation-container: min(
    var(--max-height-landing-presentation-container),
    min(100vh, 100vw)
  );
  }
  
/* BASE CSS */
html {
  font-family: 'Source Sans Pro', Arial, sans-serif;
}
/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html{
  height: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: none !important;
}
#main-container {
  margin: auto;
  width: 100%;
}

/* Landing Container */
.bg-color {
  width: 100%;
  position: relative;
  background-color: #000;
  display: flex;
  align-items: center;

}
#landing-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 1rem;
  height: 95%;

  display: flex;
  flex-direction: column;
}
#background-vid {
  width: 100%;
  filter: brightness(80%);

}
#h1-landing-container {
  color: var(--afp-white);
  font-weight: 700;
  font-size: 4rem;
  position: relative;
  top: 75px;
  margin: auto;
  margin-left: 6rem;
}
@media screen and (max-width: 810px) {
  #h1-landing-container {
      display: none;
  }
}
.heading-button {
  background-color: var(--afp-pink);
  color: var(--afp-white);
  padding: 10px 32px;
  width: fit-content;
  width: -moz-fit-content;
  border-radius: 30px;
  font-size: 2rem;
  align-self: flex-start;
  position: absolute;
  right: 10px;
}
.heading-button:hover {
  background-color: var(--afp-darker-pink);
}
#landing-container .arrow {
  color: var(--afp-white);
  animation: myBounceAnim 3300ms ease 0s both running infinite;
  cursor: pointer;
  width: fit-content;
  width: -moz-fit-content;
  margin: 0 auto;
  margin-top: auto;
}
@keyframes myBounceAnim {
0% {
  transform: translateY(Opx);
}
  45% {
      transform: translateY(0px);
  }
  67% {
      transform: translateY(-30px);
  }
  73% {
      transform: translateY(0px);
  }
  78% {
      transform: translateY(-15px);
  }
  89% {
      transform: translateY(0px);
  }
  100% {
      transform: translateY(0);
  }
}
@media screen and (max-width: 765px) {
  .heading-button {
      font-size: 1.2rem;
  }
}

/*Section 1*/
#section-1 {
  padding: 3rem 0.7rem;
  background-color: var(--afp-blue);
}
#landing-title {
  text-align: center;
  font-size: 3rem;
  color: var(--afp-white);
  margin-bottom: 3rem;
}
@media screen and (min-width: 811px) {
  #landing-title {
      display: none;
  }
}
.h2-b1 {
  font-weight: 600;
  color: var(--afp-white);
  font-size: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  width: -moz-fit-content;
  margin: auto;
}
.h2-b1 span {
  color: var(--afp-yellow);
  display: block;
  margin-bottom: 20px;
  animation: title-slide 5s infinite;
  opacity: 0;
}

.h2-b1 span.title-2, .h2-b1 span.title-3 {
  margin-top: 28px;
}

#yellow-title {
  height: 40px;
  overflow: hidden;
}
@keyframes title-slide {
  0% {
      transform: translateY(10px);
      opacity: 0;     
  }
  10% {
      transform: translateY(0px);
      opacity: 1;
  }
  30% {
      transform: translateY(0px);
  }
  40% {
      transform: translateY(-60px);      
  }
  60% {
      transform: translateY(-60px);      
  }
  70% {
      transform: translateY(-120px); 
      opacity: 1;     
  }
  90% {
      transform: translateY(-120px);
      opacity: 1;
  }
  95% {
      transform: translateY(-120px);
      opacity: 0;
  }
}


.b1-content {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin: 3rem auto;
  gap: 1rem;
  flex-wrap: wrap;
}
.circle-b1 {
  background-color: var(--afp-white);
  padding: 2rem;
  text-align: center;
  font-size: 1.5rem;
  height: 280px;
  width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  position: relative;
  transition: transform 1s;
  transform-style: preserve-3d;
}
.turn:hover .circle-b1 {
  transform: rotateY(180deg);
}
.circle-b1 h3 {
  font-weight: 600;
  font-size: 1.7rem;
}
.circle-front p {
  font-size: 60px;
  font-weight: 100;
}
.circle-back, .circle-front {
  position: absolute;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}
.circle-back {
  transform: rotateY(180deg);
  font-size: 1.2rem;
  padding: 10px;
}


/* Section 2 */
#section-2 {
  padding: 3rem 1rem;
}
.h2-b2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-weight: 400;
  text-align: center;
  color: #FFF !important;
}
.content-b2 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: auto;
  margin-top: 2rem;
  max-width: 1300px;
}
.mini-bloc-b2 {
  flex: 1 0 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  border : 1px solid var(--afp-blue);
  border-top: none;
  border-right: none;
  padding: 0.5rem;
  font-size: 1.6rem;
  cursor: pointer;
}

.mini-bloc-b2:nth-child(1), .mini-bloc-b2:nth-child(4) {
  border-left: none;
}
.mini-bloc-b2:nth-child(4), .mini-bloc-b2:nth-child(5), .mini-bloc-b2:nth-child(6) {
  border-bottom: none;
}
.svg-b2 {
  color: var(--afp-blue);
}

@media screen and (max-width: 931px) {
  .mini-bloc-b2 {
      min-width: 300px;
  }
  .mini-bloc-b2:nth-child(3), .mini-bloc-b2:nth-child(5) {
      border-left: none;
  }
  .mini-bloc-b2:nth-child(4) {
      border-left: 1px solid var(--afp-blue);
      border-bottom: 1px solid var(--afp-blue);
  }
}
@media screen and (max-width: 631px) {
  .mini-bloc-b2:not(:last-child) {
      border: none;
      border-bottom: 1px solid var(--afp-blue);
      width: 90%;
  }
  .mini-bloc-b2:last-child {
      border : none;
  }
}

.modal-window {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.7);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  cursor: default;
}
  .modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .modal-window > div {
    width: 90%;
    max-height: 95%;
    min-height: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    background: white;
    max-width: 1280px;
  }

.modal-close {
  line-height: 50px;
  font-size: 4rem;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 70px;
  text-decoration: none;
  z-index: 1;
  color: black !important;
}
  .modal-close:hover {
    color: black;
  }

  .bloc-text-b2 {
      display: flex;
      font-size: 1.3rem;
      gap: 2rem;
      overflow: scroll;
      /* align-items: center; */
  }
  .img-text, .bloc-text-text {
      flex: 1 1 0px;
  }
  .bloc-text-text {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      gap: 1rem;
  }
  .img-text {
      position: relative;
      align-self: center;
  }
  #open-modal-text .img-text div {
      width: 80%;   
      max-width: 805px;
      filter: drop-shadow(rgba(0, 0, 0, 0.5) 0px 2px 4px);
  }
  #open-modal-text .img-text div img {
      max-height: 550px;
  }
  #open-modal-text .img-text div:nth-child(2) {
      position: absolute;
      top: 2rem;
      right: 2rem;
  }
  .bloc-text-text h3, .img-text h3 {
      color: var(--afp-blue);
      font-weight: 400;
      font-size: 2.2rem;
      margin-bottom: 1rem;
  }

  .h2-b2-text div {
      display: block;
      margin-bottom: 20px;
      margin-top: 20px;
      font-size: 2rem;
  }

  .h2-b2-text div .title-3 {
    display: block;
    margin-bottom: 20px;
    margin-top: 40px;
    font-size: 2rem;
  }
  #slide-title span {
      color: var(--afp-yellow);
      font-size: 3rem;
  }
  #slide-title {
      height: 100px;
      overflow: hidden;
      text-align: center;
      margin: 2rem auto;
  }
  #slide-title div {
      animation: title-slide2 5s infinite;
      opacity: 0;
  }
  
  @keyframes title-slide2 {
      0% {
          transform: translateY(10px);
          opacity: 0;     
      }
      10% {
          transform: translateY(0px);
          opacity: 1;
      }
      30% {
          transform: translateY(0px);
      }
      40% {
          transform: translateY(-120px);      
      }
      60% {
          transform: translateY(-120px);      
      }
      70% {
          transform: translateY(-250px); 
          opacity: 1;     
      }
      90% {
          transform: translateY(-250px);
          opacity: 1;
      }
      95% {
          transform: translateY(-250px);
          opacity: 0;
      }
  }
  .h2-b2-text ul {
      margin-bottom: 1rem;
  }
  .h2-b2-text small {
      font-size: 0.8rem;
  }

  /* minibloc-photo */
  .img-text div {
      width: 100%;
      height: 100%;
      
  }
  .auto-slider{
      position: relative;
      box-sizing: content-box;
      display: inline-block;
      margin: 0 auto;
      overflow: hidden;
  }
  div#slider { overflow: hidden; }
  div#slider figure img { width: 20%; float: left; }
  div#slider figure { 
  position: relative;
  width: 500%;
  margin: 0;
  left: 0;
  text-align: left;
  font-size: 0;
  animation: 12s sliding ease infinite; 
  }
  /* Slider indicator */
.indicator{
  width: 100%;
  max-width: 720px;
  height: 6px;
  position: absolute;
  bottom: 0;
  
  animation: indicating 5s ease infinite; 
  
}
@keyframes sliding{
  0%{left: 0%; }
  19.99%{left: 0%; }
  20%{left: -100%;}
  39.99%{left: -100%;}
  40%{left: -200%;}
  59.99%{left: -200%;}
  60%{left: -300%;}
  79.99%{left: -300%;}
  80%{left: -400%;}
  99.99%{left: -400%;}
  100%{left: 0%;}
}        

@keyframes indicating{
  from{
      left: -100%;
  }
  to{
      left: 0;
  }
}  
  .h2-b2-photo {
      display: flex;
      text-align: center;
      font-size: 1.3rem;
      gap: 2rem;
      align-items: flex-end;
      justify-content: space-evenly;
  }
  .h2-b2-photo img {
      margin: auto;
  }
  .yellow {
      color: var(--afp-yellow);
      font-size: 2.5rem;
  }
  .bold {
      font-weight: bold;
  }
  .h2-b2-photo > p, .h2-b2-photo > span {
      font-size: 1.3rem;
  }
  /* mini-bloc AFP stories */
  #open-modal-stories .img-text div img {
      max-height: 600px;
  }
  .light {
      font-weight: 100;
  }
  #slide-title2 span {
      color: var(--afp-yellow);
      font-size: 3rem;
  }
  #slide-title2 {
      height: 150px;
      overflow: hidden;
      text-align: center;
      margin: 2rem auto;
  }
  #slide-title2 div {
      animation: title-slide3 5s infinite;
      opacity: 0;
  }
  .img-text div img {
      margin: auto;
  }
  .icones img {
      margin: auto;
  }
  
  @keyframes title-slide3 {
      0% {
          transform: translateY(10px);
          opacity: 0;     
      }
      10% {
          transform: translateY(0px);
          opacity: 1;
      }
      45% {
          transform: translateY(0px);
      }
      55% {
          transform: translateY(-200px);      
      }
      90% {
          transform: translateY(-200px);
          opacity: 1;      
      }
      95% {
          transform: translateY(-200px);
          opacity: 0;
      }
  }
  /* Mini-bloc afp graphiques */
  #slide-title3 span {
      color: var(--afp-yellow);
      font-size: 3rem;
  }
  #slide-title3 {
      height: 100px;
      overflow: hidden;
      text-align: center;
      margin: 2rem auto;
  }
  #slide-title3 div {
      animation: title-slide4 5s infinite;
      opacity: 0;
  }
  
  @keyframes title-slide4 {
      0% {
          transform: translateY(10px);
          opacity: 0;     
      }
      10% {
          transform: translateY(0px);
          opacity: 1;
      }
      45% {
          transform: translateY(0px);
      }
      55% {
          transform: translateY(-120px);      
      }
      90% {
          transform: translateY(-120px);
          opacity: 1;
      }
      95% {
          transform: translateY(-120px);
          opacity: 0;
      }
  }
  /* Mini bloc data & buts 3D */
  #open-modal-data .img-text video {
      max-height: 588px;
  }
  #open-modal-data .img-text {
      align-self: flex-start;
  }
  #open-modal-data .bloc-text-text {
      justify-content: space-between;
  }

  @media screen and (max-width: 990px ) {
      .bloc-text-b2 {
          display: block;
          overflow: scroll;
      }
      .modal-window > div {
          max-height: 80%;
      }
      .img-text {
          margin-bottom: 2rem;
      }
      .h2-b2-photo {
          margin-top: 2rem;
      }
  }
@media screen and (min-width: 991px) {
  .button-mobile {
      display: none;
  }
}
  .button-mobile {
      background-color: var(--afp-pink);
      padding: 10px 30px;
      width: fit-content;
      width: -moz-fit-content;
      border-radius: 30px;
      color: var(--afp-white);
      margin: 2rem auto;
  }
  .button-mobile:hover {
      background-color: var(--afp-darker-pink);
  }
/* Section 3 */
#section-3 {
  padding: 3rem 0;
}
.bloc-b3 {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  min-height: 425px;
  width: 100%;
}
.slide:nth-child(1) .bloc-b3 {
  background-color:rgb(37, 31, 71) ;
  color: var(--afp-yellow);
}
.slide:nth-child(2) .bloc-b3 {
  background-color: rgb(0, 15, 74);
  color: rgb(50, 90, 255);
}
.slide:nth-child(3) .bloc-b3 {
  background-color: rgb(0, 87, 99);
  color: rgb(135, 235, 250);
}
.slide:nth-child(4) .bloc-b3 {
  background-color: rgb(122, 0, 0);
  color: rgb(58, 152, 224);
}
.slide:nth-child(5) .bloc-b3 {
  background-color: rgb(255, 160, 80);
  color: rgb(255, 82, 27);
}
.slide:nth-child(6) .bloc-b3 {
  background-color: rgb(0, 15, 72);
  color: rgb(125, 250, 175);
}
.slide:nth-child(7) .bloc-b3, .slide:nth-child(8) .bloc-b3 {
  background-color: #333;
  color: var(--afp-white);
}
.text-b3 {
  padding: 0 0 1rem 2rem;
  max-width: 47%;
  flex: 1 1 0px;
  display: flex;
  flex-direction: column;
}
.h2-b3 {
  font-weight: 900;
  font-size: 10rem;
  max-height: 153px;
  position: relative;
  right: 4rem;
}
.h2-b3.even {
  right: 0;
  align-self: flex-end;
  left: 3rem;
}
.bloc-b3 h3 {
  font-weight: 900;
  font-size: 2.5rem;
  /* margin: 1rem 0; */
}
.para-b3 {
  font-size: 1.1rem;
  color: var(--afp-white);
}
.button-b3 {
  font-size: 1.8 rem;
  background-color: var(--afp-white);
  color: rgb(37, 31, 71);
  padding: 12px 22px;
  width: fit-content;
  width: -moz-fit-content;
  border-radius: 20px;
  margin-top: 1rem;
}
.button-b3:hover {
  background-color: var(--afp-secondary-grey-10);
}
@media screen and (max-width: 1172px) {
  .bloc-b3 {
      flex-direction: column;
      position: relative;
      width: 100%;
  }
  .img-b3 {
      width: fit-content;
      width: -moz-fit-content;
      margin: auto;
  }
  .h2-b3 {
      position: absolute;
      top: -23px;
      right: 2rem;
  }
  .text-content-b3 {
      text-align: center;
  }
  .button-b3 {
      margin: 1rem auto;
  }
  .text-b3 {
      padding: 1rem;
      max-width: 90%;
      margin: auto;
      order: 2;
  }

}
@media screen and (max-width: 500px) {
  .h2-b3 {
      font-size: 5rem;
  }
}
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.slides {
  display: flex;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.slide {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  margin-right: 0px;
  box-sizing: border-box;
  background: white;
  transform-origin: center center;
  transform: scale(1);
  scroll-snap-align: center;
  padding: 14rem 0 0;
}

/* .slide__text {
  font-size: 40px;
  font-weight: bold;
  font-family: sans-serif;
} */

.slide a {
  background: none;
  border: none;
}

a.slide__prev,
.slider::before {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  right: 8%;
}

a.slide__next,
.slider::after {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  right: 5%;
}

.slider::before,
.slider::after,
.slide__prev,
.slide__next {
  position: absolute;
  bottom: 8%;
  width: 35px;
  height: 35px;
  border: solid white;
  border-width: 0 4px 4px 0;
  padding: 3px;
  box-sizing: border-box;
}

.slider::before,
.slider::after {
content: '';
z-index: 1;
background: none;
pointer-events: none;
}


/* Section 4 */
#section-4 {
  padding: 3rem 0;
}
#section-4 h3 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.8rem;
}
.bloc-b4 {
  display: flex;
  flex-direction: row;
}
.minibloc-b4-1 {
  background: url(/communication/products/sports/afp-sport-cycle.jpg);
}
.minibloc-b4-2 {
  background: url(/communication/products/sports/afp-sport-foot.jpg); 
}
.minibloc-b4-1, .minibloc-b4-2 {
  flex: 1 1 0px;
  min-height: 430px;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
  position: relative;
  color: var(--afp-white);
  filter: brightness(0.9);
}
.button-b4 {
  position: absolute;
  bottom: 10px;
  font-size: 1.5rem;
  background-color: var(--afp-blue);
  padding: 12px 22px;
  width: fit-content;
  width: -moz-fit-content;
  border-radius: 25px;
  margin-top: 1rem;
}
.button-b4:hover {
  background-color: var(--afp-blue-darker);
}
@media screen and (max-width: 990px) {
  .bloc-b4 {
      flex-direction: column;
  }
}


#section-5 {
  margin-top: 2rem;
  padding: 2rem 1rem;
  background-color: rgb(34, 34, 34);
  color: var(--afp-white);
}

/* form */
#form-container {
  width: fit-content;
  width: -moz-fit-content;
  margin: auto;
  background-color: #fff;
}
@media screen and (min-width: 768px) {
  #form-container {
      width: 70%;
      max-width: 850px;
  }
}
#form-container form {
  width: 100% !important;
  font-family: 'Source Sans Pro', Arial, sans-serif !important;
  font-size: 16px !important;
  padding: 2rem 1rem;
  max-width: 950px;

}
#form-container  #LblPref_Optin_global div:nth-child(2) span {
  color: #000 !important;
  font-size: 13px !important;
}
#form-container  a {
  color: #325aff !important;
  font-size: 13px !important;
}
#form-container  #LblPref_Optin_global {
  width: 95% !important;
}
#form-container  input, #form-container  textarea, #form-container  select {
  width: 95% !important;
  margin-bottom: 1rem !important;
  height: 40px;
  margin-left: 10px;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #D7D3CF;
}
#form-container label {
  width: auto !important;
}
#LblPref_Optin_global > div:nth-child(2) {
  margin-left: 10px;
}
#form-container  .mktoOffset {
  width: 0px !important;
}
#form-container .mktoFormCol, #form-container .mktoFieldWrap {
  width: 100% !important;
}
#form-container .mktoAsterix {
  float: left;
}
#form-container .mktoButtonRow {
  display: flex;
  height: auto;
}
#form-container .mktoButtonWrap {
  margin: auto !important;
}
#form-container .mktoButtonWrap .mktoButton {
  border: none;
  width: fit-content;
  width: -moz-fit-content;
  background-image: none;
  background-color: var(--afp-pink);
  color: #fff;
  padding: 10px 25px;
  margin: auto;
  margin-top: 15px;
  box-shadow: none;
  border-radius: 20px;
  text-shadow: none;
  font-weight: 700;
}
#form-container .mktoButtonWrap .mktoButton:hover {
  background-color: var(--afp-darker-pink);
}
#form-container option:nth-child(1), #form-container select {
  color: rgb(51, 51, 51) !important; /*#757575*/
  font-style: italic;
}
#form-container select.mktoValid, #form-container option:not(:nth-child(1)){
  color: #000;
  font-style: normal;
}
.mktoOffset,
/* .mktoLabel, */
.mktoAsterix {
  display: none !important;
}
.mktoFieldDescriptor {
  margin-bottom: 0px !important;
}
.mktoGutter {
  display: none !important;
}
.mktoFieldWrap {
  margin-bottom: 8px !important;
}


/* remove drupal title */
.node-type-afp-produit .panel-pane.pane-entity-view.pane-node .line.mb1.bgblue.line.relative.mb2.pt1.pb2.pa0m, .info_social.mb2, #breadcrumb.line.hidem {
  display: none;
}
#main-container .img_margin {
margin: 0 !important;
}

h2.h2-b2 {
color: #000 !important;
}
.text-content-b3 h3 {
color: var(--afp-yellow) !important;
}
.button-b3 a {
color: #000 !important;
}

#section-5 h2.h2-b2 {
  color: #fff !important;
}