/*
:root {
	--vert-sapin-fonce: #1e392a;
	--vert-sapin: #2e5e45;
	--vert-sapin-clair: #cfe6dc;
	--texte: #102218;
	--fond: #f2f9f6;
}
*/
:root {
	--vert-sapin-fonce: #1e392a;
	--vert-sapin: #2e5e45;
	--vert-sapin-clair: #cfe6dc;
	--texte: #102218;
	--fond: #f2f9f6;
	--vert-pale: #4a9c80;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 1rem;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: var(--vert-sapin);
}

header {
/*    background: var(--vert-sapin);*/
    color: #ffffff;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
}

main {
    margin: 2rem auto;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

article {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

article h2, article h3 {
    color: var(--vert-pale);
}

.article-image {
    max-width: 100%;
    width: 300px;
    border: 4px solid var(--vert-pale);
    border-radius: 10px;
    object-fit: cover;
    margin: 5px auto;
    display: block;
}

footer {
    text-align: center;
    padding: 1rem;
    background: var(--vert-sapin);
    color: #ffffff;
}

.pagination {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 4px;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: var(--vert-pale);
    color: #ffffff;
}

.pagination span {
    background-color: var(--vert-pale);
    color: #ffffff;
    border: 1px solid var(--vert-pale);
}

.pagination .prev, .pagination .next {
    width: auto;
    padding: 0 1rem;
    border-radius: 20px;
}

.pagination .prev:hover, .pagination .next:hover {
    background-color: var(--vert-pale);
    color: #ffffff;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--vert-pale);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #3a8a78;
}
nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}
nav a {
	text-decoration: none;
	color: var(--texte);
	font-weight: bold;
	padding: 10px 20px;
	border-radius: 30px;
	background-color: white;
	border: 1px solid var(--vert-sapin);
	transition: all 0.3s ease-in-out;
}
nav a:hover {
	background-color: var(--vert-sapin-clair);
	color: var(--texte);
}

/* table */
table {
	border: medium solid var(--vert-pale);
	border-collapse: collapse;
	width: auto;
}

caption {
	font-family: Tahoma, Times New Roman;
	font-size: 90%;
	font-weight: bold;

}

th {
	font-family: Tahoma, Times New Roman;
	border: thin solid #57923A;
	/*width: 50%;*/
	padding: 5px;
	color: #ffffff;
	font-size: 90%;
	background-color: #57923A;

}

td {
	font-family: Tahoma, Times New Roman;
	border: thin solid #57923A;
	/*width: 50%;*/
	padding: 5px;
	font-size: 90%;
	text-align: left;
	background-color: #F9F8D9;
}

/* Zone de recherche 

.search-container {
    margin: 10px auto;
    width: 100%;
    max-width: 800px;
    text-align: right;
}
*/
.search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-input {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-button {
    padding: 8px 12px;
    background-color: var(--vert-pale);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-button:hover {
    background-color: #3a8a78;
}

/* Archive */

.archive-month {
    margin-bottom: 20px;
}

.archive-month h2 {
    border-bottom: 1px solid var(--vert-pale);
    padding-bottom: 10px;
}

.archive-article {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    align-items: center;
}

.archive-article h3 {
    margin: 0;
    margin-left: 20px; /* Ajoute une légère tabulation */
    display: flex;
    align-items: center;
}

.archive-article h3::before {
    content: "•";
    color: var(--vert-pale);
    font-size: 24px;
    margin-right: 10px;
}

.archive-article p {
    margin: 0;
    color: #666;
    margin-left: 10px; /* Ajoute une légère tabulation */
}

.archive-article a {
    color: var(--vert-pale);
    text-decoration: none;
    transition: color 0.3s;
}

.archive-article a:hover {
    color: #3a8a78;
    text-decoration: none;
}
