html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100svh;
  font-size: 30px;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: #f7f7f7;
  position: relative;
}

.dash-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.dash-main {
  padding: 10px 3vw 18px;
}

.dash-header h1 {
  font-size: var(--font-h1);
  margin-top: 6px;
}

.dash-header p {
  color: var(--muted);
  margin-top: 6px;
}

.dash-controls {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 6px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.08);
}

.dash-controls input,
.dash-controls select {
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.search-field {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-field input {
  flex: 1;
  width: 100%;
}

.search-field input {
  width: 100%;
  padding-left: 42px;
  
  
}

.filter-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-trigger {
  min-width: 88px;
  padding: 5px 30px 5px 10px;
  border-radius: 999px;
  border: 1px solid #dbe5ff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  color: #1f2a44;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
  cursor: pointer;
  text-align: left;
  position: relative;
}

.filter-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #dbe5ff;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
  padding: 6px;
  display: grid;
  gap: 5px;
  min-width: 200px;
  z-index: 10;
}

.filter-menu button {
  background: #f5f8ff;
  border: none;
  border-radius: 12px;
  padding: 4px 6px;
  text-align: left;
  font-weight: 600;
  color: #1f2a44;
  cursor: pointer;
}

.form-grid {
  margin-top: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-card {
  background: var(--card);
  border-radius: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 12px rgba(37, 99, 235, 0.35);
  display: grid;
  gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

@media (max-width: 1400px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-top: 6px;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  gap: 5px;
  padding: 6px;
  min-width: 88px;
  z-index: 10;
}

.menu-dropdown button {
  border: none;
  text-align: left;
  background: #f8fafc;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
}

.empty-state {
  margin-top: 44px;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px;
}

button,
input {
  font: inherit;
}

button,
input,
select,
textarea {
  font-size: var(--font-control);
}

@keyframes glowShift {
  0% {
    transform: rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: rotate(12deg);
    opacity: 1;
  }
  100% {
    transform: rotate(0deg);
    opacity: 0.7;
  }
}

.view-toggle {
  display: flex;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: #f0f0f0;
  border: 1px solid var(--line);
}

.view-toggle {
  position: static;
}

.canvas-content p,
.canvas-content small {
  font-size: var(--font-body);
}

.canvas-input {
  font-size: var(--font-control);
  padding: 18px 12px;
}

.canvas-content p {
  color: var(--muted);
  line-height: 1.6;
}

.canvas-input {
  border: none;
  border-bottom: 2px solid #e5e7eb;
  padding: 8px 6px;
  font-size: var(--font-control);
  outline: none;
  background: transparent;
  width: 100%;
  resize: none;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.check-item {
  padding: 4px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
}

@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }


}

@media (max-width: 1100px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .flow-left,
  .flow-right {
    height: auto;
  }
}

@media (max-width: 720px) {


  .auth-form input {
    padding: 4px 6px;
  }

  .auth-btn {
    padding: 10px 14px;
  }

  .topbar,
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .auth-wrap {
    padding: 32px 6vw;
  }
}

@media (max-width: 760px) {
  .plans-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .plans-nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .plans-hero h1 {
    font-size: var(--font-h1);
  }

  .plans-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

.result-answers > div {
  padding: 6px 0;
  display: grid;
  gap: 4px;
}

.result-answers > div {
  color: #0f172a;
  font-size: 1.95rem;
  line-height: 1.6;

  /* 🔥 texte long lisible */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.result-answers > div {
  white-space: normal;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  zoom: 1;
}

.dash-topbar {
  padding: 8px 12px;
}

.dash-actions {
  gap: 6px;
}

.dash-main {
  padding: 10px 3vw 16px;
}

.dash-header h1 {
  font-size: clamp(18px, 2.4vw, 22px);
  margin-top: 8px;
}

.dash-header p {
  font-size: 12px;
  margin-top: 4px;
}

.dash-controls {
  margin-top: 8px;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 10px;
}

.dash-controls input,
.dash-controls select {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 10px;
}

.filter-group {
  gap: 6px;
}

.filter-trigger {
  min-width: 88px;
  padding: 5px 30px 5px 10px;
  font-size: 12px;
}

.filter-trigger::after {
  width: 14px;
  height: 14px;
}

.filter-menu {
  min-width: 140px;
  padding: 6px;
}

.filter-menu button {
  padding: 4px 6px;
  font-size: 12px;
}

.form-grid {
  margin-top: 12px;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-card {
  padding: 8px;
  gap: 8px;
  border-radius: 10px;
  box-shadow: 0 8px 12px rgba(37, 99, 235, 0.3);
}

.status {
  font-size: 11px;
  padding: 3px 8px;
}

.menu-dropdown {
  min-width: 120px;
  padding: 6px;
}

.menu-dropdown button {
  padding: 4px 6px;
  font-size: 12px;
}

.empty-state {
  margin-top: 16px;
  padding: 18px;
  gap: 8px;
}

@media (max-width: 900px) {
  .dash-topbar {
    padding: 6px 10px;
  }

  .dash-main {
    padding: 8px 3vw 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dash-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 4px 6px;
  }
  .search-field {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .filter-trigger {
    width: 100%;
    text-align: left;
  }

  .dash-actions {
    flex-wrap: wrap;
  }

  .dash-controls {
    flex-direction: column;
    align-items: stretch;
    display: block;
  }
}

@media (max-width: 1069px) {
  .dash-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dash-actions {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .dash-actions.is-open {
    display: flex;
  }
}

@media (max-width: 1069px) {
  .results-page .dash-actions {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
  }
}

body {
  font-size: 15px;
  line-height: 1.5;
  zoom: 1;
}

/* BUTTONS & INPUTS */
button,
input,
select {
  font-size: 15px;
}

.search-field {
  height: auto;
}

.search-field input {
  height: 36px;
  padding: 0 12px;
}

.filter-group {
  gap: 10px;
}

.filter-trigger {
  height: 34px;
  padding: 0 12px;
}
