/* correction du scroll pour arriver directement au début de la section */
html {
  scroll-padding-top: 6rem;
}

.redPol {
    color: #DA291C;
}

.bluePol {
    color: #002060;
}

.darkGreyPol{
  color:rgb(58, 57, 57)
}

.invisibleButton{
  border:none;
  background-color: inherit;
}

.calendar{
  background-image: url('/dist/assets/img/calendrier/background.jpeg');
  font-family: 'Script MT Bold', cursive;
}

.modalRedBg{
  background-color: rgb(249,217,218);
  border: #002060 ;
}

.modalBlueBg{
  background-color: rgb(221,226,239);
  border: #002060 ;
}


/* animations */

.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #002060;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

a:hover {
    color: #002060
}

.focusOnHover:hover
{
  transition: transform 0.25s ease-out;
  transform: translateY(-3px);
}

 /* Scrollbar */
 ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: #F2F2F2;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background-color: #002060;
    border-radius: 5px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background-color: #8C8C8C;
  }

  /* backgrounds */
  
.redBg {
  background-color: #DA291C;
  width: fit-content;
}



.visitedBlack {
  color: black;
  text-decoration: none; 
}



.visitedBlack:visited {
  color: black; 
}

.visitedWhite {
  color: white;
  text-decoration: none; 
}


.visitedWhite:visited {
  color: white; 
}


.blueBg {
  background-color: #002060;
  text-decoration: none;
}

/* img-spin */
.spin-image {
  transition: transform 0.5s ease-in-out;
}

.spin-image:hover {
  transform: rotateY(360deg);
}



.imgWrapper {
  perspective: 1000px;
  position: relative;
}

.imgWrapper:hover .image {
  transform: rotateY(20deg);
  transition: all 0.5s ease-out;
}

.imgWrapper .image {
  transition: all 0.5s ease-out;
  transform-origin: 0 0;
}

/* media */

@media (max-width: 375px) {
  .police {
      font-size: 12.8px
  }

  .calendar {
    font-size: 17px
  }

  .policeButton{
      font-size: 12px
  }

  #video{
      width: 310px;
      height:173px
  }

  .navBarMobileContainer {
      display:flex;
      justify-content:end !important;
    
  }

  .navBarMobileTitle{
      margin-right: auto;
      margin-left: auto;
  }

  .policeVeryCaptionLittle{
      font-size: 10px
  }

  .card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
  }

}


@media (min-width: 375px) {
  .police {
      font-size: 11px
  }

  .calendar {
    font-size: 20px
  }

  .policeButton{
      font-size: 13px
  }

  #video{
      width: 360px;
      height:202px
  }

  .policeVeryCaptionLittle{
      font-size: 11px
  }


}

@media (min-width: 425px) {
  .police {
      font-size: 14px
  }

  .policeButton{
      font-size: 14px
  }

  .calendar {
    font-size: 22px
  }

  #video{
      width: 360px;
      height:202px
  }

  .policeVeryCaptionLittle{
      font-size: 12px
  }

}

@media (min-width: 768px) {
  .police {
      font-size: 20px
  }

  .policeButton{
      font-size: 17px
  }

  #video{
      width: 460px;
      height:270px
  }

  .policeVeryCaptionLittle{
      font-size: 12px
  }
}

@media (min-width: 1024px) {
  .police {
      font-size: 18px
  }

  .policeButton{
      font-size: 18px
  }

  #video{
      width: 460px;
      height:270px
  }

  .policeVeryCaptionLittle{
      font-size: 13px
  }

  .navbar-expand-lg .navbar-collapse {
      display: flex!important;
      flex-basis: auto;
      justify-content: end;
  }

}

@media (min-width: 1440px) {
  .police {
      font-size: 22px
  }

  .policeButton{
      font-size: 19px
  }

  #video{
      width: 460px;
      height:270px
  }

  .policeVeryCaptionLittle{
      font-size: 16px
  }
}

.virageBg{
  background-color: #CC9933;
}

.virageBg:hover{
  background-color: #be8f30;
}

.podcastBg{
  background-color: #DA291C;
}

.podcastBg:hover{
  background-color: #ad1f15;
}

.text-book{
  text-align: justify;
}

.auteur{
  display:flex;
  justify-content: end;
  border-top: 1px solid;
  border-bottom: 1px solid;
  padding:1px
}

.moduleCard{
  border: 1px solid #DDE2E5;
  padding: 40px;
  border-radius: 4px;
  /* text-align: center; */
  background-color: white;
    margin-top: 1rem;
  }

  .bG{
      background-color: rgba(0,0,0,.03)
  }

  
.greyPol{
  color:#8C8C8C
}

.card-img-top {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}


/* Styles pour les écrans larges (largeur supérieure à 992px) */
@media (max-width: 600px) {
  .fixed-card-image {
    max-width: 100%; /* La largeur maximale de l'image est de 100% */
    height: auto; /* La hauteur s'ajuste automatiquement pour conserver la proportion */
  }
}