/* Projets open source — composants complémentaires à style.css.
   Les polices, couleurs et éléments de navigation restent ceux de ZFTI. */

.project-spotlight {
  padding: 70px 0;
  background: var(--color-background);
}
.project-spotlight-grid {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 36px 40px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.project-spotlight-icon {
  width: 104px;
  height: 104px;
  padding: 10px;
  border-radius: 24px;
  background: var(--color-background);
}
.project-spotlight-copy h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  margin-bottom: 12px;
}
.project-spotlight-copy p:not(.eyebrow) {
  color: var(--color-muted);
  margin: 0;
}
.project-spotlight-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.project-spotlight-actions .project-text-link { font-size: .9rem; }

.project-index-hero { background: var(--color-background); }
.project-index-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.project-index-panel img {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  border-radius: 20px;
}
.project-index-panel h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
.project-index-panel p:not(.eyebrow) { color: var(--color-muted); }
.project-index-panel .service-link { margin-top: 12px; }

.project-feature-card {
  display: grid;
  grid-template-columns: minmax(180px, 35%) minmax(0, 1fr);
  gap: 44px;
  padding: 30px 44px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.project-feature-visual {
  display: flex;
  justify-content: center;
  height: 360px;
  overflow: hidden;
  background: linear-gradient(180deg, #e1e9e6, var(--color-background));
  border-radius: 18px;
}
.project-feature-visual img {
  width: auto;
  height: 480px;
  max-width: unset;
  object-fit: contain;
  object-position: top center;
  margin: 20px auto;
  filter: drop-shadow(0 14px 16px rgba(31, 77, 66, .15));
}
.project-feature-content h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  margin-top: 12px;
}
.project-feature-content p { color: var(--color-muted); }
.project-chip {
  display: inline-block;
  padding: 6px 12px;
  color: var(--color-primary-dark);
  background: #e3f2ec;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
}
.project-dark-list {
  margin: 16px 0 22px;
  padding-left: 24px;
}
.project-dark-list li { color: var(--color-muted); margin-bottom: 6px; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.project-text-link {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 700;
}
.project-text-link:hover { color: var(--color-primary); }
.project-principles { background: var(--color-background); }
.project-context-note { max-width: 780px; margin: 30px 0 0; color: var(--color-muted); }

.project-app-hero { background: linear-gradient(135deg, #eff5f2, #fff); }
.project-app-hero .service-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
.project-app-hero .hero-text strong { color: var(--color-primary-dark); }
.project-version-note { margin: 18px 0 0; color: var(--color-muted); font-size: .88rem; }
.project-app-panel {
  padding: 30px;
  color: var(--color-white);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--color-primary-dark), #163b32);
  box-shadow: var(--shadow-soft);
}
.project-app-panel-header { display: flex; align-items: center; gap: 18px; }
.project-app-panel-header img { width: 92px; height: 92px; border-radius: 20px; }
.project-app-panel-header strong,
.project-app-panel-header span { display: block; }
.project-app-panel-header strong { font: 700 1.35rem var(--font-title); }
.project-app-panel-header span { color: rgba(255,255,255,.72); font-size: .84rem; }
.project-facts { list-style: none; margin: 26px 0 0; padding: 0; }
.project-facts li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); }
.project-facts strong,
.project-facts span { display: block; }
.project-facts span { color: rgba(255,255,255,.75); font-size: .92rem; margin-top: 2px; }
.project-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  font-weight: 800;
  border-radius: 12px;
  background: var(--color-background);
  color: var(--color-primary-dark);
}
.project-screenshots { background: var(--color-background); }
.project-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-screenshot-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 24px 16px 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}
.project-screenshot-grid img {
  display: block;
  width: min(100%, 235px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(31, 77, 66, .15);
}
.project-screenshot-grid figcaption {
  margin-top: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary-dark);
}
.project-privacy-highlight,
.project-install-panel {
  padding: 30px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}
.project-privacy-highlight strong {
  display: block;
  font: 700 1.4rem/1.3 var(--font-title);
  margin-bottom: 14px;
}
.project-privacy-highlight p,
.project-install-panel p { color: var(--color-muted); }
.project-install { background: var(--color-background); }
.project-install-panel {
  background: var(--color-white);
  align-self: start;
}
.project-install-panel .btn { width: 100%; margin: 12px 0; text-align: center; }
.project-install-panel .project-small { font-size: .91rem; }
.project-attribution { background: var(--color-background); }
.project-attribution .section-heading { max-width: 900px; }
.project-attribution a:not(.project-text-link) {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Conserver des mises en page stables sur tablettes et mobiles. */
@media (max-width: 1060px) {
  .project-spotlight-grid { grid-template-columns: 90px minmax(0, 1fr); }
  .project-spotlight-icon { width: 90px; height: 90px; }
  .project-spotlight-actions { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 920px) {
  .project-app-hero .service-hero-grid { grid-template-columns: 1fr; }
  .project-feature-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-feature-visual { height: 280px; }
  .project-screenshot-grid { gap: 12px; }
  .project-screenshot-grid figure { padding: 14px 10px; }
}
@media (max-width: 650px) {
  .project-spotlight { padding: 46px 0; }
  .project-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px;
  }
  .project-spotlight-actions { grid-column: 1; flex-direction: column; align-items: stretch; }
  .project-spotlight-actions .btn { width: 100%; }
  .project-screenshot-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-screenshot-grid figure { padding: 22px; }
  .project-screenshot-grid img { width: min(100%, 255px); }
  .project-feature-card { padding: 24px; }
  .project-feature-content .btn { width: 100%; }
  .project-index-panel { padding: 25px; }
  .project-app-panel { padding: 24px; }
  .project-app-panel-header img { width: 72px; height: 72px; }
  .project-install-panel { padding: 24px; }
}
