* {
    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;
    text-align: 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;
}

/* Bouton hamburger caché en PC */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
}

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

.nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    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 8s 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);
    }
}

.contenu {
    max-width: 1200px;
    align-items: center;
    padding: 50px;
    margin: 0 auto;
    font-weight: 400;  
}

.titre-section {
    text-align: center;
    color: #ffffff;
}
.titre-section h2 {
    font-size: 2.2rem;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}
.titre-section p {
    font-size: 1.1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
}
.project-card {
    background-color: #f8e9f0;
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0.3s ease;
}
.project-card:hover {
    margin-top: 0;
    font-size: 1.25rem;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #004466;
}

.project-card p {
    color: #111;
    line-height: 1.6rem;
    margin: 10px 0 18px;
    font-size: 1rem;
    font-weight: 400;
    text-align: justify;
    backdrop-filter: blur(10px);
}

.project-card .button {
    display: inline-block;
    text-align: center;
    font-weight: 500;
    border-radius: 15px;
    padding: 12px 25px;    
    color: #ffffff;
    background-image: linear-gradient(135deg, #004466, #0088A8);
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    align-self: flex-end;
}

.project-card .button:hover {
    background-image: linear-gradient(135deg, #0088a8 , #00CCCC);
    box-shadow: 0 8px 20px rgba(0, 136, 1698, 0.3);
    transform: scale(1.05);
    background: transparent;
    color: #004466;
}
.footer {
    display: flex;
    flex-direction: column;
    background-color: #0B3861;
    color: white;
    padding: 2rem 1rem;
    margin-top: 4rem;
    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;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .menu-toggle span {
        transition: all 0.3s ease;
    }
    .header {
        flex-direction: row;
        justify-content: space-between;
        height: auto;
    }
    .logo {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(11, 56, 97, 0.95);
        padding: 1rem;
        margin: 0;
        text-align: left;
    }
    .nav.active ul {
        display: flex;
    }
    .nav ul li {
        margin: 0.5rem 0;
        text-align: left;
    }
    .nav ul li a{
        color: #fff;
        display: block;
        width: 100%;
    }
    .contenu {
        padding: 10px;
    }
    .titre-section h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    .titre-section p {
        font-size: 1rem;
        padding: 0 10px;
        text-align: justify;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .project-card h3 {
        font-size: 1.25rem;
    }
    .project-card p {
        font-size: 0.95rem;
        text-align: justify;
    }
    .project-card .button {
        width: 100%;
        padding: 10px;
    }
}