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

body {
    background-color: rgba(0, 16, 26, 0.95);
    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: rgb(2, 184, 197);
    border-radius: 3px;
    transition: width 0.2s ease;
}
















main {
    max-width: 900px;
    margin: 40px auto;
    padding: 35px;
    background-color: rgba(0, 16, 26, 0.95);
    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;
}

p {
    margin-bottom: 25px;
    text-align: justify;
}

span {
    color: rgb(2, 184, 197);
    font-weight: 600;
}

main img {
    border-radius: 15px;
    display: block;       
    margin: 50px auto;    
    max-width: 95%;   
}

.moral {
    text-align: center;
    font-weight: 700;
    margin-top: 30px;
    font-size: 1.2rem;
}

.doc-image {
    display: block;           
    margin: 20px auto;        
    max-width: 50%;          
    border-radius: 10px;      
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    border: 1px solid #ccc;  
    transition: transform 0.3s; 
}

.doc-image:hover {
    transform: scale(1.02);   
}

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;
    }

    .btn-back {
            display: none;
        }

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

    .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%;   
    }

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

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