/* Police Poppins */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fb;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    background-color: #5C6BC0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand a {
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #ffd700;
}

.navbar-links i {
    margin-right: 8px;
}

/* Conteneur principal */
.container {
    width: 80%;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2.5em;
    color: #5C6BC0;
    margin-bottom: 30px;
    text-align: center;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: formFadeIn 1s ease-out;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.input-field {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #5C6BC0;
    outline: none;
}

button {
    padding: 14px 20px;
    background-color: #5C6BC0;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #3f51b5;
    transform: scale(1.05);
}

button:active {
    background-color: #2c3871;
}

/* Message de confirmation */
.message {
    margin-top: 20px;
    font-weight: bold;
    color: #4caf50;
    opacity: 0;
    animation: showMessage 1s forwards;
}

.message.error {
    color: red;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Police Poppins */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fb;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    background-color: #5C6BC0;
    padding: 15px 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    box-sizing: border-box;
}

.navbar-brand a {
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #ffd700;
}

.navbar-links i {
    margin-right: 8px;
}

.burger-menu {
    display: none;
    cursor: pointer;
    color: white;
}

.burger-menu i {
    font-size: 30px;
}

/* Conteneur principal */
.container {
    width: 80%;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

h1 {
    font-size: 2.5em;
    color: #5C6BC0;
    margin-bottom: 30px;
    text-align: center;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: formFadeIn 1s ease-out;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 16px;
    color: #555;
    margin-bottom: 5px;
}

.input-field {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #5C6BC0;
    outline: none;
}

button {
    padding: 14px 20px;
    background-color: #5C6BC0;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #3f51b5;
    transform: scale(1.05);
}

button:active {
    background-color: #2c3871;
}

/* Message de confirmation */
.message {
    margin-top: 20px;
    font-weight: bold;
    color: #4caf50;
    opacity: 0;
    animation: showMessage 1s forwards;
}

.message.error {
    color: red;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 1290px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding-top: 20px;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links a {
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    .burger-menu {
        display: block;
    }
}

/* Style pour les messages de succès et d'erreur */
.message {
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    display: none; /* Caché par défaut */
}

.message.success {
    background-color: #28a745;
    color: white;
}

.message.error {
    background-color: #dc3545;
    color: white;
}

.message.active {
    display: block;
}

/* Styles de base du footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    font-size: 14px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Liens dans le footer */
.footer-links {
    margin-top: 10px;
}

.footer-links a {
    margin: 0 15px;
}

/* Responsiveness pour les petits écrans */
@media (max-width: 768px) {
    .footer {
        padding: 20px 10px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-links {
        display: block;
        margin-top: 10px;
    }

    .footer-links a {
        display: block;
        margin: 5px 0;
    }
}

/* Responsiveness pour les très petits écrans (mobiles) */
@media (max-width: 480px) {
    .footer {
        padding: 15px 5px;
    }

    .footer-content p {
        font-size: 12px;
    }

    .footer a {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }
}

