* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter Tight", sans-serif;
}

body {
    background-color: #00101af2;
    background-size: contain;
    color: white;
}

nav {
    background: linear-gradient(rgba(0, 0, 0, 0.73), rgba(0, 0, 0, 0.604)), url('../../Images/imgFondNav.png');
    background-repeat: no-repeat;
    background-position: 55% 9%;
    background-size: cover;
    padding: 15px;
    border-bottom: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.infoNav h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
}

.btn-back {
    position: absolute;
    left: 20px;
    padding: 8px 14px;
    background-color: rgba(0, 0, 0, 0.55);
    border: 1.5px solid #02b8c5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-back img {
    max-width: 20px;
}

.btn-back:hover {
    background-color: white;
}










.sommaire {
    position: fixed;
    left: calc(50% - 450px - 260px);
    width: 240px;
    position: sticky;
    top: 30px;
    height: fit-content;
    background-color: rgba(0, 16, 26, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.sommaire h3 {
    margin-bottom: 15px;
    text-align: center;
}

.sommaire ul {
    list-style: none;
}

.sommaire li {
    margin-bottom: 10px;
}

.sommaire a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.sommaire a:hover {
    color: rgb(2, 184, 197);
}
.progress-bar {
    margin-top: 20px;
    width: 100%;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #02b8c5;
    border-radius: 3px;
    transition: width 0.2s ease;
}








main {
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    background-color: #00101af2;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    line-height: 1.7;
}

h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

h5 {
    margin-bottom: 10px;
    font-size: 1rem;
}
p {
    margin-bottom: 25px;
    text-align: justify;
}

.important {
    border: 1px solid #02b8c5;
    border-radius: 30px;
    padding: 25px 10px 0px 10px;
    margin-bottom: 25px;
}

.important p {
    text-align: center;
}


main a {
    
    color: white;
    cursor: pointer;
}

main img {
    border-radius: 15px;
    display: block;       
    margin: 50px auto;    
    max-width: 50%;   
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

main .img-big {
    max-width: 100%;
}

main .img-big1 {
    max-width: 80%;
}

main img.zoomed {
    transform: scale(1.5); /* Zoom */
    cursor: zoom-out;
}

main ul {
    padding-left: 25px;
    padding-bottom: 25px;
}

span {
    color: #02b8c5;
    font-weight: 600;
}

.code {
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    background: #fdf6e3;
    border: 1px solid #eee;
    font-size: 0.9rem;
    font-weight: bold;
}

pre {
    margin: 0;
    padding: 15px;
}


.table-container {
    overflow-x: auto;
    margin-bottom: 25px;
        -webkit-overflow-scrolling: touch; /* scroll fluide iPhone */

}

.table-container table {
    min-width: 700px; /* force le tableau à être plus large que le mobile */
}

table {
    width: auto;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #00101a;
    overflow: hidden;
}

thead {
    color: white;
    border: 2px solid #02b8c5;
}

th {
    padding: 10px;
    text-align: center;
    background-color: #02b8c5;
    color: #00101a;
    font-size: 1rem;
    font-weight: 700;
}

td {
    padding: 10px;
    text-align: center;
    background-color: transparent;
    border: 1px solid #02b8c5;
    font-size: 0.8rem;
}

td:hover {
    cursor: pointer;
    background-color: rgba(1, 128, 137, 0.461);
    transition: 0.2s ease;
}



#vide {
    background-color: transparent;
    border: none;
}


#thead-two {
    border-top: none;
    border-left: none;
    border-bottom: #00101a;
    border-right: none;
}

#th {
    border: 1px solid #00101a;
}


button:not(#send-btn) {
    padding: 5px 10px; 
    cursor: pointer; 
    background-color: #02b8c5; 
    color: white; 
    border-radius: 5px; 
    border: none;
    margin: 0 auto 25px auto; /* centre horizontalement et garde le margin-bottom */
    display: block;           /* nécessaire pour que margin auto fonctionne */
    font-weight: bold;
}



button:not(#send-btn):hover {
    background-color: rgba(1, 128, 137, 0.461);
    color: rgb(154, 153, 153);
}

#send-btn {
    padding: 5px 10px; 
    cursor: pointer; 
    background-color: #02b8c5; /* exemple de couleur différente */
    color: white; 
    border-radius: 5px; 
    border: none;
    font-weight: bold;
}

#send-btn:hover {
    background-color: rgba(1, 128, 137, 0.461);
    color: rgb(154, 153, 153);
}








#computer-img.generating {
    animation: pulseGlow 1s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 15px rgba(2,184,197,0.6));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(2,184,197,0.8));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(2,184,197,0.6));
    }
}


#computer-transfer.generating {
    animation: transferBounce 1s ease-in-out infinite;
}

@keyframes transferBounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

#computer-transfer-deux.generating {
    animation: transferBounce 1s ease-in-out infinite;
}

@keyframes transferBounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}
















.rating-container {
    text-align: center;
    margin-top: 50px;
}

.stars {
    font-size: 40px;
    cursor: pointer;
}

.star {
    color: #ccc;
    transition: color 0.2s;
}

.star.active,
.star.hover {
    color: #02b8c5;
}










footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    font-size: 0.7rem;
}









@media (max-width: 1200px) {
    .sommaire {
        display: none;
    }

    .btn-back {
            display: none;
        }
}


@media (max-width: 768px) {

    nav {
        background-position: center;
        padding: 15px;
        text-align: center;
    }

    .infoNav {
        font-size: 1.1rem;
        padding: 5px 15px;
        text-align: center;
    }

   .btn-back {
            display: none;
        }

    .sommaire {
        display: none;
    }

    main {
        max-width: 95%;
        padding: 20px;
        margin: 20px auto;
        font-size: 0.95rem;
    }

    main img {
    display: block;       
    margin: 10px auto;    
    max-width: 100%;   
    }

    main .img-big {
        max-width: 100%;
    }

    main .img-big1 {
        max-width: 100%;
    }

    h4 {
        font-size: 1.2rem;
        padding: 0 10px;
    }

    footer {
        padding: 20px;
        text-align: center;
    }
}