/* harmonie.css (14.10.2026) : une seule nappe bleu nuit, un seul survol, une seule échelle de titres,
   un seul bandeau de contact. Chargée en dernier par inc/design.php (après fx.css) : elle tranche
   les écarts entre pages sans toucher à leur CSS propre.
   Survol de référence : les cartes de la page équipe (design.css + fx-equipe.css), soit un fond
   #1b2c48, un anneau argent rgba(198,203,210,.22) et une ombre portée douce.
   La page Philanthropie reste claire (body.mgf-light) : seules la typographie et le bandeau la concernent. */

body.mgf-design{
  --h-nuit:#070f26;          /* le bleu nuit unique (= --design-bg) */
  --h-survol:#1b2c48;        /* fond de survol des cartes équipe */
  --h-anneau:rgba(198,203,210,.22);
  --h-filet:rgba(198,203,210,.12);
  --h-argent:#c6cbd2;
  --h-titre:#f3f5f9;
  --h-ruban:linear-gradient(180deg,#152b4f 0%,#10223f 100%);
}
body.mgf-light{--h-titre:#12213b}

/* ─────────────────────────────────────────────────────────────
   1. Fond continu : un seul bleu nuit, dégradé discret en haut et en bas
   ───────────────────────────────────────────────────────────── */
html{background:#070f26}
body.mgf-design:not(.mgf-light){
  background:
    radial-gradient(80% 560px at 50% 0,rgba(78,112,166,.20),rgba(78,112,166,0) 100%) no-repeat,
    linear-gradient(180deg,#0c1934 0,#070f26 760px) no-repeat,
    #070f26;
  background-size:auto;
}
/* Éclaircissement bleu acier en bas de page, avant le pied (visible là où il n'y a pas de ruban). */
.mgf-design:not(.mgf-light) main{
  background:linear-gradient(0deg,rgba(64,98,150,.16),rgba(64,98,150,0)) no-repeat bottom/100% 460px;
}

/* Sections et enveloppes de page : plus d'aplats alternés, la nappe de fond passe partout.
   Les dégradés propres aux scènes (fxp, fxg, fx-mdt…) gardent leur image, qui finit déjà sur #070f26. */
.mgf-design:not(.mgf-light) main section:not(.mgf-scene):not(.amccta):not(.cta-final):not(.gp-cta):not(.fo-cta):not(.faq-cta):not(.fond-cta):not(.ess-cta):not(.herm-cta),
.mgf-design:not(.mgf-light) main :is(.gp,.fo,.mdt,.pg,.hub,.faq,.faq-content,.ess,.herm,.aff-hero,.aff-content,.mgf-press,.mgf-resources,.pub-marker,.sim-wrap,.gest,.gov,.ap,.hist){
  background-color:transparent!important;
}
.mgf-design:not(.mgf-light) main .hist{background-image:none!important}

/* Onglets collants : opaques (le contenu passe dessous), séparés par un filet et non par un bloc. */
.mgf-design:not(.mgf-light) main :is(.gp-tabs-wrap,.fo-tabs-wrap){
  background:#070f26!important;border-bottom:1px solid var(--h-filet)!important;
}

/* Les blocs qui se distinguaient par un aplat bleu franc : un très léger voile et un filet. */
.mgf-design:not(.mgf-light) main :is(.faq-hero,.sim-hero-band){
  background:linear-gradient(180deg,rgba(78,112,166,.14),rgba(78,112,166,0))!important;
  border-bottom:1px solid var(--h-filet)!important;
}
.mgf-design:not(.mgf-light) main .stats{
  background:rgba(120,150,195,.035)!important;
  border-top:1px solid var(--h-filet);border-bottom:1px solid var(--h-filet);
}
/* Bandeaux de logos : chaque logo garde sa plaque claire, la bande grise pleine largeur disparaît. */
.mgf-design:not(.mgf-light) main :is(.partners-strip,.mdt-ticker){
  background:transparent!important;
  border-top:1px solid var(--h-filet)!important;border-bottom:1px solid var(--h-filet)!important;
}

/* Galerie « Nos autres engagements » en thème sombre (Hermitage, ESS) : le mur noir neutre devient la nappe
   bleu nuit, seul l'éclairage glacier venu d'en haut reste. */
.mgf-design:not(.mgf-light) main .fx-galerie.fx-sombre{
  --fx-mur:radial-gradient(ellipse 60% 55% at 50% 0%,rgba(184,205,224,.08),rgba(184,205,224,0) 70%);
  --fx-mur-bord:var(--h-filet);
}

/* Pied de page : séparé par un filet argent au lieu d'une rupture de ton. */
.mgf-design .mgf-footer{border-top:1px solid var(--h-filet)}

/* ─────────────────────────────────────────────────────────────
   2. Survol unique, celui des cartes de l'équipe
   ───────────────────────────────────────────────────────────── */
/* Cartes de contenu et listes cliquables à fond uni (pas les pages du livre de l'Histoire). */
.mgf-design:not(.mgf-light) main :is(
  .gov-membre,.gp-fact,.sim-profile,.gp-produit-card,.gp-engage-item,.fo-pillier,.fo-reseau-item,
  .mdt-intro-stat,.mdt-mode-card,.mdt-compare-card,.gov-valeur,.hub-clair-point,
  .pg-stat,.pg-row,.pg-point,.ap-stat,.ap-raison,.ap-doc-cat,.aff-intro-card,.aff-card,
  .mgf-press-card,.faq-q,.ap-doc-link,.option,
  .design-page-links a,.mgf-widget-card
){
  transition:background-color .25s ease,border-color .25s ease,box-shadow .4s ease,color .25s ease;
}
.mgf-design:not(.mgf-light) main :is(
  .gest-membre,.gov-membre,.gp-fact,.sim-profile,.gp-produit-card,.gp-engage-item,.fo-pillier,.fo-reseau-item,
  .mdt-intro-stat,.mdt-mode-card,.mdt-compare-card,.gov-valeur,.hub-clair-point,
  .pg-stat,.pg-row,.pg-point,.ap-stat,.ap-raison,.ap-doc-cat,.aff-intro-card,.aff-card,
  .mgf-press-card,.faq-q,.ap-doc-link,.option:not(.selected),
  .design-page-links a
):hover{
  background-color:var(--h-survol)!important;
  background-image:radial-gradient(120% 90% at 50% 0,rgba(213,218,225,.06),rgba(213,218,225,0) 60%)!important;
  border-color:rgba(198,203,210,.32)!important;
  box-shadow:inset 0 0 0 1px var(--h-anneau),0 22px 44px -26px rgba(0,0,0,.85)!important;
  transform:none;
}
/* Le liseré gauche des cartes équipe : argent, comme sur la carte liée à la constellation. */
.mgf-design:not(.mgf-light) main :is(.gest-membre,.gov-membre)::before{background:var(--h-argent)!important}
.mgf-design:not(.mgf-light) main :is(.gest-membre,.gov-membre):hover::before{width:2px!important}

/* Les rangées sans marge intérieure reçoivent un retrait symétrique, pour que le survol ne colle pas au texte. */
.mgf-design:not(.mgf-light) main .faq-q{padding-left:16px!important;padding-right:16px!important;margin:0 -16px;width:calc(100% + 32px)!important}
.mgf-design:not(.mgf-light) main .ap-doc-link{padding-left:12px!important;padding-right:12px!important;margin:0 -12px}
.mgf-design:not(.mgf-light) main .faq-q:hover .faq-q-text{color:var(--h-titre)!important}
/* Plus aucun doré au survol (argent et blanc) */
.mgf-design:not(.mgf-light) main .ap-doc-link:hover{color:#eef2f8!important}
.mgf-design:not(.mgf-light) main .ap-doc-link::before{color:var(--h-argent)!important}
.mgf-design:not(.mgf-light) main .bcvc-btn-p:hover{background:#3b68a7!important;color:#fff!important;border-color:#a9c1e2!important}

/* Cartes à photo : on ne repeint pas l'image, on pose l'anneau argent et l'ombre. */
.mgf-design:not(.mgf-light) main :is(.service-card,.mecenat-card,.cx-card,.ap-geo-card,.amc-car-card){
  transition:border-color .25s ease,box-shadow .4s ease,transform .5s cubic-bezier(.2,.75,.2,1)!important;
}
.mgf-design:not(.mgf-light) main :is(.service-card,.mecenat-card,.cx-card,.ap-geo-card,.amc-car-card):hover{
  border-color:rgba(198,203,210,.5)!important;
  box-shadow:0 0 0 1px var(--h-anneau),0 22px 44px -22px rgba(0,0,0,.85)!important;
}

/* Fil de lecture (fx.css) : la lueur pêche devient argent. */
.fx-thread b{background:linear-gradient(rgba(198,203,210,0),#c6cbd2 40%,#d5dae1)!important}
.fx-thread b:after{box-shadow:0 0 12px 3px rgba(198,203,210,.45)!important}

/* ─────────────────────────────────────────────────────────────
   3. Échelle typographique unique
   ───────────────────────────────────────────────────────────── */
.mgf-design main :is(h1,h2,h3):where(:not(.mgf-scene *)){
  font-family:'Cormorant Garamond',Georgia,serif!important;font-weight:300!important;color:var(--h-titre)!important;
}
.mgf-design main h1:where(:not(.mgf-scene *)),
.mgf-design main .design-home-copy h1{
  font-size:clamp(42px,4.7vw,68px)!important;line-height:1.08!important;letter-spacing:-.025em!important;
}
.mgf-design main h2:where(:not(.mgf-scene *)){
  font-size:clamp(32px,3.2vw,46px)!important;line-height:1.14!important;letter-spacing:-.022em!important;
}
.mgf-design main h3:where(:not(.mgf-scene *)){
  font-size:clamp(24px,2vw,28px)!important;line-height:1.22!important;letter-spacing:-.015em!important;
}
/* Titres de panneau d'onglet : ils jouent le rôle d'un titre de section, pas d'une carte. */
.mgf-design main :is(.gp-panel-h,.fo-panel-h){font-size:clamp(30px,2.8vw,40px)!important}
.mgf-design main :is(h1,h2,h3) em{color:inherit!important;font-style:normal!important}
/* Titres écrits en div (fond-intro-h…) : même traitement des mots en relief que les h1-h3. */
.mgf-design main [class$='-h'] em{font-style:normal!important;color:inherit!important}

/* Libellés au-dessus des titres (sur-titres de page et de section) : DM Sans 13px, sans capitales
   forcées, comme « Notre approche » ou « Prenons contact ». Avant : 11px, capitales espacées de 4px,
   parfois dorés (Archea). */
.mgf-design main :is(.gest-tag,.gov-tag,.hist-tag,.fond-tag,.contact-tag,.mdt-tag,.pg-tag,.aff-label,
  .ess-hero-tag,.herm-hero-tag,.ap-tag-c,.ap-tag-d,.ap-hero-tag,.sim-lbl,.fond-section-label,.faq-section-label,
  .gp-citation-auteur,.hist-batiment-caption,.mecenat-cat,.finma-badge,.mdt-compare-k){
  font-family:'DM Sans',sans-serif!important;font-size:13px!important;font-weight:500!important;
  letter-spacing:.04em!important;text-transform:none!important;color:#b9c8dc!important;
}
body.mgf-light main :is(.fond-tag,.fond-section-label){color:#465269!important}
/* La carte MG Finance du comparatif se distinguait par un libellé doré : glacier à la place. */
.mgf-design main .mdt-compare-card.mg .mdt-compare-k{color:#a8c8f5!important}
/* Titres de petites cartes (piliers, valeurs, engagements, raisons) : DM Sans 15px, sans capitales. */
.mgf-design main :is(.fo-pillier-titre,.fo-reseau-titre,.gov-valeur-titre,.gp-engage-titre,.hub-clair-point-titre,
  .pg-point-titre,.pg-row-nom,.ap-raison-titre,.aff-intro-heading,.aff-card-title,.ap-doc-cat-titre,.ap-geo-card-nom,.mdt-mode-badge,.mdt-audit-role){
  font-family:'DM Sans',sans-serif!important;font-size:15px!important;font-weight:500!important;
  letter-spacing:.01em!important;text-transform:none!important;color:#eef2f8!important;
}
/* Liens d'action secondaires : 14px, sans capitales, glacier. */
.mgf-design:not(.mgf-light) main :is(.gp-panel-cta,.fo-panel-cta,.ess-intro-link,.herm-intro-link,.see-all,.mgf-press-cta,.gp-produit-arrow){
  font-size:14px!important;font-weight:500!important;letter-spacing:.01em!important;text-transform:none!important;
}
.mgf-design:not(.mgf-light) main :is(.ap-tag-c,.ap-tag-d,.ap-hero-tag)::before{background:rgba(198,203,210,.5)!important}

@media(max-width:767px){
  .mgf-design main h1:where(:not(.mgf-scene *)),.mgf-design main .design-home-copy h1{font-size:40px!important}
  .mgf-design main h2:where(:not(.mgf-scene *)){font-size:32px!important;line-height:1.15!important}
  .mgf-design main h3:where(:not(.mgf-scene *)){font-size:24px!important}
  .mgf-design main :is(.gp-panel-h,.fo-panel-h){font-size:28px!important}
}

/* ─────────────────────────────────────────────────────────────
   4. Un seul ruban de contact en bas de page
   Même largeur (pleine largeur, contenu centré sur 920px), même padding, même titre, même bouton,
   même bleu : un bleu acier de la palette, en léger dégradé, bordé d'un filet argent.
   ───────────────────────────────────────────────────────────── */
.mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta){
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:none!important;margin:0!important;
  padding:88px max(32px,calc((100% - 920px)/2))!important;
  text-align:center!important;
  background:radial-gradient(60% 140% at 50% 0,rgba(198,203,210,.07),rgba(198,203,210,0) 70%),var(--h-ruban)!important;
  border:0!important;border-top:1px solid rgba(198,203,210,.18)!important;
  gap:0!important;color:#f3f5f9;
}
/* Entrée en douceur : le bleu du ruban monte de la nappe au lieu de commencer en bloc. */
.mgf-design:not(.mgf-light) main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta){
  box-shadow:0 -90px 120px -70px rgba(52,86,140,.55)!important;
}
.mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta)::before{display:none!important}
/* Enveloppes internes : neutralisées, le ruban centre lui-même son contenu. */
.mgf-design main :is(.amccta-in,.fond-cta .fond-max,.ess-cta-inner,.herm-cta-inner){
  display:flex!important;flex-direction:column!important;align-items:center!important;
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;gap:0!important;text-align:center!important;
}
.mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta) h2{
  font-size:clamp(30px,2.9vw,42px)!important;line-height:1.16!important;color:#f3f5f9!important;
  margin:0 0 18px!important;max-width:28ch;text-align:center!important;
}
.mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta) .label{color:#c9d6e8!important;margin:0 0 16px!important}
.mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta) p{
  max-width:62ch!important;margin:0 auto 14px!important;color:#d3dcea!important;text-align:center!important;
}
.mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta) p a{color:#fff!important}
.mgf-design main .amccta :is(.amccta-c,.amccta-d){margin-top:6px!important;margin-bottom:0!important}
.mgf-design main .amccta .amccta-c{margin-top:26px!important}
.mgf-design main .cta-final .cta-steps{margin:22px auto 30px!important;width:100%;max-width:920px}
.mgf-design main :is(.cta-final .cta-buttons){justify-content:center!important;margin-top:8px}
/* Le bouton : celui de l'en-tête et de l'accueil (bleu #315c98, filet glacier), partout. */
.mgf-design main :is(.cta-final .btn-primary,.gp-cta-btn,.fo-cta-btn,.mdt-cta-btn,.amccta-btn,.fond-cta-btn,.faq-cta-btn,.ess-cta .ess-btn,.herm-cta .herm-btn){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px;
  min-height:50px!important;padding:14px 28px!important;margin:14px 0 0!important;
  font:500 15px/1.3 'DM Sans',sans-serif!important;letter-spacing:0!important;text-transform:none!important;
  background:#315c98!important;color:#fff!important;border:1px solid #7e9ec9!important;border-radius:3px!important;
  box-shadow:none!important;opacity:1!important;text-decoration:none!important;transform:none!important;
  transition:background-color .2s ease,border-color .2s ease!important;
}
.mgf-design main :is(.cta-final .btn-primary,.gp-cta-btn,.fo-cta-btn,.mdt-cta-btn,.amccta-btn,.fond-cta-btn,.faq-cta-btn,.ess-cta .ess-btn,.herm-cta .herm-btn):hover{
  background:#3b68a7!important;border-color:#a9c1e2!important;color:#fff!important;opacity:1!important;
}
.mgf-design main .cta-final .cta-buttons .btn-primary{margin:0!important}
.mgf-design main .cta-final .btn-secondary{
  min-height:50px!important;padding:14px 28px!important;font:500 15px/1.3 'DM Sans',sans-serif!important;
  background:transparent!important;color:#f3f5f9!important;border:1px solid rgba(198,203,210,.45)!important;border-radius:3px!important;box-shadow:none!important;
}
.mgf-design main .cta-final .btn-secondary:hover{background:rgba(198,203,210,.08)!important;border-color:rgba(198,203,210,.75)!important}
@media(max-width:767px){
  .mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta){padding:60px 24px!important}
  .mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta) h2{font-size:30px!important}
  .mgf-design main :is(.cta-final .btn-primary,.gp-cta-btn,.fo-cta-btn,.mdt-cta-btn,.amccta-btn,.fond-cta-btn,.faq-cta-btn,.ess-cta .ess-btn,.herm-cta .herm-btn),
  .mgf-design main .cta-final .btn-secondary{width:100%;max-width:340px}
}
@media(prefers-reduced-motion:reduce){
  .mgf-design main *{transition:none!important}
}

/* ─────────────────────────────────────────────────────────────
   5. Retouches du 14.10.2026 après relecture de Nicolas
   ───────────────────────────────────────────────────────────── */
/* Ruban : retour au bleu d'avant (#1B3A6B, uni), mêmes dimensions partout. */
.mgf-design main :is(.cta-final,.gp-cta,.fo-cta,.mdt-cta,.amccta,.fond-cta,.faq-cta,.ess-cta,.herm-cta){
  background:#1B3A6B!important;border-top:0!important;box-shadow:none!important;position:relative!important;
}
/* Mention LSFin des pages produits : petite, en bas à droite du ruban. */
.mgf-design main .amccta{padding-bottom:104px!important}
.mgf-design main .amccta .amccta-d{
  position:absolute!important;right:28px;bottom:18px;max-width:440px!important;margin:0!important;
  font-size:11px!important;line-height:1.5!important;text-align:right!important;color:rgba(255,255,255,.55)!important;
}
@media(max-width:767px){
  .mgf-design main .amccta{padding-bottom:60px!important}
  .mgf-design main .amccta .amccta-d{position:static!important;max-width:none!important;margin-top:22px!important;text-align:center!important}
}
/* Logos partenaires : chaque logo sur sa plaque claire, à la bonne taille (la plaque mangeait le logo). */
/* Logos partenaires : une seule bande claire continue (les banques imposent leurs couleurs d'origine),
   plutôt qu'une rangée de plaques blanches sur fond sombre. Bords fondus dans le bleu nuit. */
.mgf-design:not(.mgf-light) main :is(.partners-strip,.mdt-ticker){
  background:linear-gradient(90deg,#c9d0da 0,#e9ecf0 12%,#eef1f4 50%,#e9ecf0 88%,#c9d0da 100%)!important;
  border:0!important;box-shadow:0 0 0 1px rgba(198,203,210,.25)!important;
}
.mgf-design main .partner-wrap,.mgf-design main .mdt-ticker-logo{background:transparent!important;padding:0 6px!important;box-sizing:content-box!important}
.mgf-design .pub-marker a{color:#c6cbd2!important}

/* ─────────────────────────────────────────────────────────────
   6. Lisibilité (14.10.2026, relecture de Nicolas : textes presque illisibles)
   La règle commune des paragraphes (design.css, 17px) écrasait aussi les citations en Cormorant
   italique, police fine qui devient illisible sous 22px sur fond sombre.
   ───────────────────────────────────────────────────────────── */
.mgf-design main :is(.founders-quote,.gp-panel-tagline,.gp-citation-texte,.mdt-images-split-cap,.pg-hero-img-quote,.ap-cite-texte,.fond-intro-quote-texte){
  font-size:clamp(21px,1.75vw,25px)!important;line-height:1.55!important;font-weight:400!important;letter-spacing:0!important;
}
.mgf-design:not(.mgf-light) main :is(.founders-quote,.gp-panel-tagline,.gp-citation-texte,.mdt-images-split-cap,.pg-hero-img-quote,.ap-cite-texte){color:#e6ebf2!important}
.mgf-design:not(.mgf-light) main :is(.founders-quote,.gp-citation-texte,.ap-cite-texte) *{color:inherit!important}
/* Petits textes d'appoint : 13px minimum et contraste suffisant (WCAG AA sur le bleu nuit). */
.mgf-design main :is(.gp-risk-text,.sim-note,.fo-tab-sub,.fo-dd-item-sub,.hl-cap,.mgf-atlas__caption,.fxg-k,.hub-counter-name,
  .cxg-bars-t,.cxg-asof,.cxg-note,.mgf-chart-aum,.mgf-chart-disclaimer,.pos-inst-sub,.pos-foot,.arg-donut-t,
  .arg-asof,.arg-note,.ap-td,.fxp-label-adr,.aff-card-link,.fxa-note,.mgf-press-source,.mgf-press-src-pill,
  .mgf-scene__note,.bcvc-disc,.pg-doc-n,.founders-sig-role){
  font-size:13px!important;line-height:1.55!important;
}
.mgf-design:not(.mgf-light) main :is(.gp-risk-text,.sim-note,.fo-tab-sub,.fo-dd-item-sub,.mgf-chart-disclaimer,.pos-foot,.fxa-note,.mgf-press-source){color:#b9c4d4!important}
/* Scènes des certificats : de l'air entre les boutons de choix et le texte du panneau. */
.mgf-design .mgf-scene .mgf-scene__choices{margin-bottom:36px!important;row-gap:12px!important}
.mgf-design .mgf-scene .mgf-scene__panel h3{margin-top:0!important}

/* ─────────────────────────────────────────────────────────────
   7. Accueil : le titre doit marquer. Deux lignes, une phrase chacune, nettement plus grand.
   ───────────────────────────────────────────────────────────── */
@media(min-width:768px){.mgf-design main .mgf-atlas-hero .design-home-copy{max-width:min(820px,58vw)!important}}
.mgf-design main .mgf-atlas-hero .design-home-copy h1{
  font-size:clamp(54px,5.6vw,92px)!important;line-height:1.02!important;letter-spacing:-.03em!important;
  white-space:nowrap!important;max-width:none!important;margin-bottom:34px!important;
  text-shadow:0 2px 30px rgba(7,15,38,.85);
}
@media(min-width:768px) and (max-width:1150px){.mgf-design main .mgf-atlas-hero .design-home-copy h1{font-size:clamp(46px,5.4vw,62px)!important}}
@media(max-width:767px){.mgf-design main .mgf-atlas-hero .design-home-copy h1{font-size:clamp(34px,12vw,50px)!important}}
/* Les trois étapes du bandeau de l'accueil ne sont pas des cartes cliquables : pas de survol. */
.mgf-design main .cta-final .cta-steps-item{padding:16px 20px!important}

/* ─────────────────────────────────────────────────────────────
   8. Débordements relevés par l'audit automatique du 15.10.2026 (FR/EN/DE, 1440 et 375 px)
   ───────────────────────────────────────────────────────────── */
/* Titres numérotés des pages juridiques : ce sont des intitulés dans une barre encadrée, pas des titres
   de section ; la règle h2 commune (46px) les faisait sortir du cadre. */
.mgf-design main :is(.cgu-section-h,.pc-section-h,.ph-section-h){font-size:clamp(20px,1.9vw,26px)!important;line-height:1.25!important}
/* Contact : l'encadré « Besoin d'un conseil ? » est dans une colonne ; titre, téléphone et email en pile. */
.mgf-design main .contact-conseil-inner{flex-direction:column!important;align-items:flex-start!important;gap:20px!important}
.mgf-design main .contact-conseil-h{font-size:clamp(28px,2.3vw,36px)!important;max-width:none!important}
.mgf-design main .contact-conseil-tel{font-size:clamp(22px,1.8vw,26px)!important}
/* Allemand : mots longs (Vermögensverwaltung, Datenschutzerklärung) coupés proprement plutôt que débordants. */
html[lang=de] .mgf-design main :is(h1,h2,h3,h4,[class$='-h'],[class*='title'],[class*='titre']){-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}
.mgf-design main :is(p,li,dd){overflow-wrap:break-word}
/* Accueil sur téléphone : les deux phrases peuvent passer à la ligne si l'écran est trop étroit. */
@media(max-width:767px){.mgf-design main .mgf-atlas-hero .design-home-copy h1{white-space:normal!important;font-size:clamp(34px,10.5vw,46px)!important}}
/* Graphiques des certificats sur téléphone : les boutons de période passent à la ligne au lieu d'être coupés. */
.mgf-design main :is(.bcvc-period,.mgf-period-row){flex-wrap:wrap!important;row-gap:8px!important}
/* Profils du simulateur : libellés lisibles, sur deux lignes si besoin. */
.mgf-design main .sim-pname{font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.25!important}

/* ─────────────────────────────────────────────────────────────
   9. Vérification sur iPhone (simulateur Safari, 15.10.2026)
   ───────────────────────────────────────────────────────────── */
/* Cartes à photo de l'accueil : le texte posé sur un ciel clair ou une photo chargée devenait illisible.
   Un voile bleu nuit plus dense sous le texte, sur toutes les cartes y compris la grande. */
.mgf-design main .service-card::after,.mgf-design main .service-card--wide::after{
  display:block!important;
  background:linear-gradient(to top,rgba(7,15,38,.94) 0%,rgba(7,15,38,.78) 42%,rgba(7,15,38,.35) 75%,rgba(7,15,38,.12) 100%)!important;
}
.mgf-design main .service-card :is(.service-title,.service-desc,p){text-shadow:0 1px 14px rgba(5,10,25,.7)}
.mgf-design main .mecenat-card::after{background:linear-gradient(to top,rgba(7,15,38,.94) 0%,rgba(7,15,38,.6) 50%,rgba(7,15,38,.12) 100%)!important}
.mgf-design main .mecenat-cat{color:#e6ebf2!important;font-size:13px!important;letter-spacing:.03em!important;text-transform:none!important}
/* Pas de capitales forcées (règle d'écriture) : signature des fondateurs. */
.mgf-design main .founders-sig span{text-transform:none!important;letter-spacing:.02em!important;font-size:13px!important;color:#b9c4d4!important}
/* Héros des certificats sur téléphone : la photo occupe tout l'écran derrière le texte ; voile renforcé. */
@media(max-width:767px){
  .mgf-design main .pg-hero-overlay{background:linear-gradient(to bottom,rgba(7,15,38,.35) 0%,rgba(7,15,38,.62) 38%,rgba(7,15,38,.9) 100%)!important}
  .mgf-design main .pg-hero :is(.pg-hero-sub,.pg-hero-titre){text-shadow:0 1px 16px rgba(5,10,25,.75)}
}
/* Règle d'écriture : aucun texte affiché en capitales. Les sigles restent écrits en capitales dans le texte source. */
body.mgf-design *{text-transform:none!important}
.mgf-design :is(.pg-hero-badge,.pg-tag,.pub-marker-t,#mgf-map-btn,.pg-hero-eyebrow,.mecenat-cat,.founders-sig span,.label,.design-eyebrow){letter-spacing:.03em!important}
/* Bouton de la carte (Contact) : même style que les autres boutons. */
.mgf-design #mgf-map-btn{font:500 15px/1.3 'DM Sans',sans-serif!important;letter-spacing:0!important;padding:14px 28px!important;background:#315c98!important;border:1px solid #7e9ec9!important;border-radius:3px!important}

/* ─────────────────────────────────────────────────────────────
   10. Pas de mode d'emploi sous les animations (15.10.2026, Nicolas : « tout le monde sait cliquer »,
   et ces lignes prennent de la place). Le texte d'aide de l'univers reste lisible par les lecteurs d'écran.
   ───────────────────────────────────────────────────────────── */
.mgf-design .fxc-hint{display:none!important}
.mgf-design .fxu-say{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;margin:0!important;padding:0!important;border:0!important}
/* Principales positions (certificats) et répartition ARCHEA : centrées verticalement sur leur voisin,
   au lieu de rester collées en haut avec un grand vide dessous. */
.mgf-design main :is(.pg-secteurs-inner,.arg-grid){align-items:center!important}

/* ─────────────────────────────────────────────────────────────
   11. Thèse d'investissement des certificats (15.10.2026) : vidéo en fond plein, comme sur la page IA.
   Sans vidéo, plus de carré gris (#1c1c26) : la section reprend le bleu nuit continu.
   ───────────────────────────────────────────────────────────── */
.mgf-design main .pg-these{background:transparent!important}
.mgf-design main .pg-these-sec{position:relative;overflow:hidden;isolation:isolate;background:#070f26}
.mgf-design main .pg-these-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.mgf-design main .pg-these-veil{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(7,15,38,.62) 0%,rgba(7,15,38,.48) 45%,rgba(7,15,38,.78) 100%)}
.mgf-design main .pg-these-sec .pg-these{position:relative;z-index:2}
.mgf-design main .pg-these-sec .pg-these-h{text-shadow:0 2px 30px rgba(0,0,0,.55)}

/* ─────────────────────────────────────────────────────────────
   12. Vidéo en tête des certificats (15.10.2026, choix de Nicolas, Pexels) : posée au-dessus de la photo
   d'origine, qui sert d'image d'attente, et sous le voile sombre. Lecture calme et mouvement réduit : photo seule.
   ───────────────────────────────────────────────────────────── */
.mgf-design .pg-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}
.mgf-design .pg-hero .pg-hero-overlay{z-index:1}
.mgf-design .pg-hero .pg-hero-content{z-index:2}
.fx-calm .mgf-design .pg-hero-video,html.fx-calm .pg-hero-video{display:none!important}
@media(prefers-reduced-motion:reduce){.mgf-design .pg-hero-video{display:none!important}}

/* Bulles de l'univers d'investissement : la règle commune des boutons (font:inherit) leur imposait 17px,
   trop grand pour des noms comme « Medizinprodukte ». Taille propre, que fx-univers.js réduit encore si un mot ne tient pas. */
.mgf-design .fxu-b{font-size:15px!important;line-height:1.25!important}
@media(max-width:767px){.mgf-design .fxu-b{font-size:12px!important;padding:0 6px!important}}

/* ─────────────────────────────────────────────────────────────
   13. Cartes à chiffre (16.10.2026) : le numéro ne colle plus au bord au survol, et la carte grandit légèrement.
   ───────────────────────────────────────────────────────────── */
.mgf-design main .pg-point{padding:36px 28px!important;margin:0 -28px!important;border-radius:4px;
  transition:background-color .25s ease,box-shadow .4s ease,transform .35s cubic-bezier(.2,.75,.2,1)!important}
.mgf-design main :is(.pg-stat,.ap-stat,.ap-raison){transition:background-color .25s ease,box-shadow .4s ease,transform .35s cubic-bezier(.2,.75,.2,1)!important}
.mgf-design main :is(.pg-point,.pg-stat,.ap-stat,.ap-raison):hover{transform:scale(1.035)!important;position:relative;z-index:2}
@media(max-width:767px){.mgf-design main .pg-point{padding:28px 18px!important;margin:0 -18px!important}}
@media(prefers-reduced-motion:reduce){.mgf-design main :is(.pg-point,.pg-stat,.ap-stat,.ap-raison):hover{transform:none!important}}

/* Bandeaux des certificats (16.10.2026) : vidéo au-dessus de la photo de fond, sous le voile. */
.mgf-design .pg-wind-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
@media(prefers-reduced-motion:reduce){.mgf-design video.pg-wind-vid{display:none}}

/* Bande de faits sous l'accueil et mention de discrétion du contact (16.10.2026). */
.mgf-design .design-home-facts{flex-wrap:wrap;gap:12px 40px;padding:24px 24px 30px;font-size:14px;color:#c6cfdd}
.mgf-design .design-home-facts span{white-space:nowrap}
@media(max-width:767px){.mgf-design .design-home-facts span{white-space:normal}}
.mgf-design main .contact-privacy{margin:14px 0 0;font-size:14px!important;line-height:1.6!important;color:#b9c4d4!important}
.mgf-design main .contact-privacy a{color:#a8c8f5}

/* Bandeau du film sur l'accueil (20.10.2026) : une section comme une autre, on peut la dépasser en défilant. */
.mgf-design .design-home-film{padding:24px 24px 56px}
.mgf-design .design-home-film__frame{position:relative;max-width:1180px;margin:0 auto;aspect-ratio:16/9;max-height:78vh;overflow:hidden;border-radius:4px;background:#071327;box-shadow:0 30px 80px #0007}
.mgf-design .design-home-film__vid{display:block;width:100%;height:100%;object-fit:cover}
.mgf-design .design-home-film__frame::after{content:"";position:absolute;inset:auto 0 0 0;height:38%;background:linear-gradient(to top,#071327cc,transparent);pointer-events:none}
.mgf-design .design-home-film__play{z-index:2}
.mgf-design .design-home-film.is-playing .design-home-film__play,.mgf-design .design-home-film.is-playing .design-home-film__frame::after{display:none}
/* Pages certificats sur téléphone (20.10.2026) : le bloc des caractéristiques gardait 80 px de marge de chaque
   côté (215 px utiles), et un mot long comme « Themenzertifikat » poussait image et tableau hors de l'écran. */
@media(max-width:767px){.mgf-design .pg-caract{padding:72px 24px!important}.mgf-design .pg-caract-inner{grid-template-columns:minmax(0,1fr)!important;gap:40px!important}.mgf-design .pg-caract-h{overflow-wrap:break-word}}

/* Le bouton du haut de l'accueil descend jusqu'au film au lieu d'ouvrir un second lecteur. */
.mgf-design a.mgf-atlas-film{display:inline-flex;align-items:center;gap:12px;text-decoration:none}
/* Sur téléphone, les titres apparaissent d'un coup et vite : le grand titre de l'accueil ne doit pas se faire attendre. */
@media(max-width:767px){.fx-title .fx-w>span{transition-duration:.4s!important;transition-delay:0s!important}}

/* Variante « le cadre grandit au défilement » (?film=grand) : ordinateur seulement, sans effet si animations réduites. */
@media(min-width:768px) and (prefers-reduced-motion:no-preference){
  .mgf-design .design-home-film.is-grow{height:150vh;padding:0}
  .mgf-design .mgf-header{transition:transform .35s ease,background .4s,backdrop-filter .4s,border-color .4s}
  body.film-plein .mgf-header{transform:translateY(-110%)}
  .mgf-design .is-grow .design-home-film__stage{position:sticky;top:0;height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
  .mgf-design .is-grow .design-home-film__frame{--p:0;max-width:none;max-height:none;aspect-ratio:auto;margin:0;
    width:calc(44vw + 56vw * var(--p));height:calc(44vh + 56vh * var(--p));border-radius:calc(16px * (1 - var(--p)));
    box-shadow:0 30px 90px rgba(0,0,0,calc(.55 * (1 - var(--p))))}
}
.mgf-design .design-home-film__play em{font-style:normal}
.mgf-design .design-home-film__play .film-l-mob{display:none}
@media(max-width:767px){.mgf-design .design-home-film__play .film-l-desk{display:none}.mgf-design .design-home-film__play .film-l-mob{display:inline}}
@media(max-width:767px){.mgf-design .design-home-film{padding:12px 16px 40px}.mgf-design .design-home-film__play{left:50%!important;bottom:50%!important;transform:translate(-50%,50%);white-space:nowrap}}

/* Page Protection des données (28.10.2026) : la colonne de texte ne doit pas s'élargir au mot le plus long
   d'un tableau (« Aufbewahrungsdauer », etc.) ; sur téléphone, le contenu restait à 481 px de large en allemand. */
.mgf-design .pc-body>*,.mgf-design .pc-content,.mgf-design .pc-section{min-width:0}
@media(max-width:767px){.mgf-design .pc-table td,.mgf-design .pc-table th{overflow-wrap:anywhere;hyphens:auto}.mgf-design .pc-table td:first-child{min-width:0}}

/* Avertissement imposé par la ZKB sous les émetteurs (Maison de titres) : discret, comme celui des pages produits. */
.mgf-design main .mdt-zkb-note{font-size:12px!important;line-height:1.6!important;color:#9fb0c6!important;margin-top:16px!important}
/* Logos des partenaires (Maison de titres) sur téléphone : un logo ne dépasse jamais sa case. */
@media(max-width:767px){.mgf-design .mdt-logo-item{padding:22px 16px;min-width:0;flex:1 1 40%}.mgf-design .mdt-logo-item img{max-width:100%!important;height:auto}}

/* Logo ZKB cliquable vers les certificats (06.11.2026) : la case entière reste une tuile, le lien ne change pas sa taille. */
.mgf-design .mdt-logo-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.mgf-design .mdt-logo-link:focus-visible{outline:2px solid #1B3A6B;outline-offset:4px}

/* Cartes à photo de l'accueil (06.11.2026) : photos plus lumineuses, voile dense seulement là où se trouve le texte. */
.mgf-design .service-card img{filter:brightness(.9) saturate(1.05)!important}
.mgf-design main .service-card::after{
  background:linear-gradient(to top,rgba(7,15,38,.92) 0%,rgba(7,15,38,.7) 32%,rgba(7,15,38,.2) 62%,rgba(7,15,38,0) 85%)!important;
}
.mgf-design main .service-card--wide::after{
  background:linear-gradient(to right,rgba(7,15,38,.9) 0%,rgba(7,15,38,.68) 34%,rgba(7,15,38,.18) 62%,rgba(7,15,38,0) 82%)!important;
}
@media(max-width:767px){.mgf-design main .service-card--wide::after{background:linear-gradient(to top,rgba(7,15,38,.92) 0%,rgba(7,15,38,.7) 40%,rgba(7,15,38,.2) 72%,rgba(7,15,38,0) 92%)!important}}
/* La mention ZKB de Maison de titres descend en bas de page, en petit (06.11.2026). */
.mgf-design main .mdt-zkb-legal{max-width:1280px;margin:0 auto;padding:28px 40px 36px;border-top:1px solid rgba(200,212,226,.14)}
.mgf-design main .mdt-zkb-legal .mdt-zkb-note{margin:0!important;font-size:11.5px!important;color:#8fa0b6!important}
@media(max-width:767px){.mgf-design main .mdt-zkb-legal{padding:24px 24px 30px}}

/* ARCHEA, « Ce que propose ce fonds » : au survol, le rectangle englobe le numéro (09.11.2026). */
.mgf-design main .ap-raison{padding:40px 28px!important;margin:0 -28px!important;border-radius:4px}
@media(max-width:767px){.mgf-design main .ap-raison{padding:28px 18px!important;margin:0 -18px!important}}
/* Page ESS : la seule photo existante est très panoramique ; un bandeau moins haut l'agrandit moins. */
@media(min-width:768px){.mgf-design .ess-hero{height:480px}.mgf-design .ess-hero-bg{background-position:center 30%}}
/* Tablette (768-900) : la marge negative de 28 px depassait le bord de l ecran de 4 px. */
@media(min-width:768px) and (max-width:900px){.mgf-design main :is(.pg-point,.ap-raison){margin:0 -20px!important;padding-left:20px!important;padding-right:20px!important}}
