/* V3.4 - Refonte homepage + page Programmes, selon commentaires proprietaire 2026-07-23.
   Additif; charge apres v3/v31/v32/v33. Aucun prix ni claim invente. */

:root {
  --v34-ink: #071927;
  --v34-teal: #0d8f96;
  --v34-navy: #061a2c;
}

/* ---------- EN-TETE ---------- */
.brand-row-biotwin .biotwin-nav { margin-left: 16px; margin-right: auto; }

.twinme-inner { justify-content: flex-end; gap: 18px; padding-right: clamp(16px, 6vw, 132px); }
.brand-link-twinme {
  order: -1;
  margin-left: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}
.brand-link-twinme img { width: 132px; max-height: 36px; }
.brand-link-twinme span { display: block; width: 132px; margin: 0; font-size: 8.5px; letter-spacing: .015em; line-height: 1.1; text-align: center; white-space: nowrap; }
.twinme-nav { margin-left: 0; }
.utility-nav { margin-left: 0; }

/* ---------- HERO ---------- */
.v34-hero { padding-top: clamp(40px, 4.5vw, 68px); padding-bottom: clamp(38px, 5vw, 68px); }
/* Corrige l'ordre herite de v32.css: titre AVANT l'image */
.v34-hero .v31-hero-heading { width: min(100%, 1080px); order: 0; }
.v34-hero .v34-hero-figure { order: 1; }
.v34-hero .v34-clinical-note { order: 2; }
.v34-hero-hook {
  max-width: 1040px;
  margin: 14px auto 0;
  color: #274152;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 680;
  line-height: 1.3;
}
.v34-hero-desc {
  max-width: 720px;
  margin: 12px auto 0;
  color: #506879;
  font-size: 17px;
  line-height: 1.6;
}
.v34-hero-br { display: inline; }
.v34-hero-figure {
  position: relative;
  width: min(100%, 1080px);
  margin-top: clamp(18px, 2.2vw, 30px);
  overflow: hidden;
  border-radius: 26px;
}
.v34-hero-figure img { display: block; width: 100%; height: auto; }
.v34-hero-actions {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 26px 52px;
  background: linear-gradient(180deg, rgba(4, 18, 30, .74), transparent);
}
.v34-hero-actions .button-outline {
  border-color: rgba(255, 255, 255, .82);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}
.v34-hero-actions .button-outline:hover { background: rgba(255, 255, 255, .22); }
.v34-clinical-note {
  max-width: 960px;
  margin: 16px auto 0;
  color: #7a8b96;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 720px) {
  .v34-hero-br { display: none; }
  .v34-hero-actions {
    position: static;
    padding: 16px 0 0;
    background: none;
  }
  .v34-hero-actions .button-outline {
    border-color: var(--v34-teal);
    color: var(--v34-teal);
    background: transparent;
  }
  .v34-hero-actions .button { flex: 1 1 auto; }
}

/* ---------- ESPACEMENTS REDUITS ENTRE SECTIONS ---------- */
.v31-future { padding: clamp(48px, 6vw, 88px) 0; }
.v33-contains { padding: clamp(48px, 6vw, 84px) 0; background: #061a2c; color: #fff; }
.v32-education-band { padding: clamp(48px, 6vw, 84px) 0; }
.v31-section-heading { margin-bottom: clamp(28px, 3vw, 40px); }
.v31-centered-heading { margin-bottom: clamp(26px, 3vw, 38px); }

/* ---------- TITRES STANDARDISES + STORY CENTRE ---------- */
.v34-wide-title { max-width: 1040px; margin-inline: auto; }
.v31-future .v31-section-heading { text-align: center; }
.v31-future .v31-section-heading h2 { margin-inline: auto; }
.v31-story-copy h3 { text-align: center; }
.v31-future .v31-commercial-cta { margin-top: clamp(24px, 3vw, 36px); }

/* ---------- CE QUE VOTRE JUMEAU CONTIENT (images cliquables + liste large) ---------- */
.v33-contains .v31-centered-heading h2,
.v33-contains .v31-centered-heading p { color: #fff; }
.v33-contains .v31-centered-heading > p:not(.eyebrow) { color: rgba(255, 255, 255, .74); }
.v34-contains-figures {
  display: block;
  max-width: 920px;
  margin: 0 auto;
}
.v34-contains-fig {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
}
.v34-contains-fig img { display: block; width: 100%; height: auto; }

/* ---------- BANNIERES SCIENCE / MEDIAS ---------- */
.v34-banner { padding: clamp(26px, 3vw, 44px) 0; }
.v34-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 40px);
  border-radius: 22px;
}
.v34-banner-science .container { background: var(--v34-navy); color: #fff; }
.v34-banner-media .container { border: 1px solid rgba(7, 27, 45, .12); background: #f7fafb; }
.v34-banner-copy { flex: 1 1 420px; }
.v34-banner-copy .eyebrow { margin-bottom: 8px; }
.v34-banner-copy h2 { max-width: 760px; margin: 0 0 8px; }
.v34-banner-science .v34-banner-copy h2 { color: #fff; }
.v34-banner-copy p { margin: 0; color: inherit; opacity: .82; font-size: 15px; line-height: 1.55; }
.v34-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
/* Science: liens empiles un par-dessus l'autre */
.v34-banner-science .v34-banner-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
.v34-banner-science .text-link-light { color: #6fe3d6; font-weight: 800; text-decoration: none; }
.v34-banner-science .text-link-light:hover { text-decoration: underline; }
.v34-media-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.v34-media-logos span {
  padding: 8px 12px;
  border: 1px solid rgba(7, 27, 45, .14);
  border-radius: 999px;
  background: #fff;
  color: #33505f;
  font-size: 12px;
  font-weight: 800;
}

/* ---------- PAGE PROGRAMMES ---------- */
/* Titre du hero sur deux lignes */
.start-page .start-hero-content h1 { max-width: 16ch; }
/* Lien "je veux comprendre" ramene a gauche, sous le titre */
.v34-heading-stack { display: block; }
.v34-heading-stack .text-link { display: inline-flex; margin-top: 12px; }

.v34-prog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px) 0;
  border-top: 1px solid rgba(7, 27, 45, .1);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease;
}
.v34-prog-row:first-of-type { border-top: 0; }
a.v34-prog-row:hover { transform: translateY(-2px); }
a.v34-prog-row:hover .v34-prog-media img { transform: scale(1.03); }
.v34-prog-media img { transition: transform .5s ease; }
a.v34-prog-row .text-link { color: var(--v34-teal); font-weight: 800; }
.v34-prog-media { overflow: hidden; border-radius: 20px; }
.v34-prog-media img { display: block; width: 100%; height: clamp(230px, 28vw, 360px); object-fit: cover; }
.v34-prog-copy h3 { margin: 6px 0 10px; font-size: clamp(26px, 3vw, 34px); }
.v34-prog-copy > p { color: #506879; font-size: 16px; line-height: 1.6; }
.v34-prog-note {
  display: block;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--v34-teal);
  background: #eef8f7;
  color: #274152;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}
.v34-prog-row .v32-pillar-grid { margin: 16px 0; }

/* Analogie foret/arbre pour Bio-Signatures */
.v34-forest-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v34-forest-pair figure { margin: 0; }
.v34-forest-pair img { width: 100%; height: clamp(170px, 22vw, 250px); object-fit: cover; border-radius: 14px; }
.v34-forest-pair figcaption { margin-top: 8px; color: #506879; font-size: 12.5px; font-weight: 750; text-align: center; }

/* Filigrane diagonal gris tres pale sur chaque capture de demonstration */
.demo-gallery figure::after {
  content: "Données de démonstration";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-24deg);
  color: rgba(70, 90, 105, .22);
  font-size: clamp(13px, 2.6vw, 24px);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 860px) {
  .v34-prog-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .v34-contains-figures,
  .v34-contains-list { grid-template-columns: 1fr; }
}
