/* Série « Les histoires extraordinaires d'un vendeur d'entreprises » : même charte que l'accueil. */
:root {
  --navy: #0e2654;
  --ink-soft: #3b4660;
  --muted: #6a7490;
  --yellow: #f5b800;
  --yellow-soft: #fff6d9;
  --teal: #0f7f86;
  --teal-soft: #e6f3f3;
  --line: #e2e6ee;
  --paper: #f5f7fb;
  --title: "Raleway", "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink-soft); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
.wrap { width: min(860px, calc(100% - 40px)); margin: 0 auto; }

header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--title); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand img { width: 40px; height: auto; }
.back { font-size: 0.9rem; }

main { padding: 56px 0 64px; }
h1 { font-family: var(--title); color: var(--navy); line-height: 1.2; font-size: clamp(1.7rem, 3.6vw, 2.4rem); text-transform: uppercase; letter-spacing: 1.2px; margin: 10px 0 12px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hand); font-weight: 600; font-size: 1.55rem; line-height: 1.1; letter-spacing: 0; color: var(--teal); }
.kicker::before { content: ""; width: 24px; height: 17px; flex: none; background: var(--yellow); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8c3.5-4.5 11-5.5 17-2.5'/%3E%3Cpath d='M16.5 2.4l3.8 3-4.2 2'/%3E%3Cpath d='M23 10c-3.5 4.5-11 5.5-17 2.5'/%3E%3Cpath d='M9.5 15.6l-3.8-3 4.2-2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8c3.5-4.5 11-5.5 17-2.5'/%3E%3Cpath d='M16.5 2.4l3.8 3-4.2 2'/%3E%3Cpath d='M23 10c-3.5 4.5-11 5.5-17 2.5'/%3E%3Cpath d='M9.5 15.6l-3.8-3 4.2-2'/%3E%3C/svg%3E") center / contain no-repeat; }

.btn { display: inline-block; padding: 14px 26px; background: var(--yellow); color: var(--navy); border: 2px solid var(--yellow); font-family: var(--title); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Épisode */
.serie { margin: 0 0 22px; font-size: 0.85rem; }
.serie a { color: var(--muted); text-decoration: none; }
.serie a:hover { color: var(--teal); }
.episode { max-width: 760px; }
.subtitle { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 32px; }
.illus { margin: 0 0 40px; }
.illus img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.story p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.8; color: #2a3348; margin: 0 0 1.2em; }
.story p:first-child::first-letter { float: left; font-family: var(--title); font-weight: 800; font-size: 3.6rem; line-height: 0.9; padding: 6px 10px 0 0; color: var(--navy); }
.moral { position: relative; margin: 36px 0 28px; padding: 30px 32px 26px 32px; background: var(--paper); }
.moral::before { content: "“"; position: absolute; top: -26px; left: 22px; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--yellow); }
.moral-label { font-family: var(--hand); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--teal); margin: 0 0 6px; }
.moral p:last-child { margin: 0; font-size: 1.06rem; color: var(--navy); }
.signature { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--muted); margin: 0 0 44px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.pager a { display: block; padding: 18px 20px; background: var(--paper); text-decoration: none; color: var(--navy); font-family: var(--title); font-weight: 700; line-height: 1.35; transition: background 0.15s; }
.pager a:hover { background: var(--teal-soft); }
.pager a span { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.pager .next { text-align: right; }

/* Sommaire de la série */
.series-head { max-width: 760px; margin-bottom: 48px; }
.series-head .lead { font-size: 1.15rem; color: var(--navy); }
.series-head .btn { margin-top: 10px; }
.episodes { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.episodes a { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 0 0 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: 0 10px 30px rgba(14, 38, 84, 0.05); transition: box-shadow 0.15s, transform 0.15s; }
.episodes a:hover { box-shadow: 0 14px 34px rgba(14, 38, 84, 0.12); transform: translateY(-2px); }
.episodes .txt { display: flex; flex-direction: column; gap: 6px; padding: 0 24px; }
.episodes img, .epilogue-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; border-bottom: 1px solid var(--line); }
.epilogue-link img { max-width: 420px; margin-bottom: 8px; border: 0; }
.episodes strong { font-family: var(--title); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--navy); }
.episodes em { font-family: var(--serif); font-size: 0.98rem; color: var(--ink-soft); }
.episodes small { font-size: 0.78rem; color: var(--muted); }
.epilogue-link { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px; margin-bottom: 36px; background: var(--navy); text-decoration: none; transition: background 0.15s; }
.epilogue-link:hover { background: #18346b; }
.epilogue-link .kicker { color: var(--yellow); }
.epilogue-link strong { font-family: var(--title); font-size: 1.2rem; color: #fff; }

/* Appel à l'action et pied de page */
.cta { background: var(--teal-soft); padding: 34px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta p { margin: 0; max-width: 520px; color: var(--navy); font-size: 1.02rem; }
footer { background: var(--paper); border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 0.8rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
footer a { color: inherit; }

@media (max-width: 680px) {
  .episodes, .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .story p { font-size: 1.05rem; }
  .moral { padding: 26px 22px 22px; }
}
