/* ============================================================================
   LES HISTOIRES — repris de `mew_dash/v2/mentorni-histoires/histoires/story.css`

   Les valeurs viennent de la maquette sans conversion. Tout est cloisonné
   sous `.hist` : la maquette était une page autonome et nommait ses classes
   `.act`, `.card`, `.chip`, `.figure`, `.list` — des mots qui, laissés à la
   racine, frapperaient le reste du site. La barre et le pied de la maquette
   sont retirés : la page est désormais servie dans le gabarit du site, qui
   porte déjà les siens.
   ========================================================================= */

/* Histoires — Mentorni · feuille partagée */

* { box-sizing: border-box; }
  .hist { margin: 0; background: #fff; font-family: Nunito, system-ui, sans-serif; color: #1C1C1E; }
  .hist a { color: #C0392B; text-decoration: none; font-weight: 800; }
  .hist a:hover { color: #FF6363; }
  .hist .ico { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
  .hist .num { font-variant-numeric: tabular-nums; }
  .hist .grad { background: linear-gradient(-38deg,#FFBCBC 0%,#FF6363 54%); }

  .hist .wrap { max-width: 1000px; margin: 0 auto; padding: 0 clamp(18px,4vw,28px); }

/* ---------- barre ---------- */
  /* PAS DE RÈGLE `.foot` ICI.
   La maquette avait son propre pied, en `.foot`. Il a été remplacé par
   celui du site (`<x-site-footer />`) — qui porte EXACTEMENT la même
   classe. Les anciennes règles le rattrapaient donc au passage : texte
   centré, 13,5 px, et une marge gauche sur chacun de ses 32 liens. Elles
   sont supprimées ; le pied du site garde sa propre feuille. */

.hist .bar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1.5px solid #F0EBE7; }
  .hist .bar .in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 1000px; margin: 0 auto; padding: 14px clamp(18px,4vw,28px); }
  /* La marque porte désormais le composant logo (Baloo 2, animé), et non
   plus du texte : sa taille et sa couleur viennent de `logo-mentorni.css`.
   Ne reste ici que le placement. */
.hist .bar .mark { flex: 0 0 auto; display: inline-flex; align-items: center; }
  .hist .bar .kind { flex: 0 1 auto; min-width: 0; padding-right: 15px; border-right: 1.5px solid #F0EBE7; font-size: 15px; font-weight: 800; color: #6E6D72; white-space: nowrap; }
  .hist .bar .back { display: inline-flex; align-items: center; gap: 7px; transition: color .16s; }
  .hist .bar .back:hover { color: #C0392B; }
  .hist .bar .back .ico { font-size: 19px; }

/* en fin de lecture, le retour est une vraie destination, pas un lien perdu */
  .hist .backto { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; height: 54px; padding: 0 24px; border: 1.5px solid #DDD5CF; border-radius: 999px; color: #1C1C1E; font-size: 16px; font-weight: 800; transition: border-color .18s, transform .18s cubic-bezier(.22,.9,.24,1); }
  .hist .backto:hover { border-color: #1C1C1E; color: #1C1C1E; transform: translateY(-2px); }
  .hist .backto .ico { font-size: 20px; color: #C0392B; }
  .hist .bar .go { flex: 0 0 auto; margin-right: auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 19px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 800; text-shadow: 0 1px 2px rgba(150,30,30,.5); box-shadow: 0 12px 24px -14px rgba(255,99,99,.85); transition: transform .18s cubic-bezier(.22,.9,.24,1); }
  .hist .bar .go:hover { transform: translateY(-2px); color: #fff; }
  .hist .bar .go .ico { font-size: 19px; }

/* ---------- ouverture ---------- */
  /* Valeur demandée par Waleed. Le maximum (30px) est INFÉRIEUR au minimum
   (36px) : la spécification prévoit ce cas — le minimum l'emporte, et la
   valeur vaut donc 36px à toutes les largeurs. L'écriture est conservée
   telle qu'elle a été donnée. */
.hist .hero { padding: clamp(36px, 7vw, 30px) 0 clamp(28px, 5vw, 44px); }
  .hist .eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 999px; background: #FFF1F1; color: #C0392B; font-size: 13px; font-weight: 900; letter-spacing: .06em; }
  .hist .eyebrow .ico { font-size: 17px; }
  .hist h1 { margin: 20px 0 0; font-family: Capriola, Georgia, serif; font-size: clamp(34px,6.4vw,58px); font-weight: 400; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
  .hist h1 em, .hist h2 em { font-style: normal; color: #FF6363; }
  .hist .stand { margin: 18px 0 0; max-width: 56ch; font-size: clamp(18px,2.3vw,21px); font-weight: 700; line-height: 1.58; color: #3F3E44; text-wrap: pretty; }
  .hist .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; padding-top: 22px; border-top: 1.5px solid #F0EBE7; font-size: 14.5px; font-weight: 800; color: #6E6D72; }
  .hist .meta span { display: inline-flex; align-items: center; gap: 8px; }
  .hist .meta .ico { font-size: 18px; color: #FF6363; }

/* ---------- le fil des actes ---------- */
  .hist .acts { position: relative; padding: 8px 0 clamp(30px,6vw,56px); }
/* un trait continu relie les six actes : on lit une suite, pas des blocs */
  .hist .acts::before { content: ""; position: absolute; right: 21px; top: 30px; bottom: 90px; width: 2px; background: linear-gradient(-180deg,#FFD3D3 0%,#F0EBE7 100%); }
  .hist .act { position: relative; padding: clamp(26px,4vw,38px) 62px 0 0; }
  .hist .act .dot { position: absolute; right: 0; top: clamp(26px,4vw,38px); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #F0EBE7; color: #6E6D72; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
  .hist .act.on .dot { background: linear-gradient(-38deg,#FFBCBC 0%,#FF6363 54%); box-shadow: none; color: #fff; text-shadow: 0 1px 2px rgba(150,30,30,.5); }
  .hist .act .tag { display: block; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #6E6D72; }
  .hist .act h2 { margin: 8px 0 0; font-size: clamp(23px,3.2vw,30px); font-weight: 900; letter-spacing: -.035em; line-height: 1.2; text-wrap: pretty; }
  .hist .act p { margin: 12px 0 0; font-size: 17px; font-weight: 700; line-height: 1.66; color: #3F3E44; text-wrap: pretty; }
  .hist .act p b { font-weight: 900; color: #1C1C1E; }
@media (max-width: 520px) {
  .hist .acts::before { right: 17px; }
  .hist .act { padding-right: 50px; }
  .hist .act .dot { width: 36px; height: 36px; font-size: 13.5px; }
}

/* ---------- la voix du parent ---------- */
  .hist blockquote { margin: 20px 0 0; padding: 22px 24px; border-radius: 26px; background: #F9F7F5; }
  .hist blockquote p { margin: 0; font-family: Capriola, Georgia, serif; font-size: clamp(19px,2.6vw,23px); font-weight: 400; line-height: 1.5; letter-spacing: -.02em; color: #1C1C1E; }
  .hist blockquote footer { display: flex; align-items: center; gap: 11px; margin-top: 16px; font-size: 14.5px; font-weight: 800; color: #6E6D72; }
  .hist .ava { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #F5F2EF; color: #4A4950; font-size: 14px; font-weight: 900; letter-spacing: .02em; }
  .hist .ava.brand { background: linear-gradient(-38deg,#FFBCBC 0%,#FF6363 54%); color: #fff; text-shadow: 0 1px 2px rgba(150,30,30,.5); }
  .hist .ava.lg { width: 78px; height: 78px; border-radius: 26px; font-size: 27px; letter-spacing: 0; }

/* ---------- ce qui a échoué ---------- */
  .hist .tried { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
  .hist .tried div { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #F9F7F5; font-size: 15.5px; font-weight: 700; line-height: 1.5; color: #3F3E44; text-wrap: pretty; }
  .hist .tried .ico { flex: 0 0 auto; font-size: 20px; color: #8A8890; }
  .hist .tried b { font-weight: 900; color: #1C1C1E; }

/* ---------- la fiche du mentor, telle quelle ---------- */
  .hist .card { margin-top: 20px; padding: 20px; border-radius: 28px; background: #fff; box-shadow: 0 22px 44px -32px rgba(60,30,25,.95), inset 0 0 0 1.5px #F0EBE7; }
  .hist .card .top { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }

  .hist .card .who { flex: 1 1 170px; min-width: 0; }
  .hist .card .who .nm { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 900; letter-spacing: -.035em; }
  .hist .card .seal { flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 1px rgba(150,30,30,.5)); }
  .hist .card .seal .ico { font-size: 16px; }
  .hist .card .who .sb { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; color: #6E6D72; }
  .hist .card .rate { flex: 0 0 auto; text-align: left; }
  .hist .card .rate b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
  .hist .card .rate span { font-size: 13.5px; font-weight: 700; color: #6E6D72; }
  .hist .card .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
  .hist .card .chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #F5F2EF; color: #4A4950; font-size: 13.5px; font-weight: 800; }
  .hist .card .chip .ico { font-size: 16px; }
  .hist .card .chip.hit { background: #FFF1F1; color: #C0392B; }

/* ---------- la séance ---------- */
  .hist .clock { display: flex; flex-direction: column; margin-top: 18px; }
  .hist .clock div { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 0; border-top: 1.5px solid #F0EBE7; }
  .hist .clock div:first-child { border-top: 0; padding-top: 4px; }
  .hist .clock .h { flex: 0 0 62px; font-size: 16px; font-weight: 900; letter-spacing: -.02em; color: #C0392B; font-variant-numeric: tabular-nums; }
  .hist .clock .w { flex: 1 1 200px; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.55; color: #3F3E44; text-wrap: pretty; }

/* ---------- le chiffre, seul ---------- */
  .hist .figure { margin-top: 22px; padding: clamp(26px,4.4vw,38px) 24px; border-radius: 30px; background: #0B0B0C; color: #fff; text-align: center; }
  .hist .figure b { display: block; font-size: clamp(56px,11vw,86px); font-weight: 900; letter-spacing: -.055em; line-height: 1; }
  .hist .figure .u { display: block; margin-top: 10px; font-size: 17px; font-weight: 800; color: rgba(255,255,255,.8); text-wrap: pretty; }
  .hist .figure .src { display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.6); }

/* ---------- la définition, méritée ---------- */
  .hist .def { margin-top: clamp(30px,5vw,48px); padding: clamp(26px,4.4vw,40px); border-radius: 32px; background: #FFF6F2; }
  .hist .def .lbl { display: block; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #C0392B; }
  .hist .def h2 { margin: 12px 0 0; font-family: Capriola, Georgia, serif; font-size: clamp(26px,4vw,36px); font-weight: 400; letter-spacing: -.03em; line-height: 1.16; }
  .hist .def p { margin: 14px 0 0; font-size: 17.5px; font-weight: 700; line-height: 1.66; color: #3F3E44; text-wrap: pretty; }
  .hist .def p b { font-weight: 900; color: #1C1C1E; }
  .hist .pair { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; margin-top: 22px; }
  .hist .pair div { padding: 18px; border-radius: 22px; background: #fff; }
  .hist .pair .t { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 900; letter-spacing: -.02em; }
  .hist .pair .t .ico { font-size: 20px; }
  .hist .pair .no .t { color: #6E6D72; }
  .hist .pair .yes .t { color: #C0392B; }
  .hist .pair span { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.55; color: #3F3E44; text-wrap: pretty; }

/* ---------- suite ---------- */
  .hist .end { margin: clamp(30px,5vw,48px) 0 0; padding: clamp(26px,4.4vw,40px); border-radius: 32px; background: #F9F7F5; text-align: center; }
  .hist .end h2 { margin: 0; font-size: clamp(24px,3.6vw,32px); font-weight: 900; letter-spacing: -.035em; line-height: 1.18; text-wrap: balance; }
  .hist .end p { margin: 12px auto 0; max-width: 46ch; font-size: 16.5px; font-weight: 700; line-height: 1.6; color: #3F3E44; text-wrap: pretty; }
  .hist .cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; height: 62px; padding: 0 30px; border-radius: 999px; color: #fff; font-size: 17.5px; font-weight: 900; letter-spacing: -.3px; text-shadow: 0 1px 2px rgba(150,30,30,.5); box-shadow: 0 18px 34px -16px rgba(255,99,99,.85); transition: transform .18s cubic-bezier(.22,.9,.24,1); }
  .hist .cta:hover { transform: translateY(-3px); color: #fff; }
  .hist .cta .ico { font-size: 22px; }

  .hist .more { margin: clamp(30px,5vw,48px) 0 0; }
  .hist .more .lbl { display: block; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #6E6D72; }
  .hist .list { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; margin-top: 14px; }
  .hist .list a { display: flex; flex-direction: column; gap: 7px; padding: 18px; border-radius: 24px; background: #fff; color: #1C1C1E; box-shadow: inset 0 0 0 1.5px #F0EBE7; transition: transform .18s cubic-bezier(.22,.9,.24,1), box-shadow .22s; }
  .hist .list a:hover { color: #1C1C1E; transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px #FFD3D3, 0 20px 36px -26px rgba(255,99,99,.6); }
  .hist .list .soon-card { display: flex; flex-direction: column; gap: 7px; padding: 18px; border-radius: 24px; background: #F9F7F5; box-shadow: inset 0 0 0 1.5px #EDE7E3; }
  .hist .list .soon-card b { color: #45444B; }
  .hist .list .soon-card .k { color: #5F5E64; }
  .hist .list .soon-card .badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 5px 11px; border-radius: 999px; background: #EFEAE6; color: #5F5E64; font-size: 12.5px; font-weight: 900; }
  .hist .list .soon-card .badge .ico { font-size: 15px; }
  .hist .list .k { font-size: 12.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #C0392B; }
  .hist .list b { font-size: 17.5px; font-weight: 900; letter-spacing: -.03em; line-height: 1.25; text-wrap: pretty; }
  .hist .list span { font-size: 14.5px; font-weight: 700; line-height: 1.5; color: #6E6D72; text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
