/* style.css */

body {
    margin: 0;
    padding: 0;
    background: #f0f4f5;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #244d59;
    margin-bottom: 2rem;
}

nav {
    background: #ffffff;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
}

nav ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    position: relative;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: #244d59;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    border-radius: 50px;
    transition: color 0.3s ease;
}

nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: #244d59;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

nav a:hover {
    color: #7184b4;
}

nav a:hover::before {
    width: 200%;
    height: 500%;
}

/* === TABLETTE (≤1024px) === */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
        height: auto;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    nav {
        width: 100%;
        margin: 0 0 1.5rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    nav {
        padding: 0.75rem;
        border-radius: 6px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    }

    nav ul {
        gap: 0.75rem;
    }

    nav a {
        font-size: 1.2rem;
        padding: 0.65rem 0;
    }
}