/* ==========================================================================
   B2V - Favoris (styles)
   Cree le 31/08/2026. Purement additif.
   ========================================================================== */

.b2v-fav{
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:50%;
  cursor:pointer;
  background:rgba(255,255,255,.92);
  box-shadow:0 2px 8px rgba(17,24,39,.16);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  transition:transform .18s cubic-bezier(.22,.61,.36,1),
             box-shadow .18s cubic-bezier(.22,.61,.36,1),
             background-color .18s ease;
}

.b2v-fav svg{
  fill:none;
  stroke:#60222D;
  stroke-width:1.8;
  transition:fill .18s ease, stroke .18s ease, transform .18s ease;
}

.b2v-fav:hover{
  transform:scale(1.08);
  background:#fff;
  box-shadow:0 4px 14px rgba(96,34,45,.24);
}

.b2v-fav.is-on svg{
  fill:#60222D;
  stroke:#60222D;
}

.b2v-fav:focus-visible{
  outline:2px solid #60222D;
  outline-offset:2px;
}

/* Petite pulsation a l'ajout / au retrait */
@keyframes b2vFavPop{
  0%   { transform:scale(1); }
  45%  { transform:scale(1.28); }
  100% { transform:scale(1); }
}
.b2v-fav-pop{ animation:b2vFavPop .34s cubic-bezier(.22,.61,.36,1); }

/* --- Compteur (utilisable plus tard dans l'en-tete) ---------------------- */
.b2v-fav-count{
  display:inline-block;
  min-width:20px;
  padding:1px 6px;
  border-radius:999px;
  background:#60222D;
  color:#fff;
  font-size:.75rem;
  font-weight:700;
  text-align:center;
  line-height:18px;
}
.b2v-fav-count[data-vide="1"]{ opacity:.45; }

/* --- Page "Mes favoris" -------------------------------------------------- */
.b2v-fav-tete{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  margin:0 0 1.5rem;
  padding-bottom:.9rem;
  border-bottom:1px solid #ececec;
  font-size:1.05rem;
  color:#111827;
}
.b2v-fav-tete strong{ font-size:1.4rem; color:#60222D; }

.b2v-fav-vider{
  background:none;
  border:1px solid #ececec;
  border-radius:8px;
  padding:.5rem 1rem;
  cursor:pointer;
  color:#6f6f76;
  font-size:.875rem;
  transition:border-color .18s ease, color .18s ease;
}
.b2v-fav-vider:hover{
  border-color:#60222D;
  color:#60222D;
}

.b2v-fav-grille{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:1.5rem;
}

.b2v-fav-grille .ev-card-img{
  aspect-ratio:16/10;
  border-radius:12px 12px 0 0;
}

.b2v-fav-vide{
  text-align:center;
  padding:clamp(2.5rem,6vw,4.5rem) 1.5rem;
  background:#FFFBF2;
  border:1px solid #F3ECDC;
  border-radius:16px;
}
.b2v-fav-vide h3{
  margin:0 0 .6rem;
  color:#111827;
}
.b2v-fav-vide p{
  margin:0 auto .9rem;
  max-width:46ch;
  color:#6f6f76;
}
.b2v-fav-vide .ev-btn{ margin:.35rem; }

/* --- Texte reserve aux lecteurs d'ecran ---------------------------------- */
.b2v-sr{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

@media (prefers-reduced-motion: reduce){
  .b2v-fav, .b2v-fav svg{ transition:none !important; }
  .b2v-fav-pop{ animation:none !important; }
}


/* ==========================================================================
   B2V - Alertes (recherches sauvegardees)
   ========================================================================== */

.b2v-alerte{
  margin:clamp(2rem,4vw,3rem) 0;
  padding:clamp(1.6rem,3vw,2.4rem);
  background:linear-gradient(135deg,#FFFBF2 0%,#F3ECDC 100%);
  border:1px solid #F3ECDC;
  border-radius:16px;
}
.b2v-alerte-t{
  margin:0 0 .4rem;
  color:#111827;
  font-size:clamp(1.15rem,2vw,1.4rem);
}
.b2v-alerte-r{
  margin:0 0 1.1rem;
  color:#6f6f76;
  font-size:.9375rem;
}
.b2v-alerte-f{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
  align-items:center;
}
.b2v-alerte-f input[type=email]{
  flex:1 1 260px;
  min-width:0;
  padding:.85rem 1rem;
  border:1px solid #e3d9c4;
  border-radius:8px;
  background:#fff;
  font:inherit;
  color:#111827;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.b2v-alerte-f input[type=email]:focus{
  outline:none;
  border-color:#60222D;
  box-shadow:0 0 0 3px rgba(96,34,45,.10);
}
.b2v-alerte-legal{
  margin:.85rem 0 0;
  color:#6f6f76;
  font-size:.8125rem;
}
/* Honeypot : invisible pour l'humain, atteignable par le robot */
.b2v-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px;
  height:1px;
  overflow:hidden;
}

@media (max-width:520px){
  .b2v-alerte-f{ flex-direction:column; align-items:stretch; }
  .b2v-alerte-f .ev-btn{ width:100%; text-align:center; }
}


/* --- Icone favoris dans l'en-tete ---------------------------------------- */
.b2v-ico-fav{ position:relative; }
.b2v-ico-fav .b2v-fav-badge{
  position:absolute;
  top:-4px;
  right:-6px;
  min-width:17px;
  padding:0 4px;
  border-radius:999px;
  background:#E0C26A;
  color:#4a1a22;
  font-size:.6875rem;
  font-weight:800;
  line-height:17px;
  text-align:center;
  pointer-events:none;
}
.b2v-ico-fav .b2v-fav-badge[data-vide="1"]{ display:none; }
/* Compteur dans le pied de page */
.b2v-foot .b2v-fav-count{
  margin-left:.35rem;
  background:#E0C26A;
  color:#4a1a22;
}
.b2v-foot .b2v-fav-count[data-vide="1"]{ display:none; }


/* ==========================================================================
   B2V - Profil d'investisseur
   ========================================================================== */
.b2v-profil{ margin:clamp(2rem,4vw,3rem) 0; }
.b2v-profil-f{
  padding:clamp(1.8rem,3.5vw,2.8rem);
  background:linear-gradient(135deg,#FFFBF2 0%,#F3ECDC 100%);
  border:1px solid #F3ECDC;
  border-radius:16px;
}
.b2v-profil-t{ margin:0 0 .5rem; color:#111827; font-size:clamp(1.25rem,2.4vw,1.65rem); }
.b2v-profil-st{ margin:0 0 1.6rem; color:#6f6f76; max-width:62ch; }
.b2v-profil-q{ margin:0 0 1.1rem; }
.b2v-profil-q label{ display:block; margin:0 0 .35rem; font-weight:600; color:#111827; font-size:.9375rem; }
.b2v-profil-q select{
  width:100%; max-width:460px; padding:.8rem 1rem;
  border:1px solid #e3d9c4; border-radius:8px; background:#fff;
  font:inherit; color:#111827; cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.b2v-profil-q select:focus{ outline:none; border-color:#60222D; box-shadow:0 0 0 3px rgba(96,34,45,.10); }
.b2v-profil-res{ }
.b2v-profil-grille{ margin:1.6rem 0 !important; }
.b2v-profil-note{
  margin:0 0 1.2rem; padding:.85rem 1.1rem;
  background:#FFFBF2; border-left:3px solid #E0C26A; border-radius:0 8px 8px 0;
  color:#6f6f76; font-size:.9375rem;
}
.b2v-profil-conseil{
  margin:1.4rem 0; padding:1rem 1.2rem;
  background:#fff; border:1px solid #ececec; border-radius:12px;
  color:#111827; font-size:.9375rem; line-height:1.6;
}
.b2v-profil-conseil strong{ color:#60222D; margin-right:.35rem; }
.b2v-profil-cta{
  margin:2rem 0 0; padding:1.6rem;
  background:#FFFBF2; border:1px solid #F3ECDC; border-radius:14px;
}
.b2v-profil-cta p{ margin:0 0 1rem; color:#111827; }
.b2v-profil-refaire{ margin-left:.8rem; color:#6f6f76; font-size:.9375rem; }
.b2v-profil-legal{
  margin:1.2rem 0 0; color:#9a9aa0; font-size:.78125rem;
  line-height:1.55; max-width:78ch;
}
@media (max-width:560px){ .b2v-profil-q select{ max-width:100%; } }


/* --- Cartes du profil : style autonome ------------------------------------
   Le CSS .b2v-ev est injecte par le shortcode du moteur, donc absent ici.
   On redonne aux cartes leur apparence sans dependre du moteur.
   ------------------------------------------------------------------------ */
.b2v-profil-grille{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:1.6rem;
  margin:1.6rem 0;
}
.b2v-profil-grille .ev-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #ececec;
  border-radius:18px;
  overflow:hidden;
}
.b2v-profil-grille .ev-card-img{
  position:relative;
  aspect-ratio:16/10;
  width:100%;
}
.b2v-profil-grille .ev-card-body{ padding:1.15rem 1.25rem 1.35rem; }
.b2v-profil-grille .ev-card-body h3{
  margin:0 0 .55rem;
  font-size:1.0625rem;
  font-weight:700;
  color:#111827;
  line-height:1.3;
}
.b2v-profil-grille .ev-meta{
  display:flex; flex-direction:column; gap:.3rem;
  color:#6f6f76; font-size:.875rem; margin-bottom:.7rem;
}
.b2v-profil-grille .ev-meta span{ display:flex; align-items:center; gap:.4rem; }
.b2v-profil-grille .ev-meta .ic{ color:#60222D; flex:0 0 auto; }
.b2v-profil-grille .ev-hr{ height:1px; background:#ececec; margin:.7rem 0; }
.b2v-profil-grille .ev-stats{
  display:flex; flex-wrap:wrap; gap:.9rem;
  font-size:.8125rem; color:#111827;
}
.b2v-profil-grille .ev-stats i{ font-style:normal; color:#6f6f76; }
.b2v-profil-grille .ev-exc{
  margin:.7rem 0 1rem;
  color:#6f6f76; font-size:.875rem; line-height:1.55;
}
.b2v-profil-grille .ev-act{
  display:flex; align-items:center; flex-wrap:wrap; gap:.5rem;
  margin-top:auto;
}
.b2v-profil-grille .ev-btn{
  display:inline-block;
  padding:.8rem 1.4rem;
  background:#60222D; color:#fff;
  border-radius:8px; text-decoration:none;
  font-weight:600; font-size:.9375rem;
}
.b2v-profil-grille .ev-btn:hover{ background:#7a2d3a; }
.b2v-profil-grille .ev-badge{
  position:absolute; top:12px; left:12px;
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.35rem .7rem;
  background:rgba(255,255,255,.94);
  border-radius:999px;
  font-size:.75rem; font-weight:600; color:#111827;
}
.b2v-profil-grille .ev-badge .dot{
  width:7px; height:7px; border-radius:50%; background:#1f9d63;
}
.b2v-profil-grille .ev-badge.pop .dot{ background:#e2557f; }
