/**
 * CoconSEM – SEO Table of Contents
 * Front styles
 */

/* =============================
   BLOC TOC – LOOK & FEEL THEME
   ============================= */

.coconsem-toc {
  background: #f7f4ef;          /* beige clair du thème */
  border: 1px solid #e6e0d8;    /* gris-beige très léger */
  border-radius: 14px;
  padding: 1.3rem 1.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
}

/* Conteneur principal */
.coconsem-toc {
    background: #f7f4ef; /* beige clair du thème */
    border: 1px solid #e6e0d8; /* gris-beige très léger */
    border-radius: 14px;
    padding: 1.3rem 1.6rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    font-family: "Montserrat", sans-serif;
}

/* Titre "Contents" */
.coconsem-toc-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 0.8rem;
    color: #5b4636; /* brun doux cohérent avec le thème */
}

/* Liste des liens */
.coconsem-toc ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* Chaque entrée du sommaire */
.coconsem-toc li {
    margin-bottom: 4px;
    line-height: 1.45;
}

/* Liens TOC */
.coconsem-toc a {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 6px;
    color: #3f2f23; /* brun / noir adouci */
    text-decoration: none;
    font-size: 14px;
    transition: 0.25s ease;	
	border: none !important;
	
}

/* Hover : doux et premium */
.coconsem-toc a:hover {
    background: #ede7df; /* beige plus foncé */
    color: #2f241b;
}

/* Indentation H2 / H3 / H4 / H5 */
.coconsem-toc li {line-height: 19px}

/*
.coconsem-toc li.toc-level-2 { padding-left: 12px; }
.coconsem-toc li.toc-level-3 { padding-left: 24px; }
.coconsem-toc li.toc-level-4 { padding-left: 36px; }
.coconsem-toc li.toc-level-5 { padding-left: 48px; }
*/

/* Header : titre + bouton toggle */
.coconsem-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.6rem;
}

.coconsem-toc__title {
  font-weight: 600;
  font-size: 15px;
  color: #5b4636;               /* brun doux */
}

/* Bouton toggle Afficher / Masquer */
.coconsem-toc__toggle {
  border: none;
  background: transparent;
  color: #5b4636;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.coconsem-toc__toggle:hover {
  background: #ede7df;
  color: #2f241b;
}

.coconsem-toc__toggle-icon {
  font-size: 10px;
  transform: translateY(1px);
  transition: transform 0.2s ease;
}

/* État replié : flèche tournée */
.coconsem-toc--collapsed .coconsem-toc__toggle-icon {
  transform: rotate(-90deg) translateY(1px);
}

/* Contenu interne (collapsable) */
.coconsem-toc__inner {
  overflow: hidden;
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.coconsem-toc--collapsed .coconsem-toc__inner {
  max-height: 0;
  opacity: 0;
}

/* Liste & liens */
.coconsem-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coconsem-toc__item {
  margin-bottom: 4px;
  line-height: 1.45;
}

.coconsem-toc__item a {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 6px;
  color: #3f2f23;              /* brun / noir adouci */
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.coconsem-toc__item a:hover {
  background: #ede7df;          /* beige plus foncé */
  color: #2f241b;
}


/* =============================
   LAYOUT AVEC LE BLOC AUTEUR
   ============================= */

.sco-author-toc-wrap {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Desktop : TOC à gauche, auteur à droite */
@media (min-width: 992px) {
  .sco-author-toc-wrap {
    display: flex;
    align-items: stretch;
    gap: 24px;
  }

  .sco-author-toc-wrap .coconsem-toc {
    order: 1;
    flex: 0 0 46%;
    max-width: 46%;
    margin: 0;
  }

  .sco-author-toc-wrap .sco-author-bar {
    order: 2;
    flex: 1 1 54%;
    max-width: 54%;
  }
}

/* Mobile : empilé, auteur au-dessus, TOC en dessous */
@media (max-width: 991px) {
  .sco-author-toc-wrap {
    display: block;
  }

    .sco-author-toc-wrap .coconsem-toc {
    margin: 16px 0;
  }
}
