/* Les pages d'un sport (eocraft.fr/tennis/…) : les applis d'EoCraft pour ce sport, côte à côte. Elles reprennent
   l'en-tête et les blocs des pages d'Orma Logbook (orma-logbook/logbook.css), dans la teinte du sport. */

/* L'en-tête d'un sport : la photo d'action (le jeu à gauche), le texte à droite sur l'espace calme de l'image. */
/* --cadrage : le joueur, posé par chaque page */
.lb-tete.sp-tete > img { object-position: var(--cadrage, 20%) center; }
.lb-tete.sp-tete .lb-tete-texte {
  align-items: flex-end;
  text-align: right;
  background: linear-gradient(270deg, rgba(14, 24, 36, 0.88) 0%, rgba(14, 24, 36, 0.6) 45%, rgba(14, 24, 36, 0.05) 82%);
}
.lb-tete.sp-tete .lb-tete-texte > * { max-width: 30rem; }

.sp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }

.sp-appli {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(89, 101, 129, 0.16);
  box-shadow: 0 14px 36px rgba(28, 44, 60, 0.1);
}

.sp-appli-nom { display: flex; align-items: center; gap: 0.9rem; }
.sp-appli-nom img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 6px 16px rgba(28, 44, 60, 0.18); }
.page .sp-appli-nom h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.2; }
.page .sp-promesse { margin: 0; color: #3b4a62; font-size: 1.02rem; line-height: 1.55; }

.sp-ecrans { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; align-items: start; margin: 0.4rem 0; }
.sp-ecrans img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 26px rgba(28, 44, 60, 0.18); }

.page .sp-points { margin: 0; padding: 0; list-style: none; }
.page .sp-points li { position: relative; margin: 0 0 0.55rem; padding-left: 1.4rem; font-size: 0.96rem; line-height: 1.5; }
.sp-points li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--teinte); }

.page .sp-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; margin: auto 0 0; padding-top: 0.6rem; }
.page a.sp-lien { background: var(--encre); color: #fff; }
.page a.sp-lien:hover { background: var(--accent); }

.page .sp-choisir ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }

@media (max-width: 719px) {
  .sp-duo { grid-template-columns: 1fr; }
  /* sur un écran étroit, le texte passe en bas : l'action reste visible au-dessus */
  .lb-tete.sp-tete { min-height: 520px; }
  .lb-tete.sp-tete > img { object-position: var(--cadrage, 20%) top; }
  .lb-tete.sp-tete .lb-tete-texte {
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(0deg, rgba(14, 24, 36, 0.9) 0%, rgba(14, 24, 36, 0.7) 40%, rgba(14, 24, 36, 0) 70%);
  }
}
