/* ============================================================
   SCPI Cards — feuille de style
   Extraite verbatim du widget HTML « BLOC SÉLECTION SCPI —
   hello-elementor-child v2.0 » de la page /scpi/ (post 4621).
   Aucune règle modifiée : le rendu doit rester identique au pixel.
   ============================================================ */
:root {
  --scpi-navy:       #07124a;
  --scpi-orange:     #f18815;
  --scpi-grey-text:  #4a5568;
  --scpi-grey-light: #64748b;
  --scpi-border:     #dde1ea;
  --scpi-bg-icon:    #eef1f9;
  --scpi-font:       'Plus Jakarta Sans', 'Poppins', sans-serif;
  --scpi-radius:     18px;
  --scpi-transition: 0.22s ease;
}

.scpi-sel-wrap {
  font-family: var(--scpi-font);
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}
.scpi-sel-wrap *,
.scpi-sel-wrap *::before,
.scpi-sel-wrap *::after {
  box-sizing: border-box;
  font-family: var(--scpi-font);
}

.scpi-sel-header { margin-bottom: 20px; }
.scpi-sel-count  { font-size: 18px; font-weight: 700; color: var(--scpi-navy); margin: 0; }
.scpi-sel-count span { color: var(--scpi-orange); }

/* Grille 4 colonnes responsive */
.scpi-sel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .scpi-sel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .scpi-sel-grid { grid-template-columns: 1fr; } }

/* Carte */
.scpi-sel-card {
  background: #ffffff;
  border: 1.5px solid var(--scpi-border);
  border-radius: var(--scpi-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--scpi-transition), transform var(--scpi-transition);
}
.scpi-sel-card:hover {
  box-shadow: 0 8px 32px rgba(7, 18, 74, 0.10);
  transform: translateY(-3px);
}

/* Image — selectors deliberately doubled (.scpi-sel-card .scpi-sel-img) so
   their specificity (0,0,2,0) beats Elementor's `.elementor img { height:auto;
   max-width:100% }` (0,0,1,1) which would otherwise un-crop the picture. */
.scpi-sel-card .scpi-sel-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.scpi-sel-card .scpi-sel-img-placeholder {
  width: 100%; height: 150px;
  background: var(--scpi-bg-icon);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 7px;
}
.scpi-sel-img-placeholder svg {
  width: 32px; height: 32px; stroke: var(--scpi-navy); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .28;
}
.scpi-sel-img-placeholder span { font-size: 11px; color: var(--scpi-grey-light); opacity: .7; }

/* Badges */
.scpi-sel-badge-row { padding: 11px 14px 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.scpi-sel-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--scpi-navy); border: 1.5px solid var(--scpi-navy);
  border-radius: 30px; padding: 3px 11px;
}
.scpi-sel-isr-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(241, 136, 21, .10); color: var(--scpi-orange);
  font-size: 9.5px; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; letter-spacing: .04em;
}
.scpi-sel-isr-badge svg {
  width: 10px; height: 10px; stroke: var(--scpi-orange); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Corps */
.scpi-sel-body    { padding: 8px 14px 10px; flex: 1; display: flex; flex-direction: column; }
.scpi-sel-name    { font-size: 16px; font-weight: 800; color: var(--scpi-navy); margin: 5px 0 2px; line-height: 1.2; }
.scpi-sel-manager { font-size: 12px; color: var(--scpi-grey-light); margin: 0 0 11px; font-weight: 500; }

/* Tableau */
.scpi-sel-table { width: 100%; border-collapse: collapse; font-size: 12px; flex: 1; }
.scpi-sel-table tr { border-bottom: 1px solid #f0f2f8; }
.scpi-sel-table tr:last-child { border-bottom: none; }
.scpi-sel-table td { padding: 6px 0; color: var(--scpi-grey-text); vertical-align: middle; line-height: 1.3; }
.scpi-sel-table td:last-child {
  text-align: right; font-weight: 700; color: var(--scpi-navy);
  padding-left: 4px; white-space: nowrap;
}
.val-green  { color: #1a7a32; }
.val-orange { color: var(--scpi-orange); }

/* CTAs */
.scpi-sel-ctas { padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 8px; }

.scpi-sel-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 11px 12px;
  background: var(--scpi-orange); color: #ffffff;
  font-family: var(--scpi-font); font-size: 12.5px; font-weight: 700;
  border-radius: 50px; border: none; cursor: pointer; text-decoration: none;
  transition: background var(--scpi-transition), transform var(--scpi-transition);
}
.scpi-sel-btn-primary:hover { background: #d97612; transform: translateY(-1px); color: #ffffff; text-decoration: none; }
/* Disabled variant rendered as <span> when prix_part is missing — the
   subscribe flow can't compute parts↔montant without a share price. */
.scpi-sel-btn-primary--disabled,
.scpi-sel-btn-primary--disabled:hover {
  background: var(--scpi-border); color: var(--scpi-grey-light);
  cursor: not-allowed; transform: none; pointer-events: none;
}
.scpi-sel-btn-primary--disabled svg { stroke: var(--scpi-grey-light); }
.scpi-sel-btn-primary svg {
  width: 14px; height: 14px; stroke: #ffffff; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

.scpi-sel-btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 12px;
  background: transparent; color: var(--scpi-navy);
  font-family: var(--scpi-font); font-size: 12.5px; font-weight: 700;
  border-radius: 50px; border: 1.5px solid var(--scpi-navy); cursor: pointer; text-decoration: none;
  transition: background var(--scpi-transition), color var(--scpi-transition);
}
.scpi-sel-btn-secondary:hover { background: var(--scpi-navy); color: #ffffff; text-decoration: none; }
.scpi-sel-btn-secondary svg {
  width: 13px; height: 13px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
