:root {
  --v32-ink: #071927;
  --v32-aqua: #0d8f96;
  --v32-soft: #eef8f7;
}

html {
  scroll-margin-top: 140px;
}

section[id] {
  scroll-margin-top: 150px;
}

.brand-link-twinme {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  text-align: right;
}

.brand-link-twinme span {
  color: rgba(7, 25, 39, .58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.twinme-inner {
  justify-content: flex-end;
}

.twinme-nav {
  margin-left: auto;
}

.entry-overlay {
  background:
    linear-gradient(90deg, rgba(3, 15, 25, .86), rgba(3, 15, 25, .58) 42%, rgba(3, 15, 25, .18)),
    url("images/popup-virtual-twin.webp") center / cover no-repeat;
}

.entry-modal {
  width: min(1120px, calc(100vw - 32px));
  height: min(720px, calc(100svh - 40px));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 32px 120px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.entry-panel {
  align-self: stretch;
  display: grid;
  align-content: start;
  overflow-y: auto;
  padding: clamp(24px, 3.5vw, 44px);
  color: #fff;
  background: linear-gradient(135deg, rgba(5, 26, 43, .92), rgba(8, 69, 83, .72));
}

.entry-panel h2,
.entry-panel .entry-intro {
  color: #fff;
}

.entry-logo {
  width: 156px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .24));
}

.entry-options {
  display: grid;
  gap: 9px;
  margin: 20px 0 12px;
}

.entry-option,
.entry-continue {
  min-height: 48px;
}

.entry-option {
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.entry-option small {
  color: rgba(255, 255, 255, .72);
}

.entry-option-primary,
.entry-continue {
  color: var(--v32-ink);
  background: #fff;
}

.entry-option-primary small {
  color: rgba(7, 25, 39, .66);
}

.entry-continue {
  width: fit-content;
  margin-top: 0;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.entry-visual {
  position: relative;
  min-height: 620px;
  background: url("images/popup-virtual-twin.webp") center / cover no-repeat;
}

.entry-visual-label {
  position: absolute;
  right: 28px;
  bottom: 28px;
  max-width: 280px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
  color: #fff;
  background: rgba(5, 26, 43, .52);
  backdrop-filter: blur(14px);
}

.v31-hero {
  padding-bottom: clamp(58px, 6vw, 90px);
}

.v31-hero-visual {
  margin-top: clamp(24px, 3vw, 42px);
}

.v31-hero-copy {
  margin-top: 24px;
}

@media (min-width: 900px) {
  .v31-hero {
    padding-top: 60px;
  }

  .v31-hero-heading { order: 1; }

  .v31-hero-heading h1 {
    max-width: 960px;
    font-size: clamp(56px, 5.3vw, 76px);
    line-height: 1;
    letter-spacing: -.055em;
  }

  .v31-hero-copy {
    order: 2;
    margin-top: 18px;
  }

  .v31-hero-copy > p {
    max-width: 760px;
    margin: 0 auto 18px;
    font-size: 18px;
    line-height: 1.55;
  }

  .v31-hero-visual {
    order: 3;
    margin-top: 26px;
  }
}

.v32-no-break {
  white-space: nowrap;
}

.v32-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 20px;
}

.v32-pillar-grid span {
  min-height: 86px;
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
  background: #0a2434;
}

.v32-pillar-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  transition: transform .5s ease;
}

.v32-pillar-grid span:hover img {
  transform: scale(1.06);
}

.v32-pillar-grid span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(3, 16, 24, .74));
}

.v32-pillar-grid span {
  isolation: isolate;
}

.v32-pillar-grid b {
  position: relative;
  z-index: 1;
  font-size: inherit;
}

.v32-pillar-grid span {
  z-index: 0;
}

.v32-pillar-grid span {
  place-items: end start;
}

.v32-analysis-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 20px;
  padding: 13px 14px;
  border: 1px solid rgba(13, 143, 150, .2);
  border-radius: 14px;
  background: var(--v32-soft);
}

.v32-analysis-badge strong {
  color: var(--v32-aqua);
  font-size: 22px;
  line-height: 1;
}

.v32-analysis-badge span {
  color: #45606f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.v32-education-band {
  padding: clamp(72px, 8vw, 118px) 0;
  background: #fff;
}

.v32-education-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.v32-education-copy h2 {
  max-width: 760px;
}

.v32-education-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 24px;
  color: #506879;
  font-size: 17px;
  line-height: 1.65;
}

.v32-education-visual {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 28px;
  color: #fff;
  background: #061a2c;
  box-shadow: 0 24px 70px rgba(6, 26, 44, .14);
}

.v32-education-visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: transform .7s ease;
}

.v32-education-visual:hover img {
  transform: scale(1.035);
}

.v32-education-visual span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 26, 44, .66);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 850;
}

.v32-faq-lite {
  background: #f7fafb;
}

.v32-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.v32-faq-links {
  display: grid;
  gap: 12px;
}

.v32-faq-links a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(6, 26, 44, .1);
  border-radius: 14px;
  color: var(--v32-ink);
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}


.v31-program-image {
  position: relative;
}

.v32-program-status {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  border: 1px solid rgba(255, 255, 255, .56);
  color: #fff;
  background: rgba(6, 26, 44, .72);
  box-shadow: 0 8px 24px rgba(3, 17, 28, .16);
  backdrop-filter: blur(10px);
}

.v32-faq-links details {
  overflow: hidden;
  border: 1px solid rgba(6, 26, 44, .1);
  border-radius: 14px;
  color: var(--v32-ink);
  background: #fff;
}

.v32-faq-links summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.v32-faq-links summary::-webkit-details-marker {
  display: none;
}

.v32-faq-links summary::after {
  content: "+";
  color: var(--v32-aqua);
  font-size: 22px;
  line-height: 1;
}

.v32-faq-links details[open] summary::after {
  content: "−";
}

.v32-faq-links details p {
  margin: 0;
  padding: 0 18px 18px;
  color: #506879;
  font-size: 14px;
  line-height: 1.55;
}

.v32-faq-links details p a {
  min-height: 0;
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--v32-aqua);
  background: transparent;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .entry-modal,
  .v32-education-layout,
  .v32-faq-grid {
    grid-template-columns: 1fr;
  }

  .entry-visual {
    display: none;
  }

  .brand-link-twinme span {
    display: none;
  }
}

@media (max-width: 620px) {
  section[id] {
    scroll-margin-top: 96px;
  }

  .entry-modal {
    width: calc(100vw - 20px);
    min-height: 0;
    border-radius: 22px;
  }

  .entry-panel {
    padding: 26px 20px;
  }

  .v32-pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v32-education-visual,
  .v32-education-visual img {
    min-height: 300px;
  }
}


/* Final independent-audit refinements */
.v31-hero-heading { order: 1; }
.v31-hero-copy { order: 2; }
.v31-hero-visual { order: 3; }

.v31-program-card {
  display: flex;
  flex-direction: column;
}

.v31-program-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.v31-program-copy > span:last-child {
  margin-top: auto;
}

.entry-continue {
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  background: transparent;
  opacity: .86;
}

.entry-continue:hover,
.entry-continue:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, .12);
}

:focus-visible {
  outline-color: #005d65;
  outline-width: 3px;
}

.entry-overlay :focus-visible,
.start-outcomes :focus-visible,
.start-caution :focus-visible {
  outline-color: #fff;
}

.demo-gallery figure {
  position: relative;
}

.demo-gallery figure::before {
  content: "DONNÉES DE DÉMONSTRATION";
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 17, 28, .8);
  backdrop-filter: blur(8px);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}


/* Popup logo contrast polish */
.entry-logo {
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, .24));
}
