@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

html {
    scroll-behavior: smooth;
}

:target:before {
    content: "";
    display: block;
    height: 130px; 
    margin: -130px 0 0;
}

a {
    text-decoration: none;
    color: inherit;
}

a ion-icon[name="logo-twitter"] {
    color: black; /* Pour hériter de la couleur du texte de l'élément parent */
    outline: none; /* Pour enlever l'effet bleu lors du focus ou du clic */
}

a ion-icon[name="logo-instagram"] {
    color: black; /* Pour hériter de la couleur du texte de l'élément parent */
    outline: none; /* Pour enlever l'effet bleu lors du focus ou du clic */
}

a ion-icon[name="logo-youtube"] {
    color: black; /* Pour hériter de la couleur du texte de l'élément parent */
    outline: none; /* Pour enlever l'effet bleu lors du focus ou du clic */
}

body {
    position: relative;
    font-family: "Poppins", sans-serif;
    background-color: #F3F3F3;
    top: 0;
}

header {
    margin: 0 auto;
    width: 100%;
    padding: 10px 0px;
    min-width: 330px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 5px 0 black;
    z-index: 1;
    transition: 1s;
}

header .elem_header:nth-child(1) img {
    width: 100px;
    margin-left: 10px;
}

header .elem_header:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
    font-size: 20px;
    transition: left 0.5s;
}

.elem_header.menu p a{
    width: 100%;
    height: 10px;
}

header .elem_header:nth-child(2).open_menu {
    left: 0;
}

.elem_header p {
    cursor: pointer;
    text-align: center;
}

header .elem_header:nth-child(2) p:hover {
    color:orange;
}

header .elem_header:nth-child(2) p::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    transform: scale(0);
    transform-origin: left;
    transition: 0.3s;
}

header .elem_header:nth-child(2) p:hover::after {
    transform: scaleX(1);
}

header .elem_header:nth-child(3) {
    background: orange;
    padding: 8px 13px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

header .elem_header:nth-child(3).open_menu {
    pointer-events: none;
}

header .elem_header:nth-child(3):hover {
    background: white;
    color: orange;
    box-shadow: inset 0 0 0 1px orange;
}

header ion-icon{
    display: none;
    font-size: 40px;
    cursor: pointer;
    border-radius: 15px;
    padding: 5px;
}

header ion-icon:hover {
    background-color: #F3F3F3;
    box-shadow: 0 0 5px 0px black;
}

header ion-icon:active {
    transform: scale(0.8);
}

p {
   margin: 0;
}

.form {
    background: linear-gradient(to bottom right, rgb(255, 189, 66), white);
    border-radius: 20px;
    width: 500px;
    max-height: 90%;
    min-height: 500px;
    top: -650px;
    left: 50%;
    transform: translate(-50%, 0%);
    transition: 0.5s;
    position: fixed;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 5px 1px;
    z-index: 2;
}

.form.open {
    top: 50%;
    right: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    visibility: visible;
}

.form.open2 {
    visibility: hidden;
    opacity: 0;
    top: 50%;
    left: 0%;
    transform: translate(-100%, -50%);
}

header.open {
    filter: blur(5px);
    pointer-events: none;
}

.delete_form {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 45px;
    cursor: pointer;
    transition: 1s;
    border-radius: 15px;
}

.delete_form:hover {
    background-color: white;
    box-shadow: 0 0 0 1px black;
}

.cercle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    animation: cercle 11s ease-in infinite;
    z-index: -1;
    position: absolute;
    opacity: 0.3;
}

.form .cercle {
    background: linear-gradient(orange,white);
}

.form_sign .cercle {
    background: linear-gradient(#4277FF,white);
}


form .cercle.a {
    left: 10%;
    animation-delay: 1s;
}

form .cercle.b {
    left: 40%;
    top: 450px;
    animation-delay: 0.5s;
}

form .cercle.c {
    left: 65%;
    top: 200px;
}

@keyframes cercle {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(0);
    }
  }

.form h2 {
    font-weight: 600;
    z-index: 1;
    font-size: 40px;
    margin: 0 auto;
    margin-top: 20px;
}

.form div:nth-child(6) {
    z-index: 1;
    left: 0;
    margin-left: 40px;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.form div:nth-child(6) p {
    font-weight: 600;
    font-size: 20px;
}

.form div:nth-child(6) ion-icon {
    font-size: 20px;
}

.zone_text {
    z-index: 1;
    text-align: left;
    padding-left: 15px;
    margin-top: 10px;
    height: 50px;
    background-color: transparent;
    border: 1px solid #615A4E;
    border-radius: 15px;
    margin-left: 40px;
    margin-right: 40px;
    transition: 0.5s;
    font-size: 20px;
}

.zone_text:focus {
    box-shadow: 0 0 10px 0px;
}

.zone_text:focus::placeholder {
    opacity: 0.3;
}

::placeholder {
    color: black; /* Couleur du texte du placeholder */
}

.email:focus {
    border: 1px solid black;
    box-shadow: 0 0 10px 0 black;
}

.email:focus::placeholder {
    opacity: 0.3;
}

.email[type="text"]:focus {
    outline: none; /* Supprime la bordure lorsque qu'on entre du texte*/
}

.form div:nth-child(9) {
    z-index: 1;
    left: 0;
    margin-left: 40px;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.form div:nth-child(9) p {
    font-weight: 600;
    font-size: 20px;
}

.form div:nth-child(9) ion-icon {
    font-size: 20px;
}

.form div:nth-child(12) {
    display: block;
    cursor: pointer;
    z-index: 1;
    margin: 0 auto;
}

.form div:nth-child(12) p {
    margin-top: 10px;
    text-align: center;
}

.form div:nth-child(12):hover p {
    font-weight: 600;
}

.form div:nth-child(12):hover div {
    width: 100%;
    height: 1px;
    background-color: black;
    margin: 0 auto;
    width: 178px;
}

.btn {
    margin: 0 auto;
    margin-top: 40px;
    padding: 10px 120px;
    border-radius: 20px;
    background-color: white;
    z-index: 1;
    box-shadow: 0 0 0 1px gray;
    cursor: pointer;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    border: none;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: black;
}

.btn:hover {
    scale: 0.9;
    box-shadow: 0 0 0 2px black;
}

.btn .carre {
    height: 100%;
    aspect-ratio: 1/1;
    background-color: transparent;
    position: absolute;
    top: 0px;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 0;
}

.btn .carre:nth-child(1) {
    transform: translateX(-272px);
}

.btn .carre:nth-child(2) {
    transform: translateX(-86px);
}

.btn .carre:nth-child(3) {
    transform: translateX(100px);
}

.carre div {
    width: 200px;
    height: 35px;
    background: blue;
    rotate: -45deg;
    position: absolute;
    box-shadow: inset 0 0 40px 10px white;
    z-index: 0;
    opacity: 0.2;
}

.btn:hover .carre {
    animation: trait 2s infinite;
}

@keyframes trait {
    0% {
        margin-left: 0px;
      }
    50% {
        margin-left: 350px;
    }
    100% {
      margin-left: 0px;
    }
  }

.inscrire {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-top: 20px;
    gap: 5px;
    font-weight: 600;
    cursor: pointer;
}

.inscrire p:nth-child(2):hover {
    color: blue;
}

.inscrire p:nth-child(2)::after {
    content: "";
    position: absolute;
    display: block;
    width: 74px;
    height: 1px;
    background-color: blue;
    transform: scale(0);
    transform-origin: left;
    transition: 0.3s;
}

.inscrire:hover p:nth-child(2):hover::after {
    transform: scaleX(1);
}

.reseau {
    margin: 0 auto;
    margin-top: 40px;
    gap: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.reseau ion-icon {
    cursor: pointer;
}

.reseau ion-icon:hover {
    scale: 1.5;
    transition: 0.5s;
    animation: reseau 1s;
}

@keyframes reseau {
    0%{
        rotate: 0;
    }
    33%{
        rotate: -25deg;
    }
    66%{
        rotate: 25deg;
    }
    100%{
        rotate: 0;
    }
}

.res_form {
    z-index: 1;
    margin: 0 auto;
    margin-bottom: 15px;
    max-width: 90%;
    color: red;
    font-weight: bold;
    box-shadow: 0 0 10px 0 red;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 17px;
    text-align: center;
}

.form_sign {
    width: 500px;
    height: 95%;
    min-height: 558px;
    background: linear-gradient(to bottom right, #4277FF, yellow);
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 50%;
    right: 0%;
    transform: translate(100%,-50%);
    transition: 0.5s;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 0 5px 1px;
    z-index: 2;
}

.form_sign h2{
    font-weight: 600;
    z-index: 1;
    font-size: 40px;
    margin: 0 auto;
    margin-top: 20px;
}

.form_sign.open2 {
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 1;
    visibility: visible;
}

.delete_form_create {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 50px;
    transition: 1s;
    border-radius: 15px;
    cursor: pointer;
}

.delete_form_create:hover {
    background-color: white;
    box-shadow: 0 0 0 1px;
}

.form_sign div:nth-child(3) {
    margin-top: 20px;
    display: flex;
    align-items: center;
    margin-left: 40px;
    font-size: 20px;
    gap: 15px;
    font-weight: 600;
}

.form_sign div:nth-child(5) {
    display: none;
}

.form_sign div:nth-child(6) {
    margin-top: 20px;
    display: flex;
    align-items: center;
    margin-left: 40px;
    font-size: 20px;
    gap: 15px;
    font-weight: 600;
}

.form_sign div:nth-child(9) {
    margin-top: 20px;
    display: flex;
    align-items: center;
    margin-left: 40px;
    font-size: 20px;
    gap: 15px;
    font-weight: 600;
}

.form_sign div:nth-child(11) {
    margin-top: 20px;
    display: flex;
    align-items: center;
    margin-left: 40px;
    font-size: 20px;
    gap: 15px;
    font-weight: 600;
}

.btn_create {
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px 120px;
    border-radius: 20px;
    background-color: white;
    z-index: 1;
    box-shadow: 0 0 0 1px gray;
    cursor: pointer;
    transition: 0.5s;
    position: relative;
    border: none;
    font-family: "Poppins", sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: black;
}

.btn_create:hover {
    scale: 0.9;
    box-shadow: 0 0 0 2px black;
}

main {
    margin-top: 150px;
    width: 100%;
}

main.open {
    filter: blur(5px);
    pointer-events: none;
}

.intro {
    margin: 0 auto;
    margin-top: 20px; 
    margin-bottom: 20px; 
    width: 80%;
    aspect-ratio: 16/5;
    background-color: transparent;
    overflow-y: scroll;
    padding: 15px;
    border: 1px solid black;
}

main h2 {
    text-align: center;
    font-size: 40px;
}

.trophe {
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
}
.trophe.ldc {
    box-shadow: 0 0 10px 2px #002991;
}
.trophe.bo {
    box-shadow: 0 0 10px 2px #BEAD00;
}
.trophe.cdm {
    box-shadow: 0 0 10px 2px #00D7C0;
}

@media (max-width:630px) {
    .form {
        height: 515px;
        max-width: 90%;
        height: 90%;
    }
    .form div:nth-child(5) {
        display: none;
    }
    .form div:nth-child(6) {
        margin-top: 15px;
    }
    .form div:nth-child(8) {
        display: none;
    }
    .form div:nth-child(9) {
        margin-top: 15px;
    }
    .form div:nth-child(13) {
        display: none;
    }
    .reseau {
        margin-top: 5%;
    }
    .btn {
        margin-top: 5%;
        padding: 0px 70px;
        min-height: 40px;
    }
    .btn p {
        font-size: 15px;
    }
    header .elem_header:nth-child(2) {
        position: absolute;
        display: block;
        align-items: center;
        top: 0;
        left: -100%;
        height: 100vh;
        background-color: #020F30;
        padding: 20px 0;
        width: 50%;
        color: white;
        z-index: 1;
    }
    header .elem_header:nth-child(2) p {
        margin-top: 40px;
    }
    header .elem_header:nth-child(2) p::after {
        transform-origin: center;
        background-color: white;
    }
    
    header .elem_header:nth-child(2) p:hover::after {
        transform: scaleX(0.4);
    }
    header ion-icon {
        display: flex;
    }

    .form_sign {
        max-width: 90%;
        height: 95%;
        max-height: 600px;
    }

    .form_sign div:nth-child(2) {
        display: none;
    }

    .form_sign div:nth-child(5) {
        display: none;
    }

    .form_sign div:nth-child(8) {
        display: none;
    }

    .form_sign div:nth-child(13) {
        display: none;
    }

    .form_sign div:nth-child(6) {
        margin-top: 5px;
    }
    .intro {
        aspect-ratio: 16/20;
    }
}

/*.intro {
    position: absolute;
    margin-top: 200px;
    width: 500px;
    height: 100px;
    background-color: red;
    overflow: auto;
}*/


