/* Sans Arrondi V37 — transition 2027 plus douce
   Base : V36. Cette feuille ne touche qu'à l'univers 2027. */

body.page-2027{
  --v37-shell:#ece7e0;
  --v37-paper:#f5f1eb;
  --v37-paper-2:#fbf9f6;
  --v37-line:#ded8d0;
  background:var(--v37-shell)!important;
}

/* La rupture noir -> clair devient un fondu continu derrière les cartes partis. */
body.page-2027 .v36-portal{
  position:relative;
  isolation:isolate;
  background:#090909!important;
  overflow:visible;
}
body.page-2027 .v36-portal::after{
  content:"";
  position:absolute;
  z-index:1;
  left:0;
  right:0;
  bottom:-1px;
  height:320px;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(9,9,9,0) 0%,
    rgba(13,12,11,.35) 18%,
    #211f1c 42%,
    #5c5650 66%,
    #aaa198 84%,
    var(--v37-shell) 100%
  );
}
body.page-2027 .v36-hero{position:relative;z-index:2}
body.page-2027 .v36-chooser{z-index:5}

/* Zone d'analyse : ivoire chaud plutôt que blanc pur. */
body.page-2027 .sa-audit-v31{
  background:var(--v37-shell)!important;
}
body.page-2027 .v36-program{
  background:var(--v37-paper)!important;
  border:1px solid rgba(255,255,255,.38);
  box-shadow:0 30px 78px rgba(18,15,12,.20)!important;
}
body.page-2027 .v36-program::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb,var(--party) 7%, transparent), transparent 28%),
    linear-gradient(to bottom,rgba(255,255,255,.40),rgba(255,255,255,0) 180px);
  z-index:-1;
}

/* Les éléments internes restent lumineux sans recréer un mur blanc. */
body.page-2027 .v36-program-logo,
body.page-2027 .v36-source,
body.page-2027 .v36-theme-pill{
  background:var(--v37-paper-2)!important;
}
body.page-2027 .v36-status,
body.page-2027 .v36-method-note{
  background:#ebe6df!important;
  border-color:#dcd5cc!important;
}
body.page-2027 .v36-theme-wrap{
  border-color:var(--v37-line)!important;
}
body.page-2027 .v36-theme-head>strong{
  background:#e9e4dd!important;
}
body.page-2027 .v36-measures,
body.page-2027 .v36-measure{
  border-color:var(--v37-line)!important;
}
body.page-2027 .v36-measure-action i{
  border-color:#d4cec6!important;
  background:#f8f5f1;
}
body.page-2027 .v36-measure-toggle:hover .v36-measure-action i{
  background:#eee8e1!important;
}

/* Le sticky des thèmes doit reprendre le papier de la fiche, pas revenir au blanc clinique. */
@media(min-width:760px){
  body.page-2027 .v36-theme-wrap{
    background:rgba(245,241,235,.95)!important;
    box-shadow:0 12px 22px rgba(82,70,58,.04);
  }
}

/* Un peu plus d'air autour de la fiche pour que le fondu reste visible. */
body.page-2027 .v36-program{
  margin-top:18px!important;
  margin-bottom:88px!important;
}

/* Le bas de la page revient progressivement au sombre du footer. */
body.page-2027 main.audit27-shell{
  background:linear-gradient(
    to bottom,
    #090909 0,
    #090909 820px,
    var(--v37-shell) 1120px,
    var(--v37-shell) calc(100% - 260px),
    #d8d1c8 calc(100% - 150px),
    #151311 100%
  )!important;
}

@media(max-width:900px){
  body.page-2027 .v36-portal::after{height:260px}
  body.page-2027 .v36-program{margin-top:10px!important}
}
@media(max-width:640px){
  body.page-2027 .v36-portal::after{height:210px}
  body.page-2027 .v36-program{
    background:#f5f1eb!important;
    border-color:rgba(255,255,255,.45)!important;
    box-shadow:0 22px 50px rgba(18,15,12,.17)!important;
  }
}
