/* VIAZO — avant-page vidéo (intro.php), v3.4. Textes en Poppins (polices dans assets/fonts/). */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-ext-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

/* Vietnamien : Poppins n'a pas les accents empilés (ế, ệ…), Be Vietnam Pro prend le relais */
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-vietnamese-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-vietnamese-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Mise en page : la vidéo occupe toute la largeur ; en paysage elle remplit l'écran et le formulaire bêta est posé en bas ;
   en portrait (téléphone) la vidéo garde son format 16:9 et le formulaire passe dessous. */
body.intro {
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .28);
  --neon: #3DFF8F;
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--tx);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.intro[data-lang="vi"] { font-family: "Be Vietnam Pro", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.intro button, body.intro input { font-family: inherit; }

/* Barre du haut : logo, trois langues en boutons transparents, « Passer l'intro » */
.i-top {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(14, 15, 20, .55) 0%, rgba(14, 15, 20, 0) 100%);
}
.i-logo { justify-self: start; display: inline-flex; }
.i-logo img { height: 26px; width: auto; display: block; }
.i-langs { display: flex; gap: 8px; }
.i-lang {
  display: inline-grid; place-items: center;
  min-width: 52px; padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: .08em;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
a.i-lang:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); transform: translateY(-1px); }
.i-lang.on { border-color: #fff; background: rgba(255, 255, 255, .18); }
.i-skip {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease;
}
.i-skip:hover { border-color: var(--glass-line); background: var(--glass); }
.i-lang:focus-visible, .i-skip:focus-visible, .i-sound:focus-visible, .i-enter:focus-visible, .i-replay:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Vidéo */
.i-film { position: relative; width: 100%; background: #000; }
.i-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }

.i-sound {
  position: absolute; z-index: 15;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(14, 15, 20, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.i-sound .ic-on { display: none; }
.i-sound[aria-pressed="true"] .ic-on { display: block; }
.i-sound[aria-pressed="true"] .ic-off { display: none; }
.i-sound:hover { border-color: rgba(255, 255, 255, .55); }

/* Fin de la vidéo : entrer sur le site ou revoir */
.i-end {
  position: absolute; inset: 0; z-index: 12;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  background: rgba(14, 15, 20, .35);
  animation: iFade .5s ease both;
}
.i-end[hidden] { display: none; }
.i-enter {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  background: var(--grad); color: #0E0F14; text-decoration: none;
  font-weight: 800; font-size: clamp(16px, 1.6vw, 20px);
  box-shadow: 0 12px 40px rgba(228, 76, 255, .35);
  transition: transform .15s ease;
}
.i-enter:hover { transform: translateY(-2px); }
.i-replay {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--glass-line); background: var(--glass); color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer;
}
@keyframes iFade { from { opacity: 0; } }

/* Bêta-testeurs */
.i-beta {
  position: relative; z-index: 18;
  padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--bg);
}
.i-form {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px 28px; align-items: center;
}
.i-form .wl-title { font-family: inherit; font-weight: 800; font-size: clamp(19px, 2vw, 24px); color: #fff; }
.i-form .wl-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--neon); box-shadow: 0 0 12px rgba(61, 255, 143, .8); }
.i-form .wl-sub { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.i-form .wl-row { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
.i-form .wl-row button { background: var(--grad); color: #0E0F14; font-weight: 800; }
.i-form .wl-legal { color: rgba(255, 255, 255, .62); }
.i-beta-txt, .i-beta-in { min-width: 0; }

/* Paysage : la vidéo remplit l'écran, le formulaire est posé en bas sur un dégradé */
@media (orientation: landscape) and (min-width: 700px) {
  .i-film { height: 100svh; }
  .i-film video { height: 100%; aspect-ratio: auto; }
  .i-beta {
    position: fixed; left: 0; right: 0; bottom: 0;
    padding-top: 46px;
    background: linear-gradient(180deg, rgba(14, 15, 20, 0) 0%, rgba(14, 15, 20, .82) 42%, rgba(14, 15, 20, .94) 100%);
  }
  .i-sound { bottom: auto; top: calc(74px + env(safe-area-inset-top, 0px)); }
  .ck-bar { bottom: 150px; }
}

/* Téléphone */
@media (max-width: 699px), (orientation: portrait) {
  .i-top { position: relative; background: var(--bg); grid-template-columns: auto 1fr auto; }
  .i-langs { justify-self: center; gap: 6px; }
  .i-lang { min-width: 44px; padding: 7px 10px; font-size: 13px; }
  .i-logo img { height: 22px; }
  .i-skip { padding: 7px 4px; font-size: 13px; }
  .i-sound { bottom: 10px; padding: 7px 11px; font-size: 12.5px; }
  .i-form { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .i-logo { display: none; }
  .i-top { grid-template-columns: 1fr auto; }
  .i-langs { justify-self: start; }
  .i-sound span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .i-end { animation: none; }
}
