
/* === LAYOUT GLOBAL ======================================= */
.eclats-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .eclats-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}

/* === MENU ASIDE STYLÉ =================================== */
aside.tyshara-toc {
  background: #fff6f2;
  border-radius: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2rem;
  top: 6.5rem;
  position: sticky;
  align-self: flex-start;
  width: 260px;
  flex-shrink: 0;
  font-size: 0.95rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.tyshara-toc h2 {
  font-family: 'Satisfy', cursive;
  font-size: 1.7rem;
  color: #81524c;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.tyshara-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tyshara-toc li {
  margin-bottom: 1.2rem;
}

.tyshara-toc a {
  display: block;
  padding: 0.5rem 1rem;
  color: #81524c;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.tyshara-toc a:hover,
.tyshara-toc a:focus {
  background-color: #f6e2d9;
  color: #9b6154;
  box-shadow: 0 0 0 3px #f1e4df;
}

/* === CONTENU PRINCIPAL ================================== */
#eclats-content {
  flex: 1;
  max-width: 800px;
  padding-bottom: 6rem;
}

.eclat-section {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px dashed #e8dcd5;
}

.eclat-section p {
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  color: #452d2a;
  line-height: 1.8;
}

/* === TYPOGRAPHIE ======================================== */
h2 {
  font-family: 'Satisfy', cursive;
  font-size: 2.4rem;
  color: #81524c;
  margin-bottom: 2rem;
}

h3 {
  font-family: 'Satisfy', cursive;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  color: #81524c;
  font-weight: normal;
}

h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #dcbaa5, #a36e5d);
  margin-top: 0.8rem;
  border-radius: 4px;
}

/* === LIENS & ACCENTS ===================================== */
a {
  color: #a36e5d;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #814d3e;
}

.highlight {
  background-color: #f6e7df;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-weight: 600;
  color: #6d3d34;
}

/* === REHAUT TYPOGRAPHIQUE & RYTHME VISUEL ============================= */
blockquote.intro-quote {
  font-family: 'Satisfy', cursive;
  font-size: 1.6rem;
  color: #a36e5d;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: center;
}

blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: #6d3d34;
  background: #fdf5f1;
  border-left: 4px solid #dcbaa5;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin: 2rem 0;
}

.eclat-section p strong {
  color: #a64a3e;
  font-weight: 700;
}

.eclat-section p em {
  color: #804b42;
  font-style: italic;
  font-weight: 500;
}

/* === ADAPTATION COULEUR MENU ACTIF =================================== */
.tyshara-toc a.active {
  background-color: #f0d8cc;
  color: #a36e5d;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px #dcbaa5;
}

/* === TOGGLE MOBILE ======================================= */
.toc-toggle-mobile {
  display: none;
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fbf8f6;
  padding: 1rem;
  text-align: center;
}

.toc-toggle-mobile button {
  font-family: 'Satisfy', cursive;
  background-color: #f6e7df;
  color: #81524c;
  font-size: 1.2rem;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toc-toggle-mobile button:hover {
  background-color: #e8cec1;
}

@media (max-width: 899px) {
  .toc-toggle-mobile {
    display: block;
  }

  aside.tyshara-toc {
    display: none;
    position: relative;
    top: 0;
    width: 100%;
    margin-bottom: 2rem;
  }

  aside.tyshara-toc.active {
    display: block;
    animation: fadeIn 0.4s ease;
  }

  .eclat-section p {
    font-size: 1rem;
    line-height: 1.7;
  }

  blockquote {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 2rem;
  }
}

/* === ANIMATION =========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
