/* ==========================================================================
   Centrale Assurances — stabilisation UX/CSS v3.25.27
   Hotfix additif après v3.25.24 / v3.25.25 / v3.25.26.
   Objectif: corriger les collisions de cascade sans modifier le contenu métier.
   ========================================================================== */

/* Base: ne pas casser les mots courts, badges, boutons ou numéros de version. */
body.ca-ux-v32524 :where(span,strong,small,label,a,button){
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body.ca-ux-v32524 :where(p,li,td,th,.rich-content,.article-content){
  overflow-wrap:break-word;
  word-break:normal;
}

/* ----------------------------- PUBLIC ------------------------------------ */
body.ca-site-v350.ca-ux-v32524{overflow-x:hidden!important}
body.ca-site-v350.ca-ux-v32524 main,
body.ca-ux-public-v32525 main{overflow:visible!important}
body.ca-site-v350.ca-ux-v32524 img{height:auto}

/* Le hero garde son propre clipping, pas tout le <main>. */
body.ca-site-v350.ca-ux-v32524 .hero{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate;
}
body.ca-site-v350.ca-ux-v32524 .hero-grid{
  position:relative!important;
  align-items:center!important;
}
body.ca-site-v350.ca-ux-v32524 .hero-copy,
body.ca-site-v350.ca-ux-v32524 .hero-visual,
body.ca-site-v350.ca-ux-v32524 .quote-card{min-width:0!important}
body.ca-site-v350.ca-ux-v32524 .hero-copy,
body.ca-site-v350.ca-ux-v32524 .quote-card{position:relative;z-index:3}
body.ca-site-v350.ca-ux-v32524 .hero-visual{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  position:relative!important;
  z-index:1!important;
  opacity:1!important;
  visibility:visible!important;
  min-height:300px;
  pointer-events:none;
}
body.ca-site-v350.ca-ux-v32524 .hero-visual img{
  display:block!important;
  width:100%!important;
  max-width:720px!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}

/* Réduit l'effet "toutes les sections deviennent des cartes" de la couche 3/3. */
body.ca-ux-public-v32525 :where(
  .health-editorial-card,.decennial-editorial-card,
  .health-summary-card,.decennial-summary-card,
  .health-guide-card,.decennial-guide-card,
  .health-lexicon-card,.decennial-lexicon-card,
  .health-side-card,.decennial-side-card,
  .auto-guide-content-panel,.auto-guide-lexicon-panel,.auto-guide-summary-card,.auto-faq-card
){
  box-shadow:0 5px 16px rgba(25,70,118,.055)!important;
}
body.ca-ux-public-v32525 :where(.rich-content,.article-content){background:transparent!important}

@media (min-width:1181px){
  body.ca-site-v350.ca-ux-v32524 .hero-grid{
    grid-template-columns:minmax(0,1.02fr) minmax(360px,1.08fr) minmax(300px,.8fr)!important;
  }
}
@media (max-width:1180px){
  body.ca-site-v350.ca-ux-v32524 .hero-visual{min-height:260px!important;margin:0!important}
  body.ca-site-v350.ca-ux-v32524 .hero-visual img{max-width:620px!important}
}
@media (max-width:760px){
  body.ca-site-v350.ca-ux-v32524 .hero-visual{
    min-height:0!important;
    width:100%!important;
    margin:-4px auto 0!important;
    padding-inline:0!important;
  }
  body.ca-site-v350.ca-ux-v32524 .hero-visual img{max-width:560px!important;margin-inline:auto!important}
  body.ca-ux-public-v32525 .product-card{box-shadow:0 5px 16px rgba(25,70,118,.06)!important}
}

/* -------------------------- ADMIN / CRM --------------------------------- */
body.admin-ui-v32420.ca-ux-v32526 .admin-card,
body.admin-ui-v32420.ca-ux-v32526 .crm-card,
body.admin-ui-v32420.ca-ux-v32526 .crm16-panel{min-width:0}
body.admin-ui-v32420.ca-ux-v32526 .table-wrap{
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible;
  -webkit-overflow-scrolling:touch;
}
body.admin-ui-v32420.ca-ux-v32526 .table-wrap table{width:100%}
body.admin-ui-v32420.ca-ux-v32526 .actions{white-space:normal!important}
body.admin-ui-v32420.ca-ux-v32526 :where(.admin-primary,.admin-secondary,.small){white-space:normal}
body.admin-ui-v32420.ca-ux-v32526 :where(input,select,textarea){max-width:100%}

/* Mises à jour v3.25.27 */
.upd327-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:18px;align-items:center}
.upd327-summary h2,.upd327-upload-card h2,.upd327-history-card h2{margin:4px 0 6px}
.upd327-summary p,.upd327-upload-card p,.upd327-history-card p,.upd327-note p{margin:0;color:#657b90}
.upd327-kicker{display:inline-flex;width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;background:#e9f5ff;color:#176fbd;font-size:10px;font-weight:900;letter-spacing:.08em}
.upd327-active{display:grid;gap:3px;padding:14px 16px;border:1px solid #dce6ef;border-radius:14px;background:#f8fbfe}
.upd327-active small{color:#657b90;font-size:11px}
.upd327-active strong{font-size:22px;line-height:1.15;color:#17324d}
.upd327-active span{font-size:12px;color:#536d84}
.upd327-upload-card{display:grid;grid-template-columns:minmax(0,.8fr) minmax(360px,1.2fr);gap:18px;align-items:end}
.upd327-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.upd327-upload input[type=file]{min-width:0;width:100%;padding:9px;border:1px solid #cbd9e6;border-radius:10px;background:#fff}
.upd327-history-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.upd327-filters{display:flex;align-items:end;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.upd327-filters label{display:grid;gap:4px;min-width:170px}
.upd327-filters label span{font-size:10px;font-weight:800;color:#657b90;text-transform:uppercase;letter-spacing:.05em}
.upd327-filters :where(input,select){min-height:40px!important;padding:8px 10px!important}
.upd327-reset{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding-inline:12px;text-decoration:none}
.upd327-table-wrap{border:1px solid #dce6ef!important;border-radius:14px!important;box-shadow:none!important}
.upd327-table-wrap::after{display:none!important}
.upd327-table{min-width:880px;border-collapse:separate;border-spacing:0}
.upd327-table th{white-space:nowrap}
.upd327-table td{vertical-align:middle}
.upd327-package-cell{min-width:280px;max-width:520px}
.upd327-package-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.upd327-package-cell small{display:block;line-height:1.45;color:#657b90}
.upd327-badge{display:inline-flex;align-items:center;min-height:20px;padding:2px 7px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.04em}
.upd327-badge.active{background:#e8f6ef;color:#1f7a50}
.upd327-badge.system{background:#f0eaff;color:#6647b4}
.upd327-backup-ok{color:#1f7a50;font-weight:800}
.upd327-system-note{color:#6647b4;font-weight:800}
.upd327-muted{color:#8292a1}
.upd327-actions form{margin:0}
.upd327-empty{padding:26px;border:1px dashed #cbd9e6;border-radius:12px;background:#f8fbfe;text-align:center;color:#657b90}

.upd327-pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-top:16px}
.upd327-page,.upd327-ellipsis{min-height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-size:12px;font-weight:800}
.upd327-page{padding:0 12px;border:1px solid #d6e2ec;background:#fff;color:#34546f;text-decoration:none}
.upd327-page.number{min-width:38px;padding-inline:8px}
.upd327-page:hover{border-color:#9fc1dc;background:#f2f8fd;color:#176fbd}
.upd327-page.current{border-color:#176fbd;background:#176fbd;color:#fff}
.upd327-page.disabled{opacity:.46;cursor:not-allowed}
.upd327-ellipsis{min-width:24px;color:#8292a1}
.upd327-note{display:flex;gap:12px;align-items:flex-start}
.upd327-note strong{white-space:nowrap}

@media (max-width:900px){
  .upd327-summary,.upd327-upload-card{grid-template-columns:1fr}
  .upd327-history-head{align-items:stretch;flex-direction:column}
  .upd327-filters{justify-content:flex-start}
  .upd327-filters label{flex:1 1 180px}
}
@media (max-width:640px){
  .upd327-upload{grid-template-columns:1fr}
  .upd327-upload .admin-primary{width:100%}
  .upd327-filters{display:grid;grid-template-columns:1fr}
  .upd327-filters label{min-width:0}
  .upd327-filters :where(button,a){width:100%;justify-content:center}
  .upd327-pagination{justify-content:center}
  .upd327-page{padding-inline:10px}
  .upd327-note{display:block}
  .upd327-note strong{display:block;margin-bottom:4px}
}

/* --------------------------- CLIENT ------------------------------------- */
body.client-portal-body.ca-ux-v32526 :where(.cp-panel,.cp-detail-card,.cp-list article){min-width:0}
body.client-portal-body.ca-ux-v32526 :where(.cp-panel,.cp-detail-card){overflow:visible}
body.client-portal-body.ca-ux-v32526 :where(.cp-list span,.cp-list strong,.cp-detail-fields strong){overflow-wrap:break-word!important}
