/* ==========================================================
   🎨 Tyshara Admin Dashboard — Version premium verticale
   Lecture fluide, palette douce, mise en valeur stratégique
   ========================================================== */
.tyshara-toggle-section {
  background: var(--ty-nuage-pastel);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--space-xl);
  width: 50vw;
}
.tyshara-admin-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  background-color: var(--ty-nuage-pastel);
  font-family: var(--font-main);
  color: var(--ty-anthracite-velours);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* === Menu latéral sticky === */
.tyshara-admin-menu {
  position: sticky;
  top: 10rem;
  align-self: flex-start;
  min-width: 240px;
  background: var(--ty-blanc);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--ty-rose-boise-10);
  z-index: 100;
}

.tyshara-admin-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tyshara-admin-menu li {
  margin-bottom: var(--space-xs);
}

.tyshara-admin-menu a {
  color: var(--ty-corail-alchimie);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.tyshara-admin-menu a:hover,
.tyshara-admin-menu a:focus {
  color: var(--ty-vert-mystique);
  text-decoration: underline;
  outline: none;
}

/* === Zone principale === */
.tyshara-admin-dashboard {
  flex-grow: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.tyshara-admin-title {
  font-family: var(--font-deco);
  font-size: 2.6rem;
  color: var(--ty-terre-argile);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.tyshara-admin-subtitle {
  font-size: 1.2rem;
  color: var(--ty-vert-mystique);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* === Cartes horizontales stratégiques (version multiligne fluide) === */
.tyshara-resume-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: flex-start;
  padding-inline: var(--space-sm);
}

.tyshara-card {
  flex: 1 1 240px;
  max-width: 280px;
  background: var(--ty-blanc);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: all var(--dur-fast) ease;
  border-left: 4px solid var(--ty-poussiere-or);
}

.tyshara-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(204, 166, 158, 0.2);
}

.tyshara-card h3 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--ty-corail-alchimie);
  margin-bottom: 0.3rem;
}

.tyshara-card p {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--ty-anthracite-velours);
  margin: 0;
}

.tyshara-card p strong {
  font-weight: 700;
  font-size: 1.2rem;
}


/* === Tableaux harmonisés === */
.tyshara-admin-dashboard table,
.tyshara-resume-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ty-blanc);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.tyshara-admin-dashboard th,
.tyshara-admin-dashboard td,
.tyshara-resume-table th,
.tyshara-resume-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ty-beige-lumiere);
}

.tyshara-admin-dashboard th,
.tyshara-resume-table th {
  background-color: var(--ty-nuage-pastel);
  color: var(--ty-terre-argile);
  font-weight: 600;
}

/* === Formulaires doux === */
.tyshara-admin-dashboard form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  background: var(--ty-blanc);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.tyshara-admin-dashboard input,
.tyshara-admin-dashboard select,
.tyshara-admin-dashboard textarea,
.tyshara-admin-dashboard button {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ty-beige-lumiere);
  font-size: 1rem;
}

.tyshara-admin-dashboard button {
  background: var(--ty-corail-alchimie);
  color: var(--ty-blanc);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tyshara-admin-dashboard button:hover,
.tyshara-admin-dashboard button:focus {
  background: var(--ty-rose-boise);
  outline: none;
}

/* === Sections extensibles === */
.tyshara-toggle-section {
  background: var(--ty-blanc);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--ty-poussiere-or);
}

.tyshara-section-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ty-terre-argile);
  background: var(--ty-nuage-pastel);
  border: 1px dashed var(--ty-rose-boise);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  margin-bottom: var(--space-md);
}

/* === Espacements généraux === */
main.tyshara-admin-dashboard > *:first-child {
  margin-top: 0;
}

main.tyshara-admin-dashboard > * {
  margin-bottom: var(--space-xl);
}
