/* Page démo « Fais sa une en 30 secondes » (/sa-une). Se charge après glossy.css.
   Mobile d'abord : la une, puis le prénom juste dessous (le clavier remonte la page et le prénom reste visible). */

.demo__haut { padding-top: 18px; padding-bottom: 14px; }
.demo__logo { width: 120px; height: auto; }
.demo__titre { font: 800 clamp(36px, 10vw, 60px)/1.02 var(--titre); letter-spacing: -.01em; margin: 16px 0 0; }
.demo__titre span { display: block; font-style: italic; font-weight: 500; color: var(--rose); }
.demo__intro { margin: 10px 0 0; color: var(--gris); max-width: 32em; }

.demo__studio { display: grid; gap: 18px; padding-bottom: 40px; }

/* La une : jamais plus de 64 % de l'écran en hauteur, pour garder de la place où poser le pouce et défiler */
.demo__une canvas {
  display: block; margin: 0 auto; width: min(100%, 440px, calc(64svh * 910 / 1287)); height: auto; aspect-ratio: 910 / 1287;
  border-radius: 4px; background: var(--noir); box-shadow: var(--douce); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.demo--photo .demo__une canvas { cursor: grab; touch-action: none; }
.demo__aide { text-align: center; font-size: 14px; color: var(--gris); margin: 10px 0 0; }
[data-avec-photo] { display: none; }
.demo--photo [data-avec-photo] { display: block; }
.demo--photo .demo__zoom[data-avec-photo] { display: flex; }

.demo__reglages { max-width: 440px; width: 100%; margin: 0 auto; }
.demo__reglages .champ input {
  width: 100%; font: 500 italic 24px/1.2 var(--titre); padding: 12px 14px; min-height: 54px; color: var(--noir); background: #fff;
  border: 1px solid rgba(22, 17, 15, .35); border-radius: 8px; -webkit-appearance: none; appearance: none;
}
.demo__reglages .champ input:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

.demo__photo { margin-top: 4px; }
.demo__fichier { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.demo__choisir {
  display: block; text-align: center; font: 700 17px/1 var(--texte); padding: 15px 20px; border-radius: 99px;
  border: 1px solid var(--noir); background: transparent; color: var(--noir); cursor: pointer;
}
.demo__photo:focus-within .demo__choisir { outline: 2px solid var(--rose); outline-offset: 2px; }
.demo__choisir:hover { background: rgba(22, 17, 15, .05); }
.demo--photo .demo__choisir { font-weight: 600; font-size: 15px; padding: 11px 16px; }
.demo__prive { font-size: 14px; color: var(--gris); margin: 8px 0 0; text-align: center; }

.demo__zoom { align-items: center; gap: 12px; margin: 16px 0 0; font-size: 14px; font-weight: 700; }
.demo__zoom input { flex: 1; accent-color: var(--rose); min-height: 32px; }

.demo__ton { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.demo__ton .pour { margin: 0; }
.demo__phrase {
  font: 700 15px/1 var(--texte); padding: 10px 16px; border-radius: 99px; border: 1px solid var(--ligne); background: transparent;
  color: var(--noir); cursor: pointer;
}
.demo__phrase::before { content: "↻ "; color: var(--rose); }
.demo__phrase:focus-visible, .demo__lien:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

.demo__actions { max-width: 440px; width: 100%; margin: 6px auto 0; display: grid; gap: 12px; }
.demo__actions .bouton { width: 100%; text-align: center; }
.demo__partager { background: var(--rose); }
.demo__lien {
  font: 600 15px/1 var(--texte); padding: 12px; background: none; border: 0; color: var(--noir); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rose);
}
.demo__surprise { font-size: 14px; color: var(--gris); text-align: center; margin: 0; }

/* L'achat : fond encre, comme la fin de l'accueil */
.demo__achat { background: var(--noir); color: var(--papier); padding: 56px 0 64px; }
.demo__achat .surtitre { color: var(--rose-nuit); }
.demo__achat .titre { color: var(--papier); margin-bottom: 18px; }
.demo__achat .titre em { color: var(--rose-nuit); }
.demo__achat p { max-width: 34em; }
.demo__acheter { margin: 26px 0 0; max-width: 440px !important; }
.demo__acheter .bouton { width: 100%; text-align: center; background: var(--rose); }
.demo__achat .achat__ligne { color: #CFC6BF; font-size: 15px; margin-top: 12px; }
.demo__achat .achat__ligne a { color: #fff; }
.demo__attente { margin-top: 40px; color: var(--noir); max-width: 440px; }
.demo__attente p { margin: 0 0 14px; }
.demo__attente .bouton { width: 100%; }

/* L'image à enregistrer, quand le téléphone ne propose pas le partage */
.apercu { position: fixed; inset: 0; z-index: 60; background: var(--noir); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.apercu[hidden] { display: none; }
.apercu__boite { width: min(100%, 360px); text-align: center; color: var(--papier); }
.apercu__boite img { width: auto; max-width: 100%; max-height: 62svh; margin: 0 auto; border-radius: 6px; -webkit-touch-callout: default; }
.apercu__boite p { font-size: 15px; margin: 14px 0; }
.apercu__boite .bouton { width: 100%; background: var(--rose); }
.apercu__fermer { margin-top: 10px; font: 600 15px/1 var(--texte); padding: 12px 20px; background: none; border: 0; color: var(--papier); text-decoration: underline; cursor: pointer; }
.demo--apercu { overflow: hidden; }

@media (min-width: 900px) {
  .demo__studio { grid-template-columns: minmax(0, 460px) minmax(0, 420px); grid-template-rows: auto 1fr; justify-content: center; column-gap: 56px; align-items: start; }
  .demo__une { grid-row: span 2; }
  .demo__une canvas { width: min(100%, 460px, calc(80vh * 910 / 1287)); }
  .demo__reglages, .demo__actions { margin: 0; }
}
