/**
 * Mockup animé du hero /creation-sites-vitrines/ (template-parts/partials/hero-mockup-site.php)
 *
 * Scène fixe de 570 × 700 px mise à l'échelle de la colonne (--hms-s, calculé par le script).
 * Étapes ajoutées par le script sur .hms : is-wire → is-design → is-admin → is-notif → is-out.
 * Sans script ou avec mouvements réduits : état final (classe is-final).
 * v2 (2026-10-22) : ombres neutres, plus de lueurs colorées.
 */

.hms {
	--hms-s: .935;
	--hms-mint: #00FFAA; --hms-mint-btn: #3EE8B0; --hms-blue: #2253FE;
	--hms-ink: #0E1322; --hms-ink-2: #4A5168; --hms-line: #E3E7F0; --hms-paper: #FFFFFF; --hms-soft: #F3F5FA; --hms-sk: #E3E7F0;
	--hms-wood: #C98B55; --hms-wood-2: #8E5A33;
	position: relative;
	width: 100%;
	max-width: 570px;
	aspect-ratio: 570 / 700;
	margin-left: auto;
	margin-right: auto; /* centré dans sa colonne */
	font-family: Montserrat, sans-serif;
	text-align: left; /* le thème centre le texte du hero sur mobile */
	letter-spacing: normal;
}
.hms__stage {
	position: absolute; top: 0; left: 0;
	width: 570px; height: 700px;
	transform: scale(var(--hms-s)); transform-origin: top left;
	transition: opacity .5s ease;
}
.hms.is-out .hms__stage { opacity: 0; }
.hms *, .hms *::before, .hms *::after { box-sizing: border-box; }

/* ---------- Ordinateur ---------- */
.hms__laptop { position: absolute; left: 50px; top: 206px; width: 490px; }
.hms__lid { position: relative; height: 300px; border-radius: 14px 14px 4px 4px; padding: 12px 12px 14px;
	background: linear-gradient(160deg, #2A3045, #10141F 60%); border: 1px solid rgba(255,255,255,.10);
	box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4) inset; }
.hms__cam { position: absolute; top: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #3A4258; }
.hms__screen { width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: var(--hms-paper); }
.hms__base { position: relative; height: 13px; margin: 0 -22px; border-radius: 0 0 14px 14px;
	background: linear-gradient(#D9DEEA, #9AA2B6); box-shadow: 0 18px 30px -12px rgba(0,0,0,.7); }
.hms__base::after { content: ''; position: absolute; left: 50%; top: 0; width: 80px; height: 5px; margin-left: -40px; border-radius: 0 0 6px 6px; background: #8A92A6; }

/* ---------- Site fictif, ordinateur ---------- */
.hms-site { font-size: 7px; line-height: 1.3; color: var(--hms-ink); }
.hms-site__nav { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 16px; border-bottom: 1px solid var(--hms-line); }
.hms-site__brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 9px; letter-spacing: -.01em; }
.hms-site__brand i, .hms-m__brand i { flex: none; border-radius: 4px; background: linear-gradient(135deg, var(--hms-wood), var(--hms-wood-2)); }
.hms-site__brand i { width: 14px; height: 14px; }
.hms-site__menu { display: flex; align-items: center; gap: 12px; color: var(--hms-ink-2); font-weight: 500; }
.hms-site__menu b { background: var(--hms-blue); color: #fff; padding: 4px 8px; border-radius: 3px; font-weight: 600; }
.hms-site__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; padding: 16px 16px 12px; }
.hms-site__kicker, .hms-m__kicker { letter-spacing: .14em; text-transform: uppercase; color: var(--hms-blue); font-weight: 700; }
.hms-site__kicker { font-size: 5.5px; margin-bottom: 5px; }
.hms-site__head { font-size: 17px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.hms-site__text { color: var(--hms-ink-2); line-height: 1.5; margin-bottom: 8px; }
.hms-site__btn { display: inline-block; background: var(--hms-blue); color: #fff; font-weight: 600; padding: 5px 9px; border-radius: 3px; }
.hms-site__btn2 { background: transparent; color: var(--hms-ink); border: 1px solid var(--hms-line); margin-left: 4px; }
.hms-site__photo, .hms-m__photo { border-radius: 6px; position: relative; overflow: hidden;
	background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(0,0,0,.18)), repeating-linear-gradient(90deg, #D9A26F 0 18px, #C98B55 18px 20px, #E0AE7E 20px 38px, #B97A45 38px 40px); }
.hms-site__photo { height: 98px; }
.hms-site__photo::before { content: ''; position: absolute; left: 14px; bottom: 0; width: 40px; height: 56px; border-radius: 20px 20px 0 0; background: rgba(255,255,255,.35); }
.hms-site__services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 14px; }
.hms-site__card { border: 1px solid var(--hms-line); border-radius: 6px; padding: 8px; background: var(--hms-soft); }
.hms-site__card i { display: block; width: 16px; height: 16px; border-radius: 4px; background: #E6EBFF; margin-bottom: 5px; }
.hms-site__card strong { display: block; min-height: 10px; font-size: 7.5px; font-weight: 700; margin-bottom: 3px; white-space: nowrap; overflow: hidden; }
.hms-site__card span { display: block; height: 3px; border-radius: 2px; background: var(--hms-line); margin-top: 3px; }
.hms-site__card span + span { width: 70%; }

/* ---------- Téléphone ---------- */
.hms__phone { position: absolute; left: 10px; top: 380px; width: 142px; height: 286px; border-radius: 24px; padding: 7px;
	background: linear-gradient(160deg, #2A3045, #0C0F18); border: 1px solid rgba(255,255,255,.12);
	box-shadow: 0 24px 40px -14px rgba(0,0,0,.6); }
.hms__notch { position: absolute; top: 11px; left: 50%; width: 38px; height: 9px; margin-left: -19px; border-radius: 6px; background: #0C0F18; z-index: 2; }
.hms__phone .hms__screen { border-radius: 18px; }
.hms-m { font-size: 6px; line-height: 1.3; color: var(--hms-ink); padding-top: 18px; }
.hms-m__nav { display: flex; justify-content: space-between; align-items: center; padding: 0 10px 7px; border-bottom: 1px solid var(--hms-line); }
.hms-m__brand { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 7px; }
.hms-m__brand i { width: 10px; height: 10px; border-radius: 3px; }
.hms-m__burger { position: relative; width: 10px; height: 7px; border-top: 1.5px solid var(--hms-ink); border-bottom: 1.5px solid var(--hms-ink); }
.hms-m__burger::before { content: ''; position: absolute; left: 0; right: 0; top: 1.25px; border-top: 1.5px solid var(--hms-ink); }
.hms-m__body { padding: 9px 10px; }
.hms-m__kicker { font-size: 4.5px; margin-bottom: 4px; }
.hms-m__head { font-size: 12px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.hms-m__btn { display: block; text-align: center; background: var(--hms-blue); color: #fff; font-weight: 600; padding: 5px 0; border-radius: 3px; margin-bottom: 8px; }
.hms-m__photo { height: 50px; border-radius: 5px; margin-bottom: 8px; }
.hms-m__card { display: flex; align-items: center; gap: 5px; min-height: 24px; border: 1px solid var(--hms-line); border-radius: 5px; padding: 6px; background: var(--hms-soft); margin-bottom: 5px; font-weight: 700; }
.hms-m__card i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: #E6EBFF; }

/* Carte modifiée en direct */
.hms-site__card--live, .hms-m__card--live { transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease; }
.hms.is-admin .hms-site__card--live { background: #fff; border-color: var(--hms-mint); box-shadow: 0 0 0 2px rgba(0,255,170,.25), 0 6px 14px -6px rgba(0,180,120,.5); }
.hms.is-admin .hms-m__card--live { background: #fff; border-color: var(--hms-mint); box-shadow: 0 0 0 1.5px rgba(0,255,170,.25); }

/* ---------- Structure (wireframe) → design ---------- */
.hms-sk { position: relative; opacity: 0; transform: translateY(4px);
	transition: opacity .35s ease, transform .35s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.hms-sk::after { content: ''; position: absolute; inset: 0; border-radius: 3px; background: var(--hms-sk);
	transition: opacity .4s ease; transition-delay: calc(var(--i, 0) * 70ms); pointer-events: none; z-index: 1; }
.hms.is-wire .hms-sk { opacity: 1; transform: none; }
.hms.is-design .hms-sk::after { opacity: 0; }
.hms-site__photo.hms-sk::after, .hms-m__photo.hms-sk::after,
.hms-site__card.hms-sk::after, .hms-m__card.hms-sk::after { border-radius: inherit; }

/* ---------- Fenêtre d'administration ---------- */
.hms__admin { position: absolute; right: 12px; top: 14px; width: 268px; border-radius: 16px; padding: 14px 14px 13px;
	background: rgba(14,19,34,.82); border: 1px solid rgba(255,255,255,.10); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: 0 22px 44px -16px rgba(0,0,0,.6); color: #EEF1F8;
	opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.hms.is-admin .hms__admin { opacity: 1; transform: none; }
.hms__admin-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.hms__admin-dot { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(118deg, #2253FE, #00FFAA); }
.hms__admin-dot svg { width: 10px; height: 10px; }
.hms__admin-bar b { font-size: 10px; font-weight: 700; }
.hms__admin-bar em { margin-left: auto; font-style: normal; font-size: 7.5px; color: rgba(238,241,248,.6); }
.hms__label { font-size: 7.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(238,241,248,.66); margin-bottom: 4px; }
.hms__field { display: flex; align-items: center; height: 26px; padding: 0 9px; margin-bottom: 9px; border-radius: 5px; font-size: 10px; font-weight: 500;
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #FBFCFF; white-space: nowrap; overflow: hidden; }
.hms__field--focus { border-color: var(--hms-mint); box-shadow: 0 0 0 3px rgba(0,255,170,.14); }
.hms__field--muted { color: rgba(238,241,248,.5); }
.hms__caret { display: inline-block; flex: none; width: 1.5px; height: 12px; margin-left: 1px; background: var(--hms-mint); animation: hms-blink 1s steps(1) infinite; }
@keyframes hms-blink { 50% { opacity: 0; } }
.hms__admin-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.hms__admin-row span { display: flex; align-items: center; gap: 4px; font-size: 7.5px; color: var(--hms-mint); }
.hms__admin-row span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--hms-mint); box-shadow: 0 0 6px var(--hms-mint); }
.hms__admin-row b { font-size: 9px; font-weight: 700; color: #07231A; background: var(--hms-mint-btn); padding: 6px 11px; border-radius: 4px; }

/* ---------- Notification ---------- */
.hms__notif { position: absolute; right: 12px; top: 572px; width: 236px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 14px;
	background: rgba(14,19,34,.86); border: 1px solid rgba(255,255,255,.10); color: #EEF1F8; box-shadow: 0 18px 36px -14px rgba(0,0,0,.6);
	opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .5s cubic-bezier(.2,.8,.2,1.2); }
.hms.is-notif .hms__notif { opacity: 1; transform: none; }
.hms__notif-ic { flex: none; width: 34px; height: 34px; }
.hms__notif b { display: block; font-size: 10.5px; font-weight: 700; margin-bottom: 2px; }
.hms__notif small { font-size: 8px; color: rgba(238,241,248,.62); }

/* ---------- État final (sans script, mouvements réduits) ---------- */
.hms.is-final .hms-sk { opacity: 1; transform: none; transition: none; }
.hms.is-final .hms-sk::after { opacity: 0; transition: none; }
.hms.is-final .hms__admin, .hms.is-final .hms__notif { opacity: 1; transform: none; transition: none; }
.hms.is-final .hms__caret { animation: none; }

/* Remise à zéro de la boucle sans transition visible */
.hms.is-reset *, .hms.is-reset *::before, .hms.is-reset *::after, .hms.is-reset .hms__stage { transition: none !important; }

/* Ordre des couches : chaque appareil isole ses blocs (les blocs gris ne passent jamais devant le téléphone) */
.hms__laptop { z-index: 1; isolation: isolate; }
.hms__phone  { z-index: 2; isolation: isolate; }
.hms__admin  { z-index: 3; }
.hms__notif  { z-index: 4; }
