/* Charger après les feuilles existantes. Portée limitée à la page d’ouverture RFD. */
html[data-rfd-page="ouverture"] {
  --rfd-opening-line: #2b2521;
  --rfd-opening-surface: #0e0d0d;
  --rfd-opening-soft: #a9a19a;
}

html[data-rfd-page="ouverture"] body {
  background: #090909;
}

html[data-rfd-page="ouverture"] .launch-shell {
  width: min(1320px, calc(100% - 96px));
}

html[data-rfd-page="ouverture"] .launch-header {
  padding-block: 23px;
  border-color: var(--rfd-opening-line);
}

html[data-rfd-page="ouverture"] .wordmark {
  gap: 14px;
}

html[data-rfd-page="ouverture"] .wordmark-code {
  font-size: 40px;
}

html[data-rfd-page="ouverture"] .rfd-opening-header-emblem {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px #ff5f0026);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html[data-rfd-page="ouverture"] .rfd-opening-header-emblem {
    transition: filter 180ms ease-out;
  }

  html[data-rfd-page="ouverture"] .wordmark:hover .rfd-opening-header-emblem {
    filter: drop-shadow(0 0 8px #ff5f0066);
  }
}

html[data-rfd-page="ouverture"] .header-location {
  color: var(--rfd-opening-soft);
}

html[data-rfd-page="ouverture"] .launch-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  gap: clamp(30px, 5vw, 86px);
  padding-block: clamp(42px, 6.4vw, 94px) 48px;
}

html[data-rfd-page="ouverture"] .launch-copy h1 {
  font-size: clamp(56px, 7.2vw, 111px);
  line-height: .97;
  letter-spacing: -.085em;
  margin-bottom: 24px;
}

html[data-rfd-page="ouverture"] .launch-copy > .eyebrow {
  color: #ff8a4b;
  margin-bottom: 23px;
}

html[data-rfd-page="ouverture"] .launch-copy > .eyebrow > span {
  box-shadow: 0 0 12px #ff5f0066;
}

html[data-rfd-page="ouverture"] .launch-copy .lead {
  color: #eee7e1;
  font-weight: 650;
  line-height: 1.42;
  margin-bottom: 21px;
}

html[data-rfd-page="ouverture"] .launch-copy .intro {
  max-width: 49ch;
  font-size: 15px;
  line-height: 1.8;
}

html[data-rfd-page="ouverture"] .launch-date {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #3c2c21;
  background: #130e0b;
  margin-top: 24px;
  padding: 10px 15px;
  gap: 13px;
  border-radius: 8px;
}

html[data-rfd-page="ouverture"] .date-line {
  flex: 0 0 2px;
  border-radius: 3px;
}

html[data-rfd-page="ouverture"] .launch-date .timezone {
  color: var(--rfd-opening-soft);
}

html[data-rfd-page="ouverture"] .rfd-opening-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-block: 18px 17px;
}

html[data-rfd-page="ouverture"] .rfd-opening-hero-links .button {
  min-height: 46px;
  width: auto;
  padding: 9px 16px;
}

html[data-rfd-page="ouverture"] .rfd-opening-hero-links .email-link {
  border: 0;
  padding-inline: 10px;
}

html[data-rfd-page="ouverture"] .launch-emblem {
  --rfd-opening-rhino-width: 66%;
  padding: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  text-align: left;
}

html[data-rfd-page="ouverture"] .rhino-system {
  grid-column: 1 / -1;
  aspect-ratio: 1.04;
  border: 1px solid #32251e;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 57%, #30150b 0%, #140f0c 39%, transparent 70%),
    linear-gradient(150deg, #151211, #080808 74%);
}

html[data-rfd-page="ouverture"] .rhino-system::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 49.8%, #f6cdb113 50%, transparent 50.2%),
    linear-gradient(90deg, transparent 49.8%, #f6cdb110 50%, transparent 50.2%);
  mask-image: radial-gradient(ellipse, #000 10%, transparent 68%);
  pointer-events: none;
}

html[data-rfd-page="ouverture"] .system-halo {
  inset: 10%;
  background: radial-gradient(ellipse, #8d33182b, #ff5f000c 42%, transparent 69%);
}

html[data-rfd-page="ouverture"] .launch-rhino {
  width: var(--rfd-opening-rhino-width);
  filter: drop-shadow(0 19px 28px #0009) drop-shadow(0 0 17px #ff5f001d);
}

html[data-rfd-page="ouverture"] .orbit {
  inset: 8.5% 12.5%;
  border-color: #ff905527;
  border-top-color: #ff8b4d93;
}

html[data-rfd-page="ouverture"] .orbit-one {
  animation-duration: 42s;
}

html[data-rfd-page="ouverture"] .orbit-two {
  inset: 17% 20%;
  border-color: #fff3d913;
  border-bottom-color: #ffab6f35;
  animation-duration: 56s;
}

html[data-rfd-page="ouverture"] .satellite-orange {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 16px #ff5f0077;
}

html[data-rfd-page="ouverture"] .satellite-pearl {
  width: 5px;
  height: 5px;
}

html[data-rfd-page="ouverture"] .emblem-caption {
  margin: 0;
  padding-left: 2px;
  line-height: 1.6;
  font-weight: 750;
  color: var(--rfd-opening-soft);
}

html[data-rfd-page="ouverture"] .motion-control {
  justify-self: start;
  margin: 0;
  border-color: #3f332b;
  border-radius: 6px;
  font-size: 11px;
}

html[data-rfd-page="ouverture"] .motion-control:hover {
  border-color: #c17551;
}

html[data-rfd-page="ouverture"] .countdown-section {
  border: 1px solid var(--rfd-opening-line);
  border-radius: 13px;
  background: var(--rfd-opening-surface);
  padding: 23px 27px 26px;
}

html[data-rfd-page="ouverture"] .countdown-heading > .eyebrow {
  color: #ff8a4b;
}

html[data-rfd-page="ouverture"] .countdown {
  gap: 9px;
  margin-top: 17px;
}

html[data-rfd-page="ouverture"] .time-unit {
  justify-content: center;
  padding: 12px 8px;
  min-height: 75px;
  border: 1px solid #302722;
  background: linear-gradient(155deg, #151210, #0c0b0b);
  border-radius: 7px;
}

html[data-rfd-page="ouverture"] .time-value {
  font-size: clamp(35px, 4vw, 53px);
  line-height: 1;
  color: #f3ece8;
}

html[data-rfd-page="ouverture"] .launch-contact {
  gap: 30px;
  align-items: end;
  padding-block: 60px 52px;
}

html[data-rfd-page="ouverture"] .launch-contact h2 {
  font-size: clamp(29px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: -.06em;
}

html[data-rfd-page="ouverture"] .button-primary {
  border: 1px solid #ff8a4b;
  font-weight: 800;
}

html[data-rfd-page="ouverture"] .launch-footer {
  border-color: var(--rfd-opening-line);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced .launch-rhino {
    animation: rfd-opening-reveal 1050ms cubic-bezier(.2,.7,.2,1) both;
  }

  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced .launch-copy {
    animation: rfd-opening-copy 760ms 360ms cubic-bezier(.2,.7,.2,1) both;
  }

  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced .system-halo {
    animation: rfd-opening-breathe 12s 1800ms ease-in-out infinite;
  }

  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced .rhino-system::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mask: url("rfd-logo.webp") center / var(--rfd-opening-rhino-width) auto no-repeat;
    background: linear-gradient(112deg, transparent 42%, #ffd8b18c 48%, #fff3df70 50%, transparent 55%);
    background-size: 285% 100%;
    background-position: 100% 50%;
    mix-blend-mode: screen;
    opacity: 0;
    animation: rfd-opening-reflection 1450ms 560ms ease-out both;
  }

  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced.motion-paused .launch-rhino,
  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced.motion-paused .launch-copy {
    animation-play-state: paused;
  }

  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced.motion-paused .system-halo,
  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced.motion-paused .rhino-system::after {
    animation-play-state: paused;
  }

  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced:has(#launch-motion:disabled) .launch-rhino,
  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced:has(#launch-motion:disabled) .launch-copy,
  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced:has(#launch-motion:disabled) .system-halo,
  html[data-rfd-page="ouverture"] body.rfd-opening-enhanced:has(#launch-motion:disabled) .rhino-system::after {
    animation: none;
  }
}

@keyframes rfd-opening-reveal {
  from { opacity: .58; transform: translateY(7px) scale(.975); }
  to { opacity: 1; transform: none; }
}

@keyframes rfd-opening-copy {
  from { opacity: .85; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes rfd-opening-breathe {
  0%, 100% { opacity: .74; transform: scale(.97); }
  50% { opacity: 1; transform: scale(1.045); }
}

@keyframes rfd-opening-reflection {
  0% { opacity: 0; background-position: 100% 50%; }
  28% { opacity: .62; }
  100% { opacity: 0; background-position: 0% 50%; }
}

@media (max-width: 900px) {
  html[data-rfd-page="ouverture"] .launch-shell {
    width: calc(100% - 54px);
  }

  html[data-rfd-page="ouverture"] .launch-hero {
    gap: 23px;
  }

  html[data-rfd-page="ouverture"] .launch-emblem {
    --rfd-opening-rhino-width: 70%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  html[data-rfd-page="ouverture"] .emblem-caption {
    padding: 0;
  }

  html[data-rfd-page="ouverture"] .motion-control {
    justify-self: center;
  }

  html[data-rfd-page="ouverture"] .launch-copy h1 {
    font-size: clamp(49px, 8.5vw, 70px);
  }
}

@media (max-width: 640px) {
  html[data-rfd-page="ouverture"] .launch-shell {
    width: calc(100% - 34px);
  }

  html[data-rfd-page="ouverture"] .launch-header {
    padding-block: 13px;
  }

  html[data-rfd-page="ouverture"] .wordmark-code {
    font-size: 31px;
  }

  html[data-rfd-page="ouverture"] .launch-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 32px 26px;
  }

  html[data-rfd-page="ouverture"] .launch-copy {
    display: contents;
  }

  html[data-rfd-page="ouverture"] .launch-copy > .eyebrow {
    grid-row: 1;
  }

  html[data-rfd-page="ouverture"] .launch-copy h1 {
    grid-row: 2;
  }

  html[data-rfd-page="ouverture"] .launch-copy .lead {
    grid-row: 3;
  }

  html[data-rfd-page="ouverture"] .rfd-opening-hero-links {
    grid-row: 4;
    margin-block: 0 4px;
  }

  html[data-rfd-page="ouverture"] .launch-emblem {
    grid-row: 5;
  }

  html[data-rfd-page="ouverture"] .launch-copy .intro {
    grid-row: 6;
    margin-top: 10px;
  }

  html[data-rfd-page="ouverture"] .launch-date {
    grid-row: 7;
    margin-top: 3px;
  }

  html[data-rfd-page="ouverture"] .launch-copy h1 {
    font-size: clamp(46px, 12.7vw, 75px);
    margin-bottom: 0;
  }

  html[data-rfd-page="ouverture"] .launch-copy > .eyebrow {
    margin-bottom: 0;
  }

  html[data-rfd-page="ouverture"] .launch-copy .lead {
    font-size: 19px;
    margin-bottom: 0;
  }

  html[data-rfd-page="ouverture"] .launch-emblem {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: center;
    gap: 8px;
    --rfd-opening-rhino-width: 56%;
  }

  html[data-rfd-page="ouverture"] .rhino-system {
    aspect-ratio: 1.27;
  }

  html[data-rfd-page="ouverture"] .orbit {
    inset: 6% 15%;
  }

  html[data-rfd-page="ouverture"] .orbit-two {
    inset: 13% 21%;
  }

  html[data-rfd-page="ouverture"] .motion-control {
    justify-self: start;
    max-width: 100%;
    padding-inline: 8px;
  }

  html[data-rfd-page="ouverture"] .countdown-section {
    padding: 15px 12px;
  }

  html[data-rfd-page="ouverture"] .countdown {
    gap: 5px;
  }

  html[data-rfd-page="ouverture"] .time-unit {
    padding: 7px 3px;
    min-height: 65px;
  }

  html[data-rfd-page="ouverture"] .time-value {
    font-size: clamp(25px, 8vw, 38px);
  }

  html[data-rfd-page="ouverture"] .launch-contact {
    padding-block: 37px 29px;
  }

  html[data-rfd-page="ouverture"] .rfd-faq-launcher {
    width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }

  html[data-rfd-page="ouverture"] .rfd-faq-launcher > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  @media (prefers-reduced-motion: no-preference) {
    html[data-rfd-page="ouverture"] body.rfd-opening-enhanced .rhino-system::after,
    html[data-rfd-page="ouverture"] body.rfd-opening-enhanced .system-halo {
      animation: none;
    }
  }
}

@media print {
  html[data-rfd-page="ouverture"] body,
  html[data-rfd-page="ouverture"] .launch-date,
  html[data-rfd-page="ouverture"] .countdown-section {
    background: #fff;
  }

  html[data-rfd-page="ouverture"] .launch-shell {
    width: 100%;
  }

  html[data-rfd-page="ouverture"] .rfd-opening-hero-links {
    display: none;
  }

  html[data-rfd-page="ouverture"] .launch-copy > .eyebrow,
  html[data-rfd-page="ouverture"] .launch-copy .lead,
  html[data-rfd-page="ouverture"] .launch-date .timezone,
  html[data-rfd-page="ouverture"] .countdown-heading > .eyebrow {
    color: #111;
  }
}
