/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}
/* Principal */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins';
}

/* Nav */

nav {
    position: sticky;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: linear-gradient(120deg, #f5f5f5, #eaeaea);
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

nav li {
    font-family: "Poppins", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

nav a {
    color: #00488d;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

nav .nav-links a:hover {
    text-decoration: underline;
    font-weight: bold;
    color: #00346b;
}

nav a.active {
    color: black;
    font-weight: 600;
}

nav .logo {
    font-weight: bold;
    font-size: 2em;
    color: #00488d;
    transition: color 0.2s ease;
}

nav .logo:hover {
    color: #00346b;
}

nav .menu-hamburger {
    display: none;
    position: absolute;
    top: 50px;
    right: 30px;
    width: 35px;
}
/* Header */

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    height : 80vh;
    background: lightgray;
}

header h1 {
    font-size: 2.5rem;
    color: #222;
}

header h2{
    margin: 1.2rem 0;
}

header p {
    color: #555;
    margin: 1rem 0 2rem 0;
    font-size: 1.1rem;
}

header .contact {
    display: flex;
    align-items: center;
}

header .logo-contact {
    height: 2rem;
    margin-right: 0.3rem;
}

header .contact-links {
    color: #00488d;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

header .contact-links:hover {
    color: #00346b
}

.btn {
    background-color: #00488d;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #00346b;
}

/* Projets */

.cards {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.cards h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #00488d;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card .btn {
    display: inline-block;
    background-color: #00488d;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.card .btn:hover {
    background-color: #00346b;
}

/* Main */

main {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    background: white;
}

.empty-main {
    max-width: 900px;
    margin: 0;
    padding: 0 1rem;
    background: white;
    flex:1;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #222222;
}

section p {
    color: #444;
    line-height: 1.6;
}

/* Footer */

footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding : 1.5rem;
    background-color: #fafafa;
    color : #555;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* Animations */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.8s ease forwards;
}

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

/* Responsive */

@media screen and (max-width: 850px) {

    nav {
        padding: 0;
        z-index: 1000;
    }

    nav .logo {
        position: absolute;
        top: 40px;
        left: 30px;
    }

    nav .menu-hamburger {
        display: block;
        z-index: 1000;
    }

    .nav-links {
        top: 0;
        left: 0;
        position: fixed;
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.200);
        backdrop-filter: blur(8px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }

    header {
        padding: 1rem;
    }

    .nav-links.mobile-menu {
        margin-left: 0;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav .nav-links ul li {
        margin: 25px 0;
        font-size: 1.2em;
    }

    .contact h2 {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    /*.card-header {
        height: auto;
    }*/

    .cards {
        margin-top: 7vh;
    }
}