body {
    margin: 0;
    padding: 0;
}

header {
    background-color: #988baf;
    padding: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    font-family: "Noto Serif", serif;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

header nav ul li {
    margin-left: 20px;
    font-size: 27px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

header nav ul li a:hover {
    color: #f6cccc;
    transform: scale(1.1);
}

footer {
    background-color: #f6cccc;
    color: white;
    text-align: center;
    padding: 10px;
}

footer p {
    color: white;
}

main {
    padding: 20px;
}

main h1 {
    color: #3d3b49;
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
}

main p {
    text-align: center;
}

/* Accueil */
#banniere {
    background-color: #fdb6b6;
    background-image: url('/images/uploads/banniere.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 190px 150px;
}

#banniere h1 {
    font-family: "Alfa Slab One", serif;
    font-size: 3em;
    margin: 0;
}

#banniere p {
    font-size: 1.5em;
    margin-top: 10px;
}

/* Galerie d'art */
h1 {
    text-align: center;
    color: #333;
    font-size: 2.5em;
    margin-top: 20px;
}

div {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #fafafa;
}

h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
}

p {
    color: #555;
    font-size: 1em;
    margin-bottom: 8px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin-top: 10px;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Galerie */
.titre {
    margin-top: 20px;
    color: #3d3b49;
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
}

.galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.galerie .oeuvre {
    background-color: #f6f6f6;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.galerie .oeuvre:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.galerie .oeuvre img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.galerie .oeuvre h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.galerie .oeuvre p {
    font-size: 0.9em;
    color: #555;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: #f6f6f6;
    border-radius: 10px;
    width: 50%;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

form label {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

form input {
    width: 80%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #988baf;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #776593;
    transform: scale(1.05);
}

/* Résultats */
.resultats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.resultats .oeuvre {
    background-color: #f6f6f6;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.resultats .oeuvre:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.resultats .oeuvre img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.resultats .oeuvre h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.resultats .oeuvre p {
    font-size: 0.9em;
    color: #555;
}

/* Liens et boutons */
.admintxt, .lienAO {
    display: inline-block;
    background-color: #988baf;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    margin: 20px auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.admintxt:hover, .lienAO:hover {
    background-color: #776593;
    transform: scale(1.05);
}

/* Alignement des liens */
.admin-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.admin-links a {
    display: inline-block;
    background-color: #988baf;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.admin-links a:hover {
    background-color: #776593;
    transform: scale(1.05);
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
    font-size: 1em;
}

th {
    background-color: #f6f6f6;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

table a {
    color: #988baf;
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    color: #776593;
}

/* Footer */
footer {
    background-color: #f6cccc;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Responsivité */
@media (max-width: 768px) {
    .resultats {
        grid-template-columns: repeat(2, 1fr);
    }

    .galerie {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .resultats, .galerie {
        grid-template-columns: 1fr;
    }

    form {
        width: 90%;
    }
}
