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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f9f4; /* Vert clair pour un aspect naturel */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background-color: #28a745; /* Vert agricole */
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: fadeIn 2s ease-in-out;
}

header p {
    font-size: 1.2rem;
    font-style: italic;
    animation: slideUp 2s ease-in-out;
}

/* Animation de chargement avec logo et slogan */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeOut 3s forwards;
}

.loading-screen img {
    width: 150px;
    height: auto;
    animation: spin 2s linear infinite;
}

.loading-screen p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin-top: 20px;
    animation: fadeIn 2s ease-in-out;
}

nav {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #28a745;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.post-item {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.details-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.details-btn:hover {
    background-color: #218838;
}

/* Styles des modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.modal button {
    margin-top: 10px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:first-of-type {
    background-color: #28a745;
    color: white;
}

.modal button:last-of-type {
    background-color: #ccc;
}

.modal button:hover {
    opacity: 0.8;
}


form {
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 1s ease-in-out;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #28a745;
}

form input,
form select,
form textarea,
form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #28a745;
    outline: none;
}

form button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #218838;
}


footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.modal{
    overflow-y: auto;
}