* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fbff;
  color: #1f2d3d;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between; /* <-- change ici */
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.right-header {
  display: flex;
  align-items: center;
  gap: 0px; /* espace entre crédits et menu */
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
  font-weight: 1000;
  color: #005bbb;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: baseline;
  cursor: pointer;
  margin-left: -15px;
}

.logo-strong {
  font-weight: 200;
  color: #66aadd;
}

.app-sub,
.sample {
  font-size: 14px;
  color: #888;
  font-weight: 400;
  margin-left: 2px;
}

.credits-pill {
  margin-right: -15px;
  margin-left: 10px;
  font-size: 12px;
  display: inline-block;
  font-weight: 600;
  background: #eef6ff;
  border: 1px solid #cfe3ff;
  color: #004a9f;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}
header .logo,
header .credits-pill {
  vertical-align: middle;
}

.credits-pill.credits-warning {
  color: #E67E22;
}

.credits-pill.credits-critical {
  color: #B22222;
}

/* === Credits History Modal === */
.credit-log-modal .modal-content {
  max-width: 800px;
  width: 100%;
}

.credit-log-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #003366;
}

.credit-log-scroll {
  max-height: 50vh;
  overflow: auto;
  border: 1px solid #e9eef5;
  border-radius: 8px;
  background: #fff;
}

/* Table */
.credit-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.credit-log-table thead th {
  text-align: center;
  padding: 4px;
  border-bottom: 1px solid #e5eefb;
  background: #f5f8ff;
  color: #004a9f;
  font-weight: 600;
}

.credit-log-table tbody td {
  padding: 5px;
  border-bottom: 1px solid #f0f3f8;
  text-align: center;
}

.credit-log-table tbody tr:hover {
  background: #f9fbff;
}

/* Badges type */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}

.badge-add {
  background: #e8f5e9;
  color: #1b5e20;
}

.badge-spend {
  background: #fff3e0;
  color: #e65100;
}

.badge-denied {
  background: #ffebee;
  color: #b71c1c;
}

/* + / - */
.delta.plus { color: #2e7d32; font-weight: 600; }
.delta.minus { color: #B22222; font-weight: 600; }

/* Bouton Close (réutilise .modal-cancel mais on ajuste un peu) */
.credit-log-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
/* Colonne Reason : alignée à droite + petite taille */
.credit-log-table td:last-child,
.credit-log-table th:last-child {
  font-size: 8pt;
  text-align: left;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #1f2d3d;
  font-weight: 500;
}

nav a:hover {
  color: #005bbb;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
}

#vault-warning {
  background: #fff3cd;
  color: #856404;
  padding: 5px 2em 5px 0.5em;
  font-size: 0.8em;
  text-align: center;
  border-bottom: 1px solid #ffeeba;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#vault-warning button {
  margin-left: 12px;
  padding: 5px 12px;
  font-size: 0.85em;
  background: #ffe8a1;
  border: 1px solid #e0c97f;
  border-radius: 4px;
  cursor: pointer;
  color: #856404;
}

#vault-warning span {
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

.hero {
  text-align: center;
  padding: 12rem 2rem 4rem;
  background: linear-gradient(to bottom, #e3f2fd, #f8fbff);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1rem;
  color: #4a6078;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-box {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  border: 2px solid #005bbb;
  border-radius: 10px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-box button {
  background-color: #005bbb;
  color: white;
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  font-weight: 600;
}

.search-box button:hover {
  background-color: #004a99;
}

input[type="file"] {
  font-size: 0.85rem;
  border: none;
  margin-top: 0.5rem;
  color: #003366;
  cursor: pointer;
}

.photo-btn {
  display: inline-flex;         /* inline with inputs but flex so we can center */
  align-items: center;          /* vertically center icon + text */
  vertical-align: top;       /* align with text-inputs on the same line */
  margin-top: -10px;
  background-color: #ffffff;
  color: white;
  border: none;
  padding: 0 1rem;              /* horizontal padding only */
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: -0.5rem;          /* space from preceding input */
}


/* full-screen overlay */
.img-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.img-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Dans votre fichier styles.css */

.info-textarea {
  width: 100%;
  min-height: 4rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.asset-updated {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #555;
}

.storage-info {
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  margin-bottom: 0.8rem;
  margin-top: -40px;
  opacity: 0.5;
}

.btn-report {
  display: block;
  width: 100%;
  margin: 16px auto;
  padding: 10px 20px;
  background-color: #004a9f; /* même bleu que ton thème */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-report:hover {
  background-color: #003a7a;
  transform: translateY(-2px);
}

.btn-report:active {
  background-color: #002d5c;
  transform: translateY(0);
}

.more-btn {
  display: block;
  width: 100%;
  margin: 16px auto;
  padding: 10px 20px;
  background-color: #004a9f; /* même bleu que ton thème */
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.more-btn:hover {
  background-color: #003a7a;
  transform: translateY(-2px);
}

.more-btn:active {
  background-color: #002d5c;
  transform: translateY(0);
}
.demo {
  padding: 5rem 3rem;
  text-align: center;
}

.demo h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 3rem;
}

.demo-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 1rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.demo-list li {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.ao-report button { touch-action: manipulation; }

.asset-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.tag-input,
.value-input {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 120px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: #cce5ff;
  color: #003366;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  font-size: 0.75rem;
}

.add-tag-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #005bbb;
  cursor: pointer;
  padding: 0 0.5rem;
}

.valuation-history {
  font-size: 0.8rem;
  color: #444;
  background-color: #f9f9f9;
  padding: 0.4rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  border: 1px solid #ddd;
  width: 100%;
}

.valuation-history ul li {
  margin-bottom: 0.2rem;
}
.valuation-history table {
  font-size: 0.6rem;
}

.valuation-history th {
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

.valuation-history td {
  border-bottom: 1px solid #f0f0f0;
}

#groupBySection {
  padding-top: 6rem;
  margin-top: 2rem;
  display: flex;
  justify-content: left;
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.group-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.group-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
  white-space: nowrap;
}

.group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.group-btn {
  margin: 0.25rem;
  padding: 0.4rem 0.8rem;
  background: #005bbb;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 0.85rem;
  cursor: pointer;
}

.group-btn:hover {
  background: #004a99;
}

#resultBox {
  display: none;
  margin-top: 2rem;
  padding: 2rem;
  background-color: #ffffff;
  border: 2px solid #005bbb;
  border-radius: 12px;
  width: 40%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: left;
}

#resultBox h3 {
  margin-bottom: 0.5rem;
  color: #003366;
}

#resultBox .total {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

#resultBox ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

#resultBox li {
  padding: 0.25rem 0;
}

footer {
  background: #eaf1f8;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #4a6078;
  margin-top: auto;
}

.tool-section {
  background: #ffffff;
  border: 1px solid #e0ecf7;
  border-radius: 16px;
  max-width: 760px;
  margin: 4rem auto;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 91, 187, 0.08);
}

.tool-title {
  margin-top: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #003366;
  text-align: center;
  margin-bottom: 1.5rem;
}

.tool-instructions {
text-align: left;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
}

.tool-instructions ul {
  margin-top: 0.5rem;
  padding-left: 1.4rem;
}

.tool-instructions li {
  margin: 0.4rem 0;
}

.tool-note {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.8rem;
}

.password-section {
  max-width: 480px;
  margin: 2.5rem auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.password-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ccd9ee;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  max-width: 400px;
  background-color: #fff;
  color: #1f2d3d;
  box-shadow: 0 2px 4px rgba(0, 91, 187, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-input:focus {
  border-color: #005bbb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 91, 187, 0.1);
}

#importSection {
  position: relative;
}

.import-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #444; /* plus foncé */
  cursor: pointer;
  z-index: 50;
  transition: color 0.2s ease;
}

.import-close-btn:hover {
  color: #d22; /* rouge au survol */
}

/* Bouton pour rouvrir la section d'import */
.reopen-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #005bbb;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 91, 187, 0.2);
  cursor: pointer;
  z-index: 1000;
  transition: background 0.2s ease;
}

.reopen-button:hover {
  background: #004a99;
}

.intro-section.collapsed {
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
}

.intro-section.expanded {
  opacity: 1;
  pointer-events: all;
  transition: all 0.5s ease;
}

.dropzone-enhanced {
  background: #f6faff;
  border: 2px dashed #99bdf2;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  max-width: 540px;
  margin: 0 auto;
}

.dropzone-enhanced:hover {
  background-color: #eef6ff;
  border-color: #005bbb;
}

.dropzone-enhanced.hover {
  background-color: #dcefff;
  border-color: #005bbb;
}

.dropzone-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.4rem;
}

.dropzone-sub {
  font-size: 0.95rem;
  color: #555;
}

#fileLoadedMsg {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1rem;
  color: green;
  display: none;
}

.modal-content p {
  font-size: 1rem;
}

.modal-actions button {
  font-size: 0.7rem;
}

.modal {
  position: fixed;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0 */
  display: none;               /* affichée en JS */
  align-items: flex-start;     /* on colle en haut pour laisser respirer */
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 24px;               /* marge intérieure (espace autour du contenu) */
  overflow: auto;              /* 🔑 permet de scroller si le contenu dépasse */
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  max-width: 400px;
  width: 100%;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-confirm {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.modal-confirm:hover {
  background-color: #c62828;
}

.modal-cancel {
  background-color: #ccc;
  color: #333;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}

.modal-cancel:hover {
  background-color: #bbb;
}

/* ---------- Import modal ---------- */
.import-modal { max-width: 920px; width: 95%; text-align: left; }

.dropzone {
  margin: 8px 0 14px;
  padding: 18px;
  border: 2px dashed #99bdf2;
  background: #f6fbff;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}
.dropzone:hover { background: #eef6ff; }
.dropzone input[type="file"] { display: none; }
.dropzone p { margin: 8px 0; }

.dropzone-enhanced {
  width: 90%;
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  border: 3px dashed #0074D9;
  border-radius: 12px;
  background-color: #f0f8ff;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.dropzone-enhanced:hover {
  background-color: #e8f4fc;
  border-color: #005bbb;
}

.dropzone-enhanced.hover {
  background-color: #dcefff;
  border-color: #005bbb;
}

.dropzone-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0.4rem;
}

.dropzone-sub {
  font-size: 0.95rem;
  color: #555;
}

.muted { color: #666; font-size: 0.9rem; }

.import-parse .legend { margin: 6px 0 10px; }

.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab-btn {
  border: 1px solid #ccd9ee; background: #fff; border-radius: 8px;
  padding: 6px 10px; cursor: pointer; font-weight: 600;
}
.tab-btn.active { background: #eef6ff; color: #004a9f; border-color: #99bdf2; }

.table-wrap { overflow:auto; max-height: 50vh; border:1px solid #e9eef5; border-radius:8px; background:#fff; }
.import-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.import-table th, .import-table td { border-bottom: 1px solid #f0f3f8; padding: 6px 8px; vertical-align: top; }
.import-table thead th { position: sticky; top: 0; background: #f5f8ff; z-index: 1; }
.import-table .diff { display:flex; gap:6px; flex-wrap:wrap; }
.diff .cur, .diff .inc {
  display:inline-block; padding:2px 6px; border-radius:6px; font-size:0.85rem;
}
.diff .cur { background:#fff7e6; border:1px solid #ffd591; }
.diff .inc { background:#e6fffb; border:1px solid #87e8de; }

.badge-new { background:#e8f5e9; color:#1b5e20; border:1px solid #c8e6c9; border-radius:999px; padding:2px 8px; font-size:.8rem; }
.badge-conflict { background:#fff3e0; color:#e65100; border:1px solid #ffd8a8; border-radius:999px; padding:2px 8px; font-size:.8rem; }

/* narrow cells */
.cell-check { width: 60px; text-align:center; }
.cell-id    { width: 160px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cell-tags  { min-width: 180px; }
.cell-notes { min-width: 240px; }

/* better modal on mobile */
@media (max-width: 640px) {
  .import-modal { width: 98%; max-width: 98%; padding: 1.2rem; }
  .table-wrap { max-height: 58vh; }
}

.asset-header {
  position: relative;
  padding: 0.75rem 1rem 0.5rem;
  background: #f0f6fb;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
  color: #003366;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-btn {
  position: absolute;
  top: 0;
  right: 0;
  border: none;
  background-color: #e53935;
  color: white;
  border-top-right-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-btn:hover {
  background-color: #c62828;
}

.asset-name {
  cursor: pointer;
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.asset-name:hover {
  background-color: #e3f2fd;
}

.edit-name-input {
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 580px;
}

.manifesto-section,
#about {
  padding: 60px 20px;
  background-color: #ffffff;
}

.manifesto-container,
.subscribe-container {
  max-width: 850px;
  margin: 0 auto;
}

.manifesto-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #002855;
  margin-bottom: 1.5rem;
  text-align: left;
}

.manifesto-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

.manifesto-text a {
  color: #005bbb;
  text-decoration: underline;
}

.manifesto-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #005BBB;
}

.manifesto-block {
  margin-bottom: 2.5rem;
}

.manifesto-quote {
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  color: #333;
}

/* Section How to start */
#how-to-start.section {
  background-color: #ffffff;
  width: 90%;
}

#how-to-start .manifesto-title {
  padding: 0px 20px;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e1e1e;
  text-align: left;
  margin-top: 50px;
}

#how-to-start .manifesto-text {
  padding: 0px 20px;
  font-size: 1.125rem;
  color: #444;
  text-align: justify;
  line-height: 1.6;
}

#how-to-start .infographic-wrapper {
text-align:center;
}

#how-to-start .image {
max-width:90%; 
width:500px; 
height:auto; 
margin-top: 5rem; 
margin-bottom: 5rem;
}

.flag {
  font-size: 1.2rem;
}

.subscribe {
  background-color: #2e7d32;
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.subscribe:hover {
  background-color: #333;
  color: #fff;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.subscribe-section {
  padding: 60px 20px;
  background-color: #f8f9fb;
  text-align: center;
  border-top: 1px solid #eee;
}

.subscribe-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #2e7d32;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.subscribe-button:hover {
  background-color: #333;
}

.pricing-table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  font-size: 0.95em;
  margin: 0 auto;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.pricing-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.pricing-table td:first-child {
  text-align: left;
}

.input-alert {
  color: #e53935;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  text-align: center;
  font-weight: 500;
}

@keyframes highlightInput {
  0%, 100% { background-color: #fff3f3; border-color: #e53935; }
  50% { background-color: #ffecec; border-color: #e53935; }
}

.value-highlight {
  animation: highlightInput 1.2s ease-in-out 2;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#typewriterWord::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 4px;
}

.faq-item {
  border-top: 1px solid #ddd;
  padding: 1rem 0;
}

.faq-question {
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: #003366;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: justify;
  padding: 0;
  gap: 0.6rem;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #005bbb;
}

.faq-icon {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: bold;
  transition: transform 0.2s;
  color: #005bbb;
  width: 20px;
  text-align: center;
}

.faq-answer {
  margin-top: 0.5rem;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a6078;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  text-align: justify;
}


@media (max-width: 768px) {

  .logo {
    font-size: 2.5rem; /* au lieu de 1.5rem */
  }

  .logo-strong {
    font-size: 2rem; /* accentue visuellement "Owner" */
  }

  .app-sub {
    font-size: 0.7rem; /* légèrement plus lisible */
  }

  .sample{
    font-size: 0.7rem;
  }


  /* Hero & Titre ajusté */
  .demo h2 {
    font-size: 1.5rem;
    text-align: left;
    padding: 0 1rem;
  }

  .demo {
    padding: 2rem 1rem;
  }

  /* Liste des actifs */
  .demo-list {
    width: 100%;
    padding: 0.5rem;
  }

  .demo-list li {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #ddd;
  }
  
  .delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    align-self: auto;
    padding: 0.6rem 0.8rem;
    font-size: 1.45rem;
  }

  .asset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

  .asset-header input.edit-name-input {
  flex: 1;
  max-width: calc(100% - 60px); /* espace pour le bouton supprimer */
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

  .asset-name {
  flex: 1;
  font-size: 1rem;
  word-break: break-word;
  }

  /* Champs de valeur et tag */
  .asset-details {
    flex-direction: column;
    align-items: stretch;
  }

  .value-input,
  .tag-input {
    width: 100%;
    min-width: unset;
    font-size: 1rem;
  }

  .tags {
    justify-content: flex-start;
    gap: 0.6rem;
  }

  /* Section de regroupement */
  #groupBySection {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem 0;
  }

  .group-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .group-label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .group-buttons {
    width: 100%;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .group-btn {
    flex: 1 1 45%;
    font-size: 0.85rem;
    padding: 0.6rem 0.5rem;
  }

  /* Résultat & graphe */
  #resultBox {
    width: 95vw;
    border-radius: 0;
    padding: 1.2rem 1rem;
    margin: 0;
    box-shadow: none;
    margin-top: 3rem;
  }

  #resultBox canvas {
    padding-top; 50px;
    width: 100% !important;
    height: auto !important;
  }
}
/* Ledger toggle + contenu */
.ledger-wrap { margin-top: 8px; border-top: 1px dashed #e2e8f0; padding-top: 8px; }
.ledger-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 4px 0; cursor: pointer;
  font-weight: 700; color: #1f2d3d;
}
.ledger-toggle .chev { display:inline-block; transition: transform .2s ease; font-size: 14px; }
.ledger-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.ledger-content { margin-top: 8px; }

/* Pleine largeur dans le bloc asset */
.asset-details .valuation-history { width: 100%; }
.asset-details .valuation-history table {
  width: 100%;
  table-layout: fixed;         /* colonnes stables */
  border-collapse: collapse;
}
.asset-details .valuation-history th,
.asset-details .valuation-history td { padding: 6px 8px; }
/* Option: étirer visuellement au-delà du padding interne du card */
.asset-details .valuation-history.edge {
  margin-left: -12px;  /* ajuste ces valeurs à ton padding réel */
  margin-right: -12px;
}
.asset-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 0.9em;
  color: #555;
}

.asset-meta .asset-updated {
  margin: 0;
}

.asset-meta .ledger-toggle {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  color: #1f2d3d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.asset-meta .ledger-toggle .chev {
  transition: transform 0.2s ease;
  font-size: 12px;
}

.asset-meta .ledger-toggle[aria-expanded="true"] .chev {
  transform: rotate(90deg);
}