/* FCR — Fiche individuelle */
.fcr-detail {
  --fcr-red: #c90027;
  --fcr-text: #292629;
  --fcr-muted: #676067;
  max-width: 1160px;
  margin: 0 auto 64px;
  color: var(--fcr-text);
}

.fcr-detail__nav {
  margin-bottom: 25px;
}

.fcr-detail__back {
  color: #7d2838;
  font-size: 14px;
  text-decoration: none;
}

.fcr-detail__back:hover {
  color: var(--fcr-red);
  text-decoration: underline;
}

.fcr-detail__back:focus-visible {
  outline: 2px solid var(--fcr-red);
  outline-offset: 3px;
}

.fcr-detail__header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e1e1;
  margin-bottom: 30px;
}

.fcr-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fcr-detail__theme,
.fcr-detail__year {
  padding: 7px 11px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.fcr-detail__theme {
  background: #f6e5e9;
  color: #8a2435;
  text-transform: uppercase;
}

.fcr-detail__year {
  background: #343a40;
  color: #fff;
  white-space: nowrap;
}

.fcr-detail__title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(29px, 3.6vw, 42px);
  line-height: 1.18;
  font-weight: 700;
}

.fcr-detail__subtitle {
  margin: 12px 0 0;
  color: var(--fcr-muted);
  font-size: 16px;
}

.fcr-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 52px;
}

.fcr-detail__body,
.fcr-detail__aside {
  min-width: 0;
}

.fcr-detail__content {
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.fcr-detail__content> :first-child {
  margin-top: 0;
}

.fcr-detail__content p {
  margin: 0 0 1.15em;
}

.fcr-detail__content h2,
.fcr-detail__content h3,
.fcr-detail__content h4 {
  margin: 1.4em 0 .55em;
  line-height: 1.3;
}

.fcr-detail__content ul,
.fcr-detail__content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.fcr-detail__content img {
  max-width: 100%;
  height: auto;
}

.fcr-detail__content a {
  color: var(--fcr-red);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.fcr-detail__panel {
  padding: 20px;
  background: #faf8f8;
  border: 1px solid #eee6e7;
  border-radius: 10px;
}

.fcr-detail__panel-title {
  margin: 0 0 20px;
  color: #8a2435;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .035em;
  font-weight: 700;
}

.fcr-detail__leaders {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fcr-detail__leader {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fcr-detail__portrait {
  display: block;
  width: 56px;
  height: 56px;
  min-width: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: cover;
  align-self: center;
}

.fcr-detail__leader-text {
  min-width: 0;
}

.fcr-detail__leader-text strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}

.fcr-detail__leader-text span {
  display: block;
  margin-top: 3px;
  color: var(--fcr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fcr-detail__grant {
  margin-top: 18px;
  margin-bottom: 18px;
  border-top: 3px solid #e4002b;
  padding: 18px 20px;
  background: #faf8f8;
  border-radius: 0 0 9px 9px;

}

.fcr-detail__grant span {
  display: block;
  margin-bottom: 4px;
  color: var(--fcr-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.fcr-detail__grant strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}


/* Carte dans la sidebar des fiches projets */

.fcr-map--compact {
  width: 100%;
}

.fcr-map--compact .fcr-map__details {
  position: relative;
  top: auto !important;
  left: auto !important;
  width: 100%;
  max-width: none;
  margin-top: 12px;
  box-sizing: border-box;
}

.fcr-map--compact .fcr-map__details[hidden] {
  display: none;
}


.fcr-detail__footnav {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid #e8e1e1;
}

.fcr-detail__empty {
  margin: 25px 0;
}

@media (max-width: 850px) {
  .fcr-detail__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fcr-detail__aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .fcr-detail__grant {
    margin-top: 18px;
  }
}

@media (max-width: 550px) {
  .fcr-detail {
    margin-bottom: 35px;
  }

  .fcr-detail__header {
    margin-bottom: 22px;
  }

  .fcr-detail__content {
    font-size: 15px;
    line-height: 1.65;
  }

  .fcr-detail__panel {
    padding: 16px;
  }
}