body.focusEpicPopup{
  /* overflow-x: hidden; */
}

.focusEpicPopup #header{
  opacity: 0;
}

#toShutIfPopup{
  height: 100%;
  position: relative;
  transition: all .4s ease;
}

body.focusEpicPopup #toShutIfPopup{
  transform: translateX(-100%);
  height: 0;
  overflow: hidden;
}

#epic-popup-wrapper{
  display: block;
  width: 0;
  overflow: hidden;
}

.focusEpicPopup #epic-popup-wrapper{
  width: 100%;
  overflow: visible;
}

/*
#epic-popup-wrapper::before{
  display: block;
  height: 100%;
  width: 0;
  position: absolute;
  top: 0;
  left: 50%;
  content: '';
  background: #000000;
  transform: translateX(-50%) skewX(-15deg);
  transition: all .2s ease 3s;
}

#epic-popup-wrapper::after{
  display: block;
  height: 100%;
  width: 0;
  position: absolute;
  top: 0;
  left: 50%;
  content: '';
  background: #000000;
  transform: translateX(-50%) skewX(-15deg);
  transition: all .2s ease 3s;
}

.focusEpicPopup #epic-popup-wrapper::before{
  left: 0;
  width: 100%;
  transform: translateX(0) skewX(0);
}
*/

#epic-popup{
  position: relative;
  z-index: 45;
  opacity: 0;
  transition: all .3s ease .6s;
}

.focusEpicPopup #epic-popup{
  opacity: 1;
  min-height: 100vh;
}

@media only screen and (min-width: 600px) {
  #reference-container{
    display: flex;
    justify-content: space-between;
  }
}

#reference-speech{
  margin-bottom: 30px;
  padding-top: 30px;
}

@media only screen and (min-width: 600px) {
  #reference-speech{
    width: 35%;
    margin-bottom: 0;
    padding-top: 80px;
  }
}

#reference-speech-sticky{
  position: sticky;
  top: 80px;
}

@media only screen and (min-width: 600px) {
  #reference-visuals{
    width: 55%;
  }
}

#reference-speech h2{
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2.1875rem;
  font-size: clamp(2.1875rem, 1.4583333333333335rem + 2.430555555555556vw, 4.375rem);
  border-bottom: 1px solid #FFFFFF;
  padding-bottom: 20px;
}

@media only screen and (min-width: 600px) {
  #reference-speech h2{
    padding-bottom: 30px;
  }
}

#reference-speech h3{
  font-weight: 800;
  margin: 20px 0;
  font-size: 1.25rem;
  font-size: clamp(1.25rem, 1.0416666666666667rem + 0.6944444444444445vw, 1.875rem);
}

@media only screen and (min-width: 600px) {
  #reference-speech h3{
    margin: 30px 0;
  }
}

#reference-speech a{
  color: var(--bleu);
}

#reference-speech a:hover{
  text-decoration: underline;
}

#reference-close {
  border: 2px solid #FFFFFF;
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all .2s ease;
  transform: rotate(180deg);
  margin-bottom: 20px;
}

@media only screen and (min-width: 600px) {
  #reference-close {
    width: 40px;
    height: 40px;
  }
}

#reference-close:hover{
  background: #FFFFFF;
}


#reference-close:hover span{
  background: #000000 !important;
}


#reference-close span:nth-child(2){
  width: 15px;
  height: 1px;
  background: #FFFFFF;
  display: block;
}

@media only screen and (min-width: 600px) {
  #reference-close span:nth-child(2){
    width: 16px;
  }
}

#reference-close span:nth-child(1){
  height: 1px;
  width: 8px;
  transform: rotate(45deg) translateY(13px) translateX(1px);
  position: absolute;
  right: 0;
  top: 0;
  transform-origin: left;
  background: #FFFFFF;
  display: block;
}
/*
@media only screen and (min-width: 600px) {
  #reference-close span:nth-child(1){
    width: 15px;
    transform: rotate(45deg) translateY(9px);
  }
}
*/

#reference-close span:nth-child(3){
  height: 1px;
  width: 8px;
  transform: rotate(-45deg) translateY(-14px) translateX(2px);
  position: absolute;
  right: 0;
  bottom: 0;
  transform-origin: left;
  background: #FFFFFF;
  display: block;
}

/*
@media only screen and (min-width: 600px) {
  #reference-close span:nth-child(3){
    width: 15px;
    transform: rotate(-45deg) translateY(-9px);
  }
}
*/
