/* Figures de Savoie — page pédagogique, dans la palette du site */

.fig-hero {
  position: relative;
  padding: 0;
  min-height: min(86vh, 780px);
  background:
    radial-gradient(1200px 500px at 80% 40%, rgba(195, 20, 50, .22), transparent 60%),
    linear-gradient(180deg, #1a1418 0%, #121014 100%);
  color: var(--paper);
  overflow: hidden;
}

.fig-hero__mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 74% 48%, rgba(195, 20, 50, .42), transparent 68%),
    linear-gradient(165deg, #3a2c28 0%, #1a1618 42%, #101820 100%);
}

.fig-hero__mark svg {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: min(42vw, 380px);
  height: auto;
  opacity: .9;
}

.fig-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 10, 12, .88) 0%, rgba(14, 10, 12, .62) 42%, rgba(14, 10, 12, .12) 72%),
    linear-gradient(180deg, rgba(14, 10, 12, .25), rgba(14, 10, 12, .55));
  pointer-events: none;
}

.fig-hero .container {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: 56px;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: center;
}

.fig-hero__copy { max-width: 40rem; }

.fig-hero .kicker,
.epilogue .kicker { color: var(--gold-light); }
.fig-hero .kicker::before,
.epilogue .kicker::before { background: var(--gold-light); }

.fig-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 10px 0 16px;
}

.fig-hero .lead {
  color: rgba(250, 248, 246, .86);
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.hero-path a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-path a:hover { background: rgba(255, 255, 255, .14); color: var(--white); }

.hero-path b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  font-size: 11px;
  font-family: var(--font-body);
}

.method {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: end;
}

.method h2 { margin: 8px 0 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-sm);
}

.step span {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--red);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.step strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 15px;
}

.step p { font-size: 14px; margin: 0; }

.band { padding: 8px 0 20px; }
.place-band {
  margin: 0;
}

.place-band img {
  width: 100%;
  height: min(52vw, 460px);
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.place-band figcaption,
.portrait figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
}

.place-band figcaption a,
.portrait figcaption a,
.sources a { color: var(--red-800); text-decoration: underline; text-underline-offset: 2px; }

.dossier {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
}

.rail__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.rail a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
}

.rail a small {
  display: block;
  font-weight: 500;
  color: var(--ink-mute);
  font-size: 12px;
}

.rail a em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

.rail a:hover { background: var(--white); }
.rail a.is-active {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.rail a.is-active em { color: var(--red); }

.figure {
  scroll-margin-top: 108px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.figure:first-of-type { border-top: 0; padding-top: 0; }

.figure__layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.portrait {
  position: sticky;
  top: 108px;
}

.portrait__frame {
  position: relative;
  background: #1a1614;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.portrait__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.portrait--place .portrait__frame img {
  aspect-ratio: 4 / 5;
  object-position: center;
}

.badge-doc {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(250, 248, 246, .94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 999px;
}

.badge-doc.is-live { background: var(--red); color: white; }
.badge-doc.is-place { background: var(--ink); color: white; }

.figure__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.figure h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 6px;
}

.figure h2 em { font-style: italic; font-weight: 550; color: var(--red-800); }

.figure__dates {
  color: var(--ink-mute);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.question {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 550;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 12px;
}

.figure__lead { font-size: 1.05rem; color: var(--ink); max-width: 62ch; }

.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 18px;
}

.beat {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 14px 16px;
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-sm);
}

.beat:nth-child(2) { border-top-color: var(--gold); }
.beat:nth-child(3) { border-top-color: var(--ink); }

.beat h3 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.beat p { font-size: 14.5px; margin: 0; }

.keep {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(171, 138, 78, .12), transparent 80%);
  border-radius: 0 10px 10px 0;
}

.keep p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 550;
}

.goto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  min-width: 0;
  max-width: 100%;
}
.goto a {
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
}
.goto a small {
  display: inline-block;
  margin-right: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
}
.goto a:hover { border-color: var(--red); color: var(--red-800); }

.keep span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.fine {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-mute);
}

.epilogue {
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 40px);
}

.epilogue h2,
.epilogue p { color: var(--paper); }

.epilogue .kicker { color: var(--gold-light); }

.epilogue__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 28px;
  align-items: start;
}

.soon {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .04);
}

.soon strong { display: block; margin-bottom: 6px; }
.soon__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold-light);
  font-weight: 700;
  border-bottom: 1px solid var(--gold);
}
.soon__link:hover { color: var(--white); }

@media (max-width: 1180px) and (min-width: 761px) {
  .main-nav a { padding: 8px 9px; font-size: 13.5px; }
  .site-header .container { gap: 10px; }
}

.sources { font-size: 14.5px; }
.sources h2 { margin-bottom: 8px; }
.sources ul { display: grid; gap: 8px; }
.sources li { color: var(--ink-soft); padding-left: 0; }
.sources h3 {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 22px 0 8px;
  color: var(--ink-mute);
}

@media (max-width: 980px) {
  .method,
  .figure__layout,
  .epilogue__grid,
  .dossier { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .beats { grid-template-columns: 1fr; }
  .portrait { position: static; }
  .rail {
    position: sticky;
    top: 72px;
    z-index: 40;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    background: rgba(250, 248, 246, .94);
    backdrop-filter: blur(10px);
    margin: 0 -24px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
  }
  .rail__label { display: none; }
  .rail a {
    display: flex;
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--line);
    background: var(--white);
  }
  .rail a small { display: none; }
  .portrait__frame img { max-height: 520px; aspect-ratio: 4 / 5; }
}

@media (max-width: 760px) {
  .fig-hero { min-height: 78vh; }
  .fig-hero .container { min-height: 78vh; padding-top: 36px; }
  .fig-hero__scrim {
    background: linear-gradient(180deg, rgba(14, 10, 12, .35) 0%, rgba(14, 10, 12, .82) 58%);
  }
  .place-band img { height: 220px; border-radius: 12px; }
}

@media print {
  .topbar,
  .ticker,
  .rail,
  .header-actions { display: none !important; }
  .fig-hero { min-height: 0; background: white; color: black; }
  .fig-hero h1, .fig-hero .lead { color: black; }
  .dossier { display: block; }
  .portrait { position: static; }
}
