* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background-color: #0B3861;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
}

.header {
    position: sticky;
    display: flex;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    top: 0;
    z-index: 10;
    background-color: rgba(11, 56, 97, 0.9);
    backdrop-filter: blur(4px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f0f0;
}

.nav ul {
    display: flex;
    list-style-type: none;
    color: #f0f0f0;
    font-size: 1em;
    gap: 1rem;
}

.nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    letter-spacing: 1px;
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.nav ul li a:hover { /* tous liens lors du survol dans la balise nav */
    color: #ffde7d; /* couleur de fond */
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    animation: move 5s infinite ease-in-out;
    filter: blur(6px);
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}

@keyframes move {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fdf4e3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-left: 8px solid #f19c65;
    border-radius: 16px;
}

.title h2 {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    line-height: 1.3;
    font-size: 2.5rem;
    color: #003355;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 1rem;
}

.title h2, .content h3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-left: 12px;
    font-size: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-left: 5px solid #0088aa;
    padding-left: 12px;
    font-size: 1.75rem;
    font-weight: 600;    
    line-height: 1.6;
    text-align: left;
}

.content h3::after {
    content: "";
    display: block;
    margin-top: 6px;
    width: 50px;
    height: 3px;
    background-color: #0088aa;
    border-radius: 2px;
}

.content h5 {
    font-size: 1rem;
    text-align: left;
    margin-top: 1rem;
}

.content strong {
    font-weight: 600;
}

.content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-position: outside;
    text-align: left;
}

li {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #004466;
}

.graph {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    text-align: center;
}

.graph img {
    width: 90%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-top: 1rem;
}

.graph img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


.button {
    border: none;
    border-radius: 5px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-retour {
    text-align: center;
    margin-top: 2rem;
}

.button-retour a {
    display: inline-block;
    background: transparent;
    color: #004466;
    border: 1px solid #004466;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.button-retour a:hover {
    background-color: #004466;
    color: white;
}

.footer {
    height: 100%;
    margin: 0;
    display: flex;
    background-color: #0B3861;
    color: white;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    margin: 0 auto;
    text-align: center;
}

.footer a {
    color: white;
}

.footer a:hover {
    color: #ffcc70;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
}

.footer-links a:hover{
    text-decoration: underline;
}

/* responsive */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .content {
        padding: 0 0.5rem;
    }
    .graph img {
        max-height: 300px;
    }
    .title h2 {
        font-size: 1.8rem;
    }
    .content h3 {
        font-size: 1.4rem;
    }
    .content p {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container {
        padding: 1rem;
        margin: 1rem;
        border-left: 6px solid #d0d3d4;
    }

    .title h2 {
        font-size: 1.4rem;
        padding: 0.5rem;
    }

    .content {
        padding: 0 0.5rem;
    }

    .content h3 {
        font-size: 1.2rem;
    }

    .content p,
    .content li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .graph img {
        max-height: 200px;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .button-retour a {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .footer {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .footer-links {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links a {
        margin: 0;
    }
}