/* Logiciel sur mesure : ce qui n'appartient qu'à ce pilier. Le socle
   (lockpit.css) et pilier.css fournissent le reste. Ici : les notifications
   du héros, les paroles d'artisans, le manifeste, les écrans à onglets, les
   démos, la poche, la journée des automatisations, les briques. */

/* ---------- HÉROS : les automatisations passent en direct ---------- */
.notifs {
  position: absolute;
  left: 2%;
  bottom: 4%;
  z-index: 3;
  display: grid;
  gap: 10px;
  width: min(60%, 340px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.notifs li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: rgba(248, 246, 241, 0.94);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: surgit 0.9s var(--ressort) forwards;
  animation-delay: calc(1.3s + var(--i, 0) * 1.1s);
}
.notifs i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--blue-texte);
  font: 600 13px "JetBrains Mono";
  font-style: normal;
}
.notifs li.ok i {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}
.notifs small {
  display: block;
  color: var(--muted);
  font: 500 11px "JetBrains Mono";
  letter-spacing: 0.04em;
}
@keyframes surgit {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- PAROLES ---------- */
.paroles {
  display: grid;
  gap: 18px;
}
.parole {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px 28px;
  border-radius: 26px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06), var(--ombre-douce);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.7s var(--ressort), box-shadow 0.7s var(--ressort);
}
.parole:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08), var(--ombre-portee);
}
.parole::before {
  content: "«";
  position: absolute;
  right: 24px;
  top: 6px;
  font: 800 96px / 1 "Bricolage Grotesque";
  color: var(--soft);
}
.parole p {
  position: relative;
  margin: 0;
  font: 500 clamp(17px, 1.5vw, 20px) / 1.4 "Bricolage Grotesque";
  letter-spacing: -0.015em;
}
.parole span {
  margin-top: auto;
  color: var(--blue-texte);
  font: 600 11px "JetBrains Mono";
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.parole:nth-child(3n + 1) { --r: -1.2deg; }
.parole:nth-child(3n + 2) { --r: 0.8deg; }
.parole:nth-child(3n) { --r: -0.6deg; }

/* ---------- ÉCRANS À ONGLETS ---------- */
.ecrans-section {
  background: white;
}
.ecrans {
  display: grid;
  gap: 28px;
}
.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.onglets button {
  position: relative;
  overflow: hidden;
  padding: 12px 20px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 15px "DM Sans";
  cursor: pointer;
  transition: background 0.4s var(--ressort), color 0.4s var(--ressort), border-color 0.4s var(--ressort);
}
.onglets button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.onglets button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.onglets button[aria-selected="true"]::after {
  animation: file 6s linear forwards;
}
.ecrans.figes .onglets button::after {
  animation: none;
}
@keyframes file {
  to {
    transform: scaleX(1);
  }
}
.ecran-cadre {
  --rayon: 30px;
  --bord: 8px;
}
.ecran-cadre .coeur {
  position: relative;
  aspect-ratio: 3 / 2;
}
.ecran-cadre img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s var(--ressort), transform 1s var(--ressort);
}
.ecran-cadre img.actif {
  opacity: 1;
  transform: none;
}
.ecran-legendes {
  position: relative;
  min-height: 5.5em;
}
.ecran-legendes div {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ressort), transform 0.6s var(--ressort);
  pointer-events: none;
}
.ecran-legendes div.actif {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ecran-legendes b {
  display: block;
  font: 700 clamp(22px, 2.2vw, 28px) / 1.1 "Bricolage Grotesque";
  letter-spacing: -0.03em;
}
.ecran-legendes p {
  margin: 10px 0 0;
  max-width: 40em;
  color: var(--muted);
}

/* ---------- DÉMOS ---------- */
.demos {
  display: grid;
  gap: 18px;
}
.demo {
  --rayon: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: var(--rayon);
  background: white;
  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);
}
.demo:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08), var(--ombre-portee);
}
.demo .pill {
  align-self: flex-start;
}
.demo h3 {
  margin: 8px 0 0;
  font: 700 clamp(28px, 3vw, 40px) / 1 "Bricolage Grotesque";
  letter-spacing: -0.04em;
}
.demo > p {
  margin: 0;
  max-width: 30em;
  color: var(--muted);
  font-size: 16px;
}
.demo ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo li {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
  font-size: 14px;
  font-weight: 500;
}
.demo .cadre {
  --rayon: 22px;
  --bord: 6px;
  margin: auto -8px -60px;
  padding-top: 0;
  transition: transform 0.9s var(--ressort);
}
.demo:hover .cadre {
  transform: translateY(-10px);
}
.demo .coeur {
  aspect-ratio: 16 / 9;
}
.demo .coeur img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.demo .btn {
  align-self: flex-start;
  margin: 8px 0 18px;
}
.demos-metiers {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.metier {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 22px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
  transition: box-shadow 0.5s var(--ressort), transform 0.5s var(--ressort);
}
.metier:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08), var(--ombre-douce);
}
.metier span {
  color: var(--muted);
  font: 600 11px "JetBrains Mono";
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.metier a.ouvrir {
  color: var(--ink);
  text-decoration: none;
  font: 700 20px "Bricolage Grotesque";
  letter-spacing: -0.025em;
}
.metier a.ouvrir:hover {
  color: var(--blue);
}
.metier p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.metier .suite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 15px "DM Sans";
}
.metier .suite i {
  font-style: normal;
  transition: transform 0.4s var(--ressort);
}
.metier .suite:hover {
  color: var(--blue);
}
.metier .suite:hover i {
  transform: translateX(3px);
}
.demos-note {
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- LA POCHE ---------- */
.poche {
  display: grid;
  gap: 40px;
  align-items: center;
}
.poche .cadre {
  --rayon: 36px;
  --bord: 7px;
  width: min(70%, 300px);
  margin: 0 auto;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.07), var(--ombre-portee);
  animation: flotte 8s ease-in-out infinite alternate;
}
.poche h2 {
  margin: 0;
  font: 700 clamp(34px, 4vw, 56px) / 1 "Bricolage Grotesque";
  letter-spacing: -0.045em;
}
.poche p {
  margin: 18px 0 0;
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
}

/* ---------- LA JOURNÉE DES AUTOMATISATIONS ---------- */
.journee {
  display: grid;
  gap: 0 48px;
}
.journee article {
  position: relative;
  padding: 28px 0 28px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.journee article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 36px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(53, 108, 244, 0.22), 0 0 24px rgba(53, 108, 244, 0.6);
}
.journee span {
  display: block;
  color: #9db7ff;
  font: 600 12px "JetBrains Mono";
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.journee b {
  display: block;
  margin-top: 10px;
  font: 700 clamp(22px, 2.2vw, 28px) / 1.1 "Bricolage Grotesque";
  letter-spacing: -0.03em;
}
.journee p {
  margin: 10px 0 0;
  max-width: 30em;
  color: #a5b0b6;
}

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

/* ---------- Réactif ---------- */
@media (min-width: 700px) {
  .paroles {
    grid-template-columns: repeat(3, 1fr);
  }
  .demos {
    grid-template-columns: 1fr 1fr;
  }
  .demos-metiers {
    grid-template-columns: repeat(4, 1fr);
  }
  .journee {
    grid-template-columns: 1fr 1fr;
  }
  .briques {
    grid-template-columns: repeat(3, 1fr);
  }
  .poche {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
  }
  .poche .cadre {
    margin: 0;
  }
}
@media (min-width: 980px) {
  .ecrans {
    grid-template-columns: 1fr;
  }
  .demos {
    grid-template-columns: repeat(3, 1fr);
  }
  .demo h3 {
    font-size: clamp(26px, 2.4vw, 32px);
  }
}
@media (max-width: 699px) {
  .notifs {
    display: none;
  }
  .parole {
    --r: 0deg;
  }
  .demo .cadre {
    margin-bottom: -40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notifs li {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .parole,
  .demo,
  .demo .cadre,
  .metier,
  .ecran-cadre img,
  .ecran-legendes div {
    transition: none;
  }
  .poche .cadre {
    animation: none;
  }
  .onglets button[aria-selected="true"]::after {
    animation: none;
  }
}
