:root {
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Syne", var(--font-body);
}

.nb-body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: #000000;
  font-size: 1.3rem;
}

.nb-page {
  background-color: #ffffff;
}

h2, h3, h4, .h2, .h3, .h4 {
  font-family: var(--font-title);
  letter-spacing: 0.01em;
  color: #000000;
}

h1, .h1 {
  font-size: 2rem;
  font-family: var(--font-body);
  color: #000000;
}

h2 {
  font-size: 3rem;
}
h3 {
  font-size: 1.6rem;
  font-weight: 600;
}

.font-syne {
  font-family: var(--font-title);
}

/* ---------- Header / navigation ---------- */

.nb-header {
  background-color: #ffffff;
}

#main_nav, .nb-main-nav {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* Avoid logo to push menu outside of the screen (mobile) */
.nb-brand-title {
  flex: 1 1 auto;
  min-width: 0;
}

/* Responsive logo */
.nb-brand-logo {
  display: block;
  width: clamp(180px, 55vw, 420px); /* min, fluide, max */
  height: auto;
  max-width: 100%;
}
@media (max-width: 360px) {
  .nb-brand-logo {
    width: clamp(160px, 58vw, 360px);
  }
}

.logged-in-nav form {
  /* this is for logout button */
  margin: 0;
  display: inline-flex;
}

.nb-main-nav .nb-nav-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  color: #111827;
  text-decoration: none;
}

.nb-main-nav .nb-nav-link:hover,
.nb-main-nav .nb-nav-link:focus {
  color: #111827;
  border-bottom-color: #f8de00;
  text-decoration: none;
}

.nb-main-nav .nb-nav-link.active {
  color: #111827;
  border-bottom-color: #f8de00;
}


.nb-header-icon {
  border: 0;
}

.nb-admin-btn {
  font-size: 0.75rem;
}

/* ---------- Sections ---------- */

.nb-section {
  margin-bottom: 2.5rem;
  text-align: center;
}

.nb-section-card {
  border-radius: 2rem;
  padding: 2rem 2.5rem;
}

.bold-blue-text {
  color: #164194;
  font-weight: bold;
}

.nb-section-card--yellow {
  background-color: #f8de00;
}

.nb-section-card--yellow-light {
  background-color: #f8f4a0;
}

.nb-section-card--blue-light {
  background-color: #eff6ff;
}

.nb-section-card--white {
  background-color: #ffffff;
}

.nb-section-card h2 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.nb-section-page-introduction p {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1.4;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  color: #000000;
}
.nb-contact-icon {
  width: 2.5rem;
  height: auto;
  margin-right: 1rem;
}

.nb-opening-hours-wrapper {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.nb-opening-hours {
  display: inline-block;
  text-align: left;
}

.nb-opening-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.5rem;
}

.nb-opening-row dt {
  min-width: 4rem;
  font-weight: 600;
}

.nb-opening-row dd {
  margin: 0;
}

/* ---------- Reservation cards ---------- */

/* Cards container spacing */
.nb-reservation-cards {
  margin-top: 1.5rem;
}

.nb-reservation-card {
  height: 100%;
  border-radius: 1.75rem;
  border: 2px solid #111827;
  background-color: transparent;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nb-reservation-icon {
  margin-bottom: 1.5rem;
}

.nb-reservation-icon img {
  width: 100px;
  height: 100px;
}

.nb-reservation-card-title {
  font-family: var(--font-title);
  margin-bottom: 0.75rem;
  color: #164194;
}

.nb-reservation-card-text {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #000000;
}

.nb-reservation-card-footer {
  margin-top: auto;
}

.nb-reservation-form .form-check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

.nb-reservation-form .form-check-input {
  margin-top: .35rem;
}

.nb-checkbox-label {
  align-items: flex-start;
}

.nb-checkbox-error {
  padding-left: 1.75rem; /* valeur stable visuellement */
}

.nb-line-field--checkbox .nb-line-label {
  width: 100%;
  white-space: normal;
}

/* ---------- Team Section ---------- */

.nb-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 70rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .nb-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nb-team-card {
  text-align: center;
}

.nb-team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #d9d9d9;
  border-radius: 3rem;
  margin-bottom: 1.2rem;
}

.nb-team-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: #164194;
}

.nb-team-role {
  font-size: 1rem;
  color: #000;
}

/* ---------- Buttons ---------- */

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  color: #000000;
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid #111111;
}

.nb-btn-black {
  background-color: #111111;
  color: #ffffff;
  border: 1px solid #111111;
}

.nb-btn-yellow {
  background-color: #f8de00;
  color: #000000;
  border: 1px solid #f8de00;
}

.nb-btn-black:hover,
.nb-btn-black:focus,
.nb-btn-yellow:hover,
.nb-btn-yellow:focus {
  background-color: #ffffff;
  color: #111111;
  text-decoration: none;
  border: 1px solid #111111;
}

.nb-btn-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
}

.nb-btn-outline-black {
  background-color: transparent;
  color: #111111;
  border: 1px solid #111111;
}

.nb-btn-outline-black:hover,
.nb-btn-outline-black:focus {
  background-color: #111111;
  color: #ffffff;
}

/* ---------- Homepage hero ---------- */

.nb-hero {
  position: relative;
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  border-radius: 2rem;
  overflow: hidden;

  /* Background image */
  background-image: url("/static/img/home-naturbestattung-forest.d3a9798c27a6.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.nb-hero-logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nb-hero-logo {
  width: clamp(140px, 20vw, 260px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.35));
}

.nb-image-wrapper {
  position: relative;
  max-width: 80rem;
  max-height: 30rem;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.nb-image-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 30rem;
  border-radius: 2rem;
}

.nb-model-image-wrapper {
  max-width: 10rem;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* ---------- FAQ ---------- */

.accordion-button {
  font-size: 1.2rem;
}

.accordion-body {
  font-size: 1.1rem;
  text-align: left;
  padding-top: 0;
}

.nb-faq-accordion {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.nb-faq-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
}

.nb-faq-accordion .accordion-button {
  padding-left: 0;
  padding-right: 0;
  background-color: transparent;
  font-weight: 500;
}

.nb-faq-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: none;
}

/* Force transparency on all accordion layers */
.nb-faq-accordion .accordion-item,
.nb-faq-accordion .accordion-header,
.nb-faq-accordion .accordion-collapse {
  background-color: transparent !important;
}

/* ---------- Process list ---------- */

.nb-process-list-wrapper {
  margin-top: 2.5rem;
}

.nb-process-list {
  font-family: var(--font-title);
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 60rem;
  border-top: 1px solid #111111;
  text-align: left;
}

.nb-process-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #111111;
  font-size: 1.1rem;
  font-weight: 400;
}

/* ---------- Footer ---------- */

.nb-footer {
  background-color: transparent;
  color: #f9fafb;
  font-size: 0.9rem;
}

.nb-footer-card {
  background-color: #000000;
  border-radius: 2.5rem;
  padding: 2.5rem 3rem;
}

.nb-footer-heading {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f9fafb;
}
.nb-footer-coat-of-arms img {
  max-width: 60px;
  height: auto;
}

.nb-footer-contact {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .nb-footer-contact {
    flex-direction: row;
    align-items: flex-start;
  }
}


.nb-footer-card p,
.nb-footer-opening-hours,
.nb-footer-links-list {
  font-size: 0.9rem;
}

.nb-footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nb-footer-links-list li {
  margin: 0 0 0.25rem 0;
}

.nb-footer-opening-hours {
  margin: 0;
}

.nb-footer-opening-row {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 0.2rem;
}

.nb-footer-opening-row dt {
  min-width: 3.5rem;
  font-weight: 500;
}

.nb-footer-opening-row dd {
  margin: 0;
}

.nb-footer-link {
  color: #f9fafb;
  text-decoration: none;
}

.nb-footer-link-highlight {
  color: #f8de00;
  font-weight: 500;
}

.nb-footer-link:hover,
.nb-footer-link:focus {
  text-decoration: underline;
}

.nb-footer-link-icon {
  width: 0.8rem;
  height: auto;
  margin-right: 0.35rem;
  vertical-align: -0.1rem;
}

/* ---------- Reservation form page ---------- */

.nb-reservation-page .nb-section-card {
  border-radius: 2.5rem;
  padding: 3rem 3.5rem;
}

.nb-reservation-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.nb-reservation-tree-summary {
  font-size: 0.95rem;
  text-align: center;
}

.nb-reservation-tree-meta {
  font-size: 0.85rem;
  text-align: center;
}

.nb-reservation-form {
  max-width: 50rem; /* un peu plus large pour labels + champs */
  margin: 0 auto;
}

.nb-reservation-groups {
  margin-top: 2rem;
  text-align: left;
}

.nb-reservation-group {
  margin-bottom: 2rem;
}

.nb-line-field {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}

.nb-line-label {
  width: 19rem;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  text-align: left;
  white-space: nowrap;
}

.nb-line-input {
  flex: 1;
}

.nb-line-input input,
.nb-line-input select,
.nb-line-input textarea {
  width: 100%;
  border: none !important;
  border-bottom: 2px solid #111111 !important;
  padding: 0.35rem 0 0.25rem 0;
  font-size: 1rem;
  border-radius: 0;
  background: transparent !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}
.nb-line-input input:-webkit-autofill,
.nb-line-input input:-webkit-autofill:hover,
.nb-line-input input:-webkit-autofill:focus,
.nb-line-input input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
  background-color: transparent !important;
  color: inherit !important;
}
.nb-line-input input:focus,
.nb-line-input select:focus,
.nb-line-input textarea:focus {
  background: transparent !important;
}


/* Erreurs */
.nb-reservation-error {
  color: #b91c1c;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.nb-reservation-actions {
  margin-top: 2rem;
  text-align: center;
}

.nb-reservation-submit {
  min-width: 200px;
}

@media (max-width: 767.98px) {
  .nb-reservation-page .nb-section-card {
    padding: 2rem 1.5rem;
  }

  .nb-line-field {
    flex-direction: column;
    align-items: stretch;
  }

  .nb-line-label {
    width: 100%;
  }
}

/*----------- Leaflet -----------*/

.leaflet-map {
  border-radius: .5rem;
}

/* ------------ NB ADMIN -------- */

.nb-progress-bar {
  display: flex;
  width: 100%;
  max-width: 30rem;
  border-radius: 999px;
  overflow: hidden;
  background-color: #e9ecef;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nb-progress-bar--cancelled {
  border: 2px solid #dc3545;
}

.nb-progress-step {
  flex: 1 1 0;
  text-align: center;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.nb-progress-step--green {
  background-color: #198754;
  color: #fff;
}

.nb-progress-step--yellow {
  background-color: #ffc107;
  color: #212529;
}

.nb-progress-step--grey {
  background-color: #e9ecef;
  color: #6c757d;
}

.nb-table-rr tbody tr td {
  vertical-align: middle;
}

.nb-table-rr td .badge {
  font-size: 0.75rem;
}

.nb-table-rr td .fw-semibold {
  font-size: .9rem;
}

.nb-table-rr td small {
  line-height: 1.1;
}

/* --- Trees list + map layout --- */

.nb-tree-list {
  max-height: 60vh;
  overflow-y: auto;
}

.nb-tree-list .list-group-item.active {
  background-color: #e7f1ff;
  border-color: #cfe2ff;
  color: inherit;
}

.nb-tree-split {
  position: relative;
}
@media (min-width: 992px) {
  .nb-tree-split {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .nb-tree-split > .tab-pane {
    display: block !important;
    opacity: 1 !important;
  }

  .nb-tree-split > #tab-list {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .nb-tree-split > #tab-map {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nb-tree-split > .tab-pane.fade {
    transition: none !important;
  }
}

/* HTMX indicator handling */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: flex;
}

/* Global centered loader */
.nb-loading-overlay {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 600;
  background: rgba(255, 255, 255, 0.25);
}

.nb-loading-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  color: #495057;
}
