/* === e4-cms.css === */
/* =============================================================================
   E4 · PAGES CMS — habillage générique des contenus legacy (lot F, 02/08)
   Le template cms.tpl est sain ; le legacy vit dans les CONTENUS WYSIWYG en
   base (tableaux roses/jaunes, typo datée). Ici : remise aux tokens de tout
   ce qui se style génériquement, SANS toucher aux textes (les délais, CGV et
   mentions restent lettre pour lettre ce qu'ils sont).
   ============================================================================= */

#cms #center_column{font-family:'Poppins',sans-serif}
#cms .rte{color:#3d3548;font-size:14.5px;line-height:1.7;max-width:100%}

/* titres : canon E4 */
#cms .rte h1, #cms .rte h2{
  font-family:'Russo One',sans-serif!important;font-weight:400!important;font-style:italic;
  text-transform:uppercase;letter-spacing:.5px;color:#2B004F!important;
  font-size:clamp(19px,2.4vw,26px)!important;margin:34px 0 14px!important;
}
#cms .rte h1::after, #cms .rte h2::after{
  content:"";display:block;width:44px;height:5px;border-radius:3px;margin-top:8px;
  background:var(--gw-grad-key,linear-gradient(100deg,#7BBF3F,#5e9a2a,#7E1E57));transform:skewX(-15deg);
}
#cms .rte h3, #cms .rte h4{
  font-family:'Poppins',sans-serif!important;font-weight:700!important;
  color:#2B004F!important;font-size:16px!important;margin:24px 0 10px!important;
}

/* tableaux legacy (délais, grilles) : encre + zébrures neutres, fini le rose/jaune */
#cms .rte table{
  width:100%;border-collapse:collapse!important;margin:18px 0;
  border:1px solid var(--gw-n200,#ece5f2)!important;border-radius:12px;overflow:hidden;
  font-size:13px;
}
#cms .rte table th,
#cms .rte table thead td,
#cms .rte table tr:first-child td[style*="background"],
#cms .rte table td[bgcolor]{
  background:#2B004F!important;color:#fff!important;
  font-weight:600;letter-spacing:.3px;border-color:rgba(255,255,255,.12)!important;
}
#cms .rte table td{
  padding:10px 12px!important;border:1px solid var(--gw-n200,#ece5f2)!important;
  background:#fff!important;color:#3d3548!important;
}
#cms .rte table tr:nth-child(even) td{background:var(--gw-n50,#f8f5fd)!important}
/* cellules « surlignées » legacy (jaune/rose inline) : accent E4 sobre */
#cms .rte table td[style*="rgb(255"], #cms .rte table td[style*="yellow"], #cms .rte table td[style*="#ff"]{
  background:rgba(123,191,63,.13)!important;color:#2f5215!important;font-weight:600;
}

/* images de contenu : jamais plus large que la colonne, coins doux */
#cms .rte img{max-width:100%!important;height:auto!important;border-radius:12px}

/* listes + liens */
#cms .rte ul{padding-left:20px}
#cms .rte li{margin:5px 0}
#cms .rte a{color:#5e9a2a;font-weight:600;text-decoration:underline}
#cms .rte a:hover{color:#3e6b1a}

/* blocs "encadrés" legacy (div fond couleur inline) : carte neutre */
#cms .rte [style*="background-color"][style*="padding"]{
  background:var(--gw-n50,#f8f5fd)!important;border:1px solid var(--gw-n200,#ece5f2)!important;
  border-radius:12px!important;color:#3d3548!important;
}

/* typo inline criarde (rouge/bleu WYSIWYG) : ramenée à l'encre — le gras suffit */
#cms .rte font[color], #cms .rte span[style*="color: rgb(255, 0"], #cms .rte span[style*="color:#ff0"]{
  color:#2B004F!important;
}

/* strong hérités en rose legacy (règle globale du custom) : retour à l'encre */
#cms .rte strong, #cms .rte b{color:#2B004F}
