/* Popups Bilan et Entre Nous — maquette V2.1 lot 4 (design-sources/v2.1-lot4/, §24).
   Desktop : fenêtre centrée sur un voile encre ; mobile : feuille basse avec poignée. */

.hv-pop[hidden] { display: none !important; }
.hv-pop { position: fixed; inset: 0; z-index: 9980; display: flex; align-items: center; justify-content: center; padding: 40px; }
.hv-pop-voile { position: absolute; inset: 0; background: rgba(42, 26, 28, 0.58); animation: hv-pop-fondu .2s ease-out; }
.hv-pop-fenetre {
	position: relative; max-width: 100%; max-height: calc(100dvh - 48px); overflow: auto; border-radius: 32px;
	box-shadow: 0 40px 80px -40px rgba(20, 10, 12, 0.7); animation: hv-pop-entree .25s ease-out;
}
.hv-pop-titre:focus { outline: none; }
.hv-pop-poignee { display: none; }
.hv-pop-fermer {
	position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hv-pop-surtitre { margin: 0; font-family: var(--hv-jakarta); font-size: 11px; line-height: normal; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; }
.hv-pop-titre { font-family: var(--hv-prata); font-weight: 400; margin: 0; line-height: 1.12; }
.hv-pop-texte { font-family: var(--hv-newsreader); font-size: 19px; line-height: 1.5; margin: 0; }
.hv-pop-pas {
	background: none; border: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	font-family: var(--hv-jakarta); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap;
}

/* Popup Bilan : bordeaux, image à gauche (340 px), contenu à droite. */
.hv-pop--bilan .hv-pop-fenetre { width: 820px; background: var(--hv-bordeaux); color: var(--hv-creme); display: grid; grid-template-columns: 340px minmax(0, 1fr); overflow: hidden; }
.hv-pop--bilan .hv-pop-fermer { background: rgba(252, 247, 240, 0.14); color: var(--hv-creme); }
.hv-pop--bilan .hv-pop-image { position: relative; min-height: 100%; background: var(--hv-bordeaux-profond); }
.hv-pop--bilan .hv-pop-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-pop--bilan .hv-pop-contenu { padding: 56px 52px 50px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.hv-pop--bilan .hv-pop-surtitre { color: #F2D8D2; }
.hv-pop--bilan .hv-pop-titre { font-size: 40px; line-height: 1.08; color: var(--hv-creme); }
.hv-pop--bilan .hv-pop-texte { color: #F6E6E1; }
.hv-pop--bilan .hv-pop-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; margin-top: 14px; }
.hv-pop--bilan .hv-pop-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hv-pop-bouton { height: 56px; padding: 0 32px; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.hv-pop-reassurance { margin: 0; font-family: var(--hv-jakarta); font-size: 11.5px; line-height: normal; color: #F2D8D2; }
.hv-pop--bilan .hv-pop-pas { color: #F2D8D2; text-decoration-color: rgba(242, 216, 210, 0.45); }

/* Popup Entre Nous : rose argile, typographique, centrée (640 px). */
.hv-pop--entre-nous .hv-pop-fenetre { width: 640px; background: var(--hv-rose); color: var(--hv-encre); }
.hv-pop--entre-nous .hv-pop-fermer { background: rgba(255, 255, 255, 0.7); color: var(--hv-encre); }
.hv-pop--entre-nous .hv-pop-contenu { padding: 60px 56px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hv-pop--entre-nous .hv-pop-surtitre { color: var(--hv-bordeaux); }
.hv-pop--entre-nous .hv-pop-titre { font-size: 56px; line-height: 1; letter-spacing: -0.015em; }
.hv-pop--entre-nous .hv-pop-texte { color: var(--hv-encre-2, var(--hv-encre)); max-width: 44ch; text-wrap: pretty; }
.hv-pop--entre-nous .hv-en--popup { align-self: stretch; text-align: left; padding: 12px 0 0; border-radius: 0; background: none; gap: 0; }
/* Champs et bouton de la popup (lot 6) : 56 px, prénom et email côte à côte sur desktop. */
.hv-pop .hv-en-champs { flex-direction: row; gap: 10px; align-items: flex-start; }
.hv-pop .hv-en-champ input, .hv-pop .hv-en-bouton { height: 56px; }
.hv-pop-mention { margin: 0; font-family: var(--hv-jakarta); font-size: 12.5px; line-height: 1.45; color: #6B5557; text-align: center; }
.hv-pop--entre-nous .hv-pop-pas { color: var(--hv-bordeaux-profond); text-decoration-color: rgba(82, 18, 28, 0.35); margin-top: -14px; }
.hv-pop--entre-nous .hv-pop-contenu:has(.hv-en-etat:not([hidden])) :is(.hv-pop-mention, .hv-pop-pas) { display: none; }

@keyframes hv-pop-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes hv-pop-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.hv-pop-ouverte { overflow: hidden; }

/* Mobile : feuille basse, rayon 28 en haut, poignée 40 × 4, safe area. */
@media (max-width: 767px) {
	.hv-pop { align-items: flex-end; padding: 0; }
	.hv-pop-fenetre { width: 100% !important; border-radius: 28px 28px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); animation: hv-pop-feuille .25s ease-out; }
	.hv-pop-poignee { display: block; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 999px; background: rgba(252, 247, 240, 0.35); z-index: 2; }
	.hv-pop--entre-nous .hv-pop-poignee { background: rgba(82, 18, 28, 0.25); }
	.hv-pop--bilan .hv-pop-fenetre { grid-template-columns: minmax(0, 1fr); }
	.hv-pop--bilan .hv-pop-image { height: 200px; min-height: 0; }
	.hv-pop--bilan .hv-pop-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(124, 31, 42, 0) 40%, var(--hv-bordeaux)); }
	.hv-pop--bilan .hv-pop-contenu { padding: 4px 24px calc(20px + env(safe-area-inset-bottom)); gap: 14px; text-align: left; align-items: stretch; }
	.hv-pop--bilan .hv-pop-surtitre, .hv-pop--entre-nous .hv-pop-surtitre { font-size: 10.5px; }
	.hv-pop--bilan .hv-pop-titre { font-size: 32px; line-height: 1.1; text-wrap: balance; }
	.hv-pop-texte { font-size: 17px; line-height: 1.5; }
	.hv-pop--bilan .hv-pop-actions { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; margin-top: 0; padding-top: 8px; }
	.hv-pop--bilan .hv-pop-cta { width: 100%; }
	.hv-pop--bilan .hv-pop-reassurance { text-align: center; }
	.hv-pop--bilan .hv-pop-pas { align-self: center; }
	.hv-pop-bouton { width: 100%; }
	.hv-pop--entre-nous .hv-pop-contenu { padding: 48px 24px calc(20px + env(safe-area-inset-bottom)); gap: 14px; text-align: left; align-items: stretch; }
	.hv-pop--entre-nous .hv-pop-titre { font-size: 44px; line-height: 1; }
	.hv-pop--entre-nous .hv-en--popup { padding-top: 6px; }
	.hv-pop .hv-en-champs { flex-direction: column; gap: 12px; align-items: stretch; }
	.hv-pop .hv-en-champ input, .hv-pop .hv-en-bouton { height: 52px; }
	.hv-pop--entre-nous .hv-pop-mention { align-self: center; }
	.hv-pop--entre-nous .hv-pop-pas { align-self: center; margin-top: -12px; }
}
@keyframes hv-pop-feuille { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.hv-pop-fenetre, .hv-pop-voile { animation: hv-pop-fondu .2s ease-out !important; }
}
