/* Écran 11 — fond sauge clair, pilules goo, téléphone 3D dans lequel les fonctions entrent */
.slide[data-screen="11"] { color: #111; --lime: #D6F26B; --line: #DCDFD3; }
.slide[data-screen="11"] .wrap { gap: 1rem; padding-top: 2.5rem; }
.slide[data-screen="11"] .defs { position: absolute; width: 0; height: 0; }
.slide[data-screen="11"] #s11-goo .ring { flood-color: #DCDFD3; }
.slide[data-screen="11"] #s11-goo-on .ring { flood-color: #B5D13A; }
.slide[data-screen="11"] .head { text-align: center; }
.slide[data-screen="11"] .title { margin: 0; font-size: clamp(1rem, 4.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.slide[data-screen="11"] .sub { margin: .45rem 0 0; font-size: .92rem; color: #6A6E62; }
.slide[data-screen="11"] .layout { display: grid; gap: .75rem; }

/* ---------- Téléphone 3D (collé en haut pendant le défilement sur mobile) ---------- */
.slide[data-screen="11"] .ph-zone {
  position: sticky; top: -1px; z-index: 3; margin: 0 -1rem; padding: .4rem 1rem .7rem;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  background: linear-gradient(#F7F8F3 calc(100% - .45rem), rgb(247 248 243 / 0));
}
.slide[data-screen="11"] .ph-scene { position: relative; perspective: 900px; padding: .2rem 1.2rem .6rem; }
.slide[data-screen="11"] .phone {
  --w: 6.4rem;
  position: relative; width: var(--w); aspect-ratio: 9 / 18.4; border-radius: 1.35rem; padding: .32rem;
  background: linear-gradient(135deg, #2B2E35, #15171B 45%, #24272D);
  transform: rotateY(-20deg) rotateX(9deg) rotateZ(1.5deg); transform-style: preserve-3d;
  /* épaisseur : tranche empilée à droite / en bas, puis ombre portée */
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / .14), inset 0 1px 0 2px rgb(255 255 255 / .06),
    1px 1px 0 #3A3D45, 2px 2px 0 #33363D, 3px 3px 0 #2D3036, 4px 4px 0 #282A30, 5px 5px 0 #23252A, 6px 5px 0 #1F2125,
    18px 26px 28px -10px rgb(30 40 10 / .4);
  animation: s11-sway 6s ease-in-out infinite;
}
.slide[data-screen="11"] .ph-key { position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, #3A3D45, #1B1D21); }
.slide[data-screen="11"] .ph-k1 { top: 22%; height: 11%; }
.slide[data-screen="11"] .ph-k2 { top: 36%; height: 7%; }
.slide[data-screen="11"] .ph-k3 { top: 45%; height: 7%; }
.slide[data-screen="11"] .ph-floor {
  position: absolute; left: 18%; right: 8%; bottom: -.1rem; height: .9rem; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgb(40 50 20 / .28), transparent);
}
.slide[data-screen="11"] .ph-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 1.08rem; padding: .3rem .35rem .6rem;
  background: linear-gradient(170deg, #FFFFFF, #EEF2E2); color: #111;
  display: flex; flex-direction: column; gap: .3rem;
}
.slide[data-screen="11"] .ph-status { display: flex; align-items: center; justify-content: space-between; height: .7rem; padding: 0 .2rem; font-size: .42rem; font-weight: 700; }
.slide[data-screen="11"] .ph-island { width: 1.7rem; height: .5rem; border-radius: 1rem; background: #0B0B0C; }
.slide[data-screen="11"] .ph-bat { width: .7rem; height: .34rem; border: 1px solid #111; border-radius: 2px; padding: 1px; }
.slide[data-screen="11"] .ph-bat i { display: block; width: 75%; height: 100%; background: #111; border-radius: 1px; }
.slide[data-screen="11"] .ph-head { display: flex; align-items: center; gap: .25rem; padding: .1rem .1rem .15rem; }
.slide[data-screen="11"] .ph-av { width: .85rem; height: .85rem; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1px #111; }
.slide[data-screen="11"] .ph-name { font-size: .56rem; font-weight: 800; letter-spacing: -.02em; }
.slide[data-screen="11"] .ph-empty {
  margin: auto .15rem; padding: .5rem .3rem; border: 1px dashed #C9CDBE; border-radius: .5rem;
  font-size: .5rem; line-height: 1.3; text-align: center; color: #8A8E80;
}
.slide[data-screen="11"] .ph-empty[hidden] { display: none; }
.slide[data-screen="11"] .ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .22rem; align-content: start; }
.slide[data-screen="11"] .brick {
  display: flex; align-items: center; gap: .25rem; min-width: 0; padding: .2rem .25rem; border-radius: .45rem;
  background: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / .05), 0 3px 6px -3px rgb(40 50 20 / .3);
  font-size: .5rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em;
}
.slide[data-screen="11"] .b-ic { width: 1.05rem; height: 1.05rem; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--c); }
.slide[data-screen="11"] .b-ic svg { width: .6rem; height: .6rem; }
.slide[data-screen="11"] .b-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* beaucoup de briques : elles se serrent, puis passent sur 2 colonnes */
.slide[data-screen="11"] .ph-list.dense { gap: .15rem; }
.slide[data-screen="11"] .ph-list.dense .brick { padding: .12rem .22rem; }
.slide[data-screen="11"] .ph-list.dense .b-ic { width: .85rem; height: .85rem; }
.slide[data-screen="11"] .ph-list.grid { grid-template-columns: 1fr 1fr; gap: .15rem; }
.slide[data-screen="11"] .ph-list.grid .brick { flex-direction: column; gap: .08rem; padding: .15rem .1rem; font-size: .4rem; text-align: center; }
.slide[data-screen="11"] .ph-list.grid .b-ic { width: .8rem; height: .8rem; }
.slide[data-screen="11"] .ph-list.grid .b-t { max-width: 100%; }
.slide[data-screen="11"] .ph-home { position: absolute; left: 50%; bottom: .22rem; width: 1.9rem; height: 2px; margin-left: -.95rem; border-radius: 2px; background: #111; opacity: .8; }
/* reflet sur la vitre */
.slide[data-screen="11"] .ph-glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / .12) 26%, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / 0) 78%, rgb(255 255 255 / .18) 100%);
  mix-blend-mode: soft-light;
}
.slide[data-screen="11"] .count { margin: 0; min-height: 1.5rem; display: flex; align-items: center; }
.slide[data-screen="11"] .count:not(:empty) {
  padding: .22rem .75rem; border-radius: 999px; background: #111; color: var(--lime);
  font-size: .76rem; font-weight: 650; animation: s11-pop .35s cubic-bezier(.34,1.56,.64,1);
}

/* Pilules goo : blanches, bord fin (anneau dessiné par le filtre, il suit le pont) */
.slide[data-screen="11"] .opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.slide[data-screen="11"] .opts > li { animation: s11-in .45s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i, 0) * 40ms + 120ms); }
.slide[data-screen="11"] .opt {
  position: relative; width: 100%; min-height: 3.25rem; border: 0; background: none; padding: 0; color: #111;
  display: flex; align-items: center; text-align: left; isolation: isolate;
}
.slide[data-screen="11"] .goo { position: absolute; inset: 0; filter: url(#s11-goo) drop-shadow(0 6px 10px rgb(60 70 30 / .06)); z-index: -1; }
.slide[data-screen="11"] .opt[aria-pressed="true"] .goo { filter: url(#s11-goo-on) drop-shadow(0 8px 14px rgb(120 150 20 / .18)); }
.slide[data-screen="11"] .g-dot, .slide[data-screen="11"] .g-pill { position: absolute; top: 0; bottom: 0; background: #fff; transition: background .3s, left .45s cubic-bezier(.34,1.56,.64,1); }
.slide[data-screen="11"] .g-dot { left: 0; width: 3.25rem; height: 3.25rem; top: 50%; margin-top: -1.625rem; border-radius: 50%; background: var(--dot); }
.slide[data-screen="11"] .g-pill { left: 3.7rem; right: 0; border-radius: 999px; }
.slide[data-screen="11"] .opt:hover .g-pill { left: 3.3rem; }
.slide[data-screen="11"] .opt[aria-pressed="true"] .g-pill { left: 2.9rem; background: var(--lime); }
.slide[data-screen="11"] .opt[aria-pressed="true"] .g-dot { background: var(--lime); }
.slide[data-screen="11"] .opt.c0 { --dot: #FFB0D0; } .slide[data-screen="11"] .opt.c1 { --dot: #8FE9C2; }
.slide[data-screen="11"] .opt.c2 { --dot: #C4B5FF; } .slide[data-screen="11"] .opt.c3 { --dot: #FFC48A; }
.slide[data-screen="11"] .opt.c4 { --dot: #9CD3FF; } .slide[data-screen="11"] .opt.c5 { --dot: #FFE070; }
.slide[data-screen="11"] .dot { width: 3.25rem; height: 3.25rem; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; }
.slide[data-screen="11"] .dot svg { width: 1.3rem; height: 1.3rem; color: #111; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.slide[data-screen="11"] .opt[aria-pressed="true"] .dot svg { transform: rotate(-8deg) scale(1.08); }
.slide[data-screen="11"] .txt { flex: 1; padding: .6rem 0 .6rem 1.3rem; font-size: .96rem; line-height: 1.2; transition: font-weight .2s; }
.slide[data-screen="11"] .opt[aria-pressed="true"] .txt { font-weight: 650; }
.slide[data-screen="11"] .chk {
  width: 1.6rem; height: 1.6rem; margin: 0 .8rem 0 .4rem; border-radius: 50%; background: #111; color: var(--lime); flex-shrink: 0;
  display: grid; place-items: center; transform: scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.slide[data-screen="11"] .chk svg { width: 1rem; height: 1rem; }
.slide[data-screen="11"] .opt[aria-pressed="true"] .chk { transform: scale(1); }
.slide[data-screen="11"] .opt:focus-visible { outline-offset: 2px; border-radius: 999px; }
.slide[data-screen="11"] .other-field { display: block; margin-top: .5rem; }
.slide[data-screen="11"] .other-field[hidden] { display: none; }
.slide[data-screen="11"] .other-field input {
  width: 100%; border: 1.5px solid #111; background: #fff; color: #111; border-radius: 999px; padding: .85rem 1.1rem;
  box-shadow: 0 6px 16px -8px rgb(60 70 30 / .2); animation: s11-in .35s cubic-bezier(.34,1.56,.64,1);
}
.slide[data-screen="11"] .other-field input::placeholder { color: #8A8E80; }
.slide[data-screen="11"] .next {
  position: sticky; bottom: 0; border: 0; border-radius: 999px; background: #111; color: #fff;
  padding: 1rem; font-weight: 700; font-size: 1.05rem; box-shadow: 0 14px 30px -10px rgb(20 25 5 / .45);
  transition: background .2s, color .2s, transform .18s cubic-bezier(.34,1.56,.64,1);
}
.slide[data-screen="11"] .next:hover { background: var(--lime); color: #111; }
@keyframes s11-in { from { opacity: 0; transform: translateX(-14px); } }
@keyframes s11-pop { from { opacity: 0; transform: scale(.85); } }
@keyframes s11-sway { 0%, 100% { transform: rotateY(-20deg) rotateX(9deg) rotateZ(1.5deg); } 50% { transform: rotateY(-13deg) rotateX(7deg) rotateZ(.5deg) translateY(-3px); } }
@media (max-height: 700px) and (max-width: 767px) {
  .slide[data-screen="11"] .phone { --w: 5.6rem; }
}
@media (min-width: 768px) {
  .slide[data-screen="11"] .wrap { max-width: 52rem; }
  .slide[data-screen="11"] .layout { grid-template-columns: 1fr 17rem; grid-template-areas: "opts phone"; align-items: start; column-gap: 2.5rem; }
  .slide[data-screen="11"] .opts { grid-area: opts; }
  .slide[data-screen="11"] .ph-zone { grid-area: phone; top: 2rem; margin: 1rem 0 0; padding: 0; background: none; }
  .slide[data-screen="11"] .phone { --w: 12rem; border-radius: 2.2rem; padding: .5rem; }
  .slide[data-screen="11"] .ph-screen { border-radius: 1.8rem; padding: .5rem .6rem 1rem; gap: .5rem; }
  .slide[data-screen="11"] .ph-status { font-size: .62rem; height: 1rem; }
  .slide[data-screen="11"] .ph-island { width: 3rem; height: .85rem; }
  .slide[data-screen="11"] .ph-av { width: 1.4rem; height: 1.4rem; }
  .slide[data-screen="11"] .ph-name { font-size: .9rem; }
  .slide[data-screen="11"] .ph-empty { font-size: .78rem; }
  .slide[data-screen="11"] .ph-list { gap: .35rem; }
  .slide[data-screen="11"] .brick { font-size: .76rem; padding: .35rem .4rem; gap: .4rem; border-radius: .7rem; }
  .slide[data-screen="11"] .b-ic { width: 1.6rem; height: 1.6rem; }
  .slide[data-screen="11"] .b-ic svg { width: .9rem; height: .9rem; }
  .slide[data-screen="11"] .ph-list.dense .brick { padding: .22rem .4rem; }
  .slide[data-screen="11"] .ph-list.dense .b-ic { width: 1.3rem; height: 1.3rem; }
  .slide[data-screen="11"] .ph-list.grid .brick { font-size: .62rem; padding: .3rem .2rem; }
  .slide[data-screen="11"] .ph-list.grid .b-ic { width: 1.3rem; height: 1.3rem; }
  .slide[data-screen="11"] .ph-home { width: 3.4rem; margin-left: -1.7rem; height: 3px; bottom: .35rem; }
  .slide[data-screen="11"] .next { align-self: flex-end; min-width: 16rem; }
}
@media (prefers-reduced-motion: reduce) {
  .slide[data-screen="11"] .g-pill, .slide[data-screen="11"] .dot svg { transition: none; }
  .slide[data-screen="11"] .phone { animation: none; }
}

/* Barre d'avancement : pilule noire (comme le compteur), jus vert citron à l'intérieur */
.slide[data-screen="11"] .q-progress {
  top: max(.5rem, env(safe-area-inset-top));
  width: 100%; max-width: 52rem; height: 8px; padding: 2px;
  margin: calc(max(.5rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-top))) auto .5rem;
  border-radius: 999px; background: #111; box-shadow: 0 6px 12px -8px rgb(20 25 5 / .5);
}
.slide[data-screen="11"] .q-progress i { border-radius: 999px; background: var(--lime); }
