/* ==========================================================================
   MON HISTOIRE — photo, texte avec "Lire la suite" (mobile), chiffres clés
   ========================================================================== */

.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }

/* Photo */
.story-photo { position: relative; justify-self: center; width: min(380px, 100%); }
.story-photo::before { content: ''; position: absolute; inset: -14px; border-radius: 32px; border: 1px dashed rgba(25,211,162,.18); pointer-events: none; }
.story-frame {
  position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(25,211,162,.25);
  background: radial-gradient(circle at 50% 30%, rgba(25,211,162,.16), transparent 62%), linear-gradient(170deg, var(--card2), var(--bg2));
  box-shadow: 0 40px 90px -30px rgba(25,211,162,.35);
}
.story-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); background: linear-gradient(180deg, transparent 60%, rgba(8,11,18,.55)); }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.story-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--mut); }
.story-ph span { font-family: var(--display); font-weight: 800; font-size: 96px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(25,211,162,.5); }
.story-ph small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.story-tag {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: rgba(12,17,27,.92); backdrop-filter: blur(10px); border: 1px solid rgba(25,211,162,.3);
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.story-tag b { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: pulse 2s infinite; }

/* Texte */
.story-body { margin-top: 20px; display: grid; gap: 12px; color: var(--mut); font-size: 16.5px; max-width: 640px; }
.story-body strong { color: var(--txt); }
.story-quote { color: var(--txt) !important; font-weight: 600; border-left: 3px solid var(--acc); padding: 4px 0 4px 16px; margin-top: 4px; }
.story-more { display: grid; gap: 12px; }
.story-toggle { display: none; }

/* Chiffres clés */
.kpis { display: grid; grid-template-columns: .8fr 1fr 1.45fr; gap: 14px; margin-top: 30px; max-width: 640px; }
.kpi { position: relative; overflow: hidden; padding: 20px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(25,211,162,.08), rgba(111,168,255,.04)); border: 1px solid rgba(25,211,162,.18); transition: transform .3s, border-color .3s; }
.kpi:hover { transform: translateY(-3px); border-color: rgba(25,211,162,.4); }
.kpi-v { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; white-space: nowrap; background: linear-gradient(120deg, var(--acc), #8CF0D6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-l { margin-top: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }

/* ---------- Responsive */
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 56px; } .story-photo { width: min(300px, 80%); } }
@media (max-width: 700px) {
  .story-more { display: none; }
  .story.open .story-more { display: contents; }
  .story-toggle { display: inline-flex; align-self: start; margin-top: 2px; color: var(--acc); font-weight: 700; font-size: 14.5px; padding: 10px 0; }
  .story-body { gap: 10px; font-size: 15.5px; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis .kpi:last-child { grid-column: 1 / -1; } }
