/* ==========================================================================
   jakepellerin.fr — page « L'avance sur assurance vie » (novembre 2026)
   Chargé uniquement par avance-assurance-vie.html, après style.css.
   ========================================================================== */

/* Le principe en 3 temps */
.av-flow { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); align-items: stretch; margin-top: 8px; }
.av-flow__step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.av-flow__step--hl { background: var(--navy); border-color: var(--navy); }
.av-flow__k { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--teal); }
.av-flow__big { font-family: var(--serif); font-size: clamp(24px, 0.8vw + 20px, 32px); line-height: 1.15; color: var(--navy); }
.av-flow__d { font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.av-flow__step--hl .av-flow__big { color: #fff; }
.av-flow__step--hl .av-flow__d { color: var(--on-navy); }
.av-flow__arrow { display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--teal); }

/* Tableaux */
.av-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.av-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 16px; }
.av-table caption { caption-side: top; text-align: left; font-size: 14.5px; color: var(--muted); padding: 0 0 10px; }
.av-table th, .av-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); line-height: 1.45; }
.av-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; }
.av-table tbody tr:last-child th, .av-table tbody tr:last-child td { border-bottom: 0; }
.av-table tbody td strong { color: var(--navy); }
.av-table--cmp tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; background: #FAFBFC; }
.av-table--cmp thead th.is-hl { background: var(--teal); }
.av-table--cmp td.is-hl { background: rgba(43,179,176,.07); color: var(--navy); font-weight: 600; }
.av-table--cmp td { color: var(--ink-2); }

/* Le cap des 8 ans */
.av-cap { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 30px 32px; display: flex; flex-direction: column; gap: 18px; }
.av-cap__head { display: flex; flex-direction: column; gap: 8px; }
.av-time { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; padding-top: 6px; }
.av-time::before { content: ""; position: absolute; left: 8px; right: 8px; top: 15px; height: 2px; background: var(--line); }
.av-time__pt { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.av-time__dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--line-3); position: relative; z-index: 1; margin-bottom: 6px; }
.av-time__pt--hl .av-time__dot { border-color: var(--teal); background: var(--teal); }
.av-time__k { font-weight: 600; color: var(--navy); font-size: 16.5px; }

/* Cas concret */
.av-case { background: var(--navy); color: #fff; border-radius: 12px; padding: 34px 36px; display: flex; flex-direction: column; gap: 16px; }
.av-case h2 { color: #fff; }
.av-case .text-18 { color: var(--on-navy); }
.av-case .small { color: #AEB4C8; }

.av-case__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 4px 0; }
.av-case__figs > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 16px 18px; }
.av-case__big { font-family: var(--serif); font-size: clamp(22px, 0.6vw + 19px, 28px); color: #fff; line-height: 1.2; }
.av-case__lab { font-size: 14.5px; color: #C9CFE0; line-height: 1.45; margin-top: 4px; }

/* Usages */
.av-uses { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.av-use { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.av-use span { font-size: 28px; line-height: 1; }
.av-use p { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.35; }

/* Tablette */
@media (max-width: 1080px) {
  .av-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 720px) {
  .av-flow { grid-template-columns: 1fr; gap: 0; }
  .av-flow__arrow { transform: rotate(90deg); height: 34px; }
  .av-time { grid-template-columns: 1fr; gap: 18px; padding-left: 30px; }
  .av-time::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .av-time__dot { position: absolute; left: -30px; top: 2px; margin: 0; }
  .av-cap, .av-case { padding: 24px 22px; }
  .av-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .av-case__figs { grid-template-columns: 1fr; }
  .av-table { font-size: 15px; }
  .av-table th, .av-table td { padding: 11px 12px; }
  .av-table--cmp { min-width: 620px; }
}
@media (max-width: 720px) {
  .kpis { grid-template-columns: 1fr; gap: 12px; }
}
