/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 2rem auto;
    max-width: 600px;
    padding: 0 1rem;
    background: #fafafa;
    color: #333;
}

/* Header centré et dynamique */
header {
    text-align: center;
    margin-bottom: 2rem;
}
header h1 a {
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: bold;
    color: #222;
    display: inline-block;
    transition: transform 0.3s ease;
}
header h1 a:hover {
    transform: scale(1.05);
}

/* Titre de la page */
main h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Formulaire */
form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
form label {
    display: block;
    margin-bottom: 0.5rem;
}
input[type="text"], textarea {
    width: 100%;
    padding: 0.6rem;
    margin: 0.25rem 0 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    width: 100%;
    padding: 0.7rem;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
button:hover {
    background: #0056b3;
}

/* Liste des intentions */
ul { list-style: none; padding: 0; }
li {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 1rem;
}
.pagination a, .pagination span {
    display: inline-block;
    margin: 0 0.3rem;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive pour mobiles */
@media (max-width: 600px) {
    header h1 a { font-size: 2rem; }
    main h2 { font-size: 1.5rem; }
    button { font-size: 0.95rem; padding: 0.6rem; }
}
