/**
 * Visuel animé du hero /refonte-site-internet/ (template-parts/partials/hero-refonte-visual.php)
 * Scène fixe de 570 × 620 px mise à l'échelle de la colonne (--hrv-s, calculé par le script).
 * Boucle de 9 s : le trait balaie de gauche à droite et révèle le nouveau site, pause, retour.
 * v2 (2026-10-22) : ombres neutres, plus de lueurs colorées.
 */

.hrv {
	--hrv-s: .935;
	--hrv-mint: #00FFAA; --hrv-blue: #2253FE; --hrv-ink: #0E1322; --hrv-ink-2: #4A5168; --hrv-line: #E3E7F0;
	position: relative; width: 100%; max-width: 570px; aspect-ratio: 570 / 620; margin: 0 auto;
	font-family: Montserrat, sans-serif; text-align: left; letter-spacing: normal;
}
.hrv *, .hrv *::before, .hrv *::after { box-sizing: border-box; }
.hrv__stage { position: absolute; top: 0; left: 0; width: 570px; height: 620px; transform: scale(var(--hrv-s)); transform-origin: top left; }

/* Fenêtre de navigateur */
.hrv__window { position: absolute; left: 20px; top: 74px; width: 530px; height: 400px; border-radius: 14px; overflow: hidden; z-index: 1;
	background: #10141F; border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .35) inset; }
.hrv__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: linear-gradient(#22283A, #181D2B); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hrv__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3A4258; }
.hrv__bar i:nth-child(1) { background: #FF5F57; } .hrv__bar i:nth-child(2) { background: #FEBC2E; } .hrv__bar i:nth-child(3) { background: #28C840; }
.hrv__url { margin-left: 14px; flex: 1; height: 18px; border-radius: 9px; padding: 0 10px; display: flex; align-items: center; font-size: 9px; color: rgba(238, 241, 248, .7); background: rgba(255, 255, 255, .06); }
.hrv__view { position: relative; height: 370px; overflow: hidden; }

/* ---------- AVANT ---------- */
.hrv__old { position: absolute; inset: 0; background: #C9C9C9; font-family: 'Times New Roman', Times, serif; color: #000; font-size: 10px; }
.hrv-old__top { background: #000080; color: #FFFF00; font-size: 20px; font-weight: 700; padding: 8px 12px; font-family: 'Comic Sans MS', 'Comic Sans', cursive; }
.hrv-old__top small { font-size: 11px; color: #fff; font-weight: 400; }
.hrv-old__marquee { background: #FFFF00; color: #CC0000; font-weight: 700; font-size: 10px; padding: 3px 0; white-space: nowrap; overflow: hidden; }
.hrv-old__body { display: grid; grid-template-columns: 110px 1fr; }
.hrv-old__nav { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #E8E8E8; border-right: 2px outset #fff; min-height: 300px; }
.hrv-old__nav u { color: #0000EE; font-size: 11px; }
.hrv-old__main { padding: 10px 14px; }
.hrv-old__title { font-size: 16px; font-weight: 700; color: #800000; margin-bottom: 6px; }
.hrv-old__wip { display: inline-block; padding: 4px 10px; margin-bottom: 8px; font-weight: 700; font-size: 11px; color: #000;
	background: repeating-linear-gradient(45deg, #FFD400 0 10px, #111 10px 20px); }
.hrv-old__wip { color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.hrv-old__img { width: 150px; height: 80px; border: 2px inset #999; background: #DDD; display: grid; place-items: center; margin-bottom: 8px; color: #666; font-size: 9px; }
.hrv-old__main p { margin: 0 0 8px; max-width: 300px; line-height: 1.35; font-size: 11px; }
.hrv-old__counter { display: inline-block; padding: 2px 6px; background: #000; color: #00FF00; font-family: 'Courier New', monospace; font-size: 10px; }

/* ---------- APRÈS ---------- */
.hrv__new { position: absolute; inset: 0; background: #fff; color: var(--hrv-ink); font-size: 8px; line-height: 1.3;
	clip-path: inset(0 100% 0 0); animation: hrv-reveal 9s cubic-bezier(.65, 0, .35, 1) infinite; }
.hrv-new__nav { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 18px; border-bottom: 1px solid var(--hrv-line); }
.hrv-new__brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 11px; }
.hrv-new__brand i { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #C98B55, #8E5A33); }
.hrv-new__menu { display: flex; align-items: center; gap: 14px; color: var(--hrv-ink-2); font-weight: 500; }
.hrv-new__menu b { background: var(--hrv-blue); color: #fff; padding: 5px 9px; border-radius: 3px; font-weight: 600; }
.hrv-new__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 20px 18px 14px; }
.hrv-new__kicker { font-size: 6.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--hrv-blue); font-weight: 700; margin-bottom: 6px; }
.hrv-new__head { font-size: 21px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin-bottom: 7px; }
.hrv-new__text { color: var(--hrv-ink-2); margin-bottom: 10px; font-size: 9px; line-height: 1.5; }
.hrv-new__btn { display: inline-block; background: var(--hrv-blue); color: #fff; font-weight: 600; padding: 6px 11px; border-radius: 3px; font-size: 9px; }
.hrv-new__photo { border-radius: 7px; height: 128px; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(0,0,0,.18)), repeating-linear-gradient(90deg, #D9A26F 0 20px, #C98B55 20px 22px, #E0AE7E 22px 42px, #B97A45 42px 44px); }
.hrv-new__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 18px; }
.hrv-new__cards div { display: flex; align-items: center; gap: 7px; padding: 12px 10px; border: 1px solid var(--hrv-line); border-radius: 7px; background: #F3F5FA; font-weight: 700; font-size: 9px; }
.hrv-new__cards i { width: 16px; height: 16px; border-radius: 4px; background: #E6EBFF; flex: none; }

/* ---------- Trait de balayage ---------- */
.hrv__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 0; animation: hrv-scan 9s cubic-bezier(.65, 0, .35, 1) infinite; z-index: 2; }
.hrv__scan::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--hrv-mint); }
.hrv__scan::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(0, 255, 170, .18)); }
.hrv__scan span { position: absolute; top: 50%; left: -14px; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
	background: var(--hrv-mint); box-shadow: 0 0 0 5px rgba(0, 255, 170, .2); }
.hrv__scan span::before, .hrv__scan span::after { content: ''; position: absolute; top: 9px; width: 0; height: 0; border: 5px solid transparent; }
.hrv__scan span::before { left: 2px; border-right-color: #07231A; }
.hrv__scan span::after { right: 2px; border-left-color: #07231A; }

@keyframes hrv-reveal {
	0%, 8%    { clip-path: inset(0 100% 0 0); }
	50%, 78%  { clip-path: inset(0 0 0 0); }
	96%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes hrv-scan {
	0%, 8%    { left: 0; opacity: 0; }
	12%       { opacity: 1; }
	50%       { left: 100%; opacity: 1; }
	54%, 78%  { left: 100%; opacity: 0; }
	80%       { left: 100%; opacity: 1; }
	96%       { left: 0; opacity: 1; }
	100%      { left: 0; opacity: 0; }
}

/* Étiquettes Avant / Après */
.hrv__tag { position: absolute; top: 34px; z-index: 2; padding: 6px 13px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hrv__tag--avant { left: 20px; color: rgba(238, 241, 248, .8); background: rgba(14, 19, 34, .85); border: 1px solid rgba(255, 255, 255, .14); animation: hrv-avant 9s infinite; }
.hrv__tag--apres { right: 20px; color: #07231A; background: var(--hrv-mint); animation: hrv-apres 9s infinite; }
@keyframes hrv-avant { 0%, 30% { opacity: 1; } 45%, 85% { opacity: .35; } 100% { opacity: 1; } }
@keyframes hrv-apres { 0%, 35% { opacity: .35; } 50%, 85% { opacity: 1; } 100% { opacity: .35; } }

/* Carte des redirections */
.hrv__card { position: absolute; left: 120px; right: 0; top: 452px; z-index: 3; padding: 13px 15px; border-radius: 14px;
	background: rgba(14, 19, 34, .9); border: 1px solid rgba(255, 255, 255, .10); color: #EEF1F8; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .6);
	animation: hrv-card 9s infinite; }
.hrv__card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.hrv__card-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--hrv-mint); box-shadow: 0 0 8px var(--hrv-mint); }
.hrv__row { display: grid; grid-template-columns: 1fr 16px 1fr 16px; align-items: center; gap: 6px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .06);
	font-family: var(--font-mono, monospace); font-size: 10.5px; color: rgba(238, 241, 248, .72); }
.hrv__row em { font-style: normal; color: rgba(238, 241, 248, .4); text-align: center; }
.hrv__row span:nth-of-type(2) { color: #FBFCFF; }
.hrv__row b { color: var(--hrv-mint); text-align: right; }
@keyframes hrv-card { 0%, 40% { opacity: 0; transform: translateY(12px); } 52%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(12px); } }

/* Mouvements réduits : avant / après côte à côte, figé */
@media (prefers-reduced-motion: reduce) {
	.hrv__new { animation: none; clip-path: inset(0 0 0 50%); }
	.hrv__scan { animation: none; left: 50%; }
	.hrv__tag, .hrv__card { animation: none; opacity: 1; transform: none; }
}
