/* =========================================================
   Fiches de la base de connaissances · le-management.com
   Prolonge site.css : mêmes jetons, mêmes boutons, même voix.
   Aucune couleur ni police nouvelle.
   ========================================================= */

.fiche main { position: relative; padding-top: 72px; }
.fiche main::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 640px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(31, 58, 139, 0.42), transparent 70%),
    radial-gradient(40% 60% at 6% 10%, rgba(255, 222, 89, 0.05), transparent 70%);
}
.fiche [id] { scroll-margin-top: 96px; }
/* Sur une fiche, l'en-tête a toujours son fond : le texte ne passe jamais dessous à nu. */
.fiche .entete { background: rgba(2, 4, 10, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--ligne); }
.fiche .entete.menu-ouvert { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
.menu a[aria-current] { color: var(--texte); }

/* ---------- Tête de fiche ---------- */
.fiche-tete {
  max-width: var(--largeur); margin: 0 auto;
  padding: clamp(36px, 6vw, 88px) var(--marge) clamp(36px, 5vw, 64px);
  display: grid; gap: 28px; align-items: end;
}
@media (min-width: 900px) { .fiche-tete.avec-picto { grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; } }

.fil { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 28px; font-size: 13px; color: var(--doux); }
.fil a { color: var(--doux); text-decoration: none; transition: color 0.2s; }
.fil a:hover { color: var(--jaune); }
.fil [aria-current] { color: var(--texte); }

.fiche h1 {
  margin: 0 0 0.5em; max-width: 980px;
  font-size: clamp(38px, 6.2vw, 84px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em;
}
.fiche-chapo { max-width: 720px; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; color: #c8d0de; }
.fiche-meta { margin-top: 24px; font-size: 13px; color: var(--doux); }
.fiche-meta a { color: var(--texte); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fiche-tete-texte > * { animation: monte-doux 0.7s var(--courbe) both; }
.fiche-tete-texte > :nth-child(2) { animation-delay: 0.05s; }
.fiche-tete-texte > :nth-child(3) { animation-delay: 0.1s; }
.fiche-tete-texte > :nth-child(4) { animation-delay: 0.16s; }
.fiche-tete-texte > :nth-child(5) { animation-delay: 0.22s; }
/* Glissement seul, sans fondu : le texte reste lisible même si l'animation ne se joue pas. */
@keyframes monte-doux { from { transform: translateY(14px); } to { transform: none; } }

/* Pictogramme et numéro d'une croyance */
.fiche-picto { position: relative; width: min(240px, 58%); }
.fiche-picto .picto { width: 100%; }
.fiche-numero {
  position: absolute; left: -18px; top: -54px; z-index: -1;
  font-size: 132px; font-weight: 900; line-height: 1; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 222, 89, 0.3);
}
@media (min-width: 900px) { .fiche-picto { justify-self: end; width: 240px; } }

/* ---------- Sommaire et corps ---------- */
.fiche-grille {
  max-width: var(--largeur); margin: 0 auto;
  padding: 0 var(--marge) clamp(64px, 9vw, 120px);
  display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr);
}
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(52px, 6vw, 84px); min-width: 0; max-width: 760px; }
@media (min-width: 1040px) {
  .fiche-grille:not(.sans-sommaire) { grid-template-columns: 240px minmax(0, 760px); gap: 80px; }
  .sommaire { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 128px); overflow-y: auto; }
}

.sommaire { padding: 20px 22px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: rgba(12, 22, 41, 0.55); }
.sommaire-titre { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--doux); }
.sommaire ol { list-style: none; display: grid; }
.sommaire a {
  display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--ligne);
  font-size: 14.5px; line-height: 1.35; color: var(--doux); text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.sommaire a:hover, .sommaire a.actif { color: var(--texte); border-color: var(--jaune); }

/* ---------- Texte courant ---------- */
.texte > * + * { margin-top: 1.1em; }
.texte p, .texte li { color: #d5dbe6; }
.texte .chapo { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--texte); }
.texte h2 { margin-top: 2.1em; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; }
.texte > h2:first-child { margin-top: 0; }
.texte h3 { margin-top: 1.6em; font-size: 20px; line-height: 1.3; }
.texte strong { font-weight: 700; color: var(--texte); }
.texte a { color: var(--jaune); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.texte a:hover { text-decoration-thickness: 2px; }
.texte ul, .texte ol { list-style: none; display: grid; gap: 12px; }
.texte ul li { position: relative; padding-left: 28px; }
.texte ul li::before { content: ''; position: absolute; left: 6px; top: 0.66em; width: 8px; height: 8px; border-radius: 50%; background: var(--jaune); }
.texte ol { counter-reset: point; }
.texte ol li { position: relative; padding-left: 44px; counter-increment: point; }
.texte ol li::before {
  content: counter(point); position: absolute; left: 0; top: 0.05em;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 222, 89, 0.5); color: var(--jaune); font-size: 13px; font-weight: 700;
}

/* Le regard d'Insuffle : ce qui distingue ce site d'une encyclopédie */
.regard {
  position: relative; margin-top: 2.6em; padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid rgba(255, 222, 89, 0.3); border-radius: var(--rayon);
  background: linear-gradient(160deg, rgba(255, 222, 89, 0.1), rgba(255, 222, 89, 0.02) 70%);
}
.regard > * + * { margin-top: 1em; }
.regard h2 { margin-top: 0; font-family: var(--main); font-size: clamp(34px, 3.8vw, 46px); font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--jaune); }
.regard p { color: var(--texte); }

/* La question d'une croyance, écrite à la main */
.question { margin-top: 2.6em; padding-top: clamp(24px, 3.4vw, 40px); border-top: 1px solid var(--ligne); }
.question > * + * { margin-top: 1em; }
.question h2 { margin-top: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--jaune); }
.question h2 + p { font-family: var(--main); font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; line-height: 1.15; color: var(--texte); }

/* ---------- Blocs ---------- */
.bloc-tete { margin-bottom: 28px; }
.bloc-tete .etiquette { margin-bottom: 12px; }
.bloc-tete h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
.bloc-tete .chapeau { margin-top: 12px; font-size: 17px; }

/* Étapes numérotées et frise datée */
.etapes { list-style: none; margin-left: 19px; border-left: 2px solid var(--ligne); counter-reset: etape; }
.etapes li { position: relative; padding: 0 0 32px 44px; counter-increment: etape; }
.etapes li:last-child { padding-bottom: 0; }
.etapes li::before {
  content: counter(etape); position: absolute; left: -21px; top: -4px;
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--jaune); color: var(--nuit); font-size: 16px; font-weight: 800;
}
.etapes h3 { font-size: 20px; line-height: 1.3; }
.etapes p { margin-top: 6px; color: #c8d0de; }
.etapes.datee li { padding-left: 32px; }
.etapes.datee li::before {
  content: attr(data-an); position: static; display: inline-grid; width: auto; height: 30px; margin-bottom: 10px;
  padding: 0 14px; border-radius: 999px; font-size: 14px; font-variant-numeric: tabular-nums;
}
.etapes.datee li::after { content: ''; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--nuit); border: 2px solid var(--jaune); }

/* Cartes de liens : définies dans site.css, car l'accueil s'en sert aussi. */

/* Chiffres sourcés */
.chiffres { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.chiffre-cle { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: rgba(12, 22, 41, 0.6); }
.chiffre-cle > strong { font-size: clamp(44px, 5vw, 64px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: var(--jaune); }
.chiffre-cle h3 { font-size: 17px; line-height: 1.3; }
.chiffre-cle p { font-size: 15px; color: #c8d0de; }
.chiffre-cle figcaption { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--ligne); font-size: 12px; color: var(--doux); }

/* Tableau comparatif */
.tableau { overflow-x: auto; border: 1px solid var(--ligne); border-radius: var(--rayon); }
.tableau table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.tableau th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--doux); background: var(--navy); }
.tableau td { padding: 14px 16px; border-top: 1px solid var(--ligne); vertical-align: top; color: #d5dbe6; }
.tableau td:first-child a { font-weight: 700; color: var(--jaune); text-decoration: none; }
.tableau td:first-child a:hover { text-decoration: underline; }
.legende { margin-top: 12px; font-size: 13px; color: var(--doux); }

/* Glossaire */
.glossaire { border-top: 1px solid var(--ligne); }
.glossaire dt { padding-top: 22px; font-size: 20px; font-weight: 800; color: var(--jaune); }
.glossaire dt strong { font-weight: inherit; }
.glossaire dd { padding: 6px 0 22px; border-bottom: 1px solid var(--ligne); color: #d5dbe6; }
.glossaire dd a { color: var(--texte); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Questions : reprend .faq de l'accueil, en plus dense */
.fiche .faq { margin-top: 0; }
.fiche .faq summary { padding: 20px 0; font-size: clamp(17px, 1.6vw, 20px); }

/* Sources : ce sur quoi la page s'appuie */
.sources { list-style: none; display: grid; gap: 12px; counter-reset: source; }
.sources li { position: relative; padding-left: 40px; font-size: 15px; line-height: 1.55; color: #c8d0de; counter-increment: source; }
.sources li::before { content: counter(source); position: absolute; left: 0; top: 0.1em; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ligne); font-size: 12px; font-weight: 700; color: var(--doux); }
.sources em { font-style: italic; color: var(--texte); }
.sources a { color: var(--jaune); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Citation d'un auteur dans le texte */
.texte blockquote { padding: 4px 0 4px 22px; border-left: 3px solid var(--jaune); }
.texte blockquote p { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--texte); }
.texte blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--doux); }

/* Tableau dans le fil du texte (comparaisons courtes) */
.texte .tableau { margin-top: 1.4em; }

/* ---------- Fin de page : la conviction, la suite, les maisons, la lettre ---------- */
.conviction, .suite, .relais { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.conviction { display: grid; gap: 14px; }
.conviction-carte {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--rayon) + 6px);
  border: 1px solid rgba(255, 222, 89, 0.24);
  background: radial-gradient(120% 140% at 0% 0%, var(--navy-clair), var(--navy) 62%);
}
@media (min-width: 860px) { .conviction-carte.avec-picto { grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; } }
.conviction-carte h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1.1; }
.conviction-carte p:not(.etiquette) { max-width: 640px; margin-top: 16px; font-size: clamp(17px, 1.5vw, 20px); color: #c8d0de; }
.conviction-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.conviction mark { padding: 0 0.06em; color: inherit; background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 92% / 100% 0.26em; }
.conviction .picto { width: min(220px, 56%); justify-self: center; }

.suite { margin-top: clamp(56px, 8vw, 96px); }
.suite .bloc-tete { margin-bottom: 8px; }

.relais { display: grid; gap: 14px; margin-top: clamp(44px, 6vw, 72px); }
@media (min-width: 760px) { .relais { grid-template-columns: 1fr 1fr; } }
.relais-carte {
  display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--ligne); border-radius: var(--rayon); background: rgba(12, 22, 41, 0.6);
  text-decoration: none; transition: border-color 0.2s;
}
.relais-carte:hover { border-color: rgba(255, 222, 89, 0.55); }
.relais-carte .etiquette { margin-bottom: 4px; }
.relais-carte h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.relais-carte p:not(.etiquette) { font-size: 16px; color: #c8d0de; }
.relais-carte .lien-fleche { margin-top: 8px; justify-self: start; }

.lettre-fiche {
  width: min(calc(100% - 2 * var(--marge)), calc(var(--largeur) - 2 * var(--marge)));
  margin: 14px auto clamp(72px, 10vw, 128px);
  display: grid; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--rayon); background: linear-gradient(135deg, var(--bleu), var(--navy-clair));
}
@media (min-width: 860px) { .lettre-fiche { grid-template-columns: 1fr 1fr; gap: 48px; } }
.lettre-fiche h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.lettre-fiche > div > p:not(.petit) { margin-top: 10px; color: #dbe3f3; }
.lettre-fiche .petit { margin-top: 12px; color: rgba(255, 255, 255, 0.7); }

@media (max-width: 640px) {
  .fiche-tete { padding-top: 28px; }
  .fiche-picto { width: 170px; margin-top: 40px; }
  .fiche-numero { font-size: 92px; top: -30px; left: -6px; }
  .conviction-actions .bouton { flex: 1 1 100%; }
}

@media print {
  .entete, .progression, .sommaire, .conviction, .suite, .relais, .lettre-fiche, .pied { display: none; }
  body { background: #fff; color: #000; }
  .texte p, .texte li { color: #000; }
}
