/* ---------------------------------------------------------------------------
 * Réalisations — catégories, projets, page projet
 * Repères du site : rouge #E20613, encre #1c2024, filets clairs, rayons 16px.
 * ------------------------------------------------------------------------- */

.nv-real {
	--r-rouge: #E20613;
	--r-encre: #1c2024;
	--r-gris: #6b7178;
	--r-filet: #eceef0;
	--r-fond: #f6f6f7;
	padding: 56px 0 96px;
	background: #fff;
	color: var(--r-encre);
}
.nv-real *, .nv-real *::before, .nv-real *::after { box-sizing: border-box; }
.nv-real-bandeau + .nv-real { padding-top: 48px; }

/* ---- Grille ---- */
.nv-real-grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}
@media (min-width: 640px)  { .nv-real-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nv-real-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.nv-real-vide { padding: 40px 24px; border: 1px dashed var(--r-filet); border-radius: 20px; color: var(--r-gris); text-align: center; }

/* ---- Cartes ---- */
.nv-real-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--r-filet);
	border-radius: 18px;
	background: #fff;
	color: var(--r-encre) !important;
	text-decoration: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.nv-real-carte:hover { border-color: rgba(226, 6, 19, .35); box-shadow: 0 18px 36px -26px rgba(17, 24, 39, .35); }
.nv-real-carte:focus-visible { outline: 2px solid var(--r-rouge); outline-offset: 3px; }

.nv-real-visuel { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--r-fond); }
.nv-real-visuel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nv-real-visuel-vide { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #c3c6ca; }
.nv-real-visuel-vide svg { width: 40px; height: 40px; }

.nv-real-titre { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; }
.nv-real-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--r-rouge); font-size: 14px; font-weight: 700; }
.nv-real-lien svg { width: 16px; height: 16px; }

/* Carte catégorie : image pleine, légende sur dégradé */
.nv-real-carte--categorie { aspect-ratio: 4 / 3; border: 0; color: #fff !important; }
.nv-real-carte--categorie .nv-real-visuel { position: absolute; inset: 0; aspect-ratio: auto; }
.nv-real-voile { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 12, .85) 0%, rgba(10, 10, 12, .25) 55%, rgba(10, 10, 12, 0) 100%); }
.nv-real-carte--categorie .nv-real-legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.nv-real-carte--categorie .nv-real-titre { color: #fff; font-size: 22px; }
.nv-real-carte--categorie .nv-real-lien { color: #fff; }
.nv-real-compte { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--r-rouge); color: #fff; font-size: 12px; font-weight: 700; }
.nv-real-carte--categorie:hover { box-shadow: 0 22px 40px -24px rgba(17, 24, 39, .55); }

/* Carte projet */
.nv-real-corps { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.nv-real-resume { display: -webkit-box; margin-top: 8px; overflow: hidden; color: var(--r-gris); font-size: 14px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.nv-real-carte--projet .nv-real-lien { margin-top: auto; padding-top: 14px; }
.nv-real-nb-photos { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(17, 24, 39, .72); color: #fff; font-size: 12px; font-weight: 700; }
.nv-real-nb-photos svg { width: 14px; height: 14px; }

.nv-real-badge {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(226, 6, 19, .08);
	color: var(--r-rouge) !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
}

/* ---- Navigation entre catégories ---- */
.nv-real-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.nv-real-pastilles a {
	padding: 8px 16px;
	border: 1px solid var(--r-filet);
	border-radius: 999px;
	background: #fff;
	color: var(--r-encre) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.nv-real-pastilles a:hover { border-color: rgba(226, 6, 19, .4); color: var(--r-rouge) !important; }
.nv-real-pastilles a[aria-current="page"] { border-color: var(--r-rouge); background: var(--r-rouge); color: #fff !important; }

.nv-real-total { margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--r-filet); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nv-real-total strong { color: var(--r-rouge); }

/* ---- Page projet ---- */
.nv-real-projet {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (min-width: 1024px) { .nv-real-projet { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; } }

.nv-real-photos { display: grid; gap: 12px; }
.nv-real-photo { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--r-fond); cursor: zoom-in; }
.nv-real-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nv-real-photo--principale { aspect-ratio: 16 / 10; }
.nv-real-photo--vide { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; color: #c3c6ca; cursor: default; }
.nv-real-photo--vide svg { width: 48px; height: 48px; }
.nv-real-vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .nv-real-vignettes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nv-real-vignettes .nv-real-photo { aspect-ratio: 4 / 3; border-radius: 12px; }
.nv-real-zoom {
	position: absolute; right: 10px; bottom: 10px;
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--r-encre);
	opacity: 0; transition: opacity .2s ease;
}
.nv-real-zoom svg { width: 16px; height: 16px; }
.nv-real-photo:hover .nv-real-zoom, .nv-real-photo:focus-visible .nv-real-zoom { opacity: 1; }
.nv-real-photo:focus-visible { outline: 2px solid var(--r-rouge); outline-offset: 2px; }

.nv-real-fiche {
	padding: 28px;
	border: 1px solid var(--r-filet);
	border-radius: 20px;
	background: #fff;
}
@media (min-width: 1024px) { .nv-real-fiche { position: sticky; top: 140px; } }
.nv-real-fiche h2 { margin: 0 0 12px; color: var(--r-encre); font-size: 22px; font-weight: 700; line-height: 1.25; }
.nv-real-texte { color: #3d434a; font-size: 15px; line-height: 1.7; }
.nv-real-texte p { margin: 0 0 12px; }
.nv-real-texte ul { margin: 0 0 12px; padding-left: 20px; }
/* Détails du projet */
.nv-real-infos { display: grid; gap: 0; margin: 20px 0 0; padding: 0; border: 1px solid var(--r-filet); border-radius: 14px; }
.nv-real-info { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; }
.nv-real-info + .nv-real-info { border-top: 1px solid var(--r-filet); }
.nv-real-info dt { margin: 0; color: var(--r-gris); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nv-real-info dd { margin: 0; color: var(--r-encre); font-size: 14px; font-weight: 600; text-align: right; }
.nv-real-equip { margin-top: 20px; }
.nv-real-equip h3 { margin: 0 0 10px; color: var(--r-encre); font-size: 15px; font-weight: 700; }
.nv-real-equip ul { margin: 0; padding: 0; list-style: none; }
.nv-real-equip li { position: relative; margin: 0 0 8px; padding-left: 26px; color: #3d434a; font-size: 14px; line-height: 1.5; }
.nv-real-equip li::before {
	content: "";
	position: absolute; left: 0; top: 3px;
	width: 16px; height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E20613' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.nv-real-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--r-filet); }
.nv-real-bouton {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 20px; border-radius: 9999px;
	background: var(--r-rouge); color: #fff !important;
	font-size: 14px; font-weight: 700; line-height: 20px; text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	transition: background-color .15s ease;
}
.nv-real-bouton:hover { background: rgba(226, 6, 19, .9); }
.nv-real-bouton svg { width: 16px; height: 16px; }
.nv-real-retour { display: inline-flex; align-items: center; gap: 6px; color: var(--r-gris) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.nv-real-retour:hover { color: var(--r-rouge) !important; }
.nv-real-retour svg { width: 16px; height: 16px; }

.nv-real-autres { margin-top: 72px; }
.nv-real-intertitre { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--r-encre); font-size: 22px; font-weight: 700; }
.nv-real-intertitre span { display: inline-block; width: 32px; height: 2px; background: var(--r-rouge); }

@media (max-width: 639px) {
	.nv-real { padding: 40px 0 64px; }
	.nv-real-fiche { padding: 22px; }
	.nv-real-carte--categorie .nv-real-titre { font-size: 19px; }
}
