/* Novélia – espace acquéreur (charte : violet #8e3d80, aubergine #4b2246, olive #a4a63a, Montserrat) */

.nsx {
	--nsx-marque: #8e3d80;
	--nsx-fonce: #723267;
	--nsx-nuit: #4b2246;
	--nsx-olive: #a4a63a;
	--nsx-olive-vif: #c9cb5b;
	--nsx-olive-fonce: #6f7116;
	--nsx-voile: rgba(142, 61, 128, .08);
	--nsx-olive-voile: rgba(164, 166, 58, .16);
	--nsx-texte: #2e2e2e;
	--nsx-doux: #5f5a5e;
	--nsx-fond: #f7f4f6;
	--nsx-creme: #f6f2ea;
	--nsx-ligne: #e9e1e7;
	--nsx-ombre: 0 10px 30px rgba(46, 18, 40, .07);
	--nsx-rayon: 18px;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--nsx-texte);
	overflow-x: clip;
}
.nsx *, .nsx *::before, .nsx *::after { box-sizing: border-box; }
.nsx h1, .nsx h2, .nsx h3, .nsx h4 { font-family: inherit; letter-spacing: -.01em; line-height: 1.2; margin: 0; text-wrap: balance; }
.nsx p { margin: 0 0 .8em; }
.nsx p:last-child { margin-bottom: 0; }
.nsx a { color: var(--nsx-marque); }
.nsx img { max-width: 100%; height: auto; display: block; }
.nsx .ns-ico { width: 20px; height: 20px; flex: none; }
.nsx ul, .nsx ol { margin: 0; padding: 0; list-style: none; }
.nsx-conteneur { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.nsx-conteneur-etroit { width: min(760px, calc(100% - 40px)); }
.nsx .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bandeau ---------- */
.nsx-hero {
	position: relative;
	overflow: hidden;
	padding: 190px 0 78px;
	color: #fff;
	background:
		radial-gradient(circle at 85% 20%, rgba(201, 203, 91, .22), rgba(201, 203, 91, 0) 38%),
		linear-gradient(135deg, #3f1c3b 0%, var(--nsx-nuit) 40%, var(--nsx-fonce) 80%, var(--nsx-marque) 100%);
}
.nsx-hero-montagnes { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; }
.nsx-hero-grille { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .nsx-hero-avec-droite { grid-template-columns: minmax(0, 1fr) auto; } }
.nsx .nsx-surtitre { display: inline-block; margin: 0 0 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--nsx-marque); }
.nsx-hero .nsx-surtitre { color: var(--nsx-olive-vif); }
.nsx-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; color: #fff; }
.nsx-hero h1 em { font-style: normal; color: var(--nsx-olive-vif); }
.nsx-hero-sous { max-width: 64ch; font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(255, 255, 255, .9); }
.nsx-hero-droite { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px); }
.nsx-anneau {
	--nsx-p: 0;
	position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%;
	background: conic-gradient(var(--nsx-olive-vif) calc(var(--nsx-p) * 1%), rgba(255, 255, 255, .16) 0);
	display: grid; place-items: center;
}
.nsx-anneau::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--nsx-nuit); }
.nsx-anneau-valeur { position: relative; font-size: 1.6rem; font-weight: 800; color: #fff; }
.nsx-anneau-valeur small { font-size: .55em; font-weight: 700; }
.nsx-anneau-legende { display: grid; gap: 4px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.nsx-anneau-legende strong { font-size: 15px; color: #fff; }
.nsx-choix-dossier { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.nsx-choix-dossier label { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.nsx-choix-dossier select { border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--nsx-nuit); background: #fff; }

/* ---------- Corps ---------- */
.nsx-corps { padding: 44px 0 90px; background: var(--nsx-fond); }
.nsx-carte {
	margin: 0 0 22px; padding: 26px 28px;
	background: #fff; border: 1px solid var(--nsx-ligne); border-radius: var(--nsx-rayon); box-shadow: var(--nsx-ombre);
}
.nsx-carte > h2, .nsx-carte > h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 1.12rem; font-weight: 800; color: var(--nsx-nuit); }
.nsx-carte-douce { background: var(--nsx-creme); border-color: transparent; box-shadow: none; }
.nsx-compte { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--nsx-voile); color: var(--nsx-fonce); font-size: 13px; font-weight: 800; }
.nsx-titre-panneau { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px !important; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--nsx-nuit); }
.nsx-titre-panneau span { font-size: .55em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nsx-olive-fonce); }
.nsx-titre-section { margin: 34px 0 16px !important; font-size: 1.3rem; font-weight: 800; color: var(--nsx-nuit); }
.nsx-intro { margin-bottom: 20px !important; font-size: 1.02rem; color: var(--nsx-doux); }
.nsx-meta { display: block; font-size: 13.5px; color: var(--nsx-doux); }
.nsx-vide { color: var(--nsx-doux); font-style: italic; }
.nsx-texte p { margin-bottom: .7em; }

/* Boutons */
.nsx .nsx-bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 48px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
	font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.nsx .nsx-bouton:hover { transform: translateY(-1px); }
.nsx .nsx-bouton .ns-ico { width: 18px; height: 18px; }
.nsx .nsx-bouton-plein { background: var(--nsx-marque); color: #fff; box-shadow: 0 10px 22px rgba(114, 50, 103, .22); }
.nsx .nsx-bouton-plein:hover { background: var(--nsx-fonce); color: #fff; }
.nsx .nsx-bouton-contour { background: #fff; border-color: var(--nsx-marque); color: var(--nsx-marque); }
.nsx .nsx-bouton-contour:hover { background: var(--nsx-voile); color: var(--nsx-fonce); }
.nsx .nsx-bouton-petit { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.nsx .nsx-bouton-large { width: 100%; }
.nsx .nsx-bouton:disabled, .nsx fieldset:disabled .nsx-bouton { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.nsx .nsx-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--nsx-marque); text-decoration: none; }
.nsx .nsx-lien:hover { color: var(--nsx-fonce); text-decoration: underline; }
.nsx .nsx-lien .ns-ico { width: 16px; height: 16px; transition: transform .2s; }
.nsx .nsx-lien:hover .ns-ico { transform: translateX(3px); }
.nsx-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.nsx-actions-tete { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px !important; }

/* Pastilles */
.nsx-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; letter-spacing: 0; text-transform: none; }
.nsx-pastille-neutre { background: #efebee; color: #5d555b; }
.nsx-pastille-attente { background: var(--nsx-voile); color: var(--nsx-fonce); }
.nsx-pastille-ok, .nsx-pastille-olive { background: var(--nsx-olive-voile); color: var(--nsx-olive-fonce); }
.nsx-pastille-alerte { background: #fde9e4; color: #a33a1f; }

/* Messages de confirmation / erreur */
.nsx-flash { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 15px 18px; border-radius: 14px; font-weight: 600; }
.nsx-flash .ns-ico { margin-top: 1px; }
.nsx-flash-ok { background: var(--nsx-olive-voile); color: #4f5110; border: 1px solid rgba(164, 166, 58, .4); }
.nsx-flash-erreur { background: #fdeeea; color: #8c2f17; border: 1px solid #f3c6b9; }
.nsx-bandeau-apercu { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; background: #fff7e0; border: 1px dashed #d9b44a; color: #6b5310; }
.nsx-bandeau-apercu p { flex: 1 1 320px; margin: 0; }

/* Encadrés */
.nsx-encadre { display: flex; gap: 14px; margin: 0 0 20px; padding: 18px 20px; border-radius: 16px; background: var(--nsx-voile); border: 1px solid rgba(142, 61, 128, .16); }
.nsx-encadre > .ns-ico { width: 24px; height: 24px; margin-top: 2px; color: var(--nsx-marque); }
.nsx-encadre-clos { background: #f1eef0; border-color: #e1dbe0; }
.nsx-encadre-clos > .ns-ico { color: #7a7177; }
.nsx-encadre-alerte { background: #fdeeea; border-color: #f3c6b9; }
.nsx-encadre-alerte > .ns-ico { color: #b5401f; }
.nsx-carte .nsx-encadre { margin-top: 18px; }

/* ---------- Formulaires ---------- */
.nsx-formulaire fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.nsx-champ { display: grid; gap: 6px; margin: 0 0 16px !important; }
.nsx-champ > label { font-size: 14px; font-weight: 700; color: var(--nsx-nuit); }
.nsx-aide-inline { margin-left: 6px; font-weight: 500; color: var(--nsx-doux); font-size: 13px; }
.nsx-aide { font-size: 13px; color: var(--nsx-doux); }
.nsx input[type=text], .nsx input[type=email], .nsx input[type=tel], .nsx input[type=password], .nsx input[type=number], .nsx input[type=date], .nsx select, .nsx textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid #dcd1d9; border-radius: 12px; background: #fff;
	font: inherit; font-size: 16px; color: var(--nsx-texte); box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.nsx textarea { min-height: 120px; resize: vertical; }
.nsx input:focus, .nsx select:focus, .nsx textarea:focus { outline: none; border-color: var(--nsx-marque); box-shadow: 0 0 0 3px rgba(142, 61, 128, .16); }
.nsx input[type=file] { width: 100%; padding: 12px; border: 1.5px dashed #cdbfca; border-radius: 12px; background: var(--nsx-fond); font: inherit; font-size: 14px; }
.nsx-case { margin: 0 0 16px !important; font-size: 14.5px; }
.nsx-case label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.nsx-case input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--nsx-marque); }
.nsx-mdp { position: relative; display: block; }
.nsx-mdp input { padding-right: 50px; }
.nsx-voir-mdp { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--nsx-doux); cursor: pointer; }
.nsx-voir-mdp:hover, .nsx-voir-mdp[aria-pressed=true] { background: var(--nsx-voile); color: var(--nsx-marque); }
.nsx-grille-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .nsx-grille-2 { grid-template-columns: 1fr 1fr; } }
.nsx-grille-cartes { gap: 0 22px; align-items: start; }
.nsx-encart { margin: 4px 0 16px !important; padding: 16px 18px 2px !important; border: 1px solid var(--nsx-ligne) !important; border-radius: 14px; background: var(--nsx-fond); }
.nsx-encart legend { padding: 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nsx-olive-fonce); }
.nsx-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nsx-formulaire-ligne { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.nsx-formulaire-ligne .nsx-champ { flex: 1 1 220px; }
.nsx-formulaire-ligne > p:last-child { margin-bottom: 16px; }

/* ---------- Accueil public (connexion / création) ---------- */
.nsx-acces { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .nsx-acces { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); } }
.nsx-carte-acces { padding: 30px 32px; }
.nsx-carte-acces h2 { margin: 6px 0 16px; font-size: 1.45rem; font-weight: 800; color: var(--nsx-nuit); }
.nsx-bascule { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--nsx-fond); }
.nsx-bascule a { padding: 10px 12px; border-radius: 999px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--nsx-doux); text-decoration: none; }
.nsx-bascule a.nsx-actif { background: #fff; color: var(--nsx-marque); box-shadow: 0 4px 12px rgba(46, 18, 40, .1); }
.nsx-oubli { margin: 16px 0 14px; }
.nsx-oubli summary { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--nsx-marque); }
.nsx-oubli[open] summary { margin-bottom: 14px; }
.nsx-note { margin-top: 14px !important; padding-top: 16px; border-top: 1px solid var(--nsx-ligne); font-size: 14.5px; color: var(--nsx-doux); }
.nsx-atouts { padding: 8px 0 0; }
.nsx-atouts h2 { margin: 0 0 22px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; color: var(--nsx-nuit); }
.nsx-atouts li { display: flex; gap: 16px; margin-bottom: 20px; }
.nsx-atouts li strong { display: block; margin-bottom: 2px; font-size: 1.02rem; color: var(--nsx-nuit); }
.nsx-atouts li p { margin: 0; color: var(--nsx-doux); font-size: 15px; }
.nsx-atout-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--nsx-marque); box-shadow: var(--nsx-ombre); }
.nsx-atouts-tel { margin-top: 8px !important; font-weight: 600; }
.nsx-atouts-tel a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* États (attente, sans dossier) */
.nsx-etat { text-align: center; padding: 36px 32px; }
.nsx-etat h2 { justify-content: center; font-size: 1.35rem !important; }
.nsx-etat-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--nsx-voile); color: var(--nsx-marque); }
.nsx-etat-ico .ns-ico { width: 28px; height: 28px; }
.nsx-etat .nsx-formulaire-ligne { justify-content: center; text-align: left; max-width: 520px; margin: 18px auto 0; }
.nsx-etat-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.nsx-recap { display: inline-grid; gap: 8px; margin: 8px auto 4px !important; padding: 16px 22px !important; border-radius: 14px; background: var(--nsx-fond); text-align: left; }
.nsx-recap li { display: flex; gap: 14px; justify-content: space-between; }
.nsx-recap span { color: var(--nsx-doux); }

/* Équipe */
.nsx-liste-equipe li { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--nsx-ligne); }
.nsx-liste-equipe li:first-child { border-top: 0; }
.nsx-liste-equipe li div { display: grid; }
.nsx-liste-equipe li div span { font-size: 14px; color: var(--nsx-doux); }
.nsx-liste-equipe .nsx-lien { margin: 0; }
.nsx-mini-barre { display: block; height: 8px; border-radius: 99px; background: #eee6ec; overflow: hidden; }
.nsx-mini-barre span { display: block; height: 100%; background: var(--nsx-olive); }
@media (max-width: 700px) { .nsx-liste-equipe li { grid-template-columns: 1fr; } }

/* ---------- Tableau de bord ---------- */
.nsx-tableau { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.nsx-nav { min-width: 0; }
@media (min-width: 980px) { .nsx-tableau { grid-template-columns: 250px minmax(0, 1fr); } }
.nsx-nav { position: relative; }
@media (min-width: 980px) { .nsx-nav { position: sticky; top: 120px; } }
.nsx-nav ul { display: grid; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--nsx-ligne); border-radius: var(--nsx-rayon); box-shadow: var(--nsx-ombre); }
.nsx-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #4a4248; text-decoration: none; transition: background-color .2s, color .2s; }
.nsx-nav a:hover { background: var(--nsx-fond); color: var(--nsx-marque); }
.nsx-nav a.nsx-actif { background: var(--nsx-voile); color: var(--nsx-fonce); font-weight: 800; }
.nsx-nav a.nsx-actif::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--nsx-marque); }
.nsx-nav .nsx-nav-sortie { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--nsx-ligne); }
.nsx-nav .nsx-nav-sortie a { color: var(--nsx-doux); font-weight: 600; }
.nsx-badge { margin-left: auto; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--nsx-olive); color: #fff; font-size: 12px; font-weight: 800; }
@media (max-width: 979px) {
	.nsx-nav ul { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.nsx-nav ul::-webkit-scrollbar { display: none; }
	.nsx-nav li { flex: none; scroll-snap-align: start; }
	.nsx-nav a { padding: 10px 14px; white-space: nowrap; font-size: 14px; }
	.nsx-nav a.nsx-actif::before { display: none; }
	.nsx-nav .nsx-nav-sortie { margin: 0; padding: 0; border: 0; }
}
.nsx-panneau { min-width: 0; }

/* Tuiles */
.nsx-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.nsx-tuile { display: grid; gap: 4px; align-content: start; padding: 20px 22px; border-radius: var(--nsx-rayon); background: #fff; border: 1px solid var(--nsx-ligne); box-shadow: var(--nsx-ombre); color: var(--nsx-texte); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.nsx-tuile:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(46, 18, 40, .11); color: var(--nsx-texte); }
.nsx-tuile strong { font-size: 1.32rem; font-weight: 800; color: var(--nsx-nuit); line-height: 1.25; }
.nsx-tuile > span:last-child:not(.nsx-tuile-libelle) { font-size: 13.5px; color: var(--nsx-doux); }
.nsx-tuile-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; background: var(--nsx-voile); color: var(--nsx-marque); }
.nsx-tuile-libelle { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nsx-doux); }
.nsx-tuile-ok strong { color: var(--nsx-olive-fonce); }
.nsx-tuile-alerte { border-color: #f3c6b9; background: #fff8f6; }
.nsx-tuile-alerte .nsx-tuile-ico { background: #fde9e4; color: #b5401f; }
.nsx-tuiles-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 560px) {
	.nsx-tuiles-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
	.nsx-tuiles-4 .nsx-tuile { padding: 16px; }
	.nsx-tuiles-4 .nsx-tuile strong { font-size: 1.12rem; }
	.nsx-tuiles-4 .nsx-tuile-libelle { font-size: 11px; letter-spacing: .06em; }
}

.nsx-grille-accueil { display: grid; gap: 22px; }
@media (min-width: 760px) {
	.nsx-grille-accueil { grid-template-columns: 1fr 1fr; }
	.nsx-carte-actu { grid-row: span 2; }
}
.nsx-grille-accueil .nsx-carte { margin: 0; display: flex; flex-direction: column; }
.nsx-grille-accueil .nsx-carte > .nsx-lien:last-child { margin-top: auto; padding-top: 12px; }
.nsx-grille-accueil h4 { margin: 2px 0 8px; font-size: 1.05rem; font-weight: 800; color: var(--nsx-texte); }
.nsx-actu-photo { display: block; margin: 0 0 14px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--nsx-fond); }
.nsx-actu-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nsx-actu-photo:hover img { transform: scale(1.03); }

/* Barres et chiffres */
.nsx-barre { height: 10px; margin: 6px 0 14px; border-radius: 99px; background: #eee6ec; overflow: hidden; }
.nsx-barre span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--nsx-olive) 0%, var(--nsx-olive-vif) 100%); }
.nsx-barre-epaisse { height: 14px; }
.nsx-chiffres-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px !important; }
.nsx-chiffres-ligne span { display: block; font-size: 13px; color: var(--nsx-doux); }
.nsx-chiffres-ligne strong { font-size: 1.2rem; font-weight: 800; color: var(--nsx-nuit); }
.nsx-grand-chiffre { margin: 2px 0 6px !important; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--nsx-nuit); }
.nsx-grand-chiffre small { font-size: .5em; font-weight: 700; color: var(--nsx-doux); }
.nsx-grand-chiffre-texte { font-size: 1.35rem; }
.nsx-avancement { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-bottom: 4px; }

/* Interlocuteur */
.nsx-contact-nom { display: flex; align-items: center; gap: 12px; }
.nsx-avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--nsx-marque); color: #fff; font-weight: 800; font-size: 1.1rem; }
.nsx-contact-liens { display: grid; gap: 6px; margin: 4px 0 16px !important; }
.nsx-contact-liens a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.nsx-contact-liens .ns-ico { width: 17px; height: 17px; }
.nsx-carte-contact .nsx-bouton { align-self: flex-start; }

/* Étapes du chantier */
.nsx-etapes { position: relative; margin-top: 26px !important; }
.nsx-etape { position: relative; display: flex; gap: 18px; padding: 0 0 24px; }
.nsx-etape::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--nsx-ligne); }
.nsx-etape:last-child { padding-bottom: 0; }
.nsx-etape:last-child::before { display: none; }
.nsx-etape-termine::before { background: var(--nsx-olive); }
.nsx-etape-repere { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #d8cdd5; background: #fff; color: #fff; }
.nsx-etape-repere .ns-ico { width: 17px; height: 17px; stroke-width: 3; }
.nsx-etape-termine .nsx-etape-repere { border-color: var(--nsx-olive); background: var(--nsx-olive); }
.nsx-etape-en_cours .nsx-etape-repere { border-color: var(--nsx-marque); box-shadow: 0 0 0 6px rgba(142, 61, 128, .14); }
.nsx-etape-en_cours .nsx-etape-repere::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--nsx-marque); animation: nsx-pulse 1.8s ease-in-out infinite; }
@keyframes nsx-pulse { 50% { transform: scale(.65); opacity: .6; } }
.nsx-etape-corps { padding-top: 4px; min-width: 0; }
.nsx-etape-corps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; font-size: 1.04rem; font-weight: 800; color: var(--nsx-nuit); }
.nsx-etape-a_venir .nsx-etape-corps h3 { color: #6a6168; }
.nsx-etape-corps p { margin: 0 0 4px; color: var(--nsx-doux); }

/* Actualités et photos */
.nsx-actu h3 { margin: 2px 0 10px; font-size: 1.15rem; font-weight: 800; color: var(--nsx-nuit); }
.nsx-galerie { display: grid; gap: 10px; margin-top: 16px; grid-template-columns: repeat(2, 1fr); }
.nsx-galerie-1 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .nsx-galerie-3 { grid-template-columns: repeat(3, 1fr); } .nsx-galerie-4 { grid-template-columns: repeat(4, 1fr); } }
.nsx-galerie a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--nsx-fond); }
.nsx-galerie-1 { max-width: 680px; }
.nsx-galerie-1 a { aspect-ratio: 16 / 9; }
.nsx-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nsx-galerie a:hover img { transform: scale(1.04); }

/* Documents */
.nsx-docs li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--nsx-ligne); }
.nsx-docs li:first-child { border-top: 0; padding-top: 2px; }
.nsx-doc-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--nsx-voile); color: var(--nsx-fonce); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.nsx-doc-pdf { background: #fbe8e5; color: #a33a1f; }
.nsx-doc-image { background: var(--nsx-olive-voile); color: var(--nsx-olive-fonce); }
.nsx-doc-tableur { background: #e5f2e8; color: #2f6b3d; }
.nsx-doc-texte { display: grid; flex: 1 1 auto; min-width: 0; }
.nsx-doc-texte a { font-weight: 700; color: var(--nsx-texte); text-decoration: none; overflow-wrap: anywhere; }
.nsx-doc-texte a:hover { color: var(--nsx-marque); text-decoration: underline; }
.nsx-doc-action { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--nsx-marque); transition: background-color .2s; }
.nsx-doc-action:hover { background: var(--nsx-voile); }
.nsx-docs-compact li { gap: 10px; padding: 9px 0; }
.nsx-docs-compact .nsx-doc-ico { width: 34px; height: 34px; border-radius: 10px; }
.nsx-docs-compact .nsx-doc-ico .ns-ico { width: 17px; height: 17px; }
.nsx-docs-compact a { flex: 1; font-weight: 600; font-size: 14.5px; color: var(--nsx-texte); text-decoration: none; }
.nsx-docs-compact a:hover { color: var(--nsx-marque); }

/* TMA */
.nsx-processus { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 22px !important; counter-reset: none; }
.nsx-processus li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 700; color: var(--nsx-doux); }
.nsx-processus li strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--nsx-marque); color: var(--nsx-marque); font-size: 14px; position: relative; z-index: 1; }
.nsx-processus li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: rgba(142, 61, 128, .25); }
@media (max-width: 560px) { .nsx-processus li span { font-size: 11.5px; } }
.nsx-tma-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.nsx-tma-tete h3 { font-size: 1.12rem; font-weight: 800; color: var(--nsx-nuit); }
.nsx-pieces { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 !important; }
.nsx-pieces a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--nsx-fond); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.nsx-pieces .ns-ico { width: 15px; height: 15px; }
.nsx-reponse { margin-top: 16px; padding: 14px 18px; border-left: 4px solid var(--nsx-olive); border-radius: 0 12px 12px 0; background: var(--nsx-creme); }
.nsx-reponse-titre { margin: 0 0 4px !important; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nsx-olive-fonce); }
.nsx-devis { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 20px; border-radius: 14px; background: var(--nsx-voile); }
.nsx-decision { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--nsx-ligne); }
.nsx-trace { margin-top: 12px !important; }

/* Tableau des appels de fonds */
.nsx-table-cadre { margin-top: 18px; overflow-x: auto; }
.nsx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; }
.nsx-table th, .nsx-table td { padding: 12px 12px; border-bottom: 1px solid var(--nsx-ligne); text-align: left; vertical-align: top; }
.nsx-table thead th { padding-top: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nsx-doux); border-bottom-width: 2px; }
.nsx-table tbody th { font-weight: 700; color: var(--nsx-texte); }
.nsx-table tbody th .nsx-meta { font-weight: 500; font-size: 12.5px; }
.nsx-table .nsx-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nsx-table tfoot th, .nsx-table tfoot td { border-bottom: 0; font-weight: 800; color: var(--nsx-nuit); }
.nsx-table .nsx-ligne-depot { background: var(--nsx-fond); }
.nsx-table .nsx-ligne-retard { background: #fff6f3; }
@media (max-width: 760px) {
	.nsx-table thead { display: none; }
	.nsx-table, .nsx-table tbody, .nsx-table tr, .nsx-table th, .nsx-table td, .nsx-table tfoot { display: block; width: 100%; }
	.nsx-table tbody tr { padding: 12px 0; border-bottom: 1px solid var(--nsx-ligne); }
	.nsx-table th, .nsx-table td { padding: 3px 0; border: 0; }
	.nsx-table td[data-label]::before { content: attr(data-label) " : "; font-weight: 600; color: var(--nsx-doux); }
	.nsx-table td[data-label="Document"]:empty, .nsx-table td:empty { display: none; }
	.nsx-table .nsx-num { text-align: left; }
	.nsx-table tfoot tr { padding-top: 12px; }
}

/* Messages */
.nsx-fil { display: grid; gap: 14px; margin-bottom: 22px !important; }
.nsx-msg { max-width: 82%; padding: 14px 18px; border-radius: 18px; }
.nsx-msg-client { justify-self: end; background: var(--nsx-voile); border-bottom-right-radius: 6px; }
.nsx-msg-equipe { justify-self: start; background: var(--nsx-fond); border: 1px solid var(--nsx-ligne); border-bottom-left-radius: 6px; }
.nsx-msg-nouveau { box-shadow: 0 0 0 2px var(--nsx-olive-vif); }
.nsx-msg-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px !important; font-size: 13.5px; }
.nsx-msg-tete strong { color: var(--nsx-nuit); }
.nsx-msg-tete span:not(.nsx-pastille) { color: var(--nsx-doux); }
.nsx-msg-texte p { margin-bottom: .5em; }
.nsx-repondre { padding-top: 18px; border-top: 1px solid var(--nsx-ligne); }

/* Compte */
.nsx-liste-dossiers li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nsx-ligne); }
.nsx-liste-dossiers li:first-child { border-top: 0; }
.nsx-liste-dossiers li > span { display: inline-flex; align-items: center; gap: 10px; }
.nsx-liste-dossiers .nsx-lien { margin: 0; }
.nsx-code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nsx-code code { padding: 10px 16px; border-radius: 12px; background: #fff; border: 1.5px dashed var(--nsx-olive); font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; color: var(--nsx-nuit); }

/* Impression du relevé */
@media print {
	body.ns-espace-page header, body.ns-espace-page footer, .nsx-hero, .nsx-nav, .nsx-bandeau-apercu, .nsx-imprimer, .nsx-flash { display: none !important; }
	.nsx-corps { padding: 0; background: #fff; }
	.nsx-tableau { display: block; }
	.nsx-carte, .nsx-tuile { box-shadow: none; break-inside: avoid; }
}
