/* ABZ Jean-Eugène 0.4.1 — lanceur compact + fenêtre modale responsive */
.abz-je{width:100%;margin-top:6px;font-family:inherit;color:inherit}
.abz-je__launcher{width:100%;display:flex;align-items:center;gap:9px;padding:6px 11px;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left;border-radius:9px}
.abz-je__launcher:hover{background:rgba(0,0,0,.035)}
.abz-je__portrait{width:34px;height:34px;min-width:34px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#f4f6f8;border:1px solid rgba(29,39,51,.16)}
.abz-je__portrait img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 42%;transform:scale(1.05)}
.abz-je__portrait--large{width:58px;height:58px;min-width:58px;border-radius:10px}
.abz-je__launcher-copy{display:flex;flex-direction:column;line-height:1.18;min-width:0}
.abz-je__launcher-copy strong{font-size:14px}
.abz-je__launcher-copy small{font-size:11.5px;opacity:.68;margin-top:2px}
.abz-je__chevron{margin-left:auto;font-size:20px;transform:rotate(-90deg)}
.abz-je__backdrop{position:fixed;inset:0;z-index:2147482000;background:rgba(13,24,38,.48);backdrop-filter:blur(1.5px)}
.abz-je__backdrop[hidden],.abz-je__panel[hidden]{display:none!important}
.abz-je__panel{position:fixed;z-index:2147482001;left:50%;top:50%;transform:translate(-50%,-50%);width:min(980px,calc(100vw - 42px));max-height:min(84vh,820px);overflow-y:auto;overscroll-behavior:contain;padding:20px;background:#fff;border:1px solid #dfe4ea;border-radius:14px;box-shadow:0 22px 70px rgba(0,0,0,.28)}
html.abz-je-modal-open,body.abz-je-modal-open{overflow:hidden!important}
.abz-je__intro{display:flex;align-items:center;gap:12px;margin-bottom:14px;position:sticky;top:-20px;background:#fff;z-index:4;padding-top:2px;padding-bottom:8px;border-bottom:1px solid #edf0f3}
.abz-je__intro h3{margin:0 0 2px;font-size:20px}.abz-je__intro p{margin:0;color:#5c6470;font-size:13px}
.abz-je__close{margin-left:auto;align-self:flex-start;border:0;background:transparent;color:#66717f;font-size:29px;line-height:1;cursor:pointer;padding:4px 6px}
.abz-ai-search__bar{display:flex;gap:10px}.abz-ai-search__bar input{flex:1;min-width:0;padding:12px 14px;border:1px solid #c9ced6;border-radius:8px;font-size:15px;background:#fff;color:#222}.abz-ai-search__bar button,.abz-ai-card__button{border:0;border-radius:7px;padding:11px 15px;background:#1673d1;color:#fff;text-decoration:none;font-weight:700;cursor:pointer}.abz-ai-search__bar button:disabled{opacity:.6;cursor:wait}.abz-ai-search__status{margin-top:10px;color:#555}
.abz-je__understood{margin-top:12px;padding:10px 12px;border-left:3px solid #1673d1;background:#f4f8fd;border-radius:7px;display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:12.5px;line-height:1.35}.abz-je__understood[hidden]{display:none!important}.abz-je__understood-text{color:#344050}.abz-je__reset{flex:0 0 auto;border:1px solid #c9d8ea;background:#fff;color:#1667b5;border-radius:6px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer}.abz-je__reset:hover{background:#edf5fd}
.abz-je__advice{margin-top:13px;padding:10px 12px;background:#f6f8fa;border-radius:8px}.abz-je__advice strong{display:block;margin-bottom:2px}.abz-ai-search__answer p{margin:0;color:#424a54;font-size:13px;line-height:1.35}
.abz-ai-search__results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.abz-ai-card{display:grid;grid-template-columns:82px minmax(0,1fr);min-height:130px;border:1px solid #e4e7eb;border-radius:9px;overflow:hidden;background:#fff}.abz-ai-card__image{display:block;background:#f7f8f9;min-height:100%}.abz-ai-card__image img{width:100%;height:100%;object-fit:contain;display:block}.abz-ai-card__body{padding:8px 8px 7px;display:flex;flex-direction:column;gap:3px;min-width:0}.abz-ai-card__rank{align-self:flex-start;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#697584}.abz-ai-card__body h4{margin:0;font-size:12.5px;line-height:1.2;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.abz-ai-card__body h4 a{text-decoration:none;color:inherit}.abz-ai-card__price{font-weight:700;font-size:12.5px;line-height:1.2}.abz-ai-card__reason{margin:0;color:#5a626d;font-size:10.5px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.abz-ai-card__button{align-self:flex-start;padding:5px 8px;font-size:10.5px;line-height:1.15;margin-top:auto}.abz-ai-search__hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

@media (max-width:760px){
 .abz-je{margin-top:4px}.abz-je__launcher{padding:5px 8px}.abz-je__launcher-copy small{display:none}.abz-je__portrait{width:32px;height:32px;min-width:32px}.abz-je__launcher-copy strong{font-size:13px}
 .abz-je__panel{top:8px;left:8px;right:8px;bottom:8px;transform:none;width:auto;max-height:none;padding:14px;border-radius:12px;overflow-y:auto}
 .abz-je__intro{top:-14px;margin-bottom:10px;padding-top:2px}.abz-je__portrait--large{width:48px;height:48px;min-width:48px}.abz-je__intro h3{font-size:17px}.abz-je__intro p{font-size:12px}
 .abz-ai-search__bar{flex-direction:column;position:sticky;top:61px;background:#fff;z-index:3;padding:7px 0 8px}.abz-ai-search__bar button{width:100%}
 .abz-je__understood{align-items:flex-start;flex-direction:column}.abz-je__reset{align-self:flex-end}
 .abz-ai-search__results{grid-template-columns:1fr}.abz-ai-card{grid-template-columns:86px minmax(0,1fr);min-height:112px}.abz-ai-card__body h4{font-size:13px}.abz-ai-card__reason{font-size:11px;-webkit-line-clamp:2}.abz-ai-card__button{font-size:11px}
}
@media (max-width:380px){.abz-je__panel{inset:4px;padding:11px}.abz-je__portrait--large{display:none}.abz-je__intro{top:-11px}.abz-ai-search__bar{top:48px}.abz-ai-card{grid-template-columns:72px minmax(0,1fr)}}

/* 0.4.3 — zone conversationnelle sous les résultats */
.abz-je__followup{margin-top:16px;padding-top:14px;border-top:1px solid #e3e8ee;background:#fff}
.abz-je__followup[hidden]{display:none!important}
.abz-je__followup-label{display:flex;align-items:baseline;gap:8px;margin-bottom:7px}
.abz-je__followup-label strong{font-size:14px;color:#293543}
.abz-je__followup-label span{font-size:11.5px;color:#687484}
.abz-ai-search__bar--followup input{background:#fbfcfd}
.abz-ai-search__bar--followup button{white-space:nowrap}

@media (max-width:760px){
 .abz-je__followup{position:sticky;bottom:-14px;z-index:5;margin:14px -14px -14px;padding:10px 14px 14px;border-top:1px solid #dfe5ec;box-shadow:0 -8px 20px rgba(13,24,38,.08)}
 .abz-je__followup-label{margin-bottom:6px}
 .abz-je__followup-label span{display:none}
 .abz-ai-search__bar--followup{position:static;padding:0;display:flex;flex-direction:column}
 .abz-ai-search__bar--followup button{width:100%}
}
@media (max-width:380px){
 .abz-je__followup{bottom:-11px;margin-left:-11px;margin-right:-11px;margin-bottom:-11px;padding-left:11px;padding-right:11px;padding-bottom:11px}
}


/* 0.4.4 — vraie continuité conversationnelle */
.abz-ai-search__form--initial[hidden]{display:none!important}
.abz-je__intro-copy{min-width:0;flex:1}
.abz-je__reset--header{margin-left:auto;flex:0 0 auto;border:1px solid #9fc4ea;background:#fff;color:#1468b8;border-radius:18px;padding:7px 12px;font-size:11.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.abz-je__reset--header:hover{background:#edf5fd}
.abz-je__reset--header[hidden]{display:none!important}
.abz-je__understood{justify-content:flex-start}

/* Une fois la discussion démarrée, le champ de relance reste à portée de main. */
.abz-je__followup{position:sticky;bottom:-20px;z-index:6;margin:16px -20px -20px;padding:11px 20px 16px;border-top:1px solid #dfe5ec;box-shadow:0 -8px 22px rgba(13,24,38,.08)}
.abz-je__followup-label{margin-bottom:6px}

@media (max-width:760px){
 .abz-je__intro{gap:9px}
 .abz-je__reset--header{padding:6px 9px;font-size:10.5px}
 .abz-je__followup{bottom:-14px;margin:14px -14px -14px;padding:10px 14px 14px}
}
@media (max-width:480px){
 .abz-je__intro-copy p{display:none}
 .abz-je__reset--header{max-width:118px;white-space:normal;line-height:1.1;text-align:center}
}
@media (max-width:380px){
 .abz-je__reset--header{font-size:10px;padding:5px 7px;max-width:100px}
 .abz-je__followup{bottom:-11px;margin-left:-11px;margin-right:-11px;margin-bottom:-11px;padding-left:11px;padding-right:11px;padding-bottom:11px}
}


/* 0.4.5 — popup réellement indépendante + fil central scrollable + saisie toujours visible */
.abz-je__panel{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  height:min(84vh,820px);
  max-height:min(84vh,820px);
}
.abz-je__intro{position:relative;top:auto;flex:0 0 auto;margin-bottom:10px}
.abz-je__initial-wrap{flex:0 0 auto}
.abz-je__initial-wrap[hidden],
.abz-je--conversation-started .abz-je__initial-wrap,
.abz-je--conversation-started .abz-ai-search__form--initial{display:none!important}
.abz-je__conversation-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:4px;
}
.abz-je__followup{
  position:relative!important;
  bottom:auto!important;
  flex:0 0 auto;
  margin:10px -20px -20px!important;
  padding:10px 20px 14px!important;
  background:#fff;
  border-top:1px solid #dfe5ec;
  box-shadow:0 -7px 18px rgba(13,24,38,.08);
}
.abz-je__followup[hidden]{display:none!important}
.abz-je__understood{margin-top:4px}

/* Le portail place réellement la popup au niveau du body : aucun parent du header ne peut la rogner. */
body > .abz-je__backdrop{position:fixed!important;inset:0!important}
body > .abz-je__panel{position:fixed!important}

@media (max-width:760px){
 body > .abz-je__panel{
   inset:6px!important;
   left:6px!important;right:6px!important;top:6px!important;bottom:6px!important;
   transform:none!important;
   width:auto!important;
   height:auto!important;
   max-height:none!important;
   padding:12px!important;
   border-radius:12px!important;
 }
 .abz-je__intro{margin-bottom:8px;padding-bottom:8px}
 .abz-je__initial-wrap{flex:0 0 auto}
 .abz-ai-search__form--initial .abz-ai-search__bar{position:static!important;padding:0 0 8px!important}
 .abz-je__conversation-scroll{padding-right:2px}
 .abz-je__followup{
   margin:8px -12px -12px!important;
   padding:9px 12px 12px!important;
 }
 .abz-ai-search__bar--followup{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}
 .abz-ai-search__bar--followup input{min-width:0!important;width:100%!important;padding:11px 12px!important}
 .abz-ai-search__bar--followup button{width:auto!important;padding:10px 12px!important;font-size:0!important;min-width:44px!important;position:relative}
 .abz-ai-search__bar--followup button:after{content:'➤';font-size:18px!important;line-height:1}
 .abz-je__followup-label span{display:none!important}
 .abz-je__followup-label strong{font-size:12.5px}
}
@media (max-width:480px){
 .abz-je__panel{font-size:14px}
 .abz-je__portrait--large{width:46px;height:46px;min-width:46px}
 .abz-je__intro h3{font-size:17px;line-height:1.15}
 .abz-je__reset--header{max-width:92px;font-size:9.5px;padding:5px 6px}
 .abz-ai-search__results{gap:8px}
 .abz-ai-card{grid-template-columns:74px minmax(0,1fr)}
}


/* 0.4.6 — séparation claire entre recherche classique et conseiller */
.abz-je__or{
  display:flex;
  align-items:center;
  gap:8px;
  margin:3px 10px 1px;
  color:#8a94a1;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.08em;
}
.abz-je__or:before,.abz-je__or:after{content:'';height:1px;background:#d9e0e7;flex:1 1 auto}
.abz-je__or span{flex:0 0 auto}
@media (max-width:760px){
  .abz-je__or{margin:2px 8px 0;font-size:9px;gap:6px}
}
