/* =====================================================================
   VERDOSO — note « entreprise en difficulté »
   Styles scopés (chargés APRÈS tokens.min.css + components.min.css).
   100 % construit sur les tokens. Aucune valeur de marque en dur.
   Tout est préfixé .eed- et porté par body.eed.
   ===================================================================== */

/* Largeur de la colonne éditoriale (centrée). Une seule source de vérité. */
body.eed { --eed-col: 840px; }

/* ---------------------------------------------------------------------
   HÉROS : typographique, sans image (espresso + filet bordeaux vivant)
--------------------------------------------------------------------- */
.eed-hero {
  position: relative;
  background: var(--surface-darker);
  color: var(--text-on-dark-body);
  overflow: hidden;
  padding-block: clamp(5.5rem, 13vw, 9rem) clamp(3.5rem, 8vw, 5.5rem);
}
.eed-hero::before { /* halo bordeaux discret, en haut à droite */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(161, 57, 76, .26) 0%, rgba(161, 57, 76, 0) 55%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  pointer-events: none;
}
.eed-hero__inner { position: relative; max-width: var(--eed-col); margin-inline: auto; padding-inline: var(--gutter); }
.eed-hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: var(--ls-display);
  color: var(--text-on-dark); max-width: 18ch; margin-top: var(--space-5);
}
.eed-hero__title em { font-style: italic; color: var(--wine-400); }
.eed-hero__lead {
  margin-top: var(--space-5); max-width: 60ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; line-height: var(--lh-loose);
  color: var(--text-on-dark-body);
}
.eed-hero__meta {
  margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  font-size: var(--fs-small); color: var(--text-on-dark-faint);
}
.eed-hero__meta b { color: var(--text-on-dark); font-weight: 500; }
/* filet vertical animé (pouls) — vie discrète, coupé si reduced-motion */
.eed-pulse {
  position: absolute; left: clamp(1.25rem, 5vw, 3.5rem); top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-on-dark) 50%, transparent);
  opacity: .5; animation: eedPulse 4s var(--ease-in-out) infinite;
}
@keyframes eedPulse { 0%, 100% { opacity: .18; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .eed-pulse { animation: none; } }

/* ---------------------------------------------------------------------
   BANDEAU MÉTA (fil d'Ariane + label) — repris du gabarit des notes
--------------------------------------------------------------------- */
.eed-meta { background: var(--surface-light-raised); border-bottom: 1px solid var(--hairline-light); }
.eed-meta__row {
  max-width: var(--eed-col); margin-inline: auto; padding: var(--space-4) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
}

/* ---------------------------------------------------------------------
   CORPS — colonne de lecture + titres de section
--------------------------------------------------------------------- */
.eed-wrap { max-width: var(--eed-col); margin-inline: auto; padding-inline: var(--gutter); }
.eed-read { max-width: none; }
.eed-read > * + * { margin-top: var(--space-4); }
.eed-read p { font-size: 1.05rem; line-height: var(--lh-loose); color: var(--text-on-light); }
.eed-read p a, .eed-read li a {
  color: var(--accent-on-light); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; transition: color var(--dur-fast) var(--ease-out);
}
.eed-read p a:hover, .eed-read li a:hover { color: var(--accent); }
.eed-read strong { color: var(--text-on-light); font-weight: 600; }

.eed-section { margin-top: var(--space-9); }
.eed-section__num {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent-on-light);
}
.eed-section__num::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eed-section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: var(--ls-heading);
  color: var(--text-on-light); margin-top: var(--space-4); max-width: 24ch;
}
.eed-section__intro { margin-top: var(--space-5); }

/* Sous-titre interne */
.eed-h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; line-height: var(--lh-snug);
  color: var(--text-on-light); margin-top: var(--space-7);
}

/* ---------------------------------------------------------------------
   ENCADRÉ « LE POINT DE VUE DE L'INVESTISSEUR »
   (signature Verdoso, sobre — filet gauche bordeaux sur fond espresso)
--------------------------------------------------------------------- */
.eed-invest {
  margin: var(--space-7) 0; padding: var(--space-6) var(--space-6) var(--space-6) var(--space-7);
  background: var(--surface-dark); color: var(--text-on-dark-body);
  border-left: 2px solid var(--accent-on-dark); position: relative;
}
.eed-invest__label {
  display: block; font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--wine-400);
  margin-bottom: var(--space-4);
}
.eed-invest p { font-size: 1rem; line-height: 1.75; color: var(--text-on-dark-body); }
.eed-invest p + p { margin-top: var(--space-3); }
.eed-invest strong { color: var(--text-on-dark); font-weight: 500; }

/* ---------------------------------------------------------------------
   FRISE DÉCISIONNELLE — la pièce maîtresse (vertical, spine bordeaux)
--------------------------------------------------------------------- */
.eed-frise { position: relative; margin-top: var(--space-7); padding-left: 0; }
.eed-frise__lead { max-width: 60ch; margin-bottom: var(--space-7); color: var(--text-on-light-muted); }

.eed-step { position: relative; padding-left: clamp(2.75rem, 6vw, 3.5rem); padding-bottom: var(--space-7); }
/* la colonne vertébrale */
.eed-step::before {
  content: ""; position: absolute; left: 9px; top: .55rem; bottom: -.4rem; width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(161, 57, 76, .35) 100%);
}
.eed-step:last-child::before { display: none; }
/* le nœud */
.eed-step::after {
  content: ""; position: absolute; left: 0; top: .35rem; width: 20px; height: 20px;
  border-radius: var(--radius-full); background: var(--surface-light);
  border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--surface-light);
}
.eed-step__phase {
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-on-light-muted);
}
.eed-step__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-4); margin-top: var(--space-2); }
.eed-step__title {
  font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.15;
  color: var(--text-on-light);
}
.eed-step__delay {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 4px 12px; background: rgba(161, 57, 76, .1);
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-on-light);
  white-space: nowrap;
}
.eed-step__text { margin-top: var(--space-3); max-width: 60ch; font-size: 1rem; line-height: 1.7; color: var(--text-on-light-muted); }
.eed-step__text strong { color: var(--text-on-light); font-weight: 600; }

/* le « nœud final » qui bifurque en trois issues */
.eed-fork {
  margin-top: var(--space-5); display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-joint); background: var(--hairline-light);
}
.eed-fork__item { background: var(--bone-50); padding: var(--space-5); border-top: 2px solid var(--accent); }
.eed-fork__name { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--text-on-light); }
.eed-fork__delay {
  display: block; margin-top: var(--space-2); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-on-light);
}
.eed-fork__text { margin-top: var(--space-3); font-size: var(--fs-small); line-height: 1.6; color: var(--text-on-light-muted); }
@media (max-width: 720px) { .eed-fork { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   TABLEAUX COMPARATIFS (responsive : défilement horizontal isolé)
--------------------------------------------------------------------- */
.eed-tablewrap { margin-top: var(--space-6); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eed-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-small); }
.eed-table caption { text-align: left; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-on-light-muted); margin-bottom: var(--space-3); }
.eed-table th, .eed-table td { text-align: left; padding: var(--space-4) var(--space-4); border-bottom: 1px solid var(--hairline-light); vertical-align: top; line-height: 1.55; }
.eed-table thead th {
  font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-on-light);
  border-bottom: 1px solid var(--ink-300);
}
.eed-table tbody th {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--text-on-light);
  width: 22%; white-space: nowrap;
}
.eed-table td { color: var(--text-on-light-muted); }
.eed-table tbody tr:hover { background: var(--surface-light-raised); }
.eed-table .eed-yes { color: var(--accent-on-light); font-weight: 600; }
.eed-table .eed-no { color: var(--text-on-light-muted); }

/* ---------------------------------------------------------------------
   GLOSSAIRE (liste de définitions)
--------------------------------------------------------------------- */
.eed-gloss { margin-top: var(--space-6); border-top: 1px solid var(--hairline-light); }
.eed-gloss > div { padding: var(--space-5) 0; border-bottom: 1px solid var(--hairline-light); display: grid; grid-template-columns: 240px 1fr; gap: var(--space-5); }
.eed-gloss dt { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--text-on-light); }
.eed-gloss dd { font-size: var(--fs-small); line-height: 1.7; color: var(--text-on-light-muted); }
.eed-gloss dd b { color: var(--text-on-light); font-weight: 600; }
@media (max-width: 680px) { .eed-gloss > div { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------------------------------------------------------------------
   CHUTE · VERDOSO (panneau de conclusion sombre + dégradé bordeaux)
--------------------------------------------------------------------- */
.eed-chute { margin-top: var(--space-9); background: var(--surface-darker); position: relative; overflow: hidden; }
.eed-chute::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 12% 0%, rgba(161, 57, 76, .22) 0%, rgba(161, 57, 76, 0) 55%);
  pointer-events: none;
}
.eed-chute__inner { position: relative; max-width: var(--eed-col); margin-inline: auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.eed-chute h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; color: var(--text-on-dark); margin-top: var(--space-4); }
.eed-chute p { margin-top: var(--space-4); font-size: 1.08rem; line-height: var(--lh-loose); color: var(--text-on-dark-body); }
.eed-chute strong { color: var(--text-on-dark); font-weight: 500; }
.eed-verdict { font-family: var(--font-display); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem) !important; line-height: 1.3; color: var(--text-on-dark) !important; margin-top: var(--space-6) !important; }
.eed-verdict b { font-style: normal; font-weight: 500; color: var(--wine-300); }
.eed-chute__cta { margin-top: var(--space-7); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ---------------------------------------------------------------------
   APPAREIL (FAQ, sources, à lire ensuite) : réutilise components.css
   On ne redéfinit rien — .accordion/.acc, .sources, .note-related,
   .takeaways, .note-foot viennent du design system partagé.
--------------------------------------------------------------------- */
