body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
#toolbar {
    background: #444;
    color: white;
    padding: 10px;
    text-align: center;
}
#layout {
    display: flex;
    flex: 1;
}
#sidebar {
    width: 230px;
    background: #ffffff;
    padding: 15px;
    box-shadow:rgba(0, 0, 0, 0.14) -8px 0px 16px -11px inset;
}
#main-content {
    background: #fefaf3;
    flex: 1;
    padding: 20px;
}
a.nav-link {
    display: block;
    padding: 2px 0;
    color: #333;
    text-decoration: none;
}
a.nav-link:hover {
    text-decoration: underline;
}
.navigation-panel ul li {
    border-radius: 7px;
    transition: background-color 0.2s ease;
}

.navigation-panel ul li:hover {
    background-color: #e8f0fe;
}

.navigation-panel ul li:hover a {
    color: #1967d2;
    font-weight: bold;
}
.navigation-panel ul li.active {
  background-color: #e8f0fe;
  margin: 3px 0 3px 0;
}
.navigation-panel ul li.active a {
  color: #1967d2 !important;
  font-weight: bold;
}
.navigation-panel ul li a.active {
    background-color: #e8f0fe;
    border-radius: 7px;
    color: #1967d2 !important;
    font-weight: bold;
}
button {
    margin-top: 30px;
    padding: 8px 18px;
    background: #42a5f5;
    color: #FFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

button:hover {
    background: #068AC0;
    color: #fff;
}

.profile-container {
    background: #ffffff;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 35px 40px;
    margin: 0 auto;
}

.profile-container h1 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #222;
    letter-spacing: 1px;
}

.profile-info p {
    font-size: 14px;
    margin: 14px 0;
    color: #333;
}

.section-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.section {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    text-align: center;
}
.junip {
    background-color: #000000;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.section:hover,
.junip:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.section img {
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    color: #333;
    text-decoration: none;
}

#results ul { 
    margin: 8px 0; 
    padding-left: 16px; 
}

    .ab-search-wrap { position: relative; display: inline-block; width: 520px; max-width: 95vw; }
    .ab-search { display: flex; align-items: center; border: 1px solid #d0d7de; border-radius: 26px; padding: 8px 12px;  background: #f7f9fb; }
    .ab-search:focus-within { box-shadow: 0 0 0 3px rgba(0,123,255,0.3); background: #fff; }
    .ab-search-input { flex: 1; border: none; background: transparent; font-size: 18px; line-height: 24px; outline: none; padding: 6px 8px; }
    .ab-search-btn { margin-top: 0px; border: none; background: #3e98ec; border-radius: 20px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
    .ab-search-btn svg { width: 18px; height: 18px; }

    /* Suggestions panel */
    .suggestions-panel { position: absolute; top: 56px; left: 0; width: 100%; max-height: 300px; overflow-y: auto; background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.08); padding: 8px 0; z-index: 20; display: none; }
    .suggestions-header { padding: 8px 16px; color: #475569; font-size: 14px; border-bottom: 1px solid #eef2f7; }
    .suggestion-item { padding: 10px 16px; cursor: pointer; font-size: 15px; }
    .suggestion-item:hover, .suggestion-item.active { background: #f1f5f9; }

    /* Bouton Filtres + panneau */
    .filters-row { display: inline-flex; align-items: center; gap: 10px; margin-left: 10px; }
    .filters-toggle { 
        padding: 6px 12px; 
        border: 1px solid #cbd5e1; 
        background: #f1f5f9; 
        color: #111; 
        border-radius: 8px; 
        cursor: pointer; 
        font-weight: 600;
    }
    .filters-toggle:hover { background: #e2e8f0; }
    .filters-toggle:focus-visible { outline: 3px solid rgba(0,123,255,0.35); outline-offset: 2px; }
    #filtersPanel { display: none; margin-top: 10px; padding: 12px; border: 1px dashed #d0d7de; border-radius: 10px; background: #fafafa; }
    #filtersPanel .ab-label { margin-right: 20px; }

    .ab-label { vertical-align: top; }

/* Disposition des résultats en 2 colonnes */
.bonsai-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bonsai-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bonsai-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: 0.2s ease;
}

.bonsai-image img {
    border-radius: 6px;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.bonsai-details {
    flex: 1;
}
.bonsai-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bonsai-link:hover .bonsai-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  transition: 0.2s ease;
  background-color: #f8f8f8;
  cursor: pointer;
}
    .content {
  margin: 1px;
  padding: 0 10px;
  display: none;
  overflow: hidden;
  background-color: #f9f9f9;
  border-radius: 4px;
}
.contact-button {
    background-color: rgb(0, 157, 192);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.contact-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.form-container {
    padding: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

label {
    margin-bottom: 3px;
}
.form-input, .form-textarea {
    margin-bottom: 10px;
    padding: 7px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus {
    border-color: rgb(0, 157, 192);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.form-textarea {
    height: 120px; 
    resize: vertical;
}

.submit-button {
    background-color: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.submit-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

#confirmationMessage {
    color: green;
    text-align: center;
}

/* Styles de base pour le formulaire */
#filter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

#filter-form label {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  flex: 1 1 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#filter-form label:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

#filter-form label.active {
  background-color: rgb(0, 157, 192);
  color: white;
  border-color: rgb(0, 157, 192);
}

#filter-form input[type="checkbox"] {
  display: none;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 20px;
    text-decoration: none;
    color: #009DC0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination a.active {
    background-color: #009DC0;
    color: white;
    border-color: #009DC0;
}

.pagination a:hover:not(.active) {
    background-color: #f0f0f0;
    color: #009DC0;
}

@media print {
.no-print {
display: none !important;
  }
}

@media (prefers-color-scheme: dark) {
#main-content {
    background: #1e1e1e;
}
a.nav-link {
    color: #FFFFFF;
}
#sidebar {
    background: #000000;
}
button {
    background: #03658cff;
}
button:hover {
    background: #42a5f5;
}
.navigation-panel ul li:hover {
    background-color: #2e6092ff;
}
.navigation-panel ul li:hover a {
    color: #a2bce0ff !important;
}
.navigation-panel ul li.active {
  background-color: #2e6092ff;
}
.navigation-panel ul li.active a {
  color: #a2bce0ff !important;
}
.navigation-panel ul li a.active {
    background-color: #2e6092ff;
    color: #a2bce0ff !important;
}
.junip {
    border: 1px solid #666666ff;
}
.profile-container {
    background: #565656ff;
    border: 1px solid #666666ff;
}
.profile-container h1 {
    color: #e8e8e8ff;
}
.profile-info p {
    color: #e8e8e8ff;
}
.section {
    background: #6e6d6dff;
    border: 1px solid #666666ff;
}
label {
    color: #FFFFFF;
}
.contact-button {
    background-color: #333;
    color: white;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.contact-button:hover {
    background-color: #555;
}
.form-input, .form-textarea {
    background-color: #2b2b2b;
    color: #e0e0e0;
    border: 1px solid #555;
}

.form-input:focus, .form-textarea:focus {
    border-color: #80d8ff;
    box-shadow: 0 0 8px rgba(128, 216, 255, 0.3);
}

.submit-button {
    background-color: #444;
    color: white;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.submit-button:hover {
    background-color: #666;
}

#confirmationMessage {
    color: lightgreen;
}
#filter-form label {
  background-color: #333;
  border-color: #444;
  color: #ddd;
}

#filter-form label.active {
  background-color: #005f99;
  color: white;
  border-color: #005f99;
}
.pagination a {
    background-color: #333;
    color: #80d8ff;
    border: 1px solid #555;
}

.pagination a.active {
    background-color: #80d8ff;
    color: #fff;
    border-color: #80d8ff;
}

.pagination a:hover:not(.active) {
    background-color: #555;
    color: #80d8ff;
}
.suggestion-item {
    color: #000;
}
.suggestions-panel {
    background: #cacaca;
}
.ab-search {
    background: #cacaca;
}
.ab-search:focus-within {
    background: #cacaca;
}
.bonsai-item {
    background-color: #cacaca;
}
#filtersPanel {
    background: #cacaca;
}
#filtersPanel .ab-label {
    color: #000;
}
.resultats {
    color: #cacaca;
}
.bonsai-link:hover .bonsai-item {
    background-color: #989898;
}
}