body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.logo-appy-bonsai {
  content: url("/../../images/logo_appy_bonsai.png");
  height: auto;
  max-width: 100%;
}
#toolbar {
    background: #444;
    color: white;
    padding: 10px;
    text-align: center;
}
#layout {
    display: flex;
    flex: 1;
}
#sidebar {
    width: 250px;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 0%, rgba(116, 199, 220, 0.22), transparent 180px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 252, 0.92));
    padding: 18px 18px;
    border-right: 1px solid rgba(35, 143, 169, 0.12);
    box-shadow: 18px 0 45px rgba(25, 95, 112, 0.08);
    box-sizing: border-box;
}
#main-content {
    background: #fefaf3;
    flex: 1;
    padding: 20px;
}
.navigation-panel {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 36px);
}
.navigation-panel .nav-header {
    padding: 2px 0 12px;
}
.navigation-panel .logo-appy-bonsai {
    width: 82px;
    filter: drop-shadow(0 14px 24px rgba(25, 95, 112, 0.16));
}
.navigation-panel .container {
    padding: 6px 0 18px;
}
.navigation-panel .custom-select {
    width: 100%;
}
.navigation-panel #language-selector .custom-select,
.navigation-panel #language-selector .select-selected,
.navigation-panel #language-selector .select-items,
.navigation-panel #language-selector .select-items div {
    direction: ltr;
    text-align: left;
}
.navigation-panel .select-selected {
    min-height: 42px;
    padding: 8px 38px 8px 12px;
    border: 1px solid rgba(35, 143, 169, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(25, 95, 112, 0.08);
    color: #1f3338;
    font-weight: 650;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.navigation-panel #language-selector .select-selected img,
.navigation-panel #language-selector .select-items div img {
    margin-right: 10px;
    margin-left: 0;
}
.navigation-panel #language-selector .select-selected:after {
    right: 14px;
    left: auto;
    border-color: #238fa9;
}
.navigation-panel .select-items {
    margin-top: 8px;
    border: 1px solid rgba(35, 143, 169, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 40px rgba(25, 95, 112, 0.16);
    overflow: hidden auto;
}
.navigation-panel .select-items div {
    padding: 9px 12px;
}
.navigation-panel .select-items div:hover,
.navigation-panel .same-as-selected {
    background: rgba(116, 199, 220, 0.18);
}
a.nav-link {
    display: block;
    padding: 2px 0;
    color: #333;
    text-decoration: none;
}
a.nav-link:hover {
    text-decoration: none;
}
.navigation-panel ul {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
}
.navigation-panel ul li {
    border-radius: 15px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.navigation-panel ul li:hover {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(25, 95, 112, 0.1);
    transform: translateX(2px);
}

.navigation-panel ul li:hover a {
    color: #238fa9 !important;
    font-weight: bold;
}
.navigation-panel ul li.active {
  background: linear-gradient(135deg, rgba(35, 143, 169, 0.16), rgba(116, 199, 220, 0.2));
  box-shadow: 0 12px 28px rgba(25, 95, 112, 0.1);
  margin: 3px 0 3px 0;
}
.navigation-panel ul li.active a {
  color: #238fa9 !important;
  font-weight: bold;
}
.navigation-panel ul li a.active {
    background: linear-gradient(135deg, rgba(35, 143, 169, 0.16), rgba(116, 199, 220, 0.2));
    border-radius: 15px;
    color: #238fa9 !important;
    font-weight: bold;
}
.navigation-panel a.nav-link {
    min-height: 38px;
    padding: 7px 10px !important;
    border-radius: 15px;
    color: #536a70 !important;
    font-weight: 650;
    line-height: 1.15;
}
.navigation-panel a.nav-link img {
    width: 22px;
    opacity: 0.52;
    filter: grayscale(1);
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}
.navigation-panel ul li:hover a.nav-link img,
.navigation-panel ul li.active a.nav-link img,
.navigation-panel a.nav-link.active img {
    opacity: 1;
    filter: sepia(1) saturate(2.2) hue-rotate(145deg) brightness(0.86);
    transform: scale(1.04);
}
.logout-container {
    margin-top: auto;
    padding-top: 18px;
}
.logout-container button {
    width: 100%;
    max-width: 180px;
    margin-top: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #238fa9, #74c7dc);
    box-shadow: 0 14px 30px rgba(35, 143, 169, 0.22);
}
.logout-container button:hover {
    background: linear-gradient(135deg, #1f8199, #5ebbd3);
    box-shadow: 0 18px 36px rgba(35, 143, 169, 0.28);
    transform: translateY(-1px);
}
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: 18px;
    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 claire et compacte des résultats de recherche */
#results {
    width: min(100%, 1540px);
    margin: 18px auto 0;
}

.search-results-summary {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
    color: #16272d;
    font-size: 17px;
}

.search-results-summary strong {
    font-weight: 800;
}

.search-results-summary span {
    color: #5d747b;
    font-size: 14px;
    font-weight: 650;
}

.search-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 10px;
}

.search-results-bar .search-results-summary {
    margin: 0;
}

.search-results-bar .pagination {
    justify-content: flex-end;
    gap: 5px;
    flex: 0 1 auto;
    margin: 0 !important;
}

.search-results-bar .pagination a,
.search-results-bar .pagination .ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 34px;
    height: 34px;
    margin: 0 !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.search-results-bar .pagination .ellipsis {
    width: 28px;
    min-width: 28px;
    padding: 0 !important;
    color: #60787f;
    user-select: none;
}

.bonsai-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bonsai-item {
    display: block;
    min-width: 0;
    border-radius: 14px;
    background: transparent;
}

.bonsai-image {
    width: 112px;
    aspect-ratio: 1;
    align-self: center;
    overflow: hidden;
    border-radius: 11px;
    background: #edf7fa;
    box-shadow: 0 7px 15px rgba(25, 95, 112, 0.1);
}

.bonsai-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.bonsai-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: #16272d;
}

.bonsai-cultivar {
    display: block;
    overflow-wrap: anywhere;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.bonsai-species {
    display: block;
    overflow-wrap: anywhere;
    color: #5c7076;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.25;
}

.bonsai-country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid rgba(35, 143, 169, 0.14);
    border-radius: 999px;
    background: rgba(244, 251, 253, 0.72);
    color: #38535b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.bonsai-country img {
    flex: 0 0 auto;
    border-radius: 2px;
}

.bonsai-link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    min-height: 128px;
    padding: 8px;
    border: 1px solid rgba(35, 143, 169, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 20px rgba(25, 95, 112, 0.07);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.bonsai-link:hover {
    border-color: rgba(35, 143, 169, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(25, 95, 112, 0.12);
    transform: translateY(-1px);
    cursor: pointer;
}

.bonsai-species-title {
    font-size: 17px;
}

@media (max-width: 720px) {
    #results {
        margin-top: 22px;
    }

    .search-results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .search-results-bar .pagination {
        justify-content: flex-start;
    }

    .bonsai-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bonsai-link {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 11px;
        min-height: 120px;
        padding: 10px;
    }

    .bonsai-image {
        width: 104px;
    }

    .bonsai-cultivar {
        font-size: 17px;
    }

    .bonsai-species {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .bonsai-link {
        grid-template-columns: 96px minmax(0, 1fr);
        min-height: 118px;
    }

    .bonsai-image {
        width: 96px;
    }

    .bonsai-country {
        padding: 5px 8px;
        font-size: 13px;
    }
}
    .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;
}

/* ===== Hamburger button ===== */
.hamburger {
  margin-top: 0px;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  display: none; /* visible en mobile via media query */
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger:focus-visible {
  outline: 3px solid rgba(0,123,255,0.45);
  outline-offset: 2px;
}
.hamburger img.hamburger-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hamburger:active img.hamburger-icon {
  filter: brightness(0.85);
}

/* ===== Backdrop (clic pour fermer) ===== */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1050;
  opacity: 0;
  transition: opacity .2s ease;
}
.backdrop.is-visible { opacity: 1; }

/* ===== Drawer: mobile seulement ===== */
@media (max-width: 992px) {
  /* Bouton visible en mobile */
  .hamburger { display: inline-flex; }

  /* Le sidebar passe en tiroir à gauche */
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 280px;
    max-width: 86vw;
    background:
      radial-gradient(circle at 50% 0%, rgba(116, 199, 220, 0.24), transparent 180px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 250, 252, 0.94));
    box-shadow: 18px 0 45px rgba(25, 95, 112, 0.16);
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 1200;
    overflow-y: auto;
    padding: 18px;
  }
  /* État ouvert */
  #sidebar.is-open { transform: translateX(0); }

  html[dir="rtl"] #sidebar {
    right: 0;
    left: auto;
    box-shadow: -18px 0 45px rgba(25, 95, 112, 0.16);
    transform: translateX(100%);
  }

  html[dir="rtl"] #sidebar.is-open {
    transform: translateX(0);
  }

  /* Empêche le scroll de la page quand le menu est ouvert */
  body.menu-open { overflow: hidden; }
}

@media (min-width: 993px) {
  #layout {
    display: block;
  }

  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
  }

  #main-content {
    margin-left: 250px;
    min-height: 100vh;
  }

  html[dir="rtl"] #sidebar {
    right: 0;
    left: auto;
    border-right: 0;
    border-left: 1px solid rgba(35, 143, 169, 0.12);
    box-shadow: -18px 0 45px rgba(25, 95, 112, 0.08);
  }

  html[dir="rtl"] #main-content {
    margin-right: 250px;
    margin-left: 0;
  }
}

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

@media (prefers-color-scheme: dark) {
#main-content {
    background: #1e1e1e;
}
.logo-appy-bonsai {
content: url("/../../images/logo_appy_bonsai_black.png");
}
a.nav-link {
    color: #FFFFFF;
}
#sidebar {
    background:
        radial-gradient(circle at 50% 0%, rgba(31, 143, 173, 0.34), transparent 180px),
        linear-gradient(180deg, rgba(14, 23, 27, 0.98), rgba(17, 37, 42, 0.94));
    border-right-color: rgba(110, 209, 230, 0.14);
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.32);
}
button {
    background: #03658cff;
}
button:hover {
    background: #42a5f5;
}
.navigation-panel ul li:hover {
    background: rgba(110, 209, 230, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.navigation-panel ul li:hover a {
    color: #6ed1e6 !important;
}
.navigation-panel ul li.active {
  background: linear-gradient(135deg, rgba(31, 143, 173, 0.28), rgba(116, 199, 220, 0.16));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.navigation-panel ul li.active a {
  color: #6ed1e6 !important;
}
.navigation-panel ul li a.active {
    background: linear-gradient(135deg, rgba(31, 143, 173, 0.28), rgba(116, 199, 220, 0.16));
    color: #6ed1e6 !important;
}
.navigation-panel a.nav-link {
    color: #b7d2d8 !important;
}
.navigation-panel a.nav-link img {
    opacity: 0.64;
    filter: grayscale(1) invert(1) brightness(0.84);
}
.navigation-panel ul li:hover a.nav-link img,
.navigation-panel ul li.active a.nav-link img,
.navigation-panel a.nav-link.active img {
    opacity: 1;
    filter: sepia(1) saturate(2.2) hue-rotate(145deg) brightness(1.08);
}
.navigation-panel .select-selected,
.navigation-panel .rtl .select-selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(110, 209, 230, 0.22);
    color: #eef9fb;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.navigation-panel .select-selected:after,
.navigation-panel .rtl .select-selected:after {
    border-color: #6ed1e6;
}
.navigation-panel .select-items,
.navigation-panel .rtl .select-items {
    background: rgba(18, 38, 42, 0.96);
    border-color: rgba(110, 209, 230, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}
.navigation-panel .select-items div:hover,
.navigation-panel .same-as-selected {
    background: rgba(110, 209, 230, 0.14);
}
.logout-container button {
    background: linear-gradient(135deg, #1f8fad, #6ed1e6);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.logout-container button:hover {
    background: linear-gradient(135deg, #238fa9, #74c7dc);
}
.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: transparent;
}
#filtersPanel {
    background: #cacaca;
}
#filtersPanel .ab-label {
    color: #000;
}
.resultats {
    color: #d8edf1;
}
.search-results-summary span {
    color: #9fc4cc;
}
.search-results-bar .pagination .ellipsis {
    color: #9fc4cc;
}
.bonsai-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(110, 209, 230, 0.16);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.bonsai-link:hover {
    background: rgba(110, 209, 230, 0.13);
    border-color: rgba(110, 209, 230, 0.3);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}
.bonsai-cultivar {
    color: #f5fbfc;
}
.bonsai-species {
    color: #b7d2d8;
}
.bonsai-country {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(110, 209, 230, 0.2);
    color: #d8edf1;
}
.bonsai-image {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
.bonsai-link:hover .bonsai-item {
    background: transparent;
}
.hamburger { background: transparent; }
.backdrop { background: rgba(0,0,0,.5); }
}

/* ===== Appy account theme: collection, home and stats pages ===== */
:root {
  --appy-blue: #238fa9;
  --appy-blue-soft: #74c7dc;
  --appy-blue-ink: #102f38;
  --appy-surface: rgba(255, 255, 255, 0.66);
  --appy-surface-strong: rgba(255, 255, 255, 0.82);
  --appy-border: rgba(35, 143, 169, 0.16);
  --appy-shadow: 0 18px 48px rgba(25, 95, 112, 0.12);
}

#main-content {
  background:
    radial-gradient(circle at 14% 0%, rgba(35, 143, 169, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 12%, rgba(116, 199, 220, 0.34), transparent 30rem),
    linear-gradient(135deg, #f4fbfd 0%, #e7f6fa 48%, #f8fcfd 100%) !important;
  color: #171512;
}

#main-content > .qr-link,
#main-content > .pagination,
#main-content > div[style*="width: 100%"],
#main-content > .stats-page,
#main-content > .profile-wrap,
#main-content > div > .section-container {
  position: relative;
  z-index: 1;
}

#main-content > div[style*="width: 100%"] > div[style*="display: inline-block"] {
  display: block !important;
  width: 100% !important;
}

.qr-link {
  max-width: 1100px;
  margin: 0 auto 14px !important;
}

.qr-link a {
  width: fit-content;
  min-height: 42px;
  padding: 9px 14px !important;
  border: 1px solid var(--appy-border);
  border-radius: 999px;
  background: var(--appy-surface);
  color: #536a70 !important;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(25, 95, 112, 0.08);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.qr-link a:hover {
  color: var(--appy-blue) !important;
  background: var(--appy-surface-strong);
  text-decoration: none;
}

.pagination {
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  height: 42px;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 1px solid var(--appy-border) !important;
  border-radius: 999px !important;
  background: var(--appy-surface) !important;
  color: #536a70 !important;
  box-shadow: 0 10px 24px rgba(25, 95, 112, 0.08) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pagination-ellipsis {
  width: 44px;
  padding: 0 !important;
  color: #536a70;
  user-select: none;
}

.pagination a.active,
.pagination a:hover {
  background: linear-gradient(135deg, var(--appy-blue), var(--appy-blue-soft)) !important;
  border-color: rgba(116, 199, 220, 0.5) !important;
  color: #fff !important;
}

#sortMenu select,
#sortSelect {
  min-height: 42px;
  border: 1px solid var(--appy-border) !important;
  border-radius: 14px !important;
  background: var(--appy-surface-strong) !important;
  color: var(--appy-blue-ink);
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(25, 95, 112, 0.08);
}

#sortButton {
  min-height: 42px;
  margin-top: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--appy-blue), var(--appy-blue-soft)) !important;
  box-shadow: 0 14px 30px rgba(35, 143, 169, 0.2);
}

.cards-grid {
  width: min(100%, 1080px);
  margin: 12px auto 0;
  gap: 14px !important;
  grid-template-columns: repeat(5, minmax(142px, 186px)) !important;
  justify-content: center;
}

.card {
  padding: 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(228, 247, 251, 0.66)),
    var(--appy-surface);
  box-shadow: var(--appy-shadow);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(25, 95, 112, 0.18);
}

.card .titre-liste {
  min-height: 26px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--appy-blue-ink) !important;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.15;
  margin-bottom: 5px !important;
  text-decoration: none;
}

.card .nav-link {
  color: var(--appy-blue-ink) !important;
}

.grid-img {
  width: 100% !important;
  max-width: 154px;
  height: clamp(104px, 14.2vh, 154px) !important;
  border-radius: 15px !important;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(25, 95, 112, 0.12);
}

.profile-wrap {
  padding: 22px clamp(14px, 3vw, 34px) !important;
}

.profile-card,
.profile-container,
.stats-card-panel,
.section,
.junip {
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(228, 247, 251, 0.66)),
    var(--appy-surface) !important;
  box-shadow: var(--appy-shadow) !important;
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.profile-hero {
  background:
    radial-gradient(circle at 12% 8%, rgba(116, 199, 220, 0.28), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(228,247,251,.66)) !important;
}

.avatar {
  background: linear-gradient(135deg, var(--appy-blue), var(--appy-blue-soft)) !important;
}

.section-container {
  gap: 18px !important;
  margin: 20px auto 26px !important;
}

.section,
.junip {
  width: 260px;
  min-height: 190px;
}

.junip {
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.section:hover,
.junip:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(25, 95, 112, 0.18) !important;
}

.section-title {
  color: var(--appy-blue-ink) !important;
  font-weight: 760;
}

.form-container {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--appy-surface);
  box-shadow: var(--appy-shadow);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

.form-input,
.form-textarea {
  border: 1px solid var(--appy-border) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.78) !important;
}

.submit-button,
.contact-button {
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--appy-blue), var(--appy-blue-soft)) !important;
  box-shadow: 0 14px 30px rgba(35, 143, 169, 0.2) !important;
}

.stats-page {
  color: #171512 !important;
}

.stats-page-header h1,
.stats-card-panel h2,
.stats-inventory-card .stats-value,
.stats-finance-total-label,
.stats-distribution-value,
.stats-distribution-price,
.stats-estimated-table,
.stats-finance-value,
.stats-finance-label,
.stats-activity-circle .stats-value {
  color: var(--appy-blue-ink) !important;
}

.stats-page-header p,
.stats-inventory-card .stats-label,
.stats-activity-label {
  color: #536a70 !important;
}

.stats-inventory-card,
.stats-activity-circle {
  border-color: var(--appy-border) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 12px 28px rgba(25, 95, 112, 0.1) !important;
}

.stats-activity-circle.stats-circle-species {
  background: linear-gradient(145deg, #bdf0df, #86ddc6) !important;
  border-color: rgba(132, 222, 194, 0.86) !important;
  box-shadow: 0 18px 34px rgba(64, 179, 149, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.35) !important;
}

.stats-activity-circle.stats-circle-events {
  background: linear-gradient(145deg, #ffe4a4, #ffc66f) !important;
  border-color: rgba(255, 194, 118, 0.9) !important;
  box-shadow: 0 18px 34px rgba(226, 157, 61, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.36) !important;
}

.stats-activity-circle.stats-circle-photos {
  background: linear-gradient(145deg, #dfdbfb, #bfc1ef) !important;
  border-color: rgba(191, 193, 239, 0.9) !important;
  box-shadow: 0 18px 34px rgba(132, 135, 210, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.34) !important;
}

.stats-finance-bar,
.stats-distribution-track {
  background: rgba(116, 199, 220, 0.18) !important;
}

.stats-finance-fill,
.stats-distribution-fill,
.stats-finance-total-value {
  background: linear-gradient(90deg, var(--appy-blue), var(--appy-blue-soft)) !important;
}

.stats-finance-fill.fill-bonsais {
  background: linear-gradient(90deg, #bce8ca, #8fd9a7) !important;
}

.stats-finance-fill.fill-pots {
  background: linear-gradient(90deg, #cbe8ee, #8bd2df) !important;
}

.stats-finance-fill.fill-rocks {
  background: linear-gradient(90deg, #e7e7e7, #cfcfcf) !important;
}

.stats-finance-fill.fill-tools {
  background: linear-gradient(90deg, #f1dfc9, #e7bd87) !important;
}

.stats-finance-fill.fill-tablettes {
  background: linear-gradient(90deg, #d8d1ff, #b7a8f4) !important;
}

.stats-finance-fill.fill-accessoires {
  background: linear-gradient(90deg, #ffd8e6, #f7a3c3) !important;
}

.stats-finance-fill.fill-shitakusa {
  background: linear-gradient(90deg, #d9f2c9, #aee37a) !important;
}

.stats-distribution-fill {
  background: linear-gradient(90deg, #6f9638, #a8c765) !important;
}

.stats-finance-total-value {
  background: linear-gradient(90deg, #f2a47e, #ffb08b) !important;
}

@media (max-width: 650px) {
  .cards-grid {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .grid-img {
    max-width: none;
    height: 145px !important;
  }
}

@media (max-width: 420px) {
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 993px) {
  #main-content {
    position: relative;
    padding: clamp(12px, 1.7vh, 18px) clamp(22px, 3vw, 34px);
  }

  .qr-link {
    position: absolute;
    top: clamp(12px, 1.7vh, 18px);
    left: clamp(22px, 3vw, 34px);
    margin: 0 !important;
  }

  .qr-link a {
    min-height: 38px;
    padding: 7px 13px !important;
  }

  .qr-link img {
    height: 24px;
  }

  .pagination {
    margin: 6px auto 8px !important;
  }

  .pagination a {
    min-width: 44px;
    height: 42px;
    padding: 0 15px !important;
  }

  #main-content > div[style*="width: 100%"] {
    margin-top: 0 !important;
  }

  #sortMenu select,
  #sortSelect,
  #sortButton {
    min-height: 36px;
  }
}

@media (min-width: 993px) and (max-width: 1320px) {
  .qr-link {
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    margin: 0 auto 12px !important;
  }

  .pagination {
    margin-top: 0 !important;
  }
}

@media (min-width: 993px) and (max-width: 1380px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(142px, 186px)) !important;
  }
}

@media (min-width: 993px) and (max-width: 1160px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(142px, 186px)) !important;
  }
}

@media (min-width: 651px) and (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(142px, 186px)) !important;
    justify-content: center;
  }
}

@media (min-width: 651px) and (max-width: 760px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(142px, 186px)) !important;
  }
}

@media (min-width: 993px) and (max-height: 820px) {
  .cards-grid {
    gap: 12px !important;
  }

  .card {
    padding: 10px !important;
  }

  .grid-img {
    height: clamp(96px, 12.6vh, 136px) !important;
    max-width: 136px;
  }

  .card .titre-liste {
    min-height: 24px;
    font-size: 12px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --appy-surface: rgba(18, 38, 42, 0.66);
    --appy-surface-strong: rgba(20, 48, 55, 0.82);
    --appy-border: rgba(110, 209, 230, 0.18);
    --appy-blue-ink: #eef9fb;
    --appy-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  }

  #main-content {
    background:
      radial-gradient(circle at 12% 0%, rgba(31, 143, 173, 0.34), transparent 31rem),
      radial-gradient(circle at 88% 14%, rgba(116, 199, 220, 0.2), transparent 28rem),
      linear-gradient(135deg, #0e171b 0%, #13252c 55%, #0f161a 100%) !important;
    color: #eef9fb;
  }

  .card,
  .profile-card,
  .profile-container,
  .stats-card-panel,
  .section,
  .junip,
  .form-container {
    background:
      linear-gradient(135deg, rgba(34, 84, 94, 0.74), rgba(18, 38, 42, 0.66)),
      var(--appy-surface) !important;
    border-color: var(--appy-border) !important;
  }

  .profile-hero {
    background:
      radial-gradient(circle at 12% 8%, rgba(116, 199, 220, 0.18), transparent 22rem),
      linear-gradient(135deg, rgba(34,84,94,.7), rgba(18,38,42,.62)) !important;
  }

  .junip {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
  }

  .qr-link a,
  .pagination a,
  .pagination-ellipsis,
  #sortMenu select,
  #sortSelect,
  .stats-inventory-card,
  .stats-activity-circle,
  .form-input,
  .form-textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--appy-border) !important;
    color: #d8edf1 !important;
  }

  .card .titre-liste,
  .card .nav-link,
  .section-title,
  .stats-page-header h1,
  .stats-card-panel h2,
  .stats-inventory-card .stats-value,
  .stats-finance-total-label,
  .stats-distribution-value,
  .stats-distribution-price,
  .stats-estimated-table,
  .stats-finance-value,
  .stats-finance-label,
  .stats-activity-circle .stats-value {
    color: #eef9fb !important;
  }

  .stats-page-header p,
  .stats-inventory-card .stats-label,
  .stats-activity-label,
  .muted {
    color: #b7d2d8 !important;
  }
}

/* ===== Sidebar source of truth ===== */
#sidebar .navigation-panel {
  min-height: calc(100vh - 36px);
}

#sidebar .navigation-panel .sidebar-nav-list,
#sidebar .navigation-panel ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#sidebar .navigation-panel .sidebar-nav-list > li,
#sidebar .navigation-panel ul > li {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 15px !important;
}

#sidebar .navigation-panel .sidebar-nav-link,
#sidebar .navigation-panel a.nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
  padding: 7px 10px !important;
  border-radius: 15px !important;
  color: #536a70 !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
  background: transparent !important;
}

#sidebar .navigation-panel .sidebar-nav-link img,
#sidebar .navigation-panel a.nav-link img {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  opacity: 0.52;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

#sidebar .navigation-panel .sidebar-nav-list > li:hover,
#sidebar .navigation-panel ul > li:hover,
#sidebar .navigation-panel .sidebar-nav-list > li.active,
#sidebar .navigation-panel ul > li.active {
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 12px 28px rgba(25, 95, 112, 0.1) !important;
}

#sidebar .navigation-panel .sidebar-nav-link:hover,
#sidebar .navigation-panel .sidebar-nav-link.active,
#sidebar .navigation-panel a.nav-link:hover,
#sidebar .navigation-panel a.nav-link.active,
#sidebar .navigation-panel li.active > a.nav-link {
  color: #238fa9 !important;
  font-weight: 700 !important;
  background: transparent !important;
}

#sidebar .navigation-panel .sidebar-nav-link:hover img,
#sidebar .navigation-panel .sidebar-nav-link.active img,
#sidebar .navigation-panel a.nav-link:hover img,
#sidebar .navigation-panel a.nav-link.active img,
#sidebar .navigation-panel li.active > a.nav-link img {
  opacity: 1;
  filter: sepia(1) saturate(2.2) hue-rotate(145deg) brightness(0.86);
  transform: scale(1.04);
}

@media (prefers-color-scheme: dark) {
  #sidebar .navigation-panel .sidebar-nav-link,
  #sidebar .navigation-panel a.nav-link {
    color: #b7d2d8 !important;
    background: transparent !important;
  }

  #sidebar .navigation-panel .sidebar-nav-link img,
  #sidebar .navigation-panel a.nav-link img {
    opacity: 0.64;
    filter: grayscale(1) invert(1) brightness(0.84);
  }

  #sidebar .navigation-panel .sidebar-nav-list > li:hover,
  #sidebar .navigation-panel ul > li:hover,
  #sidebar .navigation-panel .sidebar-nav-list > li.active,
  #sidebar .navigation-panel ul > li.active {
    background: rgba(110, 209, 230, 0.12) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24) !important;
  }

  #sidebar .navigation-panel .sidebar-nav-link:hover,
  #sidebar .navigation-panel .sidebar-nav-link.active,
  #sidebar .navigation-panel a.nav-link:hover,
  #sidebar .navigation-panel a.nav-link.active,
  #sidebar .navigation-panel li.active > a.nav-link {
    color: #6ed1e6 !important;
    background: transparent !important;
  }

  #sidebar .navigation-panel .sidebar-nav-link:hover img,
  #sidebar .navigation-panel .sidebar-nav-link.active img,
  #sidebar .navigation-panel a.nav-link:hover img,
  #sidebar .navigation-panel a.nav-link.active img,
  #sidebar .navigation-panel li.active > a.nav-link img {
    opacity: 1;
    filter: sepia(1) saturate(2.2) hue-rotate(145deg) brightness(1.08);
  }
}
