/* --- Styles généraux --- */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: #222;
    background: #fff;
    line-height: 1.6;
    font-size: 1.05em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    background: #123;
    padding: 15px;
    color: #fff;
}

/* Flexbox pour le header, pour aligner logo, menu et image */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Empêche les éléments de passer à la ligne */
}

/* Styles du logo */
.site-header h1 {
    margin: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    height: 10px; /* Taille fixe pour le logo */
    width: auto;
    margin-right: 5px;
}

.logo-text {
    font-size: 1em;
    font-weight: bold;
}

/* Styles du menu de navigation */
.site-header nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end; /* Aligne le menu à droite */
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px; /* Espacement entre les liens */
    margin: 0 15px; /* Marge entre le logo/menu et l'image du puits */
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

/* Styles pour les boutons "Connexion" */
.site-header nav a.connexion {
    background-color: #28a745 !important;
    color: #fff !important;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    margin-left: 10px; /* Ajoute un espace à gauche des boutons */
}

.site-header nav a.connexion:hover {
    background-color: #218838 !important;
}

/* Image du puits (cachée par défaut sur mobile) */
.puits-img {
    display: none;
}

/* Styles pour les écrans larges (à partir de 992px) */
@media (min-width: 768px) {
    .puits-img {
        margin-right: 15px;
        display: block; /* Affiche l'image sur les grands écrans */
        height: 60px; /* Taille fixe pour l'image du puits */
        width: auto;
    }
}

/* --- Styles du contenu --- */
.hero {
    background: #eee;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    background: #ddd;
}

section.piece {
    margin-bottom: 3rem;
}

section.piece h2 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

section.piece p {
    margin-bottom: 1.2rem;
    max-width: 70ch;
}

.carousel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.carousel img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Styles des boutons */
.btn {
    display: inline-block;
    align-items: center;
    justify-content: center;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.btn.alt {
    background-color: white;
    color: #28a745;
    border: 1px solid #28a745;
}

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

.filter-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: bold;
    display: flex;
    flex-direction: column;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f8f8;
    text-align: left;
}