/* PROJETS-03 — page OmniCommande : héros du logiciel, section « gardien », histoire du projet, soutien GitHub.
   Feuille additionnelle (préfixe pip3-), chargée uniquement par /projets/omnicommande/, après pi-projets (inchangée).
   Effets légers : halo fixe et léger flottement du héros, supprimé si l'utilisateur demande moins d'animations. */

/* ---------- Haut de page : accroche + héros + capture réelle ---------- */
.pip3-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 32px; align-items: center; }
.pip3-heros { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 400px; }
.pip3-heros::before { content: ""; position: absolute; inset: 8% 4% 4%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(0, 229, 255, .30), rgba(0, 229, 255, .08) 60%, transparent); }
.pip3-heros img { position: relative; z-index: 1; display: block; width: 100%; height: auto; max-height: 540px; object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); animation: pip3-flotte 7s ease-in-out infinite; }
@keyframes pip3-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Le gardien de vos sessions ---------- */
.pip3-gardien { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px;
  border-radius: 16px; color: var(--pip-text);
  background: radial-gradient(90% 120% at 0% 50%, rgba(0, 229, 255, .14), transparent 60%), linear-gradient(160deg, var(--pip-bg-2), var(--pip-bg));
  border: 1px solid rgba(0, 229, 255, .22); }
.pip3-buste { margin: 0; }
.pip3-buste img { display: block; width: 100%; height: auto; border-radius: 50%; background: radial-gradient(circle, #16324a, var(--pip-bg) 70%);
  border: 2px solid rgba(0, 229, 255, .55); box-shadow: 0 0 0 6px rgba(0, 229, 255, .08), 0 14px 30px rgba(0, 0, 0, .4); }
.pip3-gardien h2 { margin: 0 0 12px; color: #fff; }
.pip3-gardien p { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: var(--pip-text); }
.pip3-valeurs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pip3-valeurs li { padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(0, 229, 255, .45); }

/* ---------- Pourquoi j'ai créé OmniCommande ---------- */
.pip3-histoire { max-width: 860px; margin: 0; padding: 24px 28px; border-radius: 12px; background: var(--common-body-3);
  border: 1px solid rgba(0, 0, 0, .08); border-left: 4px solid #0b6a8c; }
.pip3-histoire p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--text-h); }
.pip3-histoire .pip3-signature { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: #0b6a8c; }

/* ---------- Soutien GitHub (affiché seulement si un dépôt public officiel existe) ---------- */
.pip3-soutien { max-width: 900px; padding: 24px; border-radius: 12px; background: var(--common-body-3); border: 1px solid rgba(0, 0, 0, .08); }
.pip3-soutien p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--text-h); }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 991px) {
  .pip3-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .pip3-heros { max-width: 300px; }
  .pip3-heros img { max-height: 420px; }
  .pip3-gardien { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px; }
}
@media (max-width: 575px) {
  .pip3-heros { max-width: 230px; }
  .pip3-heros img { max-height: 340px; }
  .pip3-gardien { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 16px; }
  .pip3-buste { width: 160px; }
  .pip3-valeurs { justify-content: center; }
  .pip3-gardien p { font-size: 16px; }
  .pip3-histoire { padding: 18px 16px; }
  .pip3-histoire p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pip3-heros img { animation: none; }
}
