/* ============================================================
   INFOS PRATIQUES — composants pédagogiques
   Design : éditorial, proche service-public.fr / lecoindesentrepreneurs
   Cible : dirigeants TPE/PME, ton accessible
   ============================================================ */

/* ─────────────────────────────────────────────────
   1. HUB — page d'accueil "Infos pratiques"
   ───────────────────────────────────────────────── */

.hub-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--pc-50) 100%);
  border: 1px solid var(--pc-200);
  border-radius: var(--pc-radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle at top right, rgba(30,64,175,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hub-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  color: var(--pc-900);
  line-height: 1.1;
  margin-bottom: .75rem;
  letter-spacing: -0.02em;
}

.hub-hero .hub-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--pc-600);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.hub-hero .hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-size: .85rem;
  color: var(--pc-500);
}

.hub-hero .hub-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--pc-primary);
  font-weight: 800;
  line-height: 1;
  margin-bottom: .15rem;
}

/* Parcours par profil */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--pc-200);
  border-radius: var(--pc-radius-md);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--pc-900);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: var(--pc-transition);
  position: relative;
  overflow: hidden;
}

.profile-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--pc-accent, var(--pc-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.profile-card:hover {
  border-color: var(--pc-accent, var(--pc-primary));
  transform: translateY(-3px);
  box-shadow: var(--pc-shadow-md);
  color: var(--pc-900);
}

.profile-card:hover::after {
  transform: scaleX(1);
}

.profile-card .profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pc-accent-bg, var(--pc-primary-bg));
  color: var(--pc-accent, var(--pc-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .25rem;
}

.profile-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .15rem;
  color: var(--pc-900);
}

.profile-card .profile-desc {
  font-size: .85rem;
  color: var(--pc-500);
  line-height: 1.45;
  margin: 0;
}

.profile-card .profile-arrow {
  margin-top: auto;
  font-size: .8rem;
  color: var(--pc-accent, var(--pc-primary));
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-top: .5rem;
}

/* Couleurs par profil — utilise les --pc-statut */
.profile-card.profile--dirigeant   { --pc-accent: var(--pc-redressement); --pc-accent-bg: #fff7ed; }
.profile-card.profile--repreneur   { --pc-accent: var(--pc-sauvegarde);   --pc-accent-bg: #ecfdf5; }
.profile-card.profile--creancier   { --pc-accent: var(--pc-liquidation);  --pc-accent-bg: #fef2f2; }
.profile-card.profile--professionnel { --pc-accent: var(--pc-conciliation); --pc-accent-bg: #f5f3ff; }

/* Section thématique du hub */
.hub-section {
  margin-bottom: 2.5rem;
}

.hub-section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.hub-section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pc-900);
  margin: 0;
  white-space: nowrap;
}

.hub-section-title hr {
  flex: 1;
  margin: 0;
  border-top: 1px solid var(--pc-200);
}

.hub-card {
  background: #fff;
  border: 1px solid var(--pc-200);
  border-radius: var(--pc-radius-md);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--pc-900);
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  height: 100%;
  transition: var(--pc-transition);
}

.hub-card:hover {
  border-color: var(--pc-primary);
  box-shadow: var(--pc-shadow-md);
  transform: translateY(-2px);
  color: var(--pc-900);
}

.hub-card .hub-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--pc-primary-bg);
  color: var(--pc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hub-card-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--pc-900);
  line-height: 1.3;
  margin-bottom: .15rem;
}

.hub-card-desc {
  font-size: .8rem;
  color: var(--pc-500);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────
   2. FICHE PÉDAGOGIQUE — page individuelle
   ───────────────────────────────────────────────── */

/* Hero éditorial — sobre, pas de gradient violet */
.fiche-hero-v2 {
  border-left: 6px solid var(--pc-statut, var(--pc-primary));
  padding: 1.25rem 0 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.fiche-hero-v2 .fiche-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pc-statut, var(--pc-primary));
  margin-bottom: .5rem;
}

.fiche-hero-v2 h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--pc-900);
  line-height: 1.15;
  margin-bottom: .75rem;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.fiche-hero-v2 .fiche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .8rem;
  color: var(--pc-500);
}

.fiche-hero-v2 .fiche-meta i {
  margin-right: .35rem;
}

/* Couleurs hero selon type de procédure */
.fiche-hero-v2.statut--sauvegarde   { --pc-statut: var(--pc-sauvegarde); }
.fiche-hero-v2.statut--redressement { --pc-statut: var(--pc-redressement); }
.fiche-hero-v2.statut--liquidation  { --pc-statut: var(--pc-liquidation); }
.fiche-hero-v2.statut--conciliation { --pc-statut: var(--pc-conciliation); }
.fiche-hero-v2.statut--general      { --pc-statut: var(--pc-primary); }

/* Layout fiche : contenu + TOC sticky */
.fiche-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .fiche-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.fiche-main {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pc-700);
}

.fiche-main p { margin-bottom: 1.1rem; }
.fiche-main h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--pc-900);
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 80px;
  line-height: 1.25;
}
.fiche-main h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--pc-primary);
  margin-bottom: .65rem;
}
.fiche-main h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pc-800);
  margin: 1.75rem 0 .75rem;
  line-height: 1.3;
}
.fiche-main strong { color: var(--pc-900); font-weight: 700; }
.fiche-main a { color: var(--pc-primary); text-decoration: underline; text-decoration-color: rgba(30,64,175,.3); text-underline-offset: 3px; }
.fiche-main a:hover { text-decoration-color: var(--pc-primary); }
.fiche-main ul, .fiche-main ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.fiche-main li { margin-bottom: .4rem; }

/* TL;DR — encadré d'introduction */
.tldr {
  background: linear-gradient(135deg, var(--pc-primary-bg) 0%, #fff 100%);
  border: 1px solid rgba(30,64,175,.15);
  border-radius: var(--pc-radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.tldr-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pc-primary);
  background: #fff;
  padding: .25rem .65rem;
  border-radius: 99px;
  margin-bottom: .65rem;
  border: 1px solid rgba(30,64,175,.2);
}

.tldr p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--pc-800);
  line-height: 1.55;
}

/* Encadré "À qui ça s'adresse" */
.target-box {
  background: #fff;
  border: 1px solid var(--pc-200);
  border-radius: var(--pc-radius-md);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.target-box .target-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pc-primary-bg);
  color: var(--pc-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.target-box .target-content {
  flex: 1;
}

.target-box .target-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pc-500);
  margin-bottom: .15rem;
}

.target-box .target-text {
  font-size: .95rem;
  color: var(--pc-800);
  line-height: 1.5;
  margin: 0;
}

/* Encadrés typés (info / warning / tip / chiffre) */
.callout {
  border-radius: var(--pc-radius-md);
  padding: 1.1rem 1.35rem 1.1rem 3.5rem;
  margin: 1.5rem 0;
  position: relative;
  border-left: 4px solid;
}

.callout::before {
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  font-family: 'bootstrap-icons';
  font-size: 1.2rem;
  line-height: 1;
}

.callout-title {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}

.callout p { margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin-bottom: 0; }

.callout--info {
  background: #eff6ff;
  border-left-color: var(--pc-primary);
  color: #1e3a8a;
}
.callout--info .callout-title { color: var(--pc-primary); }
.callout--info::before { content: '\f431'; color: var(--pc-primary); } /* bi-info-circle-fill */

.callout--warning {
  background: #fff7ed;
  border-left-color: var(--pc-redressement);
  color: #7c2d12;
}
.callout--warning .callout-title { color: var(--pc-redressement); }
.callout--warning::before { content: '\f33a'; color: var(--pc-redressement); } /* bi-exclamation-triangle-fill */

.callout--tip {
  background: #ecfdf5;
  border-left-color: var(--pc-sauvegarde);
  color: #064e3b;
}
.callout--tip .callout-title { color: var(--pc-sauvegarde); }
.callout--tip::before { content: '\f4ed'; color: var(--pc-sauvegarde); } /* bi-lightbulb-fill */

.callout--chiffre {
  background: #f5f3ff;
  border-left-color: var(--pc-conciliation);
  color: #4c1d95;
}
.callout--chiffre .callout-title { color: var(--pc-conciliation); }
.callout--chiffre::before { content: '\f5c5'; color: var(--pc-conciliation); } /* bi-graph-up-arrow */

/* Timeline visuelle (étapes d'une procédure) */
.timeline-pedago {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0 2rem;
  position: relative;
}

.timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: -4px;
  width: 2px;
  background: var(--pc-200);
}

.timeline-step.is-current::before { background: var(--pc-primary); }

.timeline-bullet {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pc-200);
  color: var(--pc-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  z-index: 1;
  transition: var(--pc-transition);
}

.timeline-step.is-current .timeline-bullet {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 4px var(--pc-primary-bg);
}

.timeline-content {
  padding-top: .35rem;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pc-900);
  margin-bottom: .35rem;
  line-height: 1.3;
}

.timeline-duree {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--pc-500);
  background: var(--pc-100);
  padding: .15rem .55rem;
  border-radius: 4px;
  margin-bottom: .5rem;
}

.timeline-content p {
  margin: 0;
  font-size: .94rem;
  color: var(--pc-600);
  line-height: 1.55;
}

/* Tableau comparatif */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0 2rem;
  font-size: .92rem;
  border: 1px solid var(--pc-200);
  border-radius: var(--pc-radius-md);
  overflow: hidden;
  background: #fff;
}

.compare-table thead th {
  background: var(--pc-50);
  color: var(--pc-900);
  font-weight: 700;
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 2px solid var(--pc-200);
  font-size: .9rem;
}

.compare-table thead th.is-sauvegarde   { background: #ecfdf5; color: #064e3b; }
.compare-table thead th.is-redressement { background: #fff7ed; color: #7c2d12; }
.compare-table thead th.is-liquidation  { background: #fef2f2; color: #7f1d1d; }
.compare-table thead th.is-conciliation { background: #f5f3ff; color: #4c1d95; }

.compare-table tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--pc-100);
  vertical-align: top;
  color: var(--pc-700);
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table tbody td:first-child {
  font-weight: 700;
  color: var(--pc-900);
  background: var(--pc-50);
  width: 28%;
}

@media (max-width: 575.98px) {
  .compare-table { font-size: .82rem; }
  .compare-table thead th, .compare-table tbody td { padding: .55rem .6rem; }
  .compare-table tbody td:first-child { width: 35%; }
}

/* Exemple chiffré (cas pratique) */
.exemple-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--pc-radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.exemple-box .exemple-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #b45309;
  background: #fef3c7;
  padding: .25rem .65rem;
  border-radius: 99px;
  margin-bottom: .85rem;
}

.exemple-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pc-900);
  margin: 0 0 .65rem;
}

.exemple-box p { color: #78350f; margin-bottom: .8rem; }

.exemple-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem 1.5rem;
  margin: 1rem 0 .25rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--pc-radius-sm);
}

.exemple-data dt {
  font-size: .72rem;
  font-weight: 600;
  color: var(--pc-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}

.exemple-data dd {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pc-900);
  margin: 0;
}

/* FAQ accordion (schema.org FAQPage compatible) */
.faq-block {
  margin: 2rem 0;
}

.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary { list-style: none; }

.faq-item {
  border: 1px solid var(--pc-200);
  border-radius: var(--pc-radius-sm);
  margin-bottom: .65rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s;
}

.faq-item[open] {
  border-color: var(--pc-primary);
  box-shadow: var(--pc-shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--pc-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .98rem;
  line-height: 1.4;
  transition: background .2s;
}

.faq-item summary:hover { background: var(--pc-50); }

.faq-item summary::after {
  content: '\f282'; /* bi-plus-lg */
  font-family: 'bootstrap-icons';
  color: var(--pc-primary);
  font-size: 1rem;
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\f2ea'; /* bi-dash-lg */
  transform: rotate(0);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--pc-700);
  line-height: 1.6;
  font-size: .95rem;
  border-top: 1px solid var(--pc-100);
  padding-top: .85rem;
}

.faq-answer p { margin-bottom: .65rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Sources */
.sources-block-v2 {
  background: var(--pc-50);
  border-radius: var(--pc-radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 1.5rem;
}

.sources-block-v2 h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pc-500);
  margin-bottom: .75rem;
}

.sources-block-v2 ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .9rem;
}

.sources-block-v2 li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--pc-200);
  color: var(--pc-700);
}

.sources-block-v2 li:last-child { border-bottom: none; }

.sources-block-v2 a {
  color: var(--pc-primary);
  text-decoration: none;
  font-weight: 600;
}

.sources-block-v2 a:hover { text-decoration: underline; }

.sources-block-v2 a::after {
  content: '\f135'; /* bi-box-arrow-up-right */
  font-family: 'bootstrap-icons';
  font-size: .75em;
  margin-left: .35rem;
  opacity: .6;
}

/* Fiches connexes */
.related-fiches {
  margin: 2.5rem 0 1rem;
}

.related-fiches h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pc-900);
  margin-bottom: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
}

.related-card {
  background: #fff;
  border: 1px solid var(--pc-200);
  border-radius: var(--pc-radius-sm);
  padding: .85rem 1rem;
  text-decoration: none;
  color: var(--pc-900);
  transition: var(--pc-transition);
  display: flex;
  align-items: center;
  gap: .65rem;
}

.related-card:hover {
  border-color: var(--pc-primary);
  background: var(--pc-50);
  color: var(--pc-900);
  transform: translateX(2px);
}

.related-card i {
  color: var(--pc-primary);
  font-size: 1.1rem;
}

.related-card .related-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* TOC sticky (sidebar droite) */
.fiche-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  font-size: .88rem;
}

@media (max-width: 991.98px) {
  .fiche-toc { display: none; }
}

.fiche-toc-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pc-500);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--pc-200);
}

.fiche-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--pc-200);
}

.fiche-toc-list li { padding: 0; }

.fiche-toc-list a {
  display: block;
  padding: .35rem 0 .35rem .85rem;
  margin-left: -2px;
  color: var(--pc-600);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: var(--pc-transition);
  line-height: 1.4;
}

.fiche-toc-list a:hover {
  color: var(--pc-primary);
  border-left-color: var(--pc-primary);
}

.fiche-toc-list a.is-active {
  color: var(--pc-primary);
  font-weight: 700;
  border-left-color: var(--pc-primary);
}
