/* Malya Formation : page Diagnostic mise à niveau (aperçu, 2026-10-08).
   Se charge APRÈS malya_v2_accueil_niveau.css. La page est portée par .dg (pas .v2) : on re-pose ici, sous .dg, les mêmes
   formes ChatGPT que l accueil (série acc_*, archivée dans MALYA_VISUEL_AUDIT/) : cadres de verre (acc_cadre_large, acc_carte_porte),
   plaque du bouton (acc_bouton), pilule de verre (acc_pilule_verre), disques (acc_disque_verre / acc_disque_ambre), trait de lumière (acc_trait_lumiere).
   Aucune image retouchée (Loi 10) : le code place, aligne, règle les couleurs et les tailles de texte. */

/* ---------- cadres de verre ChatGPT : mêmes mesures que l accueil ---------- */
.dg .cdr { position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen; border-style: solid; border-color: transparent; }
.dg .cdr-l { border-width: 40px; border-image: url(acc_cadre_large.webp) 250 / 40px / 19px 10px 26px 10px stretch; }
.dg .cdr-c { border-width: 34px; border-image: url(acc_carte_porte.webp) 190 / 34px / 10px 12px 22px 12px stretch; }

/* ---------- les cartes qui reçoivent un cadre : émeraude profond de la charte, mélange « écran » isolé ---------- */
.dg .qframe, .dg .rcard, .dg .somwrap, .dg .radwrap, .dg .doors .door {
  position: relative; border: 0; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, rgba(6, 61, 54, .86), rgba(1, 33, 42, .95)); box-shadow: 0 26px 54px -34px rgba(0, 0, 0, .85);
}
.dg .rcard { background: radial-gradient(90% 120% at 100% 0%, rgba(79, 209, 197, .12), transparent 60%), linear-gradient(165deg, rgba(6, 61, 54, .86), rgba(1, 33, 42, .95)); padding: clamp(40px, 4.5vw, 56px) clamp(34px, 4.5vw, 56px); }

/* ---------- la question : un cadre fixe, les questions défilent dedans ---------- */
.dg .qframe { max-width: 780px; margin: 0 auto; padding: clamp(32px, 4vw, 46px) clamp(28px, 4vw, 46px); }
.dg .qstage { min-height: 300px; }
.dg .qcard.active { max-width: none; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.dg .qcard.active::before { display: none; }
.dg .qnav { max-width: 780px; margin-top: 18px; }
.dg .qaxis { font-size: 13px; }
.dg .qcount { font-size: 13px; }
/* numéro de l axe : disque ambre ChatGPT (diamètre du disque = 82,5 % de l image) */
.dg .qaxis .qnum { width: 30px; height: 30px; font-size: 12.5px; color: #2b1700; box-shadow: none; background: url(acc_disque_ambre.webp) center / 121.2% 121.2% no-repeat; }

/* ---------- Le Sommet et la toile : contenu en retrait du cadre ---------- */
.dg .somwrap, .dg .radwrap { padding: 8px 22px 22px; margin-bottom: 24px; }
.dg .somlabel, .dg .radlabel { padding: 16px 10px 14px; border-bottom-color: rgba(253, 221, 144, .22); }
.dg .somlabel .t, .dg .radlabel .t { font-size: 13px; }
.dg .somlabel .s, .dg .radlabel .s { font-size: 14px; }
.dg .somcanvas { border-radius: 10px; overflow: hidden; }
.dg .somleg { border-left-color: rgba(253, 221, 144, .18); padding: 18px 10px 18px 20px; }
@media (max-width: 760px) { .dg .somleg { border-top-color: rgba(253, 221, 144, .18); padding: 18px 10px 6px; } }
.dg .somhint { font-size: 13px; }

/* ---------- les 5 portes : carte ChatGPT, l ancien liseré et la barre du haut s effacent ---------- */
.dg .doors { gap: 18px; }
.dg .doors .door { padding: 30px 30px 28px; }
.dg .doors .door::before { display: none; }
.dg .doors .door:hover { border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), 0 0 46px -14px color-mix(in srgb, var(--acc) 55%, transparent); }
.dg .door .go { font-size: 13px; }
.dg .door .benefit { font-size: 15px; }

/* ---------- point d appui, formulaire ---------- */
.dg .pivot { border-radius: 12px; border: 1px solid rgba(253, 221, 144, .22); border-left: 4px solid #f27a6e; padding: 22px 24px; margin-bottom: 26px; }
.dg .form { border-top-color: rgba(253, 221, 144, .22); }
.dg .field label { font-size: 13px; }
.dg .consent { font-size: 14px; }
.dg #merci { border-radius: 12px; }

/* ---------- bouton principal : la plaque ChatGPT (acc_bouton), un seul point chaud par écran ---------- */
.dg .btn, .dg .dh-cta .exbtn:first-child {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0; box-shadow: none;
  color: #2b1700; min-height: 54px; padding: 0 66px; isolation: isolate; overflow: hidden; border-radius: 999px; font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 238, 196, .55); transition: filter .25s, transform .25s; animation: none;
}
.dg .btn::before, .dg .dh-cta .exbtn:first-child::before {
  content: ""; position: absolute; top: -2px; bottom: -2px; left: -22px; right: -22px; width: auto; height: auto; z-index: -1; pointer-events: none;
  background: none; transform: none; animation: none; border-style: solid; border-color: transparent; border-width: 0 59px;
  border-image: url(acc_bouton.webp) 172 330 227 330 fill / 0 59px 0 59px stretch;
}
.dg .btn:hover, .dg .dh-cta .exbtn:first-child:hover { color: #2b1700; transform: translateY(-2px); box-shadow: none; filter: drop-shadow(0 10px 22px rgba(249, 175, 102, .55)) brightness(1.06); }
.dg .dh-cta .exbtn:first-child { font-size: 14px; }

/* ---------- boutons secondaires : la pilule de verre ChatGPT (acc_pilule_verre), extrémités à l échelle, seul le milieu s allonge ---------- */
.dg .exbtn, .dg .qnav .back, .dg .btn-nav {
  position: relative; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; box-shadow: none;
  color: #ffe9b8; isolation: isolate; overflow: hidden; border-radius: 999px; margin: 0; transition: filter .25s, transform .25s;
}
.dg .exbtn::before, .dg .qnav .back::before, .dg .btn-nav::before {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; pointer-events: none; border-style: solid; border-color: transparent;
}
.dg .exbtn { min-height: 52px; padding: 0 56px; font-size: 14px; }
.dg .exbtn::before { left: -15px; right: -15px; border-width: 0 52px; border-image: url(acc_pilule_verre.webp) 222 330 241 330 fill / 0 52px 0 52px stretch; }
.dg .qnav .back { min-height: 46px; padding: 0 44px; font-size: 13.5px; color: #ffe9b8; }
.dg .qnav .back::before { left: -13px; right: -13px; border-width: 0 46px; border-image: url(acc_pilule_verre.webp) 222 330 241 330 fill / 0 46px 0 46px stretch; }
.dg .btn-nav { height: 46px; padding: 0 50px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fddd90; }
.dg .btn-nav::before { left: -13px; right: -13px; border-width: 0 46px; border-image: url(acc_pilule_verre.webp) 222 330 241 330 fill / 0 46px 0 46px stretch; }
.dg .exbtn:hover, .dg .qnav .back:hover, .dg .btn-nav:hover { color: #fff6d6; border-color: transparent; transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(253, 221, 144, .35)) brightness(1.12); }
.dg .qnav .step { font-size: 13px; }
.dg .dh-cta { gap: 14px; }

/* ---------- menu : mêmes réglages que l accueil, ronds de réseaux en disque de verre ChatGPT ---------- */
.dg nav { padding: 18px 0 10px; }
.dg .nl { font-size: 14px; gap: 6px 24px; }
.dg .nl a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.dg .nl a.act { color: #f2f7f4; border-color: #fddd90; }
.dg .nav-r { display: flex; align-items: center; gap: 14px; }
.dg .socials { display: flex; gap: 9px; }
.dg .soc { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fddd90; background: url(acc_disque_verre.webp) center / 121.2% 121.2% no-repeat; transition: .2s; }
.dg .soc svg { width: 16px; height: 16px; fill: currentColor; }
.dg .soc:hover { color: #fff6d6; filter: drop-shadow(0 0 12px rgba(253, 221, 144, .55)); }

/* ---------- trait de lumière entre deux sections ---------- */
.dg .trait-lumiere { height: 90px; max-width: 1180px; margin: 4px auto; background: url(acc_trait_lumiere.webp) center 41.5% / 1500px auto no-repeat; mix-blend-mode: screen; pointer-events: none; }
.dg #result .trait-lumiere { margin-bottom: 10px; }

/* ---------- textes lisibles : 14 px minimum pour tout ce qui informe (charte Malya) ---------- */
.dg .scalekey { font-size: 14px; }
.dg .prog .lbl { font-size: 14px; }
.dg .portes .pa { font-size: 15px; }
.dg .beyond p { font-size: 16px; }

/* ---------- pied de page : celui de l accueil, posé dans la page Diagnostic ---------- */
.dg .v2.dg-foot { background: none; overflow: visible; padding: 0; }
.dg .v2.dg-foot footer { margin-top: 44px; }

/* ---------- mobile : les cadres restent proportionnés ---------- */
@media (max-width: 640px) {
  .dg .nav-r { width: 100%; justify-content: space-between; }
  .dg .doors .door { padding: 26px 24px 24px; }
  .dg .rcard { padding: 38px 24px; }
  .dg .qframe { padding: 32px 22px; }
  .dg .somwrap, .dg .radwrap { padding: 6px 14px 16px; }
  .dg .trait-lumiere { height: 64px; background-size: 1100px auto; }
  .dg .btn, .dg .dh-cta .exbtn:first-child { padding: 0 54px; }
  /* téléphone : les deux boutons d intro prennent toute la largeur, texte sur une ligne quand il tient */
  .dg .dh-cta { flex-direction: column; align-items: stretch; }
  .dg .dh-cta .exbtn, .dg .dh-cta .exbtn:first-child { width: 100%; padding: 0 40px; font-size: 13.5px; }
  .dg .btn-nav { white-space: nowrap; padding: 0 40px; }
}
