/* Landing presentation: shared components, then responsive compositions. */

/* Shared components and section styles */
:root {
  --rmvp-v2-yellow: var(--color-primary);
  --rmvp-v2-frame-width: 1240px;
  --rmvp-v2-stack-gap: 32px;
  --rmvp-v2-deep: var(--color-bg);
  --rmvp-v2-display: var(--font-body);
}
.rmvp-header {
  background: rgb(9 10 13 / 97%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  top: auto;
}
.rmvp-header__inner {
  width: min(var(--rmvp-v2-frame-width), 100%);
  min-height: 88px;
}
.rmvp-logo-lockup img {
  width: clamp(120px, 14vw, 190px);
}
.rmvp-header-navigation {
  font-family: var(--font-body);
}
.rmvp-mobile-play, .rmvp-desktop-play {
  background: var(--rmvp-v2-yellow);
  color: var(--color-primary-text);
}
.rmvp-desktop-play {
  display: none;
}
.rmvp-prose, .rmvp-footer {
  font-family: var(--font-body);
}
.rmvp-prose p, .rmvp-prose li {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
}
.rmvp-prose h1, .rmvp-prose h2, .rmvp-prose h3 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.3;
}
.rmvp-v2-landing {
  margin: 0;
  background: var(--rmvp-v2-deep);
  font-family: var(--font-body);
}
.rmvp-v2-landing > * {
  margin-block-start: 0;
}
.rmvp-v2-section {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 7vw, 110px) 0;
  scroll-margin-top: 125px;
  background: var(--rmvp-v2-deep);
}
.rmvp-v2-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%);
}
.rmvp-v2-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focalX,70%) var(--focalY,50%);
  filter: saturate(.8);
}
.rmvp-v2-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / 98%) 0%, rgb(0 0 0 / 80%) 20%, rgb(0 0 0 / 28%) 45%, transparent 70%);
}
.rmvp-v2-wrap {
  width: 100%;
  margin-inline: auto;
}
.rmvp-v2-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}
.rmvp-v2-copy {
  max-width: 720px;
}
.rmvp-v2-subtitle {
  color: var(--color-muted);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-top: 20px;
  margin-bottom: 0;
}
.rmvp-v2-title {
  font-family: var(--rmvp-v2-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.3vw, 3.3rem);
  letter-spacing: -.045em;
  line-height: 1.45;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.rmvp-v2-title span {
  display: block;
  color: var(--rmvp-v2-yellow);
}
.rmvp-v2-description {
  max-width: 570px;
  margin-top: 24px;
  font-size: clamp(1.06rem, 1.65vw, 1.4rem);
  line-height: 1.6;
  color: #fff;
}
.rmvp-v2-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 100%;
  min-height: 60px;
  margin-top: 30px;
  padding: 18px 26px;
  border: 2px solid var(--color-primary);
  border-radius: 3px;
  background: var(--rmvp-v2-yellow);
  color: var(--color-panel);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(.9rem, 1.4vw, 1.15rem);
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 5px 24px rgb(255 230 0 / 12%);
}
.rmvp-v2-button:hover {
  background: var(--color-primary);
  color: var(--color-panel);
}
.rmvp-v2-button span {
  font-size: 1.8rem;
  font-weight: 400;
}
.rmvp-v2-secondary {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin-top: 24px;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-underline-offset: 7px;
}
.rmvp-v2-accueil {
  padding-block: clamp(90px, 9vw, 140px);
}
.rmvp-v2-accueil .rmvp-v2-copy {
  max-width: 760px;
}
.rmvp-v2-accueil .rmvp-v2-title {
  font-size: clamp(1.8rem, 3.9vw, 3.7rem);
}
.rmvp-v2-comment-ca-marche .rmvp-v2-intro, .rmvp-v2-pronos .rmvp-v2-intro {
  min-height: 320px;
}
.rmvp-v2-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px;
  margin-top: 56px;
}
.rmvp-v2-card {
  padding: 30px;
  background: rgb(0 0 0 / 68%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.rmvp-v2-card svg {
  width: 48px;
  height: 48px;
  color: var(--rmvp-v2-yellow);
  margin-bottom: 22px;
}
.rmvp-v2-card h3 {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--rmvp-v2-yellow);
}
.rmvp-v2-card p {
  margin-top: 16px;
  color: #fff;
  line-height: 1.65;
  font-size: 1.08rem;
}
.rmvp-v2-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--rmvp-v2-yellow);
  border-radius: 50%;
  color: var(--color-panel-strong);
  font-weight: 900;
}
.rmvp-v2-pronos .rmvp-v2-cards {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.rmvp-v2-card-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--rmvp-v2-yellow);
  font-weight: 800;
  text-underline-offset: 5px;
}
.rmvp-v2-mvp-coins .rmvp-v2-cards {
  max-width: 920px;
}
.rmvp-v2-final {
  text-align: center;
  padding-block: 100px;
}
.rmvp-v2-final .rmvp-v2-copy, .rmvp-v2-final .rmvp-v2-description {
  margin-inline: auto;
}
.rmvp-v2-final .rmvp-v2-title {
  font-size: clamp(1.7rem, 3.3vw, 3rem);
}
.rmvp-v2-capture {
  margin: 0;
  width: min(320px,100%);
  justify-self: center;
}
.rmvp-v2-capture img {
  width: 100%;
  height: auto;
}
.rmvp-v2-phone {
  border: 6px solid var(--color-border);
  border-radius: 42px;
  padding: 8px;
  background: var(--color-bg);
  box-shadow: 0 20px 50px rgb(0 0 0 / 45%);
}
.rmvp-v2-phone img {
  border-radius: 28px;
}
.rmvp-v2-section.has-capture .rmvp-v2-intro {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr);
}
.rmvp-footer {
  background: #000;
  border-top: 1px solid var(--color-border);
}
.rmvp-header .wp-block-site-logo {
  flex: 0 0 auto;
}
.rmvp-v2-section :is(a,button):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
.wp-site-blocks > .wp-block-template-part:has(> .rmvp-header) {
  position: sticky;
  top: 0;
  z-index: 30;
}
body.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .rmvp-header) {
  top: 32px;
}
.rmvp-article h1, .rmvp-section-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.rmvp-footer__inner {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.wp-site-blocks p {
  color: #fff;
}
.rmvp-v2-comment-ca-marche .rmvp-v2-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rmvp-v2-comment-ca-marche .rmvp-v2-number {
  flex-shrink: 0;
  margin-bottom: 16px;
}
.rmvp-v2-comment-ca-marche .rmvp-v2-card svg {
  flex-shrink: 0;
}
.rmvp-v2-comment-ca-marche .rmvp-v2-wrap > .rmvp-v2-button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.rmvp-v2-pronos .rmvp-v2-wrap > .rmvp-v2-button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.rmvp-v2-mobile-capture {
  display: block;
}
.rmvp-v2-pronos .rmvp-v2-card {
  display: flex;
  flex-direction: column;
}
.rmvp-v2-pronos .rmvp-v2-card svg, .rmvp-v2-mvp-coins .rmvp-v2-card svg {
  display: block;
  margin-inline: auto;
  flex-shrink: 0;
}
.rmvp-v2-pronos .rmvp-v2-card-link {
  margin-top: auto;
  padding-top: 24px;
}
body:has(.rmvp-v2-landing) {
  background: #000;
}
.rmvp-v2-mobile-capture img {
  display: block;
  width: 100%;
  height: auto;
}
.rmvp-v2-phone-group .rmvp-v2-phone-main {
  position: relative;
  z-index: 2;
  width: 50%;
  margin-inline: auto;
}
.rmvp-v2-phone-group .rmvp-v2-phone-left {
  left: 0;
  transform: rotateY(12deg);
  transform-origin: right center;
}
.rmvp-v2-phone-group .rmvp-v2-phone-right {
  right: 0;
  transform: rotateY(-12deg);
  transform-origin: left center;
}

/* Navigation CTA breakpoint */
@media (min-width: 641px) {
  .rmvp-desktop-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 900;
    text-decoration: none;
  }
}

/* WordPress admin-bar breakpoint */
@media (max-width: 782px) {
  body.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .rmvp-header) {
    top: 46px;
  }
}

/* Two-column prediction cards on medium screens */
@media (max-width: 1000px) {
  .rmvp-v2-pronos .rmvp-v2-cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* Desktop composition, aligned with the navigation container */
@media (min-width: 701px) {
  .rmvp-v2-section {
    padding-block: clamp(64px, 7cqw, 110px);
  }
  .rmvp-v2-section:has(.rmvp-v2-mobile-capture) .rmvp-v2-intro {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
    gap: 48px;
  }
  .rmvp-v2-mobile-capture {
    display: block;
    width: 260px;
    margin: 0;
    justify-self: center;
    transform: rotate(5deg);
  }
  .rmvp-v2-accueil .rmvp-v2-phone-group {
    width: min(440px, 100%);
    transform: none;
    perspective: 1100px;
    isolation: isolate;
    position: absolute;
    top: 300px;
    right: 0;
    z-index: 3;
  }
  .rmvp-v2-phone-group .rmvp-v2-phone-side {
    position: absolute;
    top: 34px;
    z-index: 1;
    width: 40%;
    filter: brightness(.85);
  }
  .rmvp-v2-pronos:has(.rmvp-v2-mobile-capture) .rmvp-v2-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .rmvp-v2-pronos .rmvp-v2-mobile-capture {
    width: 220px;
    height: 300px;
    overflow: hidden;
    transform: none;
  }
  .rmvp-v2-pronos .rmvp-v2-cards {
    margin-top: 0;
  }
  .rmvp-v2-accueil {
    z-index: 1;
    padding-block: clamp(90px, 9cqw, 140px);
  }
  .rmvp-v2-accueil .rmvp-v2-wrap {
    position: relative;
  }
  .rmvp-v2-comment-ca-marche:has(.rmvp-v2-mobile-capture) .rmvp-v2-intro,
  .rmvp-v2-mvp-coins:has(.rmvp-v2-mobile-capture) .rmvp-v2-intro {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    align-items: start;
    gap: 80px;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-mobile-capture,
  .rmvp-v2-mvp-coins .rmvp-v2-mobile-capture {
    width: 240px;
    justify-self: center;
    transform: none;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-cards {
    position: relative;
    z-index: 1;
    margin-top: var(--rmvp-v2-stack-gap);
  }
  .rmvp-v2-mvp-coins .rmvp-v2-cards {
    margin-inline: auto;
    order: 2;
    width: 100%;
    margin-top: var(--rmvp-v2-stack-gap);
  }
  .rmvp-v2-mvp-coins .rmvp-v2-card {
    padding-bottom: 20px;
  }
  .rmvp-v2-mvp-coins .rmvp-v2-card p {
    margin-bottom: 0;
  }
  .rmvp-v2-mvp-coins .rmvp-v2-wrap {
    display: flex;
    flex-direction: column;
  }
  .rmvp-v2-mvp-coins .rmvp-v2-wrap > .rmvp-v2-button {
    order: 1;
    align-self: center;
    margin-top: var(--rmvp-v2-stack-gap);
    min-height: 52px;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .rmvp-v2-landing {
    width: min(var(--rmvp-v2-frame-width), calc(100% - 40px));
    max-width: none;
    margin-inline: auto;
    container-type: inline-size;
  }
  .rmvp-v2-landing .rmvp-v2-wrap {
    width: 100%;
  }
  .rmvp-v2-final {
    padding-block: 100px;
  }
  .rmvp-v2-title {
    font-size: clamp(1.8rem, 3.3cqw, 3.3rem);
  }
  .rmvp-v2-accueil .rmvp-v2-title {
    font-size: clamp(1.8rem, 3.9cqw, 3.7rem);
  }
  .rmvp-v2-final .rmvp-v2-title {
    font-size: clamp(1.7rem, 3.3cqw, 3rem);
  }
  .rmvp-v2-description {
    font-size: clamp(1.06rem, 1.65cqw, 1.4rem);
  }
  .rmvp-v2-button {
    font-size: clamp(.9rem, 1.4cqw, 1.15rem);
  }
  .rmvp-v2-background {
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-composite: intersect;
    bottom: auto;
    aspect-ratio: 1672 / 941;
  }
  .rmvp-v2-background img {
    object-fit: contain;
    object-position: center;
  }
}

/* Mobile composition */
@media (max-width: 700px) {
  .rmvp-header__inner {
    min-height: 74px;
  }
  .rmvp-v2-wrap {
    width: calc(100% - 36px);
  }
  .rmvp-v2-section {
    padding-block: 54px;
    scroll-margin-top: 105px;
  }
  .rmvp-v2-accueil {
    padding-top: 42px;
    padding-bottom: 0;
  }
  .rmvp-v2-background {
    inset: 110px 0 auto;
    height: 440px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  }
  .rmvp-v2-background img {
    object-position: var(--mobileX,70%) var(--mobileY,50%);
    filter: saturate(.9);
  }
  .rmvp-v2-accueil .rmvp-v2-background {
    top: 320px;
    height: 510px;
  }
  .rmvp-v2-intro {
    align-items: start;
  }
  .rmvp-v2-section:has(.rmvp-v2-background) .rmvp-v2-intro {
    min-height: 480px;
  }
  .rmvp-v2-accueil:has(.rmvp-v2-background) .rmvp-v2-intro {
    min-height: 790px;
  }
  .rmvp-v2-description {
    max-width: 72%;
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.55;
  }
  .rmvp-v2-final .rmvp-v2-intro {
    min-height: 0;
  }
  .rmvp-v2-final .rmvp-v2-description {
    max-width: 100%;
  }
  .rmvp-v2-section::before {
    background: linear-gradient(90deg, rgb(0 0 0 / 92%) 0%, rgb(0 0 0 / 65%) 20%, rgb(0 0 0 / 20%) 48%, transparent 75%);
  }
  .rmvp-v2-section .rmvp-v2-cards {
    position: relative;
  }
  .rmvp-v2-title, .rmvp-v2-accueil .rmvp-v2-title {
    font-size: clamp(1.45rem, 5.5vw, 2.35rem);
    letter-spacing: -.055em;
    line-height: 1.5;
  }
  .rmvp-v2-subtitle {
    margin-top: 16px;
    font-size: .7rem;
  }
  .rmvp-v2-button {
    margin-top: 24px;
    padding: 14px 18px;
    min-height: 56px;
    gap: 16px;
    font-size: .9rem;
  }
  .rmvp-v2-secondary {
    font-size: .7rem;
  }
  .rmvp-v2-cards, .rmvp-v2-pronos .rmvp-v2-cards {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
    margin-top: 32px;
  }
  .rmvp-v2-card {
    padding: 24px;
  }
  .rmvp-v2-section.has-capture:has(.rmvp-v2-background) .rmvp-v2-intro, .rmvp-v2-section.has-capture .rmvp-v2-intro {
    grid-template-columns: minmax(0,1fr);
    gap: 32px;
    min-height: 0;
  }
  .rmvp-v2-capture {
    width: min(260px,100%);
  }
  .rmvp-v2-final {
    padding-block: 70px;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-card {
    padding: 14px 8px;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-card svg {
    width: 30px;
    height: 30px;
    margin-bottom: 14px;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-number {
    width: 22px;
    height: 22px;
    font-size: .75rem;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-card h3 {
    font-size: clamp(.72rem, 2.8vw, .95rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-card p {
    margin-top: 10px;
    font-size: clamp(.7rem, 2.7vw, .9rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .rmvp-v2-pronos .rmvp-v2-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
  }
  .rmvp-v2-pronos .rmvp-v2-card {
    padding: 20px 14px;
  }
  .rmvp-v2-pronos .rmvp-v2-card h3 {
    font-size: 1.2rem;
  }
  .rmvp-v2-pronos .rmvp-v2-card p {
    font-size: .95rem;
  }
  .rmvp-v2-pronos .rmvp-v2-card-link {
    font-size: .85rem;
  }
  .rmvp-v2-mobile-capture {
    display: block;
    width: min(220px, 64vw);
    margin: 20px 8px 0 0;
    justify-self: end;
    transform: rotate(5deg);
  }
  .rmvp-v2-accueil .rmvp-v2-mobile-capture {
    margin-top: 110px;
  }
  /* The negative bottom margin compensates for transparent padding in the screenshot. */
  .rmvp-v2-accueil .rmvp-v2-phone-group {
    position: relative;
    width: min(360px, 100%);
    justify-self: center;
    margin-inline: 0;
    transform: none;
    perspective: 900px;
    isolation: isolate;
    margin-top: 170px;
    margin-bottom: -8px;
  }
  .rmvp-v2-phone-group .rmvp-v2-phone-side {
    position: absolute;
    top: 28px;
    z-index: 1;
    width: 40%;
    filter: brightness(.85);
  }
  .rmvp-v2-pronos .rmvp-v2-intro {
    gap: 32px;
  }
  .rmvp-v2-pronos .rmvp-v2-mobile-capture {
    width: min(180px, 48vw);
    height: 250px;
    overflow: hidden;
    justify-self: center;
    margin: 100px 0 0;
    transform: none;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-intro, .rmvp-v2-mvp-coins .rmvp-v2-intro {
    gap: 32px;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-mobile-capture, .rmvp-v2-mvp-coins .rmvp-v2-mobile-capture {
    width: min(180px, 48vw);
    height: 250px;
    overflow: hidden;
    justify-self: center;
    margin: 100px 0 0;
    transform: none;
  }
  .rmvp-v2-comment-ca-marche .rmvp-v2-cards, .rmvp-v2-mvp-coins .rmvp-v2-cards {
    margin-top: 0;
  }
}

/* Modern Dark typography and controls; V2 photo/phone compositions stay intact. */
.rmvp-v2-title { font-weight: 750; line-height: 1.15; }
.rmvp-v2-landing p { font-family: "Space Grotesk", var(--font-body); }
.rmvp-v2-button, .rmvp-desktop-play { border-radius: var(--radius-pixel); box-shadow: none; }
