:root{
  --gi-bg: #0b1020;
  --gi-panel: rgba(18, 26, 52, 0.78);
  --gi-panel-2: rgba(14, 20, 44, 0.72);
  --gi-border: rgba(214, 193, 133, 0.35);
  --gi-border-strong: rgba(214, 193, 133, 0.65);
  --gi-gold: #d6c185;
  --gi-gold-2: #f2e6c6;
  --gi-text: rgba(244, 247, 255, 0.92);
  --gi-muted: rgba(244, 247, 255, 0.72);
  --gi-glow: rgba(214, 193, 133, 0.18);
  --gi-shadow: rgba(0, 0, 0, 0.45);
}


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

#book-search-filters {
	position: absolute;
	height: 100vh;
	width: 10vw;
	background-color: azure;
	left: -10vw;
}

#book-main-container {
  display: flex;
	height: 100vh;
	width: 100vw;
}

#book-sidelist {
	padding: 0 1vw;
	overflow: scroll;
	height: 100vh;
  width: 15vw;
}

.book-item-icon{
	width: 3vw;
}

#book-reading{
  width: 85vw;
  padding: 1vw;
  overflow: scroll;
}


/* si tu veux une ambiance globale */
body{
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(80,120,255,0.14), transparent 55%),
    radial-gradient(900px 600px at 80% 30%, rgba(214,193,133,0.10), transparent 60%),
    linear-gradient(180deg, #070a14, var(--gi-bg));
  color: var(--gi-text);
}

/* --- Accordéon livre --- */
.book-item{
  width: min(860px, 100%);
  margin: 14px auto;
  border-radius: 18px;
  overflow: clip;

  border: 1px solid var(--gi-border);
  background: linear-gradient(180deg, var(--gi-panel), var(--gi-panel-2));
  box-shadow:
    0 14px 35px var(--gi-shadow),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(10px);
}

/* bandeau du titre (summary) */
.book-item > summary.book-item-name{
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  position: relative;

  letter-spacing: 0.3px;
  font-weight: 700;
  color: var(--gi-text);

  display: flex;
  align-items: center;
  gap: 12px;

  /* liseré subtil */
  background:
    linear-gradient(90deg, rgba(214,193,133,0.12), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
}

/* retire le marker natif */
.book-item > summary::-webkit-details-marker{ display:none; }

/* chevron à droite (remplace le + / -) */
.book-item > summary.book-item-name::after{
  content:"";
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid rgba(242,230,198,0.85);
  border-bottom: 2px solid rgba(242,230,198,0.85);
  transform: rotate(45deg);
  transition: transform .18s ease, opacity .18s ease;
  opacity: .9;
}

.book-item[open] > summary.book-item-name::after{
  transform: rotate(-135deg);
  opacity: 1;
}

/* état hover */
.book-item > summary.book-item-name:hover{
  box-shadow: 0 0 0 1px rgba(214,193,133,0.25) inset;
}

/* focus clavier */
.book-item > summary.book-item-name:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(214,193,133,0.35),
    0 0 0 6px rgba(214,193,133,0.10);
}

/* séparateur doré quand ouvert */
.book-item[open] > summary.book-item-name{
  border-bottom: 1px solid rgba(214,193,133,0.25);
}

/* --- Liste chapitres --- */
.book-item-chapter-list{
  padding: 10px 12px 14px;
}

/* item de chapitre façon “ligne menu” */
.chapter-item{
  border-radius: 14px;
  margin: 8px 6px;
  border: 1px solid rgba(214,193,133,0.14);
  background: rgba(7, 10, 20, 0.30);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}

/* bouton chapitre */
.chapter-item-name{
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  cursor: pointer;

  color: var(--gi-text);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* petit point/ornement */
.chapter-item-name::before{
  content:"";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(242,230,198,0.75);
  box-shadow: 0 0 10px rgba(214,193,133,0.18);
}

/* état hover “glow” */
.chapter-item:hover{
  border-color: rgba(214,193,133,0.35);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.35),
    0 0 0 1px rgba(214,193,133,0.10) inset;
}

.chapter-item:hover .chapter-item-name{
  color: var(--gi-gold-2);
}

/* état active/clic */
.chapter-item:active{
  transform: translateY(1px);
}

/* optionnel : ligne de séparation “fine” entre chapitres si tu préfères */
.chapter-item + .chapter-item{
  position: relative;
}
