@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/assets/fonts/barlow-condensed-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f7f4ed;
  --ink: #171613;
  --muted: #898279;
  --accent: #ff4928;
  --line: #211a121c;
  --surface: #fffaf3;
  --app-display: 'Barlow Condensed', sans-serif;
  --ease: cubic-bezier(.22,.8,.2,1);
  --app-fade-out: 160ms;
  --app-fade-in: 420ms;
  --theme-duration: 320ms;
  font-family: 'Outfit', sans-serif;
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}
[data-ready] body { transition: background-color var(--theme-duration) cubic-bezier(.4,0,.2,1), color var(--theme-duration); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
p, h1, h2, h3, h4 { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 24px; z-index: 100; transform: translateY(-200%); padding: 12px 20px; background: var(--ink); color: var(--bg); }
.skip-link:focus { transform: none; }

.page-shell {
  height: 100svh;
  height: 100dvh;
  min-height: 540px;
  display: grid;
  grid-template-rows: 86px minmax(0,1fr) 142px;
  position: relative;
  overflow: clip;
}
.header { display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px,4.7vw,80px); z-index: 20; transition: opacity var(--app-fade-in) var(--ease); }
.brand { --brand-size: 43px; position: relative; display: block; width: 118px; height: 52px; font-size: var(--brand-size); line-height: 1; }
.brand-variant { position: absolute; left: 0; top: 50%; translate: 0 -50%; display: block; width: max-content; }
.brand-revll { padding: 2px 9px 4px; opacity: 1; }
.brand-revll .brand-wordmark { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.1em; font-weight: 600; letter-spacing: -.8px; text-transform: uppercase; }
.brand-frame { position: absolute; inset: 0; transition: transform .35s var(--ease); }
.brand-frame i { position: absolute; width: 8px; height: 8px; border: 2px solid #ff4928; }
.brand-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brand-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.brand-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.brand-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.brand-bloop { display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(5px) scale(.95); }
.brand-bloop .brand-wordmark { display: block; padding-right: .1em; font-weight: 650; letter-spacing: -3px; color: transparent; background: linear-gradient(115deg,#fff5df,#fff7fc 45%,#ded0ff 78%,#c9f4ff); background-clip: text; -webkit-background-clip: text; }
.brand-bubbles { position: relative; flex: 0 0 21px; align-self: flex-start; width: 21px; height: 23px; transition: transform .5s var(--ease); }
.brand-bubbles i { position: absolute; width: 14px; height: 14px; left: 0; top: 0; border-radius: 36%; rotate: -12deg; background: radial-gradient(ellipse at 15% 8%,#fff5b3,#ffbc84 18%,#ff7ed0 40%,transparent 70%), radial-gradient(ellipse at 90% 90%,#5decff,#235bff 30%,#8530ff 70%); box-shadow: inset 0 1px 1px #fff, inset -1px -1px 2px #9bedffb3, 0 0 9px #ce75ff30; }
.brand-bubbles i:nth-child(2) { width: 8px; height: 8px; left: auto; top: auto; right: 0; bottom: 0; rotate: 15deg; }
.brand:hover .brand-frame { transform: scale(1.05); }
.brand:hover .brand-bubbles { transform: translateY(-2px) rotate(8deg); }
.studio-menu { position: relative; }
.menu-toggle { display: flex; align-items: center; gap: 18px; min-height: 60px; padding: 6px 0 6px 16px; background: transparent; font-size: 16px; }
.menu-symbol { width: 48px; height: 48px; display: grid; align-content: center; justify-items: center; flex: none; gap: 6px; border: 1px solid var(--line); padding: 14px; transition: border-radius .6s, border-color .6s; }
.menu-symbol i { display: block; background: var(--ink); height: 2px; width: 18px; transition: transform .25s; }
.menu-toggle[aria-expanded=true] .menu-symbol i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded=true] .menu-symbol i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-width: calc(100vw - 38px); padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 60px #00000012; animation: panel-in .25s var(--ease); }
.menu-eyebrow { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 15px; }
.menu-panel > a { display: flex; justify-content: space-between; padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.menu-panel > a:last-of-type { border-bottom: 0; }
.menu-note { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.menu-panel > a > span { color: var(--muted); transition: transform .2s; }
.menu-panel > a:hover > span { color: var(--accent); transform: translate(3px,-3px); }

/* La galerie reste centrée sur le viewport, indépendamment du QR. */
.main { min-height: 0; display: grid; grid-template-rows: 99px minmax(0,1fr); position: relative; outline: 0; touch-action: pan-x; transition: opacity var(--app-fade-in) var(--ease); }
.app-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 3; transition: transform var(--app-fade-in) var(--ease); }
.title-area { position: relative; height: 61px; width: 240px; display: grid; place-items: center; }
.title-area h1 { font-family: var(--app-display); font-size: 63px; font-weight: 600; line-height: 1; letter-spacing: -2.7px; }
.revll-wordmark { position: absolute; width: 176px; height: 59px; object-fit: contain; }
.title-area:has(.revll-wordmark:not([hidden])) h1 { opacity: 0; }
.headline { font-family: var(--app-display); font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: .15px; margin-top: 7px; text-align: center; }
.showcase { min-height: 0; position: relative; width: 100%; z-index: 2; }
.phone-gallery { width: 670px; height: 530px; position: absolute; top: 50%; left: 50%; translate: -50% -50%; transform: scale(var(--gallery-scale,.8)); transform-origin: center; transition: transform var(--app-fade-in) var(--ease); }
.phone-position { position: absolute; --angle: 0deg; --phone-scale: 1; transform: rotate(var(--angle)) scale(var(--phone-scale)); transform-origin: 50% 70%; filter: drop-shadow(0 23px 23px #46302516); animation: phone-arrive .48s var(--ease) both; animation-delay: var(--delay,0ms); }
.phone-position-0 { left: 58px; top: 54px; --angle: -12deg; --phone-scale: .87; --delay: 40ms; z-index: 1; }
.phone-position-1 { left: 217px; top: 10px; z-index: 3; filter: drop-shadow(0 30px 25px #31211620); }
.phone-position-2 { left: 376px; top: 54px; --angle: 12deg; --phone-scale: .87; --delay: 80ms; z-index: 2; }
.construction-status { position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: 4; color: #fff7ff; font-size: 20px; font-weight: 450; letter-spacing: -.3px; text-shadow: 0 2px 12px #110a1dcc; white-space: nowrap; transition: opacity .24s; }
.download-card { position: absolute; z-index: 5; right: max(6vw,calc(50% - 480px)); top: 56%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 0; background: transparent; transition: opacity .24s; }
.download-qr { padding: 0; background: transparent; }
.qr-code { width: 80px; height: 80px; padding: 8px; display: block; background: #fffaf3; position: relative; transition: border-radius .6s, box-shadow .6s, transform .3s; }
.qr-code svg, .qr-code img { display: block; width: 100%; height: 100%; color: #211c18; }
.download-label { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.download-arrow { color: var(--accent); transition: transform .2s; }
.download-label:hover .download-arrow { transform: translate(3px,-3px); }
.download-card:hover .qr-code { transform: translateY(-3px); }
[data-app=revll] .qr-code { background: linear-gradient(var(--accent),var(--accent)) left top / 12px 2px no-repeat, linear-gradient(var(--accent),var(--accent)) left top / 2px 12px no-repeat, linear-gradient(var(--accent),var(--accent)) right bottom / 12px 2px no-repeat, linear-gradient(var(--accent),var(--accent)) right bottom / 2px 12px no-repeat, #fffaf3; }

/* Quatre coins reprennent le cadre orange du logo Revll. */
.brand-art { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.revll-corners { position: absolute; width: min(1000px,calc(100% - 112px)); top: 25px; bottom: 28px; left: 50%; translate: -50%; opacity: 1; }
.revll-corners i { position: absolute; width: 29px; height: 29px; border: 3px solid var(--accent); }
.revll-corners i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.revll-corners i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.revll-corners i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.revll-corners i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }

/* Les volumes irisés sont dessinés en CSS, comme les bulles du logo Bloop. */
.bloop-bubbles { position: absolute; inset: 0; opacity: 0; transform: translateY(20px) scale(.95); }
.bloop-bubbles > i { position: absolute; display: block; border-radius: 34%; background: radial-gradient(ellipse at 10% 5%,#fff6b1 0%,#ffbe74 19%,#ff79cb 42%,transparent 68%), radial-gradient(ellipse at 100% 100%,#5cecff 0%,#155bff 24%,#6125ff 59%,#ce75ff 90%); box-shadow: inset 0 2px 3px #ffffffc9, inset 2px 0 5px #fff7, inset -2px -3px 5px #84e7ffad, 0 0 28px #a666ff18, 0 0 7px #f796e71f; opacity: .94; }
.bloop-bubbles > i::after { content: ''; position: absolute; inset: 7%; border-radius: inherit; background: linear-gradient(160deg,#fff9 0%,#fff1 22%,transparent 55%); border-top: 2px solid #fffd; }
.bloop-bubbles > i:nth-child(1) { width: 124px; height: 124px; left: max(7%,calc(50% - 490px)); top: 21%; rotate: -13deg; animation: bubble-float 9s ease-in-out infinite; }
.bloop-bubbles > i:nth-child(2) { width: 76px; height: 76px; left: max(14%,calc(50% - 370px)); bottom: 5%; rotate: 14deg; animation: bubble-float 10s 1s ease-in-out infinite reverse; }
/* Garder la grande bulle à l’écart de la galerie centrale. */
.bloop-bubbles > i:nth-child(3) { width: auto; height: clamp(48px,calc(44% - 116px),114px); aspect-ratio: 184 / 114; right: max(5%,calc(50% - 535px)); top: calc(56% + 100px); rotate: -10deg; border-radius: 38px; animation: bubble-float 11s 2s ease-in-out infinite; }
.bloop-bubbles > i:nth-child(4) { width: 60px; height: 60px; right: max(17%,calc(50% - 340px)); top: 12%; rotate: 10deg; animation: bubble-float 8s 1s ease-in-out infinite reverse; }

[data-app=bloop] { --bg: #0b0a10; --ink: #f7f3fa; --muted: #968d9f; --accent: #c6a4fa; --line: #e8dcff1c; --surface: #19151f; --app-display: 'Outfit', sans-serif; color-scheme: dark; }
[data-app=bloop] .brand-revll { opacity: 0; transform: translateY(-5px) scale(.95); }
[data-app=bloop] .brand-bloop { opacity: 1; transform: none; }
[data-app=bloop] .title-area h1 { font-weight: 650; letter-spacing: -3.5px; font-size: 59px; }
[data-app=bloop] .headline { font-size: 17px; font-weight: 400; letter-spacing: -.3px; }
[data-app=bloop] .revll-corners { opacity: 0; transform: scale(1.03); }
[data-app=bloop] .bloop-bubbles { opacity: 1; transform: none; }
[data-app=bloop] .menu-symbol { border-radius: 50%; }
[data-app=bloop] .menu-panel { border-radius: 22px; box-shadow: 0 20px 60px #0003; }
[data-app=bloop] .qr-code { border-radius: 14px; }
[data-app=bloop] .phone { box-shadow: inset 0 0 0 2px #eeedf1, 0 3px 1px #8a8593, 0 6px 0 #77717f; background: linear-gradient(130deg,#a19ba9,#e6e2eb 20%,#c4bfcd 70%,#a49baf); }
[data-app=bloop] .phone-position { filter: drop-shadow(0 25px 25px #0004); }

.footer { position: relative; z-index: 5; }
/* Duo magnétique : le fond mobile se cale sous l’icône sélectionnée. */
.app-selector { position: relative; width: 174px; max-width: calc(100% - 40px); height: 100%; margin: 0 auto; --active-app: 0; }
.app-options { position: absolute; top: 10px; left: 0; width: 100%; height: 86px; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 28px; background: color-mix(in srgb,var(--ink) 6%,transparent); transition: background .65s, border-color .65s; }
.selector-highlight { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 2); border-radius: 22px; background: color-mix(in srgb,var(--accent) 17%,var(--surface)); box-shadow: 0 3px 12px #00000012, inset 0 1px 0 #ffffff40; transform: translateX(calc(var(--active-app) * 100%)); transition: transform .65s cubic-bezier(.2,.8,.2,1.06), background .65s, box-shadow .65s; pointer-events: none; }
.app-option { background: transparent; display: grid; place-items: center; padding: 0; position: relative; z-index: 1; border-radius: 20px; }
.app-icon { width: 64px; height: 64px; border-radius: 18px; display: block; position: relative; box-shadow: 0 4px 12px #211e1b18; opacity: .45; transform: scale(.86); transition: transform .65s var(--ease), opacity .65s, box-shadow .65s; }
.app-icon img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.app-option.is-active .app-icon { opacity: 1; transform: scale(1); }
.app-option:hover .app-icon { opacity: 1; }
.app-name { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50%; font-size: 10px; line-height: 1.4; color: var(--muted); white-space: nowrap; transition: color .6s; }
.app-option.is-active .app-name { color: var(--ink); }
[data-app=bloop] .selector-highlight { box-shadow: 0 3px 14px #00000030, inset 0 1px 0 #ffffff1f; }
/* Sortie commune, changement de fond à vide, puis arrivée du nouvel univers. */
.is-switching .header, .is-switching .main { opacity: 0; pointer-events: none; transition: opacity var(--app-fade-out) ease-in; }
.is-switching .app-copy { transform: translateY(5px); transition-duration: var(--app-fade-out); }
.is-switching .phone-gallery { transform: scale(calc(var(--gallery-scale,.8)*.985)) translateY(8px); transition-duration: var(--app-fade-out); }
.is-switching .phone-position { animation-play-state: paused; }

.info-dialog { border: 1px solid var(--line); padding: 45px; width: 470px; max-width: calc(100% - 32px); max-height: 85dvh; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 100px #0002; overflow: auto; }
.info-dialog[open] { animation: panel-in .3s var(--ease); }
.info-dialog::backdrop { background: #17121d50; backdrop-filter: blur(10px); }
.dialog-close { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 32px; height: 32px; background: transparent; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.dialog-icon { width: 60px; height: 60px; display: block; border-radius: 17px; margin-bottom: 24px; }
.dialog-eyebrow { font-size: 8px; letter-spacing: 2px; color: var(--muted); margin-bottom: 13px; }
.info-dialog h2 { font-size: 32px; line-height: 1.15; letter-spacing: -1.2px; font-weight: 550; margin-bottom: 16px; }
.dialog-description { font-size: 12px; line-height: 1.9; color: var(--muted); }
.dialog-development { margin-top: 20px; color: var(--ink); font-size: 12px; line-height: 1.7; }
.dialog-links { margin-top: 25px; }
.dialog-links > a { font-size: 12px; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dialog-links > a > span { color: var(--accent); }
.dialog-note { font-size: 9px; color: var(--muted); line-height: 1.8; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.dialog-back { background: transparent; padding: 0; font-size: 10px; color: var(--muted); margin-bottom: 23px; }
.dialog-back:hover { color: var(--accent); }
.dialog-qr { display: block; width: 165px; height: 165px; padding: 15px; background: #fff9f0; border-radius: 13px; margin: 25px auto; }
.dialog-qr svg, .dialog-qr img { display: block; width: 100%; height: 100%; color: #292620; }
[data-app=bloop] .info-dialog { border-radius: 24px; }
[data-app=bloop] .dialog-close { border-radius: 50%; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 15px; background: var(--surface); z-index: 50; font-size: 12px; text-align: center; }

@keyframes phone-arrive { from { opacity: 0; transform: translateY(18px) rotate(var(--angle)) scale(calc(var(--phone-scale)*.98)); } to { opacity: 1; transform: translateY(0) rotate(var(--angle)) scale(var(--phone-scale)); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(-7px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bubble-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (min-width: 1600px) and (min-height: 900px) {
  .page-shell { grid-template-rows: 100px minmax(0,1fr) 160px; }
  .main { grid-template-rows: 110px minmax(0,1fr); }
  .revll-corners { width: 1100px; top: 30px; bottom: 45px; }
}
@media (max-width: 900px) {
  .page-shell { grid-template-rows: 76px minmax(0,1fr) 137px; }
  .header { padding: 0 30px; }
  .brand { --brand-size: 37px; }
  .download-card { right: 30px; top: 24px; translate: none; gap: 7px; }
  .qr-code { width: 51px; height: 51px; padding: 6px; }
  .download-label { font-size: 9px; }
  .revll-corners { width: calc(100% - 66px); top: 14px; bottom: 28px; }
  .revll-corners i { width: 23px; height: 23px; }
  .bloop-bubbles > i:nth-child(1) { width: 88px; height: 88px; left: 5%; top: 30%; }
  .bloop-bubbles > i:nth-child(2) { left: 8%; bottom: 7%; width: 56px; height: 56px; }
  .bloop-bubbles > i:nth-child(3) { width: 135px; height: 85px; right: 2%; top: auto; bottom: 12%; border-radius: 28px; }
  .bloop-bubbles > i:nth-child(4) { right: 19%; top: 17%; width: 40px; height: 40px; }
}
@media (max-width: 650px) {
  .page-shell { grid-template-rows: 74px minmax(0,1fr) 132px; }
  .header { padding: 0 24px; }
  .brand { --brand-size: 36px; width: 105px; }
  .menu-toggle { min-height: 56px; padding-left: 12px; font-size: 14px; gap: 12px; }
  .menu-symbol { width: 44px; height: 44px; padding: 12px; }
  .main { grid-template-rows: 100px minmax(0,1fr); }
  .app-copy { justify-content: flex-start; }
  .title-area { width: 190px; height: 63px; }
  .revll-wordmark { width: 158px; height: 53px; }
  .title-area h1, [data-app=bloop] .title-area h1 { font-size: 51px; letter-spacing: -2.8px; }
  .headline { font-size: 17px; margin: 4px 0 0; max-width: 270px; }
  [data-app=bloop] .headline { font-size: 13px; max-width: 260px; }
  .download-card { top: 12px; right: 22px; }
  .qr-code { width: 39px; height: 39px; padding: 5px; }
  .construction-status { font-size: 17px; }
  .download-label { display: none; }
  [data-app=bloop] .download-label { display: flex; gap: 4px; }
  .revll-corners { width: calc(100% - 40px); top: 126px; bottom: 22px; }
  .revll-corners i { width: 19px; height: 19px; border-width: 2px; }
  .bloop-bubbles > i:nth-child(1) { width: 71px; height: 71px; left: -22px; top: 32%; }
  .bloop-bubbles > i:nth-child(2) { width: 40px; height: 40px; left: 9%; bottom: 5%; }
  .bloop-bubbles > i:nth-child(3) { width: 102px; height: 67px; right: -34px; bottom: 10%; border-radius: 24px; }
  .bloop-bubbles > i:nth-child(4) { width: 35px; height: 35px; right: 11%; top: 22%; }
  .app-selector { width: 150px; }
  .app-options { height: 76px; border-radius: 25px; }
  .selector-highlight { border-radius: 19px; }
  .app-icon { width: 52px; height: 52px; border-radius: 15px; }
  .app-name { top: calc(100% + 10px); font-size: 9px; }
  .info-dialog { padding: 36px 29px; }
  .info-dialog h2 { font-size: 28px; }
  .dialog-description { font-size: 11px; }
  .menu-panel { width: 300px; padding: 27px; }
}
@media (max-width: 370px) {
  .header { padding: 0 19px; }
  .download-card { right: 18px; }
  .qr-code { width: 34px; height: 34px; padding: 4px; }
}
@media (max-height: 700px) {
  .page-shell { grid-template-rows: 62px minmax(0,1fr) 118px; }
  .main { grid-template-rows: 85px minmax(0,1fr); }
  .title-area { height: 51px; }
  .revll-wordmark { width: 150px; height: 50px; }
  .title-area h1, [data-app=bloop] .title-area h1 { font-size: 46px; }
  .headline { margin-top: 3px; font-size: 18px; }
  [data-app=bloop] .headline { font-size: 14px; }
  .revll-corners { top: 14px; bottom: 18px; }
}
@media (max-width: 650px) and (max-height: 700px) {
  .page-shell { grid-template-rows: 58px minmax(0,1fr) 112px; }
  .main { grid-template-rows: 84px minmax(0,1fr); }
  .headline { font-size: 15px; }
  [data-app=bloop] .headline { font-size: 12px; }
  .download-card { top: 8px; }
  .revll-corners { top: 105px; bottom: 19px; }
  .app-options { top: 8px; height: 70px; }
  .app-icon { width: 48px; height: 48px; border-radius: 14px; }
}
@media (max-height: 539px) {
  body { overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
