* {
    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 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);
    }
}

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

.services-intro {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #00CCCC;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.services-intro h2 {
    font-size: 2rem;
    color: #f2f2f2;
    margin-bottom: 15px;
    padding-left: 40px;
    padding-right: 40px;
    text-shadow: 1px 1px 2px #000;
}

.services-intro p {
    padding-left: 40px;
    padding-right: 40px;
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6rem;
    text-align: justify;
}

.services-intro {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.service-card {
    background-color: #f8e9f0;
    padding: 1.5rem;
    border-radius: 15px;
    /* 24px */
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.85);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    margin-top: 0;
    font-size: 1.25rem;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #004466;
}

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

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

.btn: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;
}

.service-card:nth-child(odd) {
    margin-top: 20px;
}

.service-card:nth-child(even) {
    margin-bottom: 20px;
}

.service-card .underline {
    color: blue;
}

.footer {
    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;
}

/* mobile */
@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%;
    }
    .service-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    .service {
        padding: 10px;
    }
    .services-intro h2 {
        font-size: 1.5rem;
        padding: 0;
    }
    .services-intro p {
        font-size: 1rem;
        padding: 0 10px;
        text-align: justify;
    }
    .service-card {
        padding: 10px;
    }
    .service-card h3 {
        font-size: 1.25rem;
    }
    .service-card p {
        font-size: 0.95rem;
        text-align: justify;
    }
    .service-card .btn {
        width: 100%;
        padding: 10px;
    }
}