/* Application mobile : ce qui n'appartient qu'à ce pilier. Le socle
   (lockpit.css) et pilier.css fournissent le reste. Ici : l'éventail de
   téléphones du héros, le bento des atouts (notifications dessinées en CSS,
   synchronisation, boutiques), la piste d'écrans, le devis, le périmètre. */

/* ---------- ATOUTS (bento) ---------- */
.atouts {
  display: grid;
  gap: 18px;
}
.atout {
  --rayon: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--rayon);
  background: white;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06), var(--ombre-douce);
  transition: transform 0.7s var(--ressort), box-shadow 0.7s var(--ressort);
}
.atout:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08), var(--ombre-portee);
}
.atout .pill {
  align-self: flex-start;
}
.atout h3 {
  margin: 10px 0 0;
  max-width: 11em;
  font: 700 clamp(26px, 2.6vw, 34px) / 1.02 "Bricolage Grotesque";
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.atout p {
  margin: 0;
  max-width: 24em;
  color: var(--muted);
  font-size: 16px;
}

/* Dans la poche : le téléphone qui dépasse */
.a-poche h3,
.a-poche p {
  max-width: 52%;
}
.a-poche > img {
  position: absolute;
  right: 6%;
  bottom: -26%;
  width: 36%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--ombre-portee);
  transition: transform 0.9s var(--ressort);
}
.a-poche:hover > img {
  transform: translateY(-14px);
}

/* Notifications : l'écran verrouillé dessiné en CSS */
.a-notifs {
  background: var(--ink);
  color: var(--paper);
}
.a-notifs p {
  color: rgba(248, 246, 241, 0.65);
}
.a-notifs .pill {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
}
.verrou {
  margin: auto -8px -8px;
  padding: 18px 16px 16px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #1c2540, #0f172a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.verrou-heure {
  margin: 0 0 14px;
  text-align: center;
  font: 300 44px / 1 "Bricolage Grotesque";
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.9);
}
.verrou ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.verrou li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.7s var(--ressort), transform 0.7s var(--ressort);
  transition-delay: calc(0.4s + var(--i, 0) * 0.5s);
}
.atout.vu .verrou li {
  opacity: 1;
  transform: none;
}
.verrou i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font: 700 13px "Bricolage Grotesque";
  font-style: normal;
}
.verrou b {
  display: block;
  font-weight: 600;
}
.verrou span {
  color: rgba(255, 255, 255, 0.7);
}
.verrou small {
  color: rgba(255, 255, 255, 0.5);
  font: 500 11px "JetBrains Mono";
  align-self: start;
}

/* Hors ligne : la synchronisation reprend */
.sync {
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}
.sync-etat {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 14px "DM Sans";
}
.sync-etat i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}
.atout.vu .sync-etat i {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  transition: background 0.4s 2.2s, box-shadow 0.4s 2.2s;
}
.sync-etat b {
  display: grid;
}
.sync-etat b span {
  grid-area: 1 / 1;
  transition: opacity 0.4s 2.2s;
}
.sync-etat .apres {
  opacity: 0;
}
.atout.vu .sync-etat .apres {
  opacity: 1;
}
.atout.vu .sync-etat .avant {
  opacity: 0;
}
.sync-barre {
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}
.sync-barre i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
}
.atout.vu .sync-barre i {
  width: 100%;
  transition: width 2s var(--ressort) 0.3s;
}

/* Terrain : les capacités du téléphone */
.capacites {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.capacites li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
  font-size: 15px;
  font-weight: 500;
}
.capacites i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--blue-texte);
  font: 600 11px "JetBrains Mono";
  font-style: normal;
}

/* Deux boutiques : un seul code */
.boutiques {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.boutiques span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font: 600 14px "DM Sans";
}
.boutiques span i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font: 700 13px "Bricolage Grotesque";
  font-style: normal;
}
.boutiques small {
  display: block;
  color: rgba(248, 246, 241, 0.6);
  font-size: 12px;
  font-weight: 400;
}
.boutiques + p {
  margin-top: 12px;
  font-size: 14px;
}

/* ---------- PISTE D'ÉCRANS ---------- */
.ecrans-section {
  background: white;
}
.piste-ecrans {
  display: flex;
  gap: 22px;
  padding: 12px 0 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.piste-ecrans::-webkit-scrollbar {
  display: none;
}
.piste-ecrans figure {
  flex: 0 0 min(62vw, 250px);
  margin: 0;
  scroll-snap-align: start;
  transition: transform 0.7s var(--ressort);
}
.piste-ecrans figure:hover {
  transform: translateY(-8px);
}
.piste-ecrans .cadre {
  --rayon: 34px;
  --bord: 6px;
}
.piste-ecrans .coeur {
  aspect-ratio: 9 / 19.5;
  background: #0b0f1a;
}
.piste-ecrans .coeur img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.piste-ecrans figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
}
.piste-ecrans figcaption b {
  font: 700 19px "Bricolage Grotesque";
  letter-spacing: -0.02em;
}
.piste-ecrans figcaption span {
  color: var(--muted);
  font-size: 14px;
}
.piste-ecrans .ouvrir {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ---------- PÉRIMÈTRE ---------- */
.perimetre {
  display: grid;
  gap: 36px 40px;
}
.perimetre article {
  padding-top: 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}
.perimetre span {
  color: var(--blue-texte);
  font: 600 11px "JetBrains Mono";
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.perimetre b {
  display: block;
  margin-top: 10px;
  font: 700 clamp(22px, 2.2vw, 28px) / 1.1 "Bricolage Grotesque";
  letter-spacing: -0.03em;
}
.perimetre p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* ---------- DEVIS ---------- */
.devis {
  display: grid;
  gap: 32px;
  padding: 40px;
  border-radius: 30px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06), var(--ombre-portee);
}
.devis h2 {
  margin: 0;
  font: 700 clamp(34px, 4vw, 56px) / 1 "Bricolage Grotesque";
  letter-spacing: -0.045em;
}
.devis > div > p {
  margin: 18px 0 0;
  max-width: 28em;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
}
.devis .btn {
  margin-top: 28px;
}
.facteurs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: center;
}
.facteurs li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}
.facteurs i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 13px "JetBrains Mono";
  font-style: normal;
}
.facteurs b {
  display: block;
  font: 700 17px "Bricolage Grotesque";
  letter-spacing: -0.02em;
}
.facteurs small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Réactif ---------- */
@media (min-width: 700px) {
  .atouts {
    grid-template-columns: repeat(12, 1fr);
  }
  .a-poche { grid-column: span 7; }
  .a-notifs { grid-column: span 5; }
  .a-sync,
  .a-terrain,
  .a-stores { grid-column: span 4; }
  .perimetre {
    grid-template-columns: repeat(3, 1fr);
  }
  .devis {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    padding: 56px;
  }
}
@media (min-width: 980px) {
}
@media (max-width: 699px) {
  .a-poche h3,
  .a-poche p {
    max-width: none;
  }
  .a-poche > img {
    position: static;
    width: 56%;
    align-self: center;
    margin: 16px 0 -40%;
  }
  .a-poche {
    padding-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atout,
  .a-poche > img,
  .verrou li,
  .sync-barre i,
  .piste-ecrans figure {
    transition: none;
  }
  .verrou li {
    opacity: 1;
    transform: none;
  }
}
