
:root {
    --neon-text-color: #f40;
    --neon-border-color: #08f;
}

@keyframes roty {
    0% {
        transform: translateX(-50%) translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) translateY(-50%) rotate(360deg);
    }
}

   body {
       background-image: url('../images2/img-bg/g.jpg');
       background-size: cover;
       background-position: center center;
       background-repeat: no-repeat;
       background-attachment: fixed;
       font-family: Helvetica, sans-serif;
       color: rgb(8, 0, 22);
       margin: 0;
       padding: 0;
       min-height: 100vh;
   }


.flexbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.projet {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
}

.projet h6 {
    color: white;
    margin: 5px;
    padding: 5px;
    font-size: 20px;
}

.projet #color1 {
    color: #1d1d88;
}

.projet #color2 {
    color: white;
}

.projet #color3 {
    color: #f20909;
}

#tr a {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 20px 25px rgba(0, 0, 0, 0.22), 0 40px 60px rgba(49, 47, 46, 0.93);
    font-size: 3vw;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: -3px;
    margin: 0;
    padding: 20px 30px;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

#tr a:hover {
    color: rgba(255, 255, 255, 1);
    animation: flicker .5s infinite alternate;
}

#tr a:before,
#tr a:after {
    content: '';
    padding: .9em .4em;
    position: absolute;
    left: 50%;
    width: 100%;
    top: 50%;
    display: block;
    border: 10px solid red;
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
    animation: 10s infinite alternate ease-in-out roty;
}

#tr a:before {
    border-color: #d9524a #d9524a rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
    z-index: -1;
}

#tr a:after {
    border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #d9524a #d9524a;
    box-shadow: 25px 25px 25px rgba(94, 94, 141, 0.3);
}

/* Nouveau conteneur pour l'image */
#image-container {
    position: absolute;
    top: calc(50% + 80px);
    /* Positionnement sous le bouton ENTER centré */
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 10;
}

#etagere-img {
    width: 100%;
    max-width: 600px;
    /* taille max de la photo etagere======================================== */
    min-width: 250px;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 1);
    /* ombre de la photo etagere======================================== */
    transition: all 0.3s ease;
}

#etagere-img:hover {
    transform: scale(1.5);
    /*  ======================================== agrandissement la photo etagere ======================================== */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* fleche de retour debut */
#idhome {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#idhome a {
    z-index: 150;
    color: white;
    text-decoration: none;
}

#idhome h1 {
    font-size: 20px;
}

/* fleche de retour fin */

.neon {
    position: absolute;
    top: 60%;
    left: 49.5%;
    padding: 5px 10px;
    transform: translateX(-50%) translateY(-50%) rotate(0deg);
    color: #fff;
    animation: 4s infinite alternate ease-in-out flicker;
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        box-shadow:
            0 0 .5rem #fff,
            inset 0 0 .5rem #fff,
            0 0 2rem var(--neon-border-color),
            inset 0 0 2rem var(--neon-border-color),
            0 0 4rem var(--neon-border-color),
            inset 0 0 4rem var(--neon-border-color);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
        box-shadow: none;
    }
}

@media screen and (min-width: 836px) and (max-width: 1635px) {
    #tr a {
        font-size: 50px;
        text-align: center;
    }

    .projet h6 {
        font-size: 18px;
    }

    #etagere-img {
        max-width: 280px;
        min-width: 180px;
    }

    #image-container {
        top: calc(50% + 100px);
    }
}

@media screen and (min-width: 150px) and (max-width: 835px) {
    #tr a {
        font-size: 25px;
        text-align: center;
    }

    #tr a:before,
    #tr a:after {
        border: 5px solid red;
    }

    #tr a:before {
        border-color: #d9524a #d9524a rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
        z-index: -1;
    }

    #tr a:after {
        border-color: rgba(0, 0, 0, 0) rgba(0, 0, 0, 0) #d9524a #d9524a;
        box-shadow: 25px 25px 25px rgba(94, 94, 141, 0.3);
    }

    .projet h6 {
        text-align: center;
        font-size: 12px;
    }

    .projet #color1 {
        color: #7a7aeb;
    }

    #etagere-img {
        max-width: 200px;
        min-width: 120px;
    }

    #image-container {
        top: calc(50% + 70px);
    }
}

