@charset "UTF-8";

/* Quatre ingrédients : révélations au clic du moteur du deck. */
.prompt-structure-slide h2 { font-size: 62px; }
.prompt-structure-slide .eyebrow { margin-bottom: 14px; }
.prompt-building {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 90px;
  align-items: center;
  margin-top: 30px;
}
.prompt-parts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.prompt-part {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 76px;
  padding: 14px 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefbc9;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.prompt-part-icon {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  height: 43px;
  border-radius: 13px;
  color: var(--prompt-color);
  background: var(--prompt-soft);
}
.prompt-part-icon .icon { width: 23px; height: 23px; }
.prompt-part strong { font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.prompt-part-number { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--muted); }
.prompt-part:nth-child(1), .prompt-line:nth-child(1), .prompt-wire:nth-child(1) { --prompt-color: #b6482c; --prompt-soft: #f3e8df; }
.prompt-part:nth-child(2), .prompt-line:nth-child(2), .prompt-wire:nth-child(2) { --prompt-color: #526c9d; --prompt-soft: #e9eef8; }
.prompt-part:nth-child(3), .prompt-line:nth-child(3), .prompt-wire:nth-child(3) { --prompt-color: #236346; --prompt-soft: #e0ebdf; }
.prompt-part:nth-child(4), .prompt-line:nth-child(4), .prompt-wire:nth-child(4) { --prompt-color: #77603a; --prompt-soft: #f2ead7; }
.prompt-wires { position: absolute; left: 279px; top: 0; width: 92px; height: 346px; overflow: visible; pointer-events: none; }
.prompt-wire { stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 8; transition: stroke .4s; }
.prompt-composer {
  position: relative;
  height: 346px;
  border: 1px solid #d1dacf;
  border-radius: 21px;
  background: #fffefb;
  box-shadow: 0 14px 35px #172c380a;
}
.prompt-composer-head {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 50px;
  padding: 0 23px;
  border-bottom: 1px solid #e3e7df;
  color: var(--muted);
  font-size: 14px;
}
.prompt-composer-head > .icon { color: var(--accent); width: 20px; height: 20px; }
.prompt-composer-head > strong { font-weight: 600; }
.prompt-composer-head > span { margin-left: auto; font-size: 11px; letter-spacing: .06em; }
.prompt-reference { width: 37px; height: 28px; object-fit: cover; border-radius: 5px; }
.prompt-example { display: grid; gap: 8px; margin: 0; padding: 14px 20px; }
.prompt-line {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 9px 18px;
  border-left: 4px solid var(--prompt-color);
  border-radius: 0 10px 10px 0;
  background: var(--prompt-soft);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.prompt-line.reveal { transform: translateX(-28px); }
.prompt-line.is-visible { transform: none; }
.prompt-structure-slide.active .prompt-line.is-visible { animation: prompt-assemble .65s cubic-bezier(.2,.75,.25,1) both; }
.prompt-empty {
  position: absolute;
  inset: 50px 0 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 23px;
}
.prompt-structure-slide:has(.prompt-line.is-visible) .prompt-empty { display: none; }
.prompt-structure-slide:has(.prompt-line:nth-child(1).is-visible) .prompt-part:nth-child(1),
.prompt-structure-slide:has(.prompt-line:nth-child(2).is-visible) .prompt-part:nth-child(2),
.prompt-structure-slide:has(.prompt-line:nth-child(3).is-visible) .prompt-part:nth-child(3),
.prompt-structure-slide:has(.prompt-line:nth-child(4).is-visible) .prompt-part:nth-child(4) {
  border-color: var(--prompt-color);
  background: var(--prompt-soft);
  box-shadow: 0 7px 18px #172c3808;
}
.prompt-structure-slide:has(.prompt-line:nth-child(1).is-visible) .prompt-wire:nth-child(1),
.prompt-structure-slide:has(.prompt-line:nth-child(2).is-visible) .prompt-wire:nth-child(2),
.prompt-structure-slide:has(.prompt-line:nth-child(3).is-visible) .prompt-wire:nth-child(3),
.prompt-structure-slide:has(.prompt-line:nth-child(4).is-visible) .prompt-wire:nth-child(4) {
  stroke: var(--prompt-color);
  animation: prompt-transfer .65s linear;
}
.prompt-structure-note { margin-top: 22px; font-size: 25px; color: var(--muted); text-align: right; letter-spacing: -.02em; }
.prompt-structure-note strong { color: var(--ink); }
html:has(#overview[open]) .prompt-structure-slide *,
html:has(#blackout:not([hidden])) .prompt-structure-slide * { animation-play-state: paused; }
@keyframes prompt-assemble {
  from { opacity: 0; transform: translateX(-65px) scale(.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes prompt-transfer { from { stroke-dashoffset: 52; } to { stroke-dashoffset: 0; } }
@media screen and (max-width: 759px) {
  .prompt-structure-slide h2 { font-size: clamp(35px, 10vw, 54px); }
  .prompt-structure-slide h2 em { display: inline-block; }
  .prompt-building { grid-template-columns: minmax(0,1fr); gap: 21px; margin-top: 25px; }
  .prompt-parts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .prompt-part { height: 65px; gap: 9px; padding: 10px; border-radius: 12px; }
  .prompt-part-icon { flex-basis: 30px; height: 32px; border-radius: 9px; }
  .prompt-part-icon .icon { width: 19px; height: 19px; }
  .prompt-part strong { font-size: 20px; }
  .prompt-part-number { font-size: 9px; }
  .prompt-wires { display: none; }
  .prompt-composer { height: auto; min-height: 358px; border-radius: 16px; }
  .prompt-composer-head { padding: 0 15px; }
  .prompt-example { padding: 14px; gap: 9px; }
  .prompt-line { height: 62px; padding: 9px 11px; font-size: 19px; }
  .prompt-empty { font-size: 20px; }
  .prompt-structure-note { margin-top: 20px; font-size: 22px; text-align: left; }
}
@media (prefers-reduced-motion: reduce), print {
  .prompt-structure-slide *, .prompt-structure-slide *::before { animation: none !important; transition: none !important; }
}
@media print {
  .prompt-line.reveal { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .prompt-empty { display: none; }
  .prompt-part { border-color: var(--prompt-color); background: var(--prompt-soft); }
  .prompt-wire { stroke: var(--prompt-color); }
  .prompt-composer { box-shadow: none; }
}
