* {
    margin: 0px;
    padding: 0px;
    scrollbar-width: thin;
    scrollbar-color: #fff #252233;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* ::-webkit-scrollbar-track {
    background-color: #252233;
} */

.fade-in-image {
    animation: fadeIn 5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body,
html {
    padding: 0px;
    margin: 0px;
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at top left, #463A6C, #252233 30%);
    color: white;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: white;
}

.neon {
    position: absolute;
    /* background-color: rgba(70, 58, 108, 0.9);
    filter: blur(80px) brightness(100%) contrast(100%) grayscale(0%) hue-rotate(0deg) invert(0%) saturate(100%) sepia(0%) ; */
    /* background: radial-gradient(circle , #463A6C, #252233 80%); */
    height: 30rem;
    width: 30rem;
    border-radius: 50%;
}

.neon_1 {
    top: 0rem;
    left: 0rem;
}

/* #intro {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at top left, #463A6C,#252233  50%);    
    z-index: 9999;
    transition: opacity 1s ease-in-out;
}

#welcome-message {
    font-size: 4em;
    text-align: center;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#content {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#content.show {
    display: block;
    opacity: 1;
} */
@keyframes scroll {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* HEADER------------------------------------------------------  */
.logo_tel {
    display: none;
}

/* .header_tel {
    display: none;
} */

header {
    width: 100%;
    position: fixed;
    z-index: 50;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-30px);
    animation: apparition 0.4s 2.5s ease-out forwards;
}

.logo svg {
    fill: white;
}

nav {
    display: flex;
    width: 60%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    justify-content: space-around;
    align-items: center;
}

.header-visible {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 1);
    /* Fond blanc lorsque visible */
}

.header-visible svg {
    fill: #252233;
}

.header-visible a {
    color: #252233;
}

/* .header-visible .logo{
    margin-top: 10px;
    background-color: rgba(37,34,51, 0.9);
    border-radius: 50%;
    height: 40px;
    width: 40px;
} */

.header-hidden .logo {
    fill: #252233;
}

header a {
    font-family: "Lilita One", sans-serif;
    padding: 5px;
}

header svg {
    width: 2.9rem;
}

ul {
    padding: 0px;
    margin: 0px;
    width: 30rem;
    display: flex;
    justify-content: space-around;
}

ul li {
    display: flex;
    position: relative;
    align-items: center;
}

header li::after,
footer a::after,
.header-visible li::after {
    content: '';
    /* Crée un élément pseudo pour le soulignement */
    /* display: block; */
    width: 100%;
    height: 2px;
    /* Épaisseur du soulignement */
    position: absolute;
    bottom: 0;
    transform: scaleX(0);
    /* Commence avec une échelle de 0 */
    transition: transform 0.3s ease;
    /* Transition pour un effet progressif */
}

header li::after,
footer a::after {
    background: white;
}

.header-visible li::after {
    background: #252233;
}


header li:hover::after,
footer a:hover::after,
.header-visible li:hover::after {
    transform: scaleX(1);
}

/* ACCUEIL---------------------------------------------------- */
#acceuil {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    font-family: "Jua", sans-serif;
}

#acceuil svg {
    position: absolute;
    width: 5%;
    object-fit: cover;
    opacity: 0;
}

.item_1 {
    animation: appa 0.8s 1.3s ease-out forwards;
}

.item_2 {
    animation: appa 0.8s 1.5s ease-out forwards;
}

.item_3 {
    animation: appa 0.8s 1.7s ease-out forwards;
}

.item_4 {
    animation: appa 0.8s 1.9s ease-out forwards;
}

#acceuil h1,
#acceuil h2 {
    display: inline-block;
    opacity: 0;
    transform: translate(-30px);
}

#acceuil h1 {
    animation: apparition 0.8s 0.2s ease-out forwards;
}

#acceuil h2 {
    animation: apparition 0.8s 0.4s ease-out forwards;
}

.item_1 {
    top: 5rem;
    left: 3rem;
}

.item_2 {
    top: 20rem;
    left: 80rem;
}

.item_3 {
    top: 35rem;
    left: 15rem;
}

.item_4 {
    top: 10rem;
    left: 45rem;
}

.nom {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1/2fr;
    grid-template-rows: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 0rem;
    z-index: 10;
}

.prenom {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-size: 8rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-align: right;
}

.description {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    align-self: flex-end;
    font-size: 1.7rem;
    color: #ccc;
    font-family: "Jura", sans-serif;
    padding-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(-30px);
    animation: apparition 0.8s 0.7s ease-out forwards;
}

.nom-famille {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    font-size: 8rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

.highlight {
    color: #A787FD;
}

@keyframes apparition {
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes appa {
    100% {
        opacity: 1;
    }
}

/* A PROPOS------------------------------------------ */
#propos {
    width: 100%;
    /* background-image: radial-gradient(circle at center right, #463A6C,#252233  30%);
    ; */
}

#apropos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 80%;
    height: 100vh;
    margin: 0 auto;
}
#apropos p{
    text-align: justify;
    font-weight: 400;
    font-size: 25px;
}

#scroll-text span {
    color: rgba(255, 255, 255, 0.1); /* Départ : presque transparent */
    transition: color 0.3s ease; /* Animation douce pour le changement */
}
.CV{
    display: flex;
    width: 100% ;
    padding-bottom: 15px;
}
.image{
    width: 25%;
    display: flex;
    align-items: flex-end;
}

.CV img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}



.propos_boutton {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 30%;
}

h3 {
    font-family: "Lilita One", sans-serif;
    font-size: 40px;
}

.meContacter {
    background-color: white;
    color: #252233;
    font-family: "Jua", sans-serif;
    padding: 8px 13px;
    font-size: 17px;
    border-radius: 10px;
}

.meContacter:hover {
    background-color: rgb(150, 94, 255);
    color: white;
}

/*Télechargement CV*/
.Btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition-duration: .3s;
}

.svgIcon {
    fill: #252233;
}

.icon2 {
    width: 18px;
    height: 5px;
    border-bottom: 2px solid #252233;
    border-left: 2px solid #252233;
    border-right: 2px solid #252233;
}

.tooltip {
    position: absolute;
    right: -85px;
    opacity: 0;
    background-color: rgb(150, 94, 255);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-duration: .2s;
    pointer-events: none;
    letter-spacing: 0.5px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.tooltip::before {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    background-color: rgb(150, 94, 255);
    background-size: 1000%;
    background-position: center;
    transform: rotate(45deg);
    left: -5%;
    transition-duration: .3s;
}

.Btn:hover .tooltip {
    opacity: 1;
    transition-duration: .3s;
}

.Btn:hover {
    background-color: rgb(150, 94, 255);
    transition-duration: .3s;
}

.Btn:hover .icon2 {
    border-bottom: 2px solid rgb(235, 235, 235);
    border-left: 2px solid rgb(235, 235, 235);
    border-right: 2px solid rgb(235, 235, 235);
}

.Btn:hover .svgIcon {
    fill: rgb(255, 255, 255);
    animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* COMPETENCE------------------------------- */
#competences {
    width: 100%;
    display: flex;
    height: 100vh;
    background-image: radial-gradient(circle at center, #342b51, #252233 45%);
    justify-content: center;
}

#item_diff_comp {
    width: 50%;
    height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1/2fr 1fr 1fr 1fr;
    gap: 1rem;
}

.h3 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.case1,
.case2,
.case3,
.case4,
.case5 {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    position: relative;
}

.case1,
.case2,
.case3,
.case4,
.case5,
.item_explication,
.item_photo,
.more-content,
h3,
.propos_boutton2,
#apropos p,
.propos_boutton,
.formulaire,
.reseaux {
    animation: scroll 5s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.case1::before,
.case2::before,
.case3::before,
.case4::before,
.case5::before {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    border-radius: inherit;
    content: "";
    height: 100%;
    left: 0px;
    opacity: 0;
    transition: opacity 500ms;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 2;
}

.case1:hover::before,
.case2:hover::before,
.case3:hover::before,
.case4:hover::before,
.case5:hover::before {
    opacity: 1;
}

.case1 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.case2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.case3 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
}

.case4 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
}

.case5 {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
}

.case {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.case svg {
    width: 45px;
    height: 45px;
}

.myadmin {
    filter: invert(1);
}

.comp_precis {
    display: flex;
    justify-content: space-around;
}

.case img {
    width: 45px;
}

.case p {
    font-family: "Jura", sans-serif;
    padding-top: 5px;
}

.casesql,
.casesym {
    display: flex;
    justify-content: center;
}

h4 {
    display: flex;
    font-size: 20px;
    justify-content: center;
}

.casei {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --------------------------PROJET------------------------------- */
#projets {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.datagouv{
    color: #A787FD;
}
.fleche, .flecheRenverse{
    width: 1rem;
    margin: 0px 3px;
}
.flecheRenverse{
    transform: scaleY(-1);
}
.item_projet a{
    font-weight: bold;
}
#projets hr {
    width: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 0px;
    height: 1px;
}

.item_haut {
    display: flex;
    justify-content: space-between;
}
.exo{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
.item_projet {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2rem;
    width: 30%;
    margin: 50px auto 50px auto;
}

.item_projet p {
    margin-top: 20px;
    text-align: justify;
}

.item_haut img {
    width: 80%;
    border-radius: 10px;
    z-index: 15;
}

.img_projet {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    border-radius: 1rem;
    height: 10vh;
    background-color: #342b51;
    color: #A787FD;
}

.img_projet:hover{
    background-color: #A787FD;
    color: #463A6C;
}

.item_photo {
    width: 60%;
}

.item_explication {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.item_explication span {
    border-radius: 50%;
    border: 2px solid white;
    padding: 0px 9px;
    font-weight: 400;
    font-size: 25px;
    margin-right: 10px;
}

.item_explication span:hover {
    background-color: #fff;
    color: #252233;
}

.item_explication a {
    margin-top: 10px;
}

.hidden {
    display: none;
}

.language {
    color: #fff;
    border: 0px;
    font-family: "Jura", sans-serif;
    border-radius: 10rem;
    padding: 5px 10px;
    font-size: 17px;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang {
    margin: 10px 0px;
}

.grp {
    background-color: #fff;
    color: #252233;
    padding: 3px 10px;
    font-family: "Poppins", sans-serif;
}

.propos_boutton2 {
    width: 30%;
    margin: 20px auto;
    display: flex;
    justify-content: space-around;
}

/* ------------------CONTACT----------------------- */
#contact {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact2 {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.form-group {
    display: flex;
    margin: 15px 0px;
    flex-direction: column;
}

.formulaire,
.reseaux {
    width: 50%;
}

.form-group input,
textarea {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 10px;
    margin: 5px 0px;
}

.form-group input {
    height: 3rem;
}

.form-group textarea {
    height: 8rem;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    padding-left: 5px;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
}

input:focus,
textarea:focus {
    color: #fff;
    /* Couleur du texte pendant la saisie */
    font-size: 15px;
    font-family: "Poppins", sans-serif;
}

.reseaux {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0px 100px;
}

.reseaux img {
    width: 50px;
}

#contact form {
    width: 50%;
    margin: 0 auto;
}

#contact hr {
    height: 10rem;
    width: 1px;
    border: 0px;
    background-color: rgba(255, 255, 255, 0.1);
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn2 {
    position: relative;
    display: inline-flex;  
    align-items: center;
    cursor: pointer;
    transition-duration: .3s;
}

.tooltip2 {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    background-color: rgb(150, 94, 255);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    transition-duration: .2s;
    pointer-events: none;
    letter-spacing: 0.5px;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    margin-bottom: 8px;
}

.btn2:hover .tooltip2 {
    opacity: 1;
    transition-duration: .3s;
}

/* FOOTER--------------------------------- */
footer {
    display: flex;
    width: 97%;
    margin: 10px auto;
    font-size: 14px;
    padding: 10px 0px;
    justify-content: space-between;
}

hr {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 0px;
    height: 1px;
}

footer img {
    width: 1.5rem;
}

.icon {
    display: none;
}

@media (max-width: 480px) {

    html,
    body {
        width: 100%;
        height: 100%;
        /* Pour s'assurer que le fond couvre toute la hauteur également */
        overflow-x: hidden;
        /* Cela évite les débordements horizontaux */
    }

    body {
        background-color: #252233;
    }

    #acceuil h1,
    #acceuil h2 {
        font-size: 85px;
    }

    header {
        position: fixed;
        display: flex;
        justify-content: center;
        bottom: 0;
        left: 0;

        margin-bottom: 20px;
        z-index: 50;
    }

    nav {
        background-color: #342b51;
        width: 90%;
        height: 4rem;
        margin: 0 auto;
    }

    .logo svg {
        width: 50px;
    }

    ul span {
        display: none;
    }

    .icon {
        display: flex;
        width: 1.8rem;
    }

    /* 
    .active {
        display: flex;
        background-color: red;
    } */

    h4 {
        font-size: 15px;
        padding: 5px 0px;
    }

    .prenom {
        text-align: left;
    }

    .nom {
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 2fr 1fr;
        width: 90%;
        margin: 0 auto;
    }

    .item_2 {
        left: 20rem;
        top: 15rem;
    }

    .item_3 {
        left: 20rem;
        top: 40rem;
    }

    .item_4 {
        left: 8rem;
        top: 45rem;
    }

    .nom-famille {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    #competences {
        align-items: center;
    }

    .description {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        font-size: 18px;
    }

    #acceuil {
        height: 100vh;
    }

    #apropos {
        width: 90%;
        height: 100vh;
    }
    #scroll-text span{
        color: white; /* Départ : presque transparent */
    }
    #apropos p {
        font-size: 14px;
        text-align: justify;
    }

    .propos_boutton {
        width: 60%;
    }
    .image{
        width: 40%;
    }
    .item_projet a{
        margin: 20px 0px;
    }
    #item_diff_comp {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 5fr;
        width: 80%;
    }

    .case1 {
        grid-column: 1 / 3;
    }

    .case2 {
        grid-row: 3 / 4;
        grid-column: 1 / 3;
    }

    .case3 {
        grid-row: 4 / 5;
    }

    .case4 {
        grid-row: 4 / 5;
        grid-column: 2 / 3;
    }

    .case5 {
        grid-row: 6 / 7;
        grid-column: 1 / 3;
    }

    .case1,
    .case2,
    .case3,
    .case4,
    .case5 {
        width: 100%;
    }

    .comp_precis {
        display: flex;
        flex-wrap: wrap;
    }

    .i {
        width: 30%;
    }

    .item_haut {
        display: block;
    }

    .item_explication,
    .item_photo,
    .formulaire {
        width: 100%;
    }

    .formulaire,
    .reseaux {
        margin: 0px;
        padding: 0px;
    }

    .reseaux img {
        width: 40px;
    }

    .propos_boutton2 {
        width: 80%;
    }

    .contact2 {
        display: flex;
        flex-direction: column-reverse;
    }

    .reseaux,
    #contact form {
        width: 70%;
    }

    #contact hr {
        height: 1px;
        width: 5rem;
    }

    #contact {
        height: 80vh;
        justify-content: space-around;
    }

    .contact2 {
        height: 70vh;
        justify-content: space-around;
    }

    footer {
        margin-bottom: 100px;
    }
}