/* Base sécurité mise en page */
.lpsa-fe-form * ,
.lpsa-fe-modal * ,
.lpsa-fe-grid * { box-sizing: border-box; }

/* Sommaire */
.lpsa-fe-sommaire{
  margin:20px 0;
  padding:15px;
  background:#f9f9f9;
  border:1px solid #ddd;
  border-radius:8px;
}
.lpsa-fe-sommaire h3{ margin:0 0 10px; font-size:1.2em; }
.lpsa-fe-sommaire ul{ list-style:none; margin:0; padding:0; }
.lpsa-fe-sommaire li{ margin:6px 0; }
.lpsa-fe-sommaire a{ text-decoration:none; font-weight:600; }

/* Form */
.lpsa-fe-form label{ display:block; font-weight:600; margin-bottom:6px; }
.lpsa-fe-form input[type="text"],
.lpsa-fe-form input[type="url"],
.lpsa-fe-form textarea,
.lpsa-fe-form select{
  width:100%;
  max-width:100%;
}
.lpsa-fe-row{ display:flex; gap:14px; }
.lpsa-fe-col{ flex:1; }
@media (max-width:768px){ .lpsa-fe-row{ flex-direction:column; } }

.lpsa-fe-logo{ max-width:120px; margin-top:8px; display:block; }

.lpsa-fe-notice{ padding:10px 12px; border-radius:8px; margin:10px 0; }
.lpsa-fe-notice--ok{ background:#e7f7ec; border:1px solid #b7e3c3; }
.lpsa-fe-notice--error{ background:#fdecec; border:1px solid #f3b6b6; }

.lpsa-fe-submit{ padding:10px 16px; border-radius:10px; }

/* Popup */
.lpsa-fe-open{
  padding:12px 20px;
  border-radius:999px;
  cursor:pointer;
}

.lpsa-fe-open:hover{
	border-color : #d19a00;
	color :#d19a00;

}

.lpsa-fe-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.6);
  overflow:auto;
}
.lpsa-fe-modal__content{
  background:#fff;
  margin:5% auto;
  padding:20px;
  border-radius:16px;
  max-width:800px;
  width:90%;
  position:relative;
  max-height:90vh;
  overflow:auto;
}
.lpsa-fe-close{
  position:absolute;
  right:12px;
  top:12px;
  width:36px;
  height:36px;
  border-radius:999px;
  cursor:pointer;
}

/* Grille fiches éleveurs */
.lpsa-fe-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media (min-width:1024px){
  .lpsa-fe-grid{ grid-template-columns:1fr 1fr; }
}
.lpsa-fe-item,
.lpsa-fe-item .fiche-eleveur-card{ max-width:100%; }

/* Flags tests (ADN / PRA / PKdef / FIV) */
.test-ok,
.test-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.2em;
  height:1.2em;
  border-radius:999px;
  margin-left:.35rem;
  font-weight:800;
  line-height:1;
}
.test-ok::before{ content:"✓"; }
.test-no::before{ content:"✗"; }
.test-ok{ border:1px solid #2e7d32; color:#2e7d32; }
.test-no{ border:1px solid #c62828; color:#c62828; }

/* Flag chatons */
.fiche-chaton-ok,
.fiche-chaton-no{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.2em;
  height:1.2em;
  border-radius:999px;
  margin-left:.35rem;
  font-weight:800;
  line-height:1;
}
.fiche-chaton-ok::before{ content:"✓"; }
.fiche-chaton-no::before{ content:"✗"; }
.fiche-chaton-ok{ border:1px solid #2e7d32; color:#2e7d32; }
.fiche-chaton-no{ border:1px solid #c62828; color:#c62828; }
