@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Structure globale */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #76c7c0, #34a853);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page wrapper pour structurer header/main/footer */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
#MainTop {
    background: rgba(0, 121, 107, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
}

#MainTop nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
}

#MainTop nav a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    background: #004d40;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

#MainTop nav a:hover {
    background: #ffffff;
    color: #00796b;
    transform: scale(1.05);
}

/* Contenu principal */
main.container {
    flex: 1; /* Prend tout l'espace restant entre header et footer */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideIn 1s ease-in-out;
}

p {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.signature {
    font-size: 1rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Loader */
.loader {
    margin: 2rem auto;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Footer */
footer {
    background-color: #0a3d2e;
    padding: 20px;
    text-align: center;
    color: #aaa;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-content a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #fff;
}

.footer-content img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.footer-content span {
    color: #ccc;
    font-size: 0.9rem;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}