/*
 * Benin360 Premium Publisher — Frontend CSS
 * Version: 1.0.0
 * Auteur : Lionel Dehoui
 * Palette : Océan tropical · Sable doré · Végétation africaine · Lumière naturelle
 * Conformité : WCAG AA · Mobile-first · Core Web Vitals optimisé
 */

/* ==========================================================================
   0. RESET CIBLÉ — uniquement dans le contexte b360-premium
   ========================================================================== */

.b360-premium *,
.b360-premium *::before,
.b360-premium *::after {
  box-sizing: border-box;
}

/* ==========================================================================
   1. BARRE DE PROGRESSION DE LECTURE
   ========================================================================== */

#b360-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

#b360-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--b360-ocean) 0%,
    var(--b360-lagon) 50%,
    var(--b360-sand) 100%
  );
  transition: width 0.1s linear;
  will-change: width;
}

/* ==========================================================================
   2. FIL D'ARIANE
   ========================================================================== */

.b360-breadcrumb {
  margin-bottom: 1.5rem;
  font-family: var(--b360-font-ui);
}

.b360-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--b360-text-muted);
}

.b360-breadcrumb__link {
  color: var(--b360-ocean);
  text-decoration: none;
  transition: color 0.2s ease;
}

.b360-breadcrumb__link:hover,
.b360-breadcrumb__link:focus-visible {
  color: var(--b360-lagon);
  text-decoration: underline;
}

.b360-breadcrumb__sep {
  color: var(--b360-text-muted);
  opacity: 0.6;
  margin-inline: 0.15rem;
}

.b360-breadcrumb__label {
  color: var(--b360-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   3. STATS DE LECTURE
   ========================================================================== */

.b360-reading-stats {
  margin-bottom: 2rem;
  padding: 0.875rem 1.25rem;
  background: var(--b360-sand-light);
  border-radius: 8px;
  border-left: 3px solid var(--b360-sand);
  font-family: var(--b360-font-ui);
}

.b360-reading-stats__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--b360-text-muted);
}

.b360-reading-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.b360-reading-stats__icon {
  font-size: 0.875rem;
  opacity: 0.75;
}

.b360-reading-stats__divider {
  opacity: 0.4;
  font-weight: 700;
}

.b360-reading-stats__author {
  font-weight: 600;
  color: var(--b360-text);
}

/* ==========================================================================
   4. TABLE DES MATIÈRES — PREMIUM
   ========================================================================== */

/* Conteneur principal */
.b360-toc {
  margin: 2rem 0 2.5rem;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--b360-sand) 45%, white);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--b360-font-ui);
  /* Évite le CLS : hauteur min définie */
  contain: layout style;
}

/* --- Header --- */
.b360-toc__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9rem 1.25rem;
  background: var(--b360-ocean);
  cursor: pointer;
  user-select: none;
}

.b360-toc__icon {
  color: rgba(255,255,255,0.75);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.b360-toc__title {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
}

.b360-toc__toggle {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
  line-height: 0;
}

.b360-toc__toggle:hover,
.b360-toc__toggle:focus-visible {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.b360-toc__toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

.b360-toc__chevron {
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Chevron tourné quand replié */
.b360-toc__toggle[aria-expanded="false"] .b360-toc__chevron {
  transform: rotate(-90deg);
}

/* --- Corps / liste --- */
.b360-toc__body {
  /* Transition d'ouverture/fermeture sans CLS */
  overflow: hidden;
}

.b360-toc__body[hidden] {
  display: none;
}

.b360-toc__list {
  margin: 0;
  padding: 0.75rem 0 0.875rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Neutralise toute puce injectée par le thème sur les items TOC */
.b360-toc__list .b360-toc__item {
  list-style: none;
}

.b360-toc__list .b360-toc__item::before,
.b360-toc__list .b360-toc__item::marker {
  content: none;
  display: none;
}

/* --- Items par niveau de hiérarchie --- */

/* H2 — niveau principal */
.b360-toc__item--h2 {
  margin: 0;
}

/* H3 — premier sous-niveau */
.b360-toc__item--h3 {
  margin: 0;
}

/* H4 — deuxième sous-niveau */
.b360-toc__item--h4 {
  margin: 0;
}

/* --- Liens --- */
.b360-toc__link {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--b360-text);
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
  border-left: 2px solid transparent;
}

/* H2 : lien principal */
.b360-toc__item--h2 > .b360-toc__link {
  padding: 0.45rem 1.25rem 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* H3 : indentation marquée */
.b360-toc__item--h3 > .b360-toc__link {
  padding: 0.35rem 1.25rem 0.35rem 2.25rem;
  font-size: 0.8375rem;
  font-weight: 400;
  color: var(--b360-text-muted);
}

/* H4 : indentation encore plus profonde */
.b360-toc__item--h4 > .b360-toc__link {
  padding: 0.3rem 1.25rem 0.3rem 3.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--b360-text-muted);
  opacity: 0.85;
}

/* Hover */
.b360-toc__link:hover {
  background: color-mix(in srgb, var(--b360-ocean) 6%, white);
  color: var(--b360-ocean);
  border-left-color: var(--b360-sand);
}

/* Focus clavier */
.b360-toc__link:focus-visible {
  outline: 2px solid var(--b360-ocean);
  outline-offset: -2px;
  border-radius: 2px;
}

/* --- ÉTAT ACTIF (Scroll Spy) --- */
.b360-toc__link.b360-toc--active {
  background: color-mix(in srgb, var(--b360-ocean) 9%, white);
  color: var(--b360-ocean);
  font-weight: 600;
  border-left-color: var(--b360-ocean);
}

.b360-toc__item--h3 > .b360-toc__link.b360-toc--active,
.b360-toc__item--h4 > .b360-toc__link.b360-toc--active {
  color: var(--b360-lagon);
  border-left-color: var(--b360-lagon);
}

/* --- Badge numéro H2 --- */
.b360-toc__badge {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--b360-ocean);
  color: #fff;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--b360-font-ui);
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.b360-toc__link:hover .b360-toc__badge,
.b360-toc__link.b360-toc--active .b360-toc__badge {
  background: var(--b360-lagon);
}

/* Marqueur d'indentation H3/H4 (ligne verticale courte) */
.b360-toc__indent-marker {
  flex-shrink: 0;
  display: inline-block;
  width: 1px;
  height: 0.875em;
  background: color-mix(in srgb, var(--b360-sand) 70%, white);
  border-radius: 1px;
  margin-bottom: -0.05em;
  transition: background 0.15s ease;
}

.b360-toc__link:hover .b360-toc__indent-marker,
.b360-toc__link.b360-toc--active .b360-toc__indent-marker {
  background: var(--b360-ocean);
}

/* --- Texte --- */
.b360-toc__text {
  flex: 1;
}

/* --- Séparateur visuel entre groupes H2 --- */
.b360-toc__item--h2 + .b360-toc__item--h2 {
  border-top: 1px solid color-mix(in srgb, var(--b360-sand) 20%, white);
  margin-top: 0.125rem;
  padding-top: 0.125rem;
}

/* --- Contrôle Afficher plus / Réduire --- */
.b360-toc__overflow-controls {
  padding: 0.625rem 1.25rem 0.875rem;
  border-top: 1px dashed color-mix(in srgb, var(--b360-sand) 35%, white);
}

.b360-toc__show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid color-mix(in srgb, var(--b360-ocean) 35%, white);
  border-radius: 20px;
  padding: 0.3rem 0.875rem;
  font-family: var(--b360-font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--b360-ocean);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.b360-toc__show-more:hover,
.b360-toc__show-more:focus-visible {
  background: color-mix(in srgb, var(--b360-ocean) 8%, white);
  border-color: var(--b360-ocean);
}

.b360-toc__show-more:focus-visible {
  outline: 2px solid var(--b360-ocean);
  outline-offset: 2px;
}

.b360-toc__show-more-icon {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.b360-toc__show-more[aria-expanded="true"] .b360-toc__show-more-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   5. TITRES H2 ET H3
   ========================================================================== */

.b360-premium .b360-h2,
.b360-premium h2.b360-heading {
  position: relative;
  font-family: var(--b360-font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--b360-text);
  margin-top: var(--b360-spacing-section, 3rem);
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  letter-spacing: -0.01em;
}

.b360-premium h2.b360-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--b360-green), transparent);
  border-radius: 2px;
}

.b360-premium h3.b360-heading {
  font-family: var(--b360-font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--b360-text);
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--b360-sand);
  letter-spacing: -0.005em;
}

/* Lien d'ancre */
.b360-anchor-link {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75em;
  color: var(--b360-sand);
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
  vertical-align: middle;
}

.b360-premium h2.b360-heading:hover .b360-anchor-link,
.b360-premium h3.b360-heading:hover .b360-anchor-link,
.b360-anchor-link:focus-visible {
  opacity: 1;
}

/* ==========================================================================
   6. CORPS DE TEXTE ET TYPOGRAPHIE
   ========================================================================== */

.b360-premium .entry-content,
.b360-premium .post-content,
.b360-premium article .content {
  font-family: var(--b360-font-body);
  font-size: var(--b360-font-size, 18px);
  line-height: var(--b360-line-height, 1.8);
  color: var(--b360-text);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.b360-premium p {
  margin-bottom: var(--b360-spacing-p, 1.6rem);
  hanging-punctuation: first allow-end;
}

.b360-premium a {
  color: var(--b360-ocean);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--b360-ocean) 40%, transparent);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.b360-premium a:hover,
.b360-premium a:focus-visible {
  color: var(--b360-lagon);
  text-decoration-color: var(--b360-lagon);
}

/* ==========================================================================
   7. LISTES
   ========================================================================== */

.b360-premium .b360-list {
  margin: 0 0 var(--b360-spacing-p, 1.6rem) 0;
  padding: 0;
  list-style: none;
}

.b360-premium .b360-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.b360-premium .b360-list-unordered li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--b360-sand);
  border-radius: 50%;
  flex-shrink: 0;
}

.b360-premium .b360-list-ordered {
  counter-reset: b360-list;
}

.b360-premium .b360-list-ordered li {
  counter-increment: b360-list;
}

.b360-premium .b360-list-ordered li::before {
  content: counter(b360-list);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--b360-ocean);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--b360-font-ui);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   8. CITATIONS BLOCKQUOTE
   ========================================================================== */

.b360-premium .b360-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.75rem 1.75rem 1.75rem 2.5rem;
  background: var(--b360-sand-light);
  border-left: 4px solid var(--b360-sand);
  border-radius: 0 12px 12px 0;
  font-family: var(--b360-font-heading);
  font-size: 1.15em;
  font-style: italic;
  color: var(--b360-text);
  line-height: 1.65;
}

.b360-quote-icon {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--b360-sand);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.b360-premium .b360-quote p {
  margin: 0 0 0.75rem;
}

.b360-premium .b360-quote p:last-of-type {
  margin-bottom: 0;
}

.b360-premium .b360-quote .b360-quote-source,
.b360-premium .b360-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  font-family: var(--b360-font-ui);
  color: var(--b360-text-muted);
  letter-spacing: 0.02em;
}

.b360-premium .b360-quote .b360-quote-source::before,
.b360-premium .b360-quote cite::before {
  content: '— ';
}

/* ==========================================================================
   9. TABLEAUX
   ========================================================================== */

.b360-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--b360-sand) 40%, white);
  -webkit-overflow-scrolling: touch;
}

.b360-table-wrap:focus-visible {
  outline: 2px solid var(--b360-ocean);
  outline-offset: 2px;
}

.b360-premium .b360-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--b360-font-ui);
  font-size: 0.9rem;
  margin: 0;
}

.b360-premium .b360-table thead {
  background: var(--b360-ocean);
  color: white;
}

.b360-premium .b360-table thead th {
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: left;
  border: none;
}

.b360-premium .b360-table tbody tr {
  border-bottom: 1px solid color-mix(in srgb, var(--b360-sand) 25%, white);
  transition: background 0.15s ease;
}

.b360-premium .b360-table tbody tr:last-child {
  border-bottom: none;
}

.b360-premium .b360-table tbody tr:hover {
  background: var(--b360-ocean-10, #e8f1f8);
}

.b360-premium .b360-table tbody tr:nth-child(even) {
  background: var(--b360-light-bg);
}

.b360-premium .b360-table tbody tr:nth-child(even):hover {
  background: var(--b360-ocean-10, #e8f1f8);
}

.b360-premium .b360-table td,
.b360-premium .b360-table th {
  padding: 0.75rem 1rem;
  vertical-align: top;
  text-align: left;
}

.b360-premium .b360-table td {
  color: var(--b360-text);
  line-height: 1.5;
}

/* ==========================================================================
   10. IMAGES
   ========================================================================== */

.b360-premium .b360-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.b360-premium .b360-figure {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.b360-premium .b360-figure .b360-image {
  width: 100%;
  object-fit: cover;
}

.b360-premium .b360-figure figcaption {
  margin-top: 0.625rem;
  font-family: var(--b360-font-ui);
  font-size: 0.8125rem;
  color: var(--b360-text-muted);
  font-style: italic;
  text-align: center;
  line-height: 1.45;
}

/* ==========================================================================
   11. BLOC "À RETENIR"
   ========================================================================== */

.b360-keytakeaway {
  margin: 2.5rem 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--b360-ocean) 8%, white),
    color-mix(in srgb, var(--b360-sand) 12%, white)
  );
  border: 1px solid color-mix(in srgb, var(--b360-sand) 60%, white);
  border-radius: 14px;
  overflow: hidden;
}

.b360-keytakeaway__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: var(--b360-ocean);
  color: white;
}

.b360-keytakeaway__icon {
  font-size: 1rem;
  opacity: 0.85;
}

.b360-keytakeaway__title {
  font-family: var(--b360-font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.b360-keytakeaway__body {
  padding: 1.25rem 1.5rem;
  font-family: var(--b360-font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--b360-text);
}

.b360-keytakeaway__body p:last-child {
  margin-bottom: 0;
}

.b360-keytakeaway__body ul,
.b360-keytakeaway__body ol {
  padding-left: 1.25rem;
}

/* ==========================================================================
   12. ENCADRÉS CALLOUT
   ========================================================================== */

.b360-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--b360-font-ui);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.b360-callout--info {
  background: color-mix(in srgb, var(--b360-ocean) 8%, white);
  border-color: color-mix(in srgb, var(--b360-ocean) 25%, white);
  color: var(--b360-text);
}

.b360-callout--tip {
  background: var(--b360-green-10, #e8f4ed);
  border-color: color-mix(in srgb, var(--b360-green) 30%, white);
  color: var(--b360-text);
}

.b360-callout--warning {
  background: #fff8e6;
  border-color: #f5c842;
  color: #5a4a00;
}

.b360-callout--fact {
  background: var(--b360-sand-light);
  border-color: color-mix(in srgb, var(--b360-sand) 50%, white);
  color: var(--b360-text);
}

.b360-callout--quote {
  background: var(--b360-light-bg);
  border-color: color-mix(in srgb, var(--b360-ocean) 20%, white);
  border-left: 4px solid var(--b360-ocean);
  border-radius: 0 10px 10px 0;
}

.b360-callout__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.075rem;
  line-height: 1;
}

.b360-callout__title {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.375rem;
  color: inherit;
}

.b360-callout__body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.b360-faq {
  margin: 2.5rem 0;
  font-family: var(--b360-font-ui);
}

.b360-faq__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--b360-font-heading);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--b360-text);
  margin-bottom: 1.25rem;
}

.b360-faq__icon {
  font-size: 1.25rem;
}

.b360-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.b360-faq__item {
  background: var(--b360-light-bg);
  border: 1px solid color-mix(in srgb, var(--b360-sand) 35%, white);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.b360-faq__item:has(.b360-faq__question[aria-expanded="true"]) {
  border-color: var(--b360-ocean);
}

.b360-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--b360-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--b360-text);
  transition: background 0.18s ease, color 0.18s ease;
  line-height: 1.4;
}

.b360-faq__question:hover,
.b360-faq__question:focus-visible {
  background: var(--b360-ocean-10, #e8f1f8);
  color: var(--b360-ocean);
  outline: none;
}

.b360-faq__question:focus-visible {
  outline: 2px solid var(--b360-ocean);
  outline-offset: -2px;
}

.b360-faq__chevron {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--b360-ocean);
  transition: transform 0.25s ease;
}

.b360-faq__question[aria-expanded="true"] .b360-faq__chevron {
  transform: rotate(180deg);
}

.b360-faq__answer {
  padding: 0 1.25rem 1.125rem;
  font-family: var(--b360-font-body);
  font-size: 0.9375rem;
  color: var(--b360-text);
  line-height: 1.7;
  border-top: 1px solid color-mix(in srgb, var(--b360-sand) 30%, white);
}

.b360-faq__answer[hidden] {
  display: none;
}

.b360-faq__answer-inner {
  padding-top: 0.875rem;
}

.b360-faq__answer-inner p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   14. TEXTE SURLIGNÉ & SÉPARATEURS
   ========================================================================== */

.b360-highlight {
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--b360-sand) 50%, white) 0%,
    color-mix(in srgb, var(--b360-sand) 40%, white) 100%
  );
  padding: 0.1em 0.3em;
  border-radius: 3px;
  color: inherit;
}

.b360-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
  color: var(--b360-sand);
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  opacity: 0.7;
}

.b360-separator--line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b360-sand), transparent);
  font-size: 0;
}

/* ==========================================================================
   15. ESPACES BLANCS & LISIBILITÉ
   ========================================================================== */

.b360-premium .entry-content > *:first-child {
  margin-top: 0;
}

.b360-premium .entry-content > *:last-child {
  margin-bottom: 0;
}

/* Paragraphe d'accroche premium — premier paragraphe après H1 */
.b360-premium .entry-content > p:first-of-type {
  font-size: 1.125em;
  line-height: 1.75;
  color: color-mix(in srgb, var(--b360-text) 85%, var(--b360-ocean));
}

/* Séparation visuelle avant les H2 */
.b360-premium h2.b360-heading {
  scroll-margin-top: 5rem;
}

.b360-premium h3.b360-heading {
  scroll-margin-top: 5rem;
}

/* ==========================================================================
   16. RESPONSIVE — MOBILE FIRST
   ========================================================================== */

@media (max-width: 640px) {
  .b360-toc {
    margin: 1.5rem 0 2rem;
  }

  .b360-premium .b360-quote {
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
    font-size: 1.05em;
  }

  .b360-keytakeaway__body,
  .b360-callout,
  .b360-faq__question {
    font-size: 0.9rem;
  }

  .b360-reading-stats__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .b360-reading-stats__divider {
    display: none;
  }

  .b360-table-wrap {
    margin: 1.5rem -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .b360-toc {
    max-width: 100%;
  }
}

@media (min-width: 1025px) {
  .b360-toc {
    max-width: 680px;
  }
}

/* ==========================================================================
   17. ACCESSIBILITÉ — FOCUS VISIBLE
   ========================================================================== */

.b360-premium a:focus-visible,
.b360-toc__link:focus-visible,
.b360-breadcrumb__link:focus-visible,
.b360-faq__question:focus-visible,
.b360-toc__toggle:focus-visible {
  outline: 2px solid var(--b360-ocean);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Respect de la préférence de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  #b360-progress-bar,
  .b360-toc__chevron,
  .b360-faq__chevron,
  .b360-toc__link,
  .b360-breadcrumb__link,
  .b360-premium a,
  .b360-callout,
  .b360-faq__question,
  .b360-faq__item {
    transition: none !important;
    animation: none !important;
  }
}

/* Mode sombre (respecte la préférence système) */
@media (prefers-color-scheme: dark) {
  .b360-reading-stats {
    background: color-mix(in srgb, var(--b360-sand-light) 15%, #1a1a1a);
  }
}
