@font-face {
  font-family: "Ubisoft";
  src: url("Ubisoft.ttf") format("TrueType");
}

html {
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle, rgb(0, 153, 255) 70%, rgb(0, 0, 0));
  background-attachment: fixed;
  margin: 0 auto;
  font-family: Ubisoft;
  color: white;
}

p,
h1 {
  margin: 0;
}

/*------HEADER-------*/

header {
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(30px);
  height: 80px;
  width: 97%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  border-radius: 0 0 15px 15px;
  z-index: 9;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);
  flex-wrap: nowrap;
}

#main_logo {
  height: 80%;
  padding-left: 20px;
}

header nav {
  height: 100%;
  width: 500px;
  padding: 0 100px 0 50px;
  overflow: hidden;
}

header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-between;
  align-items: last baseline;
  width: 100%;
  height: 100%;
  flex-wrap: nowrap;
}

header nav ul li {
  padding: 0 0 15px 0;
  margin: 0;
}

header a {
  padding: 15px;
  font-size: larger;
  color: white;
  text-decoration: underline 0px rgba(255, 255, 255, 0);
  text-underline-offset: 15px;
  transition: 300ms ease-out;
  border-radius: 15px 15px 0 0;
}

header a:hover {
  text-decoration: underline 3px rgba(255, 255, 255, 1);
  text-underline-offset: 5px;
}

.activeLink {
  color: black;
  background-color: white;
  box-shadow: inset 0px -5px 20px -10px rgba(0, 0, 0, 0.5);
}

.activeLink:hover {
  text-decoration-color: rgba(0, 0, 0, 1);
}

/*------HEADER-------*/

/*------MAIN-------*/

#cadre_tableau {
  background: linear-gradient(rgb(0, 153, 255), rgb(0, 123, 206));
  color: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

table {
  background-color: rgba(0, 0, 0, 0.2);
}

.fond_ubi {
  background-image: url("../images/Ubi_repeat.jpg");
  background-repeat: repeat;
  background-size: auto 819px;
  background-position: 0 0;
  animation: scrollBackground 200s linear infinite;
}

@keyframes scrollBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1370px 0;
  }
}

.fond_ubi article {
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 25px;
  color: white;
}
/*Parallax accueil*/

.incrustation,
.fumee {
  mix-blend-mode: screen;
  position: absolute;
  width: 100%;
  z-index: -1;
  opacity: 70%;
  height: 100%;
}

.fumee {
  opacity: 100%;
  padding-top: 0;
}

.source {
  position: absolute;
  color: white;
  z-index: 2;
  bottom: 0;
  font-size: smaller;
  margin: 5px;
}

.source a {
  color: white;
}

#p_trial {
  position: relative;
  width: 100%;
  background-image: url("../images/bplantrial_fusion.jpg");
  padding: 0;
  border-radius: 15px 15px 0 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: repeat;
  background-size: 100%;
  height: 600px;
  overflow: hidden;
  z-index: 1;
}

#p_trial div {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(rgba(255, 255, 255, 0) 50%, rgb(0, 0, 0) 150%);
}

#p_trial div h2 {
  color: white;
  font-size: 10vw;
  margin: auto auto;
  mix-blend-mode: difference;
}

#p_trial div .personnage_1P {
  height: 150%;
  padding-top: 10px;
}

#p_rayman {
  position: relative;
  width: 100%;
  background-image: url("../images/AP_rayman_legend.jpg");
  padding: 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: repeat;
  background-size: 100%;
  height: 600px;
  overflow: hidden;
  z-index: 1;
}

#p_rayman div {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(rgba(255, 255, 255, 0) 50%, rgb(0, 0, 0) 150%);
}

#p_rayman div h2 {
  text-align: center;
  color: white;
  font-size: 8vw;
  margin: auto auto;
  mix-blend-mode: difference;
}

#p_rayman div img {
  height: 700px;
  margin-top: 0;
}

#p_rayman .source {
  right: 0;
}

#p_r6 {
  position: relative;
  width: 100%;
  background-image: url("../images/AP_R6.jpg");
  padding: 0;
  border-radius: 0 0 15px 15px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: repeat;
  background-size: 100%;
  height: 600px;
  overflow: hidden;
  z-index: 1;
}

#p_r6 #R6_p_div {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(rgba(255, 255, 255, 0) 50%, rgb(0, 0, 0) 150%);
}

#p_r6 div #rejoin_nous_div h2 {
  text-align: center;
  color: white;
  font-size: 8vw;
  margin: auto auto;
  mix-blend-mode: difference;
}

#p_r6 div img {
  height: 100%;
  margin-top: 0;
}

#p_r6 .source {
  width: 100%;
  text-align: center;
}

#rejoin_nous_div {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#rejoin_nous_div a {
  margin-bottom: 60px;
  padding: 10px 40px 25px 40px;
  border-radius: 30px;
  background-color: rgb(0, 153, 255);
  box-shadow: inset rgba(0, 0, 0, 0.5) 0 -5px 5px;
  font-size: 20px;
  color: white;
  transition: 0.2s ease;
  width: fit-content;
  margin: 80px auto;
}

#rejoin_nous_div a:hover {
  background-color: white;
  color: rgb(0, 153, 255);
}

#rejoin_nous_div a:active {
  padding: 15px 40px 20px 40px;
  background-color: rgb(0, 153, 255);
  box-shadow: inset rgba(0, 0, 0, 0.5) 0 0px 5px;
  color: white;
}

/* désactive le parallax pour mobile (incompatibilité) */
@media only screen and (max-device-width: 1366px) {
  #p_r6,
  #p_rayman,
  #p_trial {
    background-attachment: scroll;
  }
}

/*fin parallax*/

main {
  background-color: white;
  color: black;
  border-radius: 15px;
  margin: 25px 0;
}

article {
  font-size: x-large;
  padding: 50px;
  margin: 0 auto;
  max-width: 1080px;
}

article h1 {
  text-align: center;
  font-size: 200%;
  padding-bottom: 25px;
}

#p_trial,
#p_rayman,
#p_r6 {
  box-shadow: 0 10px 10px -10px;
}

.top_title {
  margin: 0px;
  text-align: center;
  padding: 5px;
  margin: 0 auto;
  font-size: xx-large;
}

.top_title h2 {
  text-shadow: 5px 0 #fff, -5px 0 #fff, 0 5px #fff, 0 -5px #fff, 2px 2px #fff,
    -2px -2px #fff, 2px -2px #fff, -2px 2px #fff;
}

#gpe_lapins {
  background: url("../images/Lapins-groupe.gif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 700px;
}

#lapin_canard {
  position: absolute;
  bottom: -220px;
  right: -340px;
  scale: 50%;
  z-index: -1;
}

/*------MAIN-------*/

/*------CONTACT------*/

#form_contact {
  position: relative;
}

article form {
  width: 400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  background: linear-gradient(rgb(0, 153, 255), rgb(0, 123, 206));
  color: white;
  padding: 25px;
  border-radius: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

article form div {
  margin-top: 30px;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
}

.radio {
  margin: 10px auto 0 auto;
  width: fit-content;
  height: fit-content;
  border: white solid 4px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  box-shadow: 0 0 0px inset black;
}
.radio input {
  display: none;
}

.radio label {
  font-size: smaller;
  padding: 10px 16px;
  border-right: 3px solid #ffffff;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0;
}
.radio label:last-of-type {
  border-right: 0;
}

.radio label:hover {
  background: #ffffff;
  color: rgb(0, 153, 255);
}
.radio input:checked + label {
  background: #ffffff;
  color: rgb(0, 153, 255);
  box-shadow: 0 0 10px inset rgba(0, 0, 0, 0.5);
}

#en-tete {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
}

#en-tete_image {
  margin-top: 0;
}

#en-tete div {
  width: 48%;
  margin-top: 0;
}

form label {
  margin-bottom: 10px;
}

form span {
  color: rgb(190, 0, 0);
}

input,
textarea {
  border: none;
  height: 40px;
  border-radius: 10px;
  padding: 5px;
  font-size: large;
  box-shadow: inset 0 1px 5px rgba(5, 83, 134, 0.8);
}

textarea {
  height: 100px;
  resize: none;
}

#submit {
  background-color: white;
  border-radius: 25px;
  color: rgb(0, 153, 255);
  font-size: larger;
  font-weight: bold;
  height: 50px;
  border: solid 0px rgb(0, 153, 255);
  transition: 0.2s ease;
}

#submit:hover {
  background-color: rgb(0, 153, 255);
  color: white;
  border: solid 5px white;
}

.erreur {
  background-color: red;
  padding: 6px 0;
  color: white;
  box-shadow: inset 0 0 5px rgb(167, 0, 0);
  text-align: center;
  margin-top: 30px;
  border-radius: 10px;
}

.succes {
  background-color: rgb(0, 189, 0);
  padding: 6px 0;
  color: white;
  box-shadow: inset 0 0 5px green;
  text-align: center;
  margin-top: 30px;
  border-radius: 10px;
}

.credits {
  text-align: center;
}
/*------CONTACT-------*/

/*------FOOTER-------*/

#button_top{
  width: fit-content;
  margin: 40px auto;

  a{
    background-color: white;
    padding: 15px;
    border-radius: 30px;
    text-decoration: none;
    color: rgb(0, 123, 206);
    border: white solid 3px;
    transition: 0.2s ease;
  }

  a:hover{
    background-color: rgb(0, 123, 206);
    color: white;
  }
}

footer {
  background: linear-gradient(rgba(0,0,0,0.6), black); 
  backdrop-filter: blur(30px);
  border-radius: 15px 15px 0 0;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer div{
  width: 100%;
}

footer div ul{
  list-style: none;
  padding: 0;
}

footer a {
  color: rgb(173, 173, 173);
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

#bas_footer{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  nav{
    width: fit-content;
    text-align: left;

    a{
      color: white;
    }
  }

  ul{
    margin: 0 100px;
  }

  ul img{
    width: 40px;
    border: white solid 2px;
    border-radius: 30%;
    margin: 7px 0;
  }

  #logo_iut{
    width: 150px;
    filter: brightness(0%) invert(100%);
    margin-top: 40px;
  }
}

/*------FOOTER-------*/

/*------Form_Galerie-----*/

.desc_gal{
text-align: center;
}

#image {
  background-color: white;
  border-radius: 40px;
  height: 200px;
}

input[type="file"] {
  content-visibility: hidden;
  cursor: pointer;
}

article form {
  position: relative;
}

#b_upload {
  position: absolute;
  z-index: 2;
  top: 25%;
  left: 33%;
  width: 150px;
  cursor: pointer;
}

/*------Form_Galerie-----*/

/*-----img galerie------*/

#div_galerie {
  width: 100%;
  background: linear-gradient(rgba(0,0,0,0), rgb(0, 153, 255), rgb(0, 40, 66));;
}

#affichage_img {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  transition: 0.2s ease;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden;
}

#affichage_img div {
  width: 510px;
  height: 300px;
  margin: 20px auto;
  filter: grayscale(50%);
  transition: 0.2s ease;
  overflow: hidden;
  border-radius: 15px;
  z-index: 2;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

#affichage_img div:hover {
  filter: grayscale(0);
  transition: 0.2s ease;
  border-radius: 0;
  cursor: pointer;
}

#affichage_img div img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  scale:100%;
  transition: 0.2s ease;
}


#affichage_img div:hover img{
  scale:110%;
}

#sous_galerie{
  position: relative;
  max-width: 1080px;
  height: 80px;
  margin: 0 auto;
}

#lapin_galerie{
  position: absolute;
  pointer-events: none;
  width: 100%;
  z-index:3;
  bottom: 0;
}

.modal {
  display: none; /* Caché par défaut */
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 20px rgb(0, 153, 255);
  border-radius: 25px;
}

.close {
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

#download-btn {
  background-color: rgb(0, 123, 206);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  margin-top: 15px;
}


/** PARTENAIRE */

#intro_part {
  
  color: black;
  background: linear-gradient(rgb(244, 251, 255), rgb(212, 212, 212));
  text-align: center;
  padding: 50px 0;
  h1{
    font-size: 60px;
  }
  p{
    font-size: larger;
    margin: 10px 0;
  }
}

.cards {
  grid-template-columns: 1fr 1fr;
  display: grid;
  grid-gap: 30px;
  width: 100%;
  color: white;
  position: relative;
  margin-bottom: 15px;

  .profile-image {
    left: -25px;
    top: 20px;
  }

  a{
    text-decoration: none;
  }

  .card {
    border: solid 4px rgb(0, 153, 255);
    background-color: white;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    flex-basis: calc(50% - 15px);
    position: relative;
    height: 300px;
    transform: scale(1);
    transition: all 0.6s ease-in-out;
    color: black;

    .banner {
      border-radius: 27px 27px 0 0;
      width: 100%;
      height: 150px;
    }

    p {
      text-align: center;
      text-transform: capitalize;
      padding: 15px;
      font-size: small;
    }

    h2 {
      padding-left: 10px;
      text-align: center;
      margin: 0;
    }
  }

  .card:hover {
    transform: scale(1.1);
  }
}

.profile-image {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgb(0, 153, 255);
  background-color: white;
  top: -15px;
  left: -5px;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-pdf {
  padding: 0;
  margin: 20px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.label {
  background-color: rgb(0, 89, 148);
  box-shadow: inset 0 0 10px rgb(0, 153, 255);
  border: 2px solid rgb(0, 153, 255);
  display: flex;
  align-items: center;
  border-radius: 50px;
  width: 160px;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 5px;
  position: relative;
}

.label::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  width: 8px;
  height: 8px;
  transition: all 0.4s ease;
  border-radius: 100%;
  margin: auto;
  opacity: 0;
  visibility: hidden;
}

.label .input {
  display: none;
}

.label .title-btn {
  font-size: 12px;
  color: #fff;
  transition: all 0.4s ease;
  position: absolute;
  right: 12px;
  bottom: 20px;
  text-align: center;
}

.label .title-btn:last-child {
  opacity: 0;
  visibility: hidden;
}

.label .circle {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  background-color: rgb(0, 153, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  overflow: hidden;
}

.label .circle .icon {
  color: #fff;
  width: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label .circle .square {
  aspect-ratio: 1;
  width: 15px;
  border-radius: 2px;
  background-color: #fff;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.label .circle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: rgb(0, 123, 206);
  width: 100%;
  height: 0;
  transition: all 0.4s ease;
}

.label:has(.input:checked) {
  width: 57px;
  animation: installed 0.4s ease 3.5s forwards;
}

.label:has(.input:checked)::before {
  animation: rotate 3s ease-in-out 0.4s forwards;
}

.label .input:checked + .circle {
  animation: pulse 1s forwards, circleDelete 0.2s ease 3.5s forwards;
  rotate: 180deg;
}

.label .input:checked + .circle::before {
  animation: installing 3s ease-in-out forwards;
}

.label .input:checked + .circle .icon {
  opacity: 0;
  visibility: hidden;
}

.label .input:checked ~ .circle .square {
  opacity: 1;
  visibility: visible;
}

.label .input:checked ~ .title-btn {
  opacity: 0;
  visibility: hidden;
}

.label .input:checked ~ .title-btn:last-child {
  animation: showInstalledMessage 0.4s ease 3.5s forwards;
}

@keyframes pulse {
  0% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    scale: 1;
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }
  100% {
    scale: 0.95;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes installing {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(-90deg) translate(27px) rotate(0);
    opacity: 1;
    visibility: visible;
  }
  99% {
    transform: rotate(270deg) translate(27px) rotate(270deg);
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes installed {
  100% {
    width: 150px;
    border-color: rgb(35, 174, 35);
  }
}

@keyframes circleDelete {
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes showInstalledMessage {
  100% {
    opacity: 1;
    visibility: visible;
    right: 56px;
  }
}
