/* Styles communs aux six fiches projets (pages_projets/*.html) :
   header simplifié, blocs de contenu, figures, vidéos et listes à icônes.
   Chaque fiche garde son propre CSS uniquement pour ses mises en page. */


/* ========= Header : un seul lien "Retour aux projets" centré ========= */

header .nav {
  display: flex;
  justify-content: center;
}

header .nav .nav-link {
  margin-inline: auto;
}


/* ========= Blocs de contenu ========= */

.project .h3 {
  /* <strong> est inline : le passer en block pour que la marge basse s'applique */
  display: block;
  font-size: 20px;
  margin: 0 0 14px;
}

.project .content {
  display: block;
}

.project .content .muted {
  margin: 4px 0 16px;
  font-weight: 600;
  opacity: 0.9;
}

.project p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.project ul,
.project ol {
  margin: 4px 0 12px 20px;
  padding: 0;
}

.project li {
  margin-bottom: 5px;
  line-height: 1.55;
}

/* Paragraphe d'introduction d'un bloc */
.pp-lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* Colonne texte dans une grille : autorise le rétrécissement */
.pp-text {
  min-width: 0;
}

.pp-text p:first-child {
  margin-top: 0;
}


/* ========= Figures (image cliquable + légende) ========= */

.pp-img {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pp-img a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.pp-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  transition: opacity .15s ease;
}

.pp-img a:hover img {
  opacity: .88;
}

.pp-img-full {
  width: 100%;
  margin-bottom: 12px;
}

figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}


/* ========= Vidéos ========= */

.pp-video {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pp-video video {
  display: block;
  width: 100%;
  border-radius: 8px;
}


/* ========= Listes à icônes (stations, fonctionnalités) ========= */

.pp-icon-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pp-icon-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  fill: var(--accent);
}

.pp-icon-label strong {
  display: block;
  font-size: 13px;
}

.pp-icon-label span {
  font-size: 12px;
  color: var(--muted);
}


/* ========= Responsive ========= */

@media (max-width: 600px) {
  .project .h3 {
    font-size: 17px;
  }
}