[x-cloak] { display: none !important; }

body { -webkit-font-smoothing: antialiased; }

.card {
  background: #fff;
  border: 1px solid #ece5da;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(43, 33, 24, 0.04);
}

/* Navigation des sections de l'éditeur */
.section-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6f6253;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}
.section-tab:hover { background: #fff; color: #2b2118; }
.section-tab-active {
  background: #fff;
  color: #2b2118;
  border-color: #ece5da;
  box-shadow: 0 1px 2px rgba(43, 33, 24, 0.05);
}
.sec-ico {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: #f5f0e8;
  color: #9a8d7d;
  transition: all 0.15s ease;
}
.section-tab-active .sec-ico { background: #8b4513; color: #fff; }

.step-badge {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: #8b4513;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ----- Champs de formulaire (Tailwind CDN sans @apply : CSS pur) ----- */
.lbl {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9a8d7d;
  margin-bottom: 0.45rem;
}

.inp {
  width: 100%;
  padding: 0.625rem 0.85rem;
  border: 1px solid #e6ddd0;
  border-radius: 0.65rem;
  background: #fff;
  font-size: 0.9rem;
  color: #2b2118;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.inp::placeholder { color: #bdb1a0; }
.inp:focus {
  border-color: #8b4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}
textarea.inp { resize: vertical; }

.btn-add {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b4513;
  padding: 0.35rem 0.7rem;
  border-radius: 0.55rem;
  transition: background 0.15s;
}
.btn-add:hover { background: rgba(139, 69, 19, 0.07); }

.btn-del {
  flex-shrink: 0;
  width: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid #e6ddd0;
  border-radius: 0.65rem;
  color: #9a8d7d;
  font-size: 0.8rem;
  transition: all 0.15s;
}
.btn-del:hover {
  border-color: #8b4513;
  color: #8b4513;
  background: rgba(139, 69, 19, 0.05);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #e3d9ca; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #cfc1ac; }
