/* CADEXIA V1671 — harmonisation du reste de l'accueil.
   Le bandeau V1670, le menu, les liens, les contenus et les interactions sont conservés.
   Palette : bleu nuit / crème / or, avec bleu breton pour les repères utiles. */

/* 1. Bloc de confiance juste après le bandeau : deux colonnes nettes et équilibrées. */
html body.master-home main #hero-suite{
  background:#EEF3F1!important;
  padding:clamp(28px,3.8vw,42px) 20px!important;
  border-bottom:1px solid #D9E1DE!important;
}
html body.master-home main #hero-suite>div{
  width:min(1120px,100%)!important;
  max-width:1120px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr)!important;
  align-items:center!important;
  gap:clamp(22px,3.4vw,42px)!important;
}
html body.master-home main #hero-suite>div>div:first-child{min-width:0!important;gap:17px!important}
html body.master-home main #hero-suite>div>div:first-child>p{
  margin:0!important;color:#26383B!important;font:400 18px/1.58 Arial,sans-serif!important;
}
html body.master-home main #hero-suite>div>div:first-child>div{
  background:#fff!important;border:1px solid #D9E1DE!important;border-left:4px solid #B9785B!important;
  border-radius:0 7px 7px 0!important;padding:19px 22px!important;
  box-shadow:0 5px 16px rgba(23,63,70,.045)!important;
}
html body.master-home main #hero-suite>div>div:nth-child(2){
  min-width:0!important;gap:12px!important;padding:21px 23px!important;
  background:#fff!important;border:1px solid #D9E1DE!important;border-top:3px solid #B9785B!important;
  border-radius:7px!important;box-shadow:0 7px 20px rgba(23,63,70,.05)!important;
}
html body.master-home main #hero-suite>div>div:nth-child(2)>div:first-child{
  margin:0 0 3px!important;color:#637477!important;font:700 10.5px/1.4 Arial,sans-serif!important;
  letter-spacing:.15em!important;text-transform:uppercase!important;
}
html body.master-home main #hero-suite>div>div:nth-child(2)>div:not(:first-child),
html body.master-home main #hero-suite>div>div:nth-child(2)>a{
  min-height:48px!important;gap:12px!important;
}
html body.master-home main #hero-suite>div>div:nth-child(2)>div:not(:first-child) b,
html body.master-home main #hero-suite>div>div:nth-child(2)>a b{
  color:#173F46!important;font:700 15.5px/1.35 Georgia,serif!important;
}
html body.master-home main #hero-suite>div>div:nth-child(2)>a span:last-child{color:#637477!important}
html body.master-home main #hero-suite>div>div:nth-child(2)>div:not(:first-child)>span:first-child,
html body.master-home main #hero-suite>div>div:nth-child(2)>a>span:first-child{
  width:46px!important;height:46px!important;flex:0 0 46px!important;
  border-color:#D5B58D!important;color:#173F46!important;
}
html body.master-home main #hero-suite>div>div:nth-child(2)>a:last-child img{
  width:46px!important;height:46px!important;object-fit:cover!important;border:2px solid #D5B58D!important;
}

/* 2. Capital : conserver la séquence bleu nuit / cartes blanches, restaurer le contraste du titre. */
html body.master-home main #presse-capital{
  background:#123036!important;color:#F4F7F5!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
html body.master-home main #presse-capital .shell>div:first-child>div>div:first-child{
  color:#E6C88A!important;font:700 11px/1.35 Arial,sans-serif!important;
  letter-spacing:.16em!important;text-transform:uppercase!important;
}
html body.master-home main #presse-capital .shell>div:first-child h2{
  color:#FFFFFF!important;font:400 clamp(27px,3vw,36px)/1.16 Georgia,serif!important;
  letter-spacing:-.02em!important;
}
html body.master-home main #presse-capital .shell>p{
  max-width:78ch!important;color:#E5EFED!important;font:400 15.5px/1.65 Arial,sans-serif!important;
}
html body.master-home main #presse-capital .shell>div:nth-of-type(2)>article{
  min-height:180px!important;background:#FFFFFF!important;border:1px solid #D9E1DE!important;
  border-top:3px solid #B9785B!important;border-radius:7px!important;
  box-shadow:0 8px 22px rgba(0,0,0,.10)!important;
}
html body.master-home main #presse-capital .shell>div:nth-of-type(2)>article h3{
  color:#173F46!important;font:700 clamp(19px,1.9vw,22px)/1.32 Georgia,serif!important;
}
html body.master-home main #presse-capital .shell>div:nth-of-type(2)>article a{
  min-height:43px!important;border-radius:4px!important;font:700 13px/1.25 Arial,sans-serif!important;
}
html body.master-home main #presse-capital #notes-analyses{
  background:#FFFFFF!important;border:1px solid #D9E1DE!important;border-left:4px solid #B9785B!important;
  border-radius:7px!important;box-shadow:none!important;
}

/* 3. Deux métiers : préserver les deux cartes déjà équilibrées, avec une respiration régulière. */
html body.master-home main #cadexia-deux-metiers>div{
  width:min(1120px,calc(100% - 40px))!important;max-width:1120px!important;
}
html body.master-home main #cadexia-deux-metiers article{
  min-width:0!important;border-radius:7px!important;padding:clamp(21px,2.5vw,30px)!important;
}
html body.master-home main #cadexia-deux-metiers h2{
  margin-bottom:22px!important;font-size:clamp(28px,3vw,36px)!important;line-height:1.18!important;
}
html body.master-home main #cadexia-deux-metiers article h3{line-height:1.28!important}

/* 4. Trois possibilités : boutons homogènes, lisibles et alignés en pied de carte. */
html body.master-home main #trois-accompagnements-cadexia>div{
  width:min(1120px,calc(100% - 40px))!important;max-width:1120px!important;
}
html body.master-home main #trois-accompagnements-cadexia article{
  min-width:0!important;min-height:355px!important;display:flex!important;flex-direction:column!important;
  padding:clamp(21px,2.4vw,29px)!important;border-radius:8px!important;
  box-shadow:0 7px 20px rgba(23,63,70,.055)!important;
}
html body.master-home main #trois-accompagnements-cadexia article h3{
  font-size:clamp(20px,1.8vw,23px)!important;line-height:1.25!important;
}
html body.master-home main #trois-accompagnements-cadexia article p{
  font-size:15px!important;line-height:1.58!important;
}
html body.master-home main #trois-accompagnements-cadexia article>a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:49px!important;box-sizing:border-box!important;
  margin-top:auto!important;padding:11px 12px!important;border-radius:5px!important;
  background:#173F46!important;border:1px solid #173F46!important;color:#FFFFFF!important;
  font:700 12.5px/1.3 Arial,sans-serif!important;text-align:center!important;
  white-space:nowrap!important;text-decoration:none!important;
}
html body.master-home main #trois-accompagnements-cadexia article>a:hover{
  background:#24565C!important;border-color:#24565C!important;color:#FFFFFF!important;
}
html body.master-home main #trois-accompagnements-cadexia article:nth-of-type(2)>a{color:#FFFFFF!important}
html body.master-home main #trois-accompagnements-cadexia>div>p:last-child{
  color:#52686C!important;font-size:15px!important;
}

/* 5. Deux publics : cartes de même largeur, même stature et même niveau de lecture. */
html body.master-home main .profiles{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;gap:18px!important;
  width:min(1120px,calc(100% - 40px))!important;max-width:1120px!important;
  margin:0 auto!important;padding:clamp(34px,4vw,50px) 0!important;
}
html body.master-home main .profiles .profile-card{
  min-width:0!important;min-height:245px!important;height:100%!important;
  border-radius:8px!important;box-shadow:0 9px 24px rgba(23,63,70,.09)!important;
}
html body.master-home main .profiles .profile-card>div{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  min-height:245px!important;padding:clamp(23px,3vw,34px)!important;
}
html body.master-home main .profiles .profile-card h2{
  max-width:22ch!important;margin:8px 0 18px!important;
  font:400 clamp(23px,2.45vw,30px)/1.22 Georgia,serif!important;
}
html body.master-home main .profiles .profile-card .profile-cta{margin-top:auto!important;font-size:13px!important}

/* 6. Réseau de partenaires : garder le bandeau fort, sans ajouter une nouvelle carte concurrente. */
html body.master-home main #reseau-cadexia-home>div>div{
  min-height:112px!important;gap:24px!important;padding:23px 27px!important;
  border-radius:6px!important;box-shadow:0 8px 20px rgba(23,63,70,.07)!important;
}
html body.master-home main #reseau-cadexia-home>div>div>a{
  min-height:48px!important;padding:12px 18px!important;font-size:13px!important;
}

/* 7. Offres du moment : trois cartes par ligne, puis deux cartes centrées. */
html body.master-home main #bonus-euros-accueil{
  background:#FFFFFF!important;border-top:1px solid #D9E1DE!important;border-bottom:1px solid #D9E1DE!important;
  padding:clamp(40px,5vw,62px) 22px!important;
}
html body.master-home main #bonus-euros-accueil .cx-offers-badge{
  background:#173F46!important;color:#FFFFFF!important;border:1px solid #173F46!important;
  border-radius:4px!important;padding:8px 13px!important;letter-spacing:.13em!important;
}
html body.master-home main #bonus-euros-accueil .cx-offers-heading{
  color:#173F46!important;font-size:clamp(29px,3.4vw,40px)!important;line-height:1.17!important;
}
html body.master-home main #bonus-euros-accueil .cx-offers-grid{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:17px!important;align-items:stretch!important;
}
html body.master-home main #bonus-euros-accueil .cx-offer-card{
  grid-column:span 2!important;display:flex!important;flex-direction:column!important;
  min-width:0!important;min-height:340px!important;height:100%!important;gap:10px!important;
  padding:22px!important;background:#F8F7F3!important;border:1px solid #D9E1DE!important;
  border-top:4px solid #47777A!important;border-radius:7px!important;
  box-shadow:0 6px 18px rgba(23,63,70,.045)!important;
}
html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(4){grid-column:2 / span 2!important}
html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(5){grid-column:4 / span 2!important}
html body.master-home main #bonus-euros-accueil .cx-offer-card:hover{
  transform:translateY(-2px)!important;border-color:#B8CBC5!important;
  box-shadow:0 10px 24px rgba(23,63,70,.09)!important;
}
html body.master-home main #bonus-euros-accueil .cx-offer-date{
  color:#5A4A2D!important;background:#F0E4CD!important;border:1px solid #DDC69F!important;
  min-height:29px!important;align-self:flex-start!important;padding:6px 9px!important;
  font-size:10.5px!important;line-height:1.35!important;
}
html body.master-home main #bonus-euros-accueil .cx-offer-title{
  min-height:2.5em!important;color:#173F46!important;font-size:16px!important;line-height:1.35!important;
}
html body.master-home main #bonus-euros-accueil .cx-offer-figure{
  color:#1C4C55!important;font-size:clamp(29px,2.6vw,35px)!important;line-height:1.1!important;
}
html body.master-home main #bonus-euros-accueil .cx-offer-subline,
html body.master-home main #bonus-euros-accueil .cx-offer-description{
  color:#3F555A!important;font-size:13.5px!important;line-height:1.55!important;
}
html body.master-home main #bonus-euros-accueil .cx-offer-cta{
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-height:42px!important;margin-top:auto!important;padding:10px 13px!important;
  background:#173F46!important;border:1px solid #173F46!important;border-radius:4px!important;
  color:#FFFFFF!important;font:700 13px/1.3 Arial,sans-serif!important;
}
html body.master-home main #bonus-euros-accueil .cx-offers-footer{
  display:flex!important;align-items:center!important;gap:18px!important;margin-top:8px!important;
}
html body.master-home main #bonus-euros-accueil .cx-offers-button{
  flex:0 0 auto!important;min-height:46px!important;border-radius:4px!important;
  background:#D7B990!important;border:1px solid #BE9861!important;color:#173F46!important;
  box-shadow:none!important;font-weight:700!important;
}
html body.master-home main #bonus-euros-accueil .cx-offers-disclaimer{
  color:#586B70!important;flex:1 1 340px!important;min-width:0!important;
  font:12px/1.55 Arial,sans-serif!important;
}

/* 8. Méthode et analyse du marché : alléger le grand panneau bleu derrière les explications. */
html body.master-home main #particularites #cx-m6>.m6-pan{
  background:#EDF3F1!important;border:1px solid #CEDFD9!important;
  border-radius:12px!important;padding:clamp(20px,3.2vw,34px)!important;
  box-shadow:none!important;color:#26383B!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .cx-market,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-method-comparison,
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities{
  background:transparent!important;color:#26383B!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .cx-market h2,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-market h3,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-market h4,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-method-comparison h2,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-method-comparison h3,
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities-head h3{
  color:#173F46!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .cx-market p,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-method-comparison p,
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunity p{
  color:#52686D!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .cx-market .cx-card,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-method-comparison-card,
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunity{
  background:#FFFFFF!important;border:1px solid #D5E4DF!important;
  border-radius:7px!important;box-shadow:0 5px 15px rgba(23,63,70,.045)!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .cx-market .cx-section-number,
html body.master-home main #particularites #cx-m6>.m6-pan .cx-method-comparison .cx-num{
  background:#173F46!important;color:#FFFFFF!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities{
  background:#F7FAF9!important;border:1px solid #CEDFD9!important;border-radius:9px!important;
  padding:clamp(20px,2.8vw,30px)!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities-head{
  max-width:900px!important;margin:0 auto 23px!important;text-align:center!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities-head>span{
  color:#916A36!important;font-size:10.5px!important;letter-spacing:.14em!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities-head h3{
  color:#173F46!important;font:400 clamp(25px,3vw,34px)/1.2 Georgia,serif!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities-head p{color:#586B70!important}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities-grid{gap:15px!important}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunity{
  padding:clamp(17px,2vw,24px)!important;border-top:3px solid #47777A!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunity-euro{
  border-top:3px solid #B9785B!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-euro-alert{
  background:#EEF3F1!important;border:1px solid #D9E1DE!important;border-left:3px solid #B9785B!important;
  border-radius:4px!important;color:#26383B!important;
}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-euro-alert p,
html body.master-home main #particularites #cx-m6>.m6-pan .m6-euro-alert strong{color:#344A4F!important}
html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunity-transmission{
  border-left:3px solid #B9785B!important;background:#FFFFFF!important;
}

/* 9. Dernières séquences : garder la conclusion forte et les lettres dans leur rythme actuel. */
html body.master-home main #apres-calcul-moyenne{border-top:1px solid #D9E1DE!important}
html body.master-home main #cx-avis{background:#EEF3F1!important}
html body.master-home main #conclusion{background:#173F46!important}
html body.master-home main #qui-accompagne{background:#F8F7F3!important}
html body.master-home main #ce-mois-ci{background:#EEF3F1!important}

/* Tablette : réduire sans créer de cartes trop étroites. */
@media (max-width:1050px){
  html body.master-home main #hero-suite>div{grid-template-columns:minmax(0,1fr) minmax(320px,.9fr)!important;gap:24px!important}
  html body.master-home main #trois-accompagnements-cadexia article{min-height:370px!important}
  html body.master-home main #bonus-euros-accueil .cx-offers-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-card{grid-column:span 2!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(4){grid-column:2 / span 2!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(5){grid-column:4 / span 2!important}
}

/* Mobile : empilement clair, deux cartes par rangée sur tablette étroite, une sur téléphone. */
@media (max-width:760px){
  html body.master-home main #hero-suite{padding:27px 16px!important}
  html body.master-home main #hero-suite>div{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:18px!important}
  html body.master-home main #hero-suite>div>div:nth-child(2){padding:18px!important}
  html body.master-home main #presse-capital .shell{width:calc(100% - 32px)!important}
  html body.master-home main #presse-capital .shell>div:nth-of-type(2)>article{min-height:0!important}
  html body.master-home main #trois-accompagnements-cadexia article{min-height:0!important}
  html body.master-home main .profiles{grid-template-columns:1fr!important;gap:13px!important;padding:28px 0!important}
  html body.master-home main .profiles .profile-card,
  html body.master-home main .profiles .profile-card>div{min-height:190px!important}
  html body.master-home main #reseau-cadexia-home>div>div{gap:15px!important;padding:19px!important}
  html body.master-home main #bonus-euros-accueil .cx-offers-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-card{grid-column:auto!important;min-height:0!important;padding:17px!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(4),
  html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(5){grid-column:auto!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-title{min-height:0!important;font-size:14px!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-figure{font-size:25px!important}
  html body.master-home main #bonus-euros-accueil .cx-offers-footer{align-items:stretch!important;flex-direction:column!important}
  html body.master-home main #bonus-euros-accueil .cx-offers-button{width:100%!important;text-align:center!important}
  html body.master-home main #particularites #cx-m6>.m6-pan{padding:15px!important;border-radius:8px!important}
  html body.master-home main #particularites #cx-m6>.m6-pan .m6-opportunities{padding:16px!important}
}
@media (max-width:520px){
  html body.master-home main #bonus-euros-accueil .cx-offers-grid{grid-template-columns:1fr!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-card{grid-column:1!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(4),
  html body.master-home main #bonus-euros-accueil .cx-offer-card:nth-child(5){grid-column:1!important}
  html body.master-home main #bonus-euros-accueil .cx-offer-figure{font-size:29px!important}
  html body.master-home main #trois-accompagnements-cadexia article>a{white-space:normal!important;font-size:12px!important}
  html body.master-home main #hero-suite>div>div:nth-child(2)>div:not(:first-child) b,
  html body.master-home main #hero-suite>div>div:nth-child(2)>a b{font-size:14px!important}
}
