/* Pure — un fichier que l'on glisse, deux accès qui s'ouvrent, rien qui reste. */

/* ══════════════════════════════════════════════════════════════════════
   RÉGLAGES — tout ce qui se modifie facilement est ici, à un seul endroit
   ══════════════════════════════════════════════════════════════════════ */
.proof-pure {
  --pure-ftp: var(--ardoise);              /* repère FTP : les fichiers */
  --pure-ssh: var(--sauge);                /* repère SSH : le terminal */
  --pure-window-bg: #fff;                  /* fond de la fenêtre */
  --pure-window-line: #c8d6ce;             /* contour de la fenêtre */
  --pure-files-bg: var(--brume);           /* volet fichiers (clair) */
  --pure-terminal-bg: var(--marine);       /* volet terminal (sombre) */
  --pure-terminal-ink: #dfe8e4;            /* texte du terminal */
  --pure-file-width: 112px;                /* largeur du fichier à glisser */
  --pure-window-height: 204px;             /* hauteur de la fenêtre */
}

/* ══════════════════════════════════════════════════════════════════════
   LA PHOTO — l'image est montrée entière (l'écran Pure et l'utilisatrice),
   calée à droite. Elle occupe 58 % de la largeur : le voile blanc et la
   colonne de lecture lui laissent donc plus de place que dans les autres scènes.
   ══════════════════════════════════════════════════════════════════════ */
.proof-pure[data-photo-side="right"] {
  --photo-focus: 100% 50%;         /* bureau : l'image reste calée à droite */
  --photo-focus-mobile: 58% 50%;   /* mobile : la tranche visible est centrée sur le visage */
  --photo-space-mobile: 72svh;
  --pure-colonne: 36%;             /* largeur de la colonne de lecture (les autres scènes : 43 %) */
}
.proof-pure picture { display: contents; }
@media (min-width: 681px) {
  /* Le voile blanc s'arrête plus tôt : l'image commence à 42 % de la largeur. */
  .proof-pure::before {
    background:
      linear-gradient(180deg, #fff 0, #ffffff00 135px, #ffffff00 calc(100% - 155px), #fff 100%),
      linear-gradient(90deg, #fffffffc 0, #fffffffa 28%, #fffffff2 33%, #ffffffbd 38%, #ffffff00 44%);
  }
}
@media (min-width: 1000px) {
  .hybrid .proof-pure .proof-content { grid-template-columns: minmax(0, var(--pure-colonne)) minmax(0, 1fr); }
  .hybrid .proof-pure .proof-content > * { max-width: 440px; }
}

.atelier-study--pure { --study-tilt: .4deg; --study-entry: 5px; }

/* Le bureau : le fichier chez vous à gauche, la fenêtre à droite. */
.pure-desk {
  position: relative;
  display: grid;
  grid-template-columns: var(--pure-file-width) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}
.pure-home { position: relative; z-index: 2; text-align: center; }
.pure-file {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 4px 12px;
  border: 1px dashed transparent;
  border-radius: 9px;
  background: transparent;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--pure-dx, 0px), var(--pure-dy, 0px), 0);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .2s, border-color .2s;
}
.pure-file:hover,
.pure-file:focus-visible { background: #fffffff2; border-color: var(--line); }
.pure-file svg {
  display: block;
  width: 52px;
  height: 64px;
  stroke: var(--ardoise);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.pure-file .pure-key { stroke: var(--pure-ssh); stroke-width: 1.7; }
.pure-file-name { display: block; pointer-events: none; }
.pure-file-name code {
  font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.pure-file-name code span { color: var(--ardoise); }
.pure-home-label { margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.pure-scene.is-dragging .pure-file {
  cursor: grabbing;
  transition: background .2s, border-color .2s;
  background: #fff;
  border-color: var(--pure-window-line);
  box-shadow: 0 12px 30px #10263e1a;
}

/* La fenêtre : vide tant que rien n'est déposé. */
.pure-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: var(--pure-window-height);
  border: 1px solid var(--pure-window-line);
  border-radius: 12px;
  background: var(--pure-window-bg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pure-window.is-over { border-color: var(--pure-ssh); box-shadow: 0 0 0 4px #75a17f2e; }
.pure-window-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.pure-window-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pure-lights { position: relative; flex: none; width: 23px; height: 14px; }
.pure-lights i {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--line);
  transition: background .35s;
}
.pure-lights i + i { top: 3px; left: 11px; width: 11px; height: 11px; background: #cfdbd3; }
.pure-scene[data-pure-state="connected"] .pure-lights i { background: var(--pure-ftp); }
.pure-scene[data-pure-state="connected"] .pure-lights i + i { background: var(--pure-ssh); }
.pure-drop {
  display: grid;
  place-items: center;
  margin: 12px;
  padding: 12px;
  border: 1px dashed #b9c9c0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  transition: border-color .2s, background .2s;
}
.pure-window.is-over .pure-drop { border-color: var(--pure-ssh); background: #75a17f14; }
.pure-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.pure-pane { min-width: 0; padding: 12px 13px 12px; overflow: hidden; }
.pure-pane > p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.pure-pane > p::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pure-ftp); }
.pure-pane--files { background: var(--pure-files-bg); }
.pure-pane--terminal { background: var(--pure-terminal-bg); color: var(--pure-terminal-ink); }
.pure-pane--terminal > p::before { background: var(--pure-ssh); }
.pure-pane ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.02em;
}
.pure-pane li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pure-pane pre {
  margin: 0;
  font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.02em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pure-cursor { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: var(--pure-ssh); }

/* Le bloc produit (titre, chapeau, puces, lien) est désormais commun à toutes les scènes : voir sections.css. */

.pure-scene > .response { min-height: 48px; }
.pure-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; min-height: 52px; }
.pure-actions .solid-button { padding: 11px 20px; min-height: 46px; font-size: 15px; }
.pure-actions .text-button { color: var(--muted); }
@media (max-width: 680px) {
  .proof-pure { --pure-file-width: 100px; --pure-window-height: 212px; }
  .pure-desk { gap: 14px; }
  .pure-pane { padding: 11px 10px; }
}
@media (max-width: 370px) {
  .proof-pure { --pure-file-width: 92px; }
  .pure-desk { gap: 10px; }
  .pure-pane ul, .pure-pane pre { font-size: 11px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pure-scene[data-pure-state="connected"] .pure-panes { animation: pure-arrive .5s cubic-bezier(.2, .7, .2, 1) both; }
  .pure-scene.is-leaving .pure-panes { animation: pure-leave .32s ease both; }
  .pure-cursor { animation: pure-blink 1.1s steps(1) infinite; }
}
@keyframes pure-arrive { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
@keyframes pure-leave { to { opacity: 0; transform: translate3d(0, 6px, 0); } }
@keyframes pure-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .pure-file, .pure-window, .pure-drop, .pure-lights i { transition: none; }
}
