/* Page « BoujouZik » (1.158, la musique d'abord en 1.167) : /votre-application/. Balisage : page-votre-application.php ; script : assets/js/application.js ; textes : inc/application.php.
   Un seul bloc « .app » : la bascule Mariage ↔ Anniversaire (data-mode) montre l'un ou l'autre des deux textes (span[data-for]) et change les captures.
   Les couleurs viennent des variables du thème (--gold, --cream, --panel, --line-2…) : elles s'adaptent d'elles-mêmes aux parties « brun nuit » (.tone-dark). */

.app { --app-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
.app [data-for][hidden] { display: none; }
.app[data-mode="bd"] [data-for="wed"] { display: none; }
.app[data-mode="wed"] [data-for="bd"] { display: none; }
/* Le bouton « Essayer » n'a de sens qu'avec JavaScript (application.js ajoute .app--js). */
.app:not(.app--js) [data-app-demo], .app:not(.app--js) .app-device__tap { display: none; }
.app-lead { margin: 14px 0 0; max-width: 640px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.section-head--center .app-lead { margin-left: auto; margin-right: auto; }
.app-hint { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

/* =============================== Téléphone (cadre commun) =============================== */
.app-device { --dw: 280px; position: relative; width: var(--dw); max-width: 100%; margin: 0 auto; }
.app-device__bezel { position: relative; padding: 9px; border-radius: 42px; background: linear-gradient(155deg, #4a4036, #15120f 55%, #2a241d); box-shadow: 0 46px 80px -34px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(201, 162, 75, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.app-device__bezel::before { content: ""; position: absolute; z-index: 4; top: 17px; left: 50%; width: 76px; height: 21px; margin-left: -38px; border-radius: 12px; background: #0a0908; pointer-events: none; }
.app-device__screen { position: relative; overflow: hidden; border-radius: 33px; aspect-ratio: 520 / 1125; background: #1C1916; isolation: isolate; }
.app-shot { position: absolute; top: var(--strip, 30px); left: 0; width: 100%; height: calc(100% - var(--strip, 30px)); object-fit: cover; object-position: top; opacity: 0; transition: opacity 0.7s ease; }
.app-shot.is-on { opacity: 1; }
.app-device--mini { --dw: 232px; --strip: 26px; }
.app-device--mini .app-device__bezel { padding: 8px; border-radius: 36px; }
.app-device--mini .app-device__bezel::before { top: 15px; width: 62px; height: 17px; margin-left: -31px; }
.app-device--mini .app-device__screen { border-radius: 28px; }
.app-device--video { --dw: 250px; }
.app-device--video video { position: absolute; top: 30px; left: 0; width: 100%; height: calc(100% - 30px); object-fit: cover; background: #000; }

/* =============================== Bascule Mariage ↔ Anniversaire =============================== */
.app-seg { --seg-ink: var(--cream); --seg-line: var(--line-strong); --seg-bg: transparent; --seg-on: var(--gold); --seg-on-ink: #1C1916; display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--seg-line); border-radius: 999px; background: var(--seg-bg); }
.app-seg__btn { appearance: none; border: 0; border-radius: 999px; padding: 10px 18px; font: 600 13.5px/1 var(--sans); color: var(--seg-ink); background: transparent; cursor: pointer; white-space: nowrap; transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease; }
.app-seg__btn:hover { background: var(--hover-tint); }
.app-seg__btn[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-ink); font-weight: 700; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.app-seg__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app-seg--hero { --seg-bg: rgba(28, 25, 22, 0.55); --seg-line: rgba(245, 239, 228, 0.3); }
.app-seg--hero .app-seg__btn { padding: 12px 22px; font-size: 14.5px; }
.app-seg--menu { --seg-ink: #3E3831; --seg-line: #DDD0B9; --seg-bg: rgba(255, 255, 255, 0.6); --seg-on: #1C1916; --seg-on-ink: #F5EFE4; padding: 3px; }
.app-seg--menu .app-seg__btn { padding: 8px 13px; font-size: 12.5px; }
.app-seg--menu .app-seg__btn:hover { background: rgba(28, 25, 22, 0.07); }
.app-seg--demo { --seg-bg: rgba(28, 25, 22, 0.6); --seg-line: rgba(245, 239, 228, 0.3); }
.app-seg--demo .app-seg__btn { padding: 9px 14px; font-size: 13px; }

/* =============================== En-tête : texte + téléphone vivant =============================== */
.app-hero { text-align: left; overflow: hidden; }
.app-hero .page-hero__inner { padding-top: 78px; padding-bottom: 96px; }
.app-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.app-hero__text { text-align: left; }
.app-hero__text .crumbs__list { justify-content: flex-start; }
.app-hero .eyebrow { margin-bottom: 22px; }
.app-hero .page-hero__title { margin: 0 0 20px; max-width: 640px; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; }
.app-hero .page-hero__text { margin: 0; max-width: 540px; }
.app-hero__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.app-hero__pick-label { font-size: 14px; color: var(--muted); }
.app-hero .page-hero__actions { justify-content: flex-start; margin-top: 26px; }
.app-hero__stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.app-hero__stage::before { content: ""; position: absolute; inset: 4% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 162, 75, 0.34), rgba(201, 162, 75, 0.08) 60%, transparent 72%); filter: blur(6px); }
.app-device--hero { --dw: 292px; z-index: 1; transform: rotate(-2.5deg); animation: app-float 7s ease-in-out infinite; }
.app-device__tap { position: absolute; inset: 0; z-index: 5; border: 0; border-radius: 42px; background: transparent; cursor: pointer; }
.app-device__tap:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.app-device__tap:hover { box-shadow: 0 0 0 2px var(--gold); }
@keyframes app-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.app-bubble { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px; max-width: 220px; padding: 11px 16px; border: 1px solid rgba(201, 162, 75, 0.5); border-radius: 16px; background: rgba(38, 33, 28, 0.9); backdrop-filter: blur(8px); color: #F5EFE4; font-size: 13.5px; font-weight: 600; line-height: 1.3; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.7); opacity: 0; transform: translateY(14px) scale(0.94); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
/* Une bulle par écran du téléphone : elle apparaît avec son écran (la bulle n° n va avec le n-ième écran), jamais avec un autre. */
.app-bubble.is-on { opacity: 1; transform: none; transition-delay: 0.3s; }
.app-bubble i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.25); }
.app-bubble--1 { top: 9%; left: -2%; }
.app-bubble--2 { top: 27%; right: -6%; }
.app-bubble--3 { bottom: 24%; left: -8%; }
.app-bubble--4 { bottom: 8%; right: -1%; }
.app-bubble--5 { top: 14%; right: -5%; }
.app-bubble--6 { bottom: 14%; left: -5%; }

/* =============================== Menu de la page (barre arrondie) : bascule et devis =============================== */
.app-menu .subnav__list { align-items: center; }
.subnav__tools { margin-left: auto; padding-left: 18px; flex: none; }
.app-menu__tools { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.app-menu .app-menu__quote { display: inline-flex; padding: 9px 16px; font-size: 12.5px; letter-spacing: 0.02em; text-transform: none; color: #1C1916; }
.app-menu .app-menu__quote::after { display: none; }
.app-menu .subnav__list { max-width: 1180px; }

/* =============================== Promesses =============================== */
.app-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 44px; padding-top: 76px; padding-bottom: 56px; }
.app-promise { display: flex; align-items: flex-start; gap: 18px; }
.app-promise__ico { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: var(--gold-dark); background: rgba(201, 162, 75, 0.16); box-shadow: inset 0 0 0 1px rgba(126, 98, 38, 0.35); }
.tone-dark .app-promise__ico { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(201, 162, 75, 0.45); }
.app-promise__title { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; margin: 3px 0 6px; color: var(--cream); }
.app-promise__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* =============================== « Votre musique » (1.167) : onglets et téléphone =============================== */
/* Le temps « Avant » du parcours, juste sous les promesses : une fonction par onglet (un seul ouvert), et le téléphone montre l'écran de l'onglet ouvert. Sans JavaScript, tous les onglets sont lisibles. */
.app-music { position: relative; }
.app-music__alias { position: absolute; top: calc(var(--djb-sticky-h, 108px) * -1 - 12px); left: 0; width: 1px; height: 1px; pointer-events: none; } /* ancien « #avant » : mène ici */
.app-music__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 72px; align-items: center; }
.app-music__grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
.app-music__text .eyebrow { margin-bottom: 14px; }
.app-music__text .h2 { text-align: left; }
.app-mtabs { display: grid; gap: 10px; margin-top: 28px; }
.app-mtab { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease; }
.app-mtab:hover { border-color: rgba(201, 162, 75, 0.55); }
.app-mtab.is-on { border-color: rgba(201, 162, 75, 0.85); background: rgba(201, 162, 75, 0.09); box-shadow: 0 16px 34px -22px rgba(201, 162, 75, 0.6); }
.app-mtab__btn { appearance: none; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 20px; border: 0; border-radius: 16px; background: transparent; text-align: left; font: 700 16.5px/1.35 var(--sans); color: var(--cream); cursor: pointer; }
.app-mtab__btn::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--gold); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.app-mtab.is-on .app-mtab__btn::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.25); }
.app-mtab__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.app-mtab__body { padding: 0 20px 18px 45px; }
.app-mtab__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.app-mtab .app-card__more { margin-top: 10px; }
.app--js .app-mtab:not(.is-on) .app-mtab__body { display: none; }
/* Sur téléphone et tablette, le téléphone de droite disparaît : l'écran de l'onglet ouvert s'affiche dans l'onglet (comme les cartes du parcours). */
.app-mtab__shot { display: none; }
.app-music__bridge { margin: 22px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.app-music__stage { position: relative; }
.app-music__stage::before { content: ""; position: absolute; inset: 6% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 162, 75, 0.22), transparent 70%); }
.app-device--music { --dw: 296px; z-index: 1; }
.app-device--music .app-shot { transition-duration: 0.5s; }
.app-music__cap { position: relative; min-height: 3em; margin: 22px auto 0; max-width: 290px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.45; color: var(--muted); }

/* =============================== « Composez la page de vos invités » =============================== */
.app-build__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; align-items: center; }
.app-build__list { margin: 28px 0 0; display: grid; gap: 10px; }
.app-sw { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 15px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease; }
.app-sw:hover { border-color: rgba(201, 162, 75, 0.55); }
.app-sw.is-on { border-color: rgba(201, 162, 75, 0.85); background: rgba(201, 162, 75, 0.09); box-shadow: 0 16px 34px -22px rgba(201, 162, 75, 0.6); }
.app-sw.is-disabled { opacity: 0.5; cursor: not-allowed; }
.app-sw__input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.app-sw__track { position: relative; flex: none; width: 48px; height: 28px; margin-top: 2px; border-radius: 999px; background: rgba(245, 239, 228, 0.16); box-shadow: inset 0 0 0 1px rgba(245, 239, 228, 0.22); transition: background-color 0.25s ease; }
.app-sw__track i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #F5EFE4; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: transform 0.3s var(--app-ease), background-color 0.25s ease; }
.app-sw.is-on .app-sw__track { background: var(--gold); box-shadow: none; }
.app-sw.is-on .app-sw__track i { transform: translateX(20px); background: #1C1916; }
.app-sw__input:focus-visible + .app-sw__track { outline: 2px solid var(--gold); outline-offset: 3px; }
.app-sw__label { display: grid; gap: 2px; min-width: 0; }
.app-sw__label b { font-size: 16px; font-weight: 700; color: var(--cream); }
.app-sw__label small { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.app-sw__need { display: none; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--gold); }
.app-sw.is-disabled .app-sw__need { display: block; }
.app-build__phone { position: relative; }
.app-build__phone::before { content: ""; position: absolute; inset: 6% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 162, 75, 0.22), transparent 70%); }
.app-device--build { --dw: 298px; z-index: 1; }
.app-guest { display: flex; flex-direction: column; aspect-ratio: 520 / 1125; background: #1C1916; color: #F5EFE4; font-family: var(--sans); }
.app-guest__bar { flex: none; padding: 40px 12px 10px; text-align: center; background: linear-gradient(#26211C, #1C1916); }
.app-guest__logo { display: block; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #C9A24B 0 28%, #0E0D0C 30% 62%, #3A332B 64% 68%, #0E0D0C 70%); box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.5); }
.app-guest__name { display: block; font-family: var(--serif); font-weight: 500; font-size: 17px; margin-bottom: 10px; }
.app-guest__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
.app-guest__tab { appearance: none; border: 1px solid #443D34; border-radius: 10px; padding: 6px 9px; font: 700 10.5px/1.1 var(--sans); color: #C9BFAE; background: #26211C; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.app-guest__tab[aria-selected="true"] { background: #C9A24B; border-color: #C9A24B; color: #1C1916; }
.app-guest__tab:hover { transform: translateY(-1px); }
.app-guest__tab[hidden] { display: none; }
.app-guest__panes { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 6px 7px 24px; }
.app-guest__panes::-webkit-scrollbar { display: none; }
.app-guest__pane { animation: app-fade 0.45s ease both; }
.app-guest__pane[hidden], .app-guest__img[hidden], .app-guest__empty[hidden] { display: none; }
.app-guest__img { display: block; width: 100%; height: auto; margin-bottom: 6px; border-radius: 10px; }
.app-guest__empty { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 280px; padding: 0 18px; text-align: center; animation: app-fade 0.45s ease both; }
.app-guest__empty::before { content: ""; width: 56px; height: 56px; border-radius: 50%; border: 2px dashed rgba(201, 162, 75, 0.6); }
.app-guest__empty b { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.app-guest__empty p { margin: 0; font-size: 13px; line-height: 1.5; color: #C9BFAE; }
@keyframes app-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =============================== Parcours : téléphone collé + fonctions =============================== */
.app-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; }
.app-pick__label { font-size: 14px; color: var(--muted); margin-right: 4px; }
.app-chip { appearance: none; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--cream); font: 600 13.5px/1 var(--sans); cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.app-chip:hover { border-color: var(--gold-dark); }
.app-chip[aria-pressed="true"] { background: var(--night); color: #F5EFE4; border-color: var(--night); }
.tone-dark .app-chip[aria-pressed="true"] { background: var(--gold); color: #1C1916; border-color: var(--gold); }
.app-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app-pick__text { min-height: 1.6em; margin: 12px auto 0; max-width: 560px; font-size: 15px; color: var(--muted); }
.app-story__grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 72px; align-items: stretch; margin-top: 30px; }
.app-story__sticky { position: sticky; top: calc(var(--djb-sticky-h, 108px) + 28px); }
.app-device--story { --dw: 296px; }
.app-device--story .app-shot { transition-duration: 0.5s; }
.app-story__cap { min-height: 3em; margin: 22px auto 0; max-width: 290px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.app-ch { padding: 28px 0 24px; scroll-margin-top: calc(var(--djb-sticky-h, 108px) + 12px); }
.app-ch + .app-ch { border-top: 1px solid var(--line-2); margin-top: 28px; padding-top: 44px; }
.app-ch__head { margin-bottom: 26px; }
.app-ch__head .eyebrow { margin-bottom: 14px; }
.app-ch__head .h2 { text-align: left; }
.app-cards { display: grid; gap: 16px; }
.app-card { position: relative; display: block; padding: 22px 26px 22px 28px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.45s var(--app-ease), opacity 0.35s ease; }
.app-card::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); transform: scaleY(0); transition: transform 0.4s var(--app-ease); }
.app-card.is-active { border-color: rgba(126, 98, 38, 0.6); box-shadow: 0 26px 50px -30px rgba(40, 28, 10, 0.55); transform: translateX(5px); }
.app-card.is-active::before { transform: scaleY(1); }
.app-card__shot { display: none; }
.app-card__tag { display: inline-block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.tone-dark .app-card__tag { color: var(--gold); }
.app-card__title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; margin: 0 0 8px; color: var(--cream); }
.app-card__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.app-card__more { margin-top: 12px; }
.app-card__more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--gold-dark); }
.tone-dark .app-card__more summary { color: var(--gold); }
.app-card__more summary::-webkit-details-marker { display: none; }
.app-card__more summary::after { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font-size: 15px; line-height: 1; }
.app-card__more[open] summary::after { content: "–"; }
.app-card__more summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.app-card__more p { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14.5px; line-height: 1.6; }
/* Une formule choisie (1.164) : les fonctions des autres formules sont masquées (plus estompées) ; « tout voir » les remet toutes. Une partie sans fonction visible disparaît aussi. */
.app-card.is-off, .app-ch.is-off { display: none !important; }

/* =============================== Essayer (démonstration + vidéo) =============================== */
.app-try__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.app-try__text .btn { margin-top: 10px; }
.app-try__video { text-align: center; }
.app-try__vtitle { margin: 0 0 16px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* =============================== Carrousels (écrans, avis) =============================== */
.app-rail { position: relative; margin: 8px calc(var(--gutter) * -1) 0; }
.app-rail__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; outline: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.app-rail__viewport::-webkit-scrollbar { display: none; }
.app-rail__viewport.is-drag { cursor: grabbing; scroll-snap-type: none; }
.app-rail__viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
.app-rail__track { display: flex; align-items: flex-start; gap: 30px; padding: 34px calc(50% - 125px) 30px; width: max-content; min-width: 100%; }
.app-rail__item { flex: none; width: 250px; scroll-snap-align: center; opacity: 0.62; transform: scale(0.9); transition: opacity 0.4s ease, transform 0.5s var(--app-ease); }
.app-rail__item.is-active { opacity: 1; transform: none; }
.app-rail__item figure { display: grid; justify-items: center; gap: 18px; }
.app-rail__item figcaption { max-width: 230px; text-align: center; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.app-rail__ctl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.app-rail__btn { appearance: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--cream); font-size: 24px; line-height: 1; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.app-rail__btn:hover { border-color: var(--gold-dark); transform: translateY(-1px); }
.app-rail__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.app-rail__count { min-width: 64px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* =============================== Confiance =============================== */
/* Les cases sont centrées (la dernière rangée aussi) et arrivent quand on défile, comme celles des pages de prestations : chaque case est dans un emplacement fixe (.option-slot, 1.164). */
.app-trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1020px; margin: 0 auto; padding: 0; list-style: none; }
.app-trust__list > .option-slot { display: flex; flex: 0 1 calc((100% - 28px) / 3); min-width: min(270px, 100%); box-sizing: border-box; }
.app-trust__card { display: flex; flex: 1 1 auto; align-items: flex-start; gap: 14px; min-width: 0; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); font-size: 15.5px; line-height: 1.5; color: var(--cream); }
.app-trust__ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(201, 162, 75, 0.2); color: var(--gold-dark); }

/* =============================== Avis =============================== */
.app-rv { width: 320px; display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); box-shadow: 0 26px 50px -34px rgba(40, 28, 10, 0.5); text-align: left; }
.app-rv__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--media); }
.app-rv__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-rv__body { display: grid; gap: 10px; padding: 20px 22px 22px; }
.app-rv__stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.app-rv__quote { font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--cream); }
.app-rv__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.app-rv__who { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.app-rv__who b { display: block; font-size: 14.5px; color: var(--cream); }
.app-rv__who small { display: block; font-size: 12.5px; color: var(--muted); }
.app-rv__avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #1C1916; font-weight: 800; font-size: 14px; }
.app-rail--reviews .app-rail__item { width: 320px; opacity: 1; transform: none; }
.app-rail--reviews .app-rail__track { padding: 16px calc(50% - 160px) 22px; }
.app-reviews__all { margin-top: 18px; text-align: center; }
.app-end__card { max-width: 620px; margin: 0 auto; padding: 32px 30px 34px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); text-align: center; display: grid; justify-items: center; gap: 16px; }
.app-end__title { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--cream); }
.app-end__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* =============================== Composer ma soirée =============================== */
.app-composer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.app-composer__text .btn { margin-top: 10px; }
.app-steps { position: relative; display: grid; gap: 12px; padding: 4px 0 4px 6px; }
.app-steps::before { content: ""; position: absolute; left: 25px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--gold), rgba(201, 162, 75, 0.15)); }
.app-steps li { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, 0.04); font-weight: 600; font-size: 15.5px; color: var(--cream); transition: opacity 0.6s ease calc(var(--i, 0) * 0.09s), transform 0.7s var(--app-ease) calc(var(--i, 0) * 0.09s); }
.app-steps li span { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1C1916; font-size: 13px; font-weight: 800; }
.app--js .app-steps:not(.is-in) li { opacity: 0; transform: translateX(22px); }

/* =============================== Fenêtre de démonstration (format téléphone) =============================== */
.app-demo { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(12, 10, 8, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: app-fade 0.3s ease both; }
.app-demo[hidden] { display: none; }
.app-demo__in { position: relative; display: flex; align-items: center; justify-content: center; gap: 56px; max-width: 100%; }
.app-demo__x { position: absolute; top: -10px; right: -10px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245, 239, 228, 0.4); background: rgba(28, 25, 22, 0.95); color: #F5EFE4; font-size: 26px; line-height: 1; cursor: pointer; }
.app-demo__x:hover { border-color: var(--gold); }
.app-demo__x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app-demo__side { width: 270px; flex: none; color: #F5EFE4; }
.app-demo__side .eyebrow { margin-bottom: 18px; }
.app-demo__tips { margin: 22px 0 0; display: grid; gap: 14px; counter-reset: tip; }
.app-demo__tips li { position: relative; padding-left: 40px; font-size: 14.5px; line-height: 1.5; color: #DDD4C6; counter-increment: tip; }
.app-demo__tips li::before { content: counter(tip); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1C1916; font-size: 12.5px; font-weight: 800; }
.app-demo__hint { margin: 22px 0 0; font-size: 13px; color: #A89E8E; }
.app-device--live { --k: 1; --dw: auto; width: auto; margin: 0; }
.app-device--live .app-device__screen { aspect-ratio: auto; width: calc(375px * var(--k)); height: calc(812px * var(--k)); background: #1C1916; }
/* Le cadre fait 375 × 782 px (un téléphone sous sa barre d'état), réduit d'un coup par --k : « max-width: none » est indispensable, la règle générale des cadres (max-width: 100 %) le raccourcirait à la largeur de l'écran déjà réduit. */
.app-device--live iframe { position: absolute; top: calc(30px * var(--k)); left: 0; width: 375px; height: 782px; max-width: none; max-height: none; border: 0; background: #1C1916; transform: scale(var(--k)); transform-origin: top left; }
.app-demo__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #1C1916; color: #C9BFAE; font-size: 14px; transition: opacity 0.4s ease; }
.app-demo__loading i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(201, 162, 75, 0.25); border-top-color: var(--gold); animation: djb-spin 0.9s linear infinite; }
.app-device--live .app-device__screen.is-ready .app-demo__loading { opacity: 0; pointer-events: none; }
body.app-demo-open { overflow: hidden; }

/* =============================== Tablette et téléphone =============================== */
@media (max-width: 1080px) {
	.app-hero__grid { gap: 36px; }
	.app-build__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
	.app-music__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
	.app-device--music { --dw: 270px; }
	.app-story__grid { grid-template-columns: 290px minmax(0, 1fr); gap: 44px; }
	.app-device--story { --dw: 270px; }
	.app-menu .app-menu__quote { display: none; }
}
@media (max-width: 960px) {
	.app-hero .page-hero__inner { padding-top: 56px; padding-bottom: 76px; }
	.app-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.app-hero__text, .app-hero .page-hero__text, .app-hero .page-hero__title { text-align: center; margin-left: auto; margin-right: auto; }
	.app-hero__text .crumbs__list, .app-hero .page-hero__actions { justify-content: center; }
	.app-hero__pick { justify-content: center; }
	.app-hero__stage { min-height: 520px; }
	.app-device--hero { --dw: 250px; }
	.app-promises { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 40px; padding-bottom: 40px; }
	.app-build__grid, .app-try__grid, .app-composer__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.app-music__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.app-music__stage { display: none; }
	.app-mtab__shot { display: block; height: 230px; margin-top: 14px; overflow: hidden; border-radius: 14px; background: #1C1916; }
	.app-mtab__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
	.app-music__text { text-align: center; }
	.app-music__text .eyebrow { justify-content: center; }
	.app-music__text .h2 { text-align: center; }
	.app-music__text .app-lead { margin-left: auto; margin-right: auto; }
	.app-mtabs { text-align: left; }
	.app-device--music { --dw: 250px; }
	.app-build__text, .app-try__text, .app-composer__text { text-align: center; }
	.app-build__text .eyebrow, .app-try__text .eyebrow, .app-composer__text .eyebrow { justify-content: center; }
	.app-build__text .app-lead, .app-try__text .app-lead, .app-composer__text .app-lead { margin-left: auto; margin-right: auto; }
	.app-build__list { text-align: left; }
	.app-steps { max-width: 420px; margin: 0 auto; }
	.app-try__grid { justify-items: center; }
	/* Parcours : le téléphone collé disparaît, chaque fonction devient une carte à faire glisser avec son écran. */
	.app-story__grid { display: block; margin-top: 18px; }
	.app-story__stage { display: none; }
	.app-ch { padding-top: 14px; }
	.app-ch + .app-ch { margin-top: 10px; padding-top: 30px; }
	.app-ch__head { margin-bottom: 14px; }
	.app-cards { display: flex; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.app-cards::-webkit-scrollbar { display: none; }
	.app-card { flex: 0 0 min(80%, 340px); display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 20px; scroll-snap-align: center; }
	.app-card.is-active { transform: none; box-shadow: none; border-color: var(--line-2); }
	.app-card.is-active::before { transform: scaleY(0); }
	.app-card__shot { display: block; height: 230px; overflow: hidden; border-radius: 14px; background: #1C1916; }
	.app-card__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
	.app-card__body { padding: 0 6px; }
}
@media (max-width: 700px) {
	.subnav__tools { padding-left: 10px; }
	.app-seg--menu .app-seg__btn { padding: 8px 11px; font-size: 12px; }
	.app-hero__stage { min-height: 480px; }
	.app-device--hero { --dw: 232px; }
	.app-bubble { font-size: 12px; padding: 9px 13px; max-width: 170px; }
	.app-bubble--1 { left: -4%; } .app-bubble--2 { right: -4%; } .app-bubble--3 { left: -6%; } .app-bubble--4 { right: -3%; } .app-bubble--5 { right: -3%; } .app-bubble--6 { left: -4%; }
	.app-rail__track { gap: 20px; padding-left: calc(50% - 112px); padding-right: calc(50% - 112px); }
	.app-rail__item { width: 224px; }
	.app-device--mini { --dw: 210px; }
	.app-rail--reviews .app-rail__item { width: min(300px, 78vw); }
	.app-rail--reviews .app-rv { width: 100%; }
	.app-rail--reviews .app-rail__track { padding-left: calc(50% - min(150px, 39vw)); padding-right: calc(50% - min(150px, 39vw)); }
	.app-seg--hero .app-seg__btn { padding: 11px 16px; font-size: 14px; }
	/* Démonstration : plein écran, sans cadre. */
	.app-demo { padding: 0; background: #1C1916; }
	.app-demo__in { gap: 0; width: 100%; height: 100%; }
	.app-demo__side { display: none; }
	.app-demo__x { top: calc(4px + env(safe-area-inset-top, 0px)); right: 8px; width: 44px; height: 44px; background: rgba(28, 25, 22, 0.88); }
	.app-device--live { width: 100%; height: 100%; }
	.app-device--live .app-device__bezel { height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
	.app-device--live .app-device__bezel::before { display: none; }
	.app-device--live .app-device__screen { width: 100%; height: 100%; border-radius: 0; }
	.app-device--live iframe { top: calc(52px + env(safe-area-inset-top, 0px)); width: 100%; height: calc(100% - 52px - env(safe-area-inset-top, 0px)); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.app-device--hero { animation: none; }
	.app-bubble { transition: none; }
	.app-shot, .app-card, .app-card::before, .app-sw__track i, .app-rail__item, .app-seg__btn, .app-mtab, .app-mtab__btn::before { transition: none; }
	.app-guest__pane, .app-guest__empty, .app-demo { animation: none; }
	.app--js .app-steps:not(.is-in) li { opacity: 1; transform: none; }
}
