/* style.css */
body {
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #222;
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: #f0f0f0;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    animation: fadeIn 1s ease-in;
}

header img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #888;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

header img:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
}

header p {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.5;
}

nav {
    background-color: #1e3a8a;
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover::after {
    width: 100%;
}

main {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
    animation: fadeInUp 1s ease;
}

main h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

main p, main ul {
    font-size: 1.1em;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: #555;
    border-top: 1px solid #ccc;
    margin-top: 60px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

a.button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 10px 0;
}

a.button:hover {
    background-color: #1e40af;
}

/* Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeInUp {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Media Queries pour mobile */
@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }

    header img {
        width: 120px;
        height: 120px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    nav a {
        display: block;
        margin: 10px 0;
        font-size: 1.2em;
    }

    main {
        margin: 30px auto;
        padding: 0 15px;
    }

    main h2 {
        font-size: 1.5em;
    }

    main p, main ul {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    header img {
        width: 100px;
        height: 100px;
    }

    header h1 {
        font-size: 1.5em;
    }

    nav a {
        font-size: 1em;
    }
}

/* Menu déroulant minimal pour Projets Info */
nav .dropdown {
    display: inline-block;
    position: relative;
}

nav .dropbtn {
    cursor: pointer;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0 5px;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: left;
}

nav .dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: #1e3a8a;
    text-decoration: none;
}

nav .dropdown-content a:hover {
    background-color: #f0f0f0;
}

nav .dropdown:hover .dropdown-content {
    display: block;
}
