/* -----------------------------
   Styles généraux
----------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f1ea;
    color: #333;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    color: #4b3e2f;
    margin-top: 30px;
    font-size: 2.5em;
}

/* -----------------------------
   Galerie d'images (page d'accueil)
----------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 3px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
    border-color: #4b3e2f;
}
.admin-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
}

.admin-logo img {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* -----------------------------
   Liste d'outils (tools.html et admin.html)
----------------------------- */
ul {
    list-style-type: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

ul li {
    background-color: #f1e2c6;
    border-left: 6px solid #4b3e2f;
    margin: 10px 0;
    padding: 12px 20px;
    font-size: 1.2em;
    border-radius: 5px;
}

.btn-tools {
    display: inline-block;
    padding: 8px 12px;
    background-color: #2a9d8f;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.btn-tools:hover {
    background-color: #21867a;
}

/* -----------------------------
   Formulaire admin
----------------------------- */
form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
}

form input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 2px solid #ccc;
}

form button {
    padding: 10px 15px;
    background-color: #4b3e2f;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #7a5f44;
}

/* -----------------------------
   Liens
----------------------------- */
a {
    display: block;
    text-align: center;
    margin: 30px auto;
    font-size: 1.1em;
    color: #4b3e2f;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    .gallery img {
        height: 120px;
    }
}
